Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt-modules/tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.4.2
Choose a base ref
...
head repository: nuxt-modules/tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.4.3
Choose a head ref
  • 17 commits
  • 19 files changed
  • 7 contributors

Commits on Dec 22, 2020

  1. Copy the full SHA
    dc2fa87 View commit details
  2. chore: copywriting

    atinux committed Dec 22, 2020
    Copy the full SHA
    f9c5f59 View commit details

Commits on Jan 7, 2021

  1. Copy the full SHA
    70b2be1 View commit details

Commits on Jan 14, 2021

  1. chore(deps): update all non-major dependencies (#238)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jan 14, 2021
    Copy the full SHA
    f5022b7 View commit details

Commits on Jan 19, 2021

  1. docs: move to docus

    atinux committed Jan 19, 2021
    Copy the full SHA
    b193d5e View commit details

Commits on Jan 25, 2021

  1. docs: add whitelist section to purge (#250)

    * docs: add whitelist section to purge
    
    * Update tailwind-config.md
    
    * Update tailwind-config.md
    
    Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
    Geminii and atinux authored Jan 25, 2021
    Copy the full SHA
    4e120e7 View commit details

Commits on Feb 22, 2021

  1. docs: move to plausible

    atinux committed Feb 22, 2021
    Copy the full SHA
    9cf0ca8 View commit details
  2. chore: migrate @nuxt/ufo to ufo (#268)

    Closes #265
    RomainLanz authored Feb 22, 2021
    Copy the full SHA
    cee958c View commit details

Commits on Feb 23, 2021

  1. Copy the full SHA
    2d58106 View commit details

Commits on Mar 2, 2021

  1. chore(deps): update devdependency husky to v5 (#260)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 2, 2021
    Copy the full SHA
    0a5c1ea View commit details

Commits on Mar 5, 2021

  1. Copy the full SHA
    97b44f8 View commit details
  2. chore: use main for baseBranches

    pi0 committed Mar 5, 2021
    Copy the full SHA
    e75b507 View commit details
  3. chore(deps): update all non-major dependencies (#278)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 5, 2021
    Copy the full SHA
    7e3cb98 View commit details
  4. chore(deps): update commitlint monorepo to v12 (#279)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 5, 2021
    Copy the full SHA
    8b1f50d View commit details
  5. chore: maintain yarn.lock

    pi0 committed Mar 5, 2021
    Copy the full SHA
    2caa0bc View commit details

Commits on Mar 10, 2021

  1. Copy the full SHA
    62526cf View commit details
  2. chore(release): 3.4.3

    pi0 committed Mar 10, 2021
    Copy the full SHA
    31b7e92 View commit details
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -3,10 +3,12 @@ name: ci
on:
push:
branches:
- master
- main
- dev
pull_request:
branches:
- master
- main
- dev

jobs:
ci:
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [3.4.3](https://github.com/nuxt-community/tailwindcss-module/compare/v3.4.2...v3.4.3) (2021-03-10)


### Bug Fixes

* use nuxt resolver to import `tailwind.config.js` ([#286](https://github.com/nuxt-community/tailwindcss-module/issues/286)) ([62526cf](https://github.com/nuxt-community/tailwindcss-module/commit/62526cf1af8319275dbf39f8d330063e661b1b50))

### [3.4.2](https://github.com/nuxt-community/tailwindcss-module/compare/v3.4.1...v3.4.2) (2020-12-22)

### [3.4.1](https://github.com/nuxt-community/tailwindcss-module/compare/v3.4.0...v3.4.1) (2020-12-18)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
- ⚡️&nbsp; PurgeCSS included for minimal CSS ⚡️
- 🪄&nbsp; Use latest CSS features *([Stage 1](https://cssdb.org/#stage-1))*
- 🎨&nbsp; Discover your Tailwind Colors *([see video](https://tailwindcss.nuxtjs.org/#tailwind-colors))*
- ⚙️&nbsp; Reference your Tailwind config in your app
- ⚙️&nbsp; Reference your Tailwind config in your app
- 📦&nbsp; Extendable by [Nuxt modules](https://modules.nuxtjs.org/)

[📖 &nbsp;Read more](https://tailwindcss.nuxtjs.org)
@@ -55,7 +55,7 @@ That's it! You can now use Tailwind classes in your Nuxt app ✨

You can contribute to this module online with CodeSandBox:

[![Edit @nuxtjs/tailwindcss](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/nuxt-community/tailwindcss-module/tree/master/?fontsize=14&hidenavigation=1&theme=dark)
[![Edit @nuxtjs/tailwindcss](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/nuxt-community/tailwindcss-module/tree/main/?fontsize=14&hidenavigation=1&theme=dark)

Or locally:

13 changes: 13 additions & 0 deletions docs/content/en/examples/postcss-plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Example with PostCSS Plugins
menuTitle: PostCSS Plugins
description: 'Live example of Nuxt Tailwind with postcss-nested plugin'
position: 9
category: Examples
csb_link: https://codesandbox.io/embed/postcss-plugin-with-nuxt-tailwind-gyfo8
fullscreen: true
---

Example with [postcss-nested](https://github.com/postcss/postcss-nested) plugin, see [how to add PostCSS plugins](https://nuxtjs.org/faq/postcss-plugins/) in Nuxt.

<code-sandbox :src="csb_link"></code-sandbox>
2 changes: 1 addition & 1 deletion docs/content/en/index.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: Introduction
description: 'Add Tailwind CSS to your Nuxt application in seconds.'
position: 1
category: ''
category: 'Getting started'
categoryPosition: 1
---

5 changes: 2 additions & 3 deletions docs/content/en/options.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: Options
description: 'You can configure the module easily with the tailwindcss property.'
position: 5
category: Guide
categoryPosition: 2
position: 3
category: Getting started
---

You can configure the module by using the `tailwindcss` property in the `nuxt.config.js`:
6 changes: 3 additions & 3 deletions docs/content/en/setup.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: Setup
description: 'Using TailwindCSS in your Nuxt project is only one command away'
position: 2
category: Guide
category: Getting started
---

Using TailwindCSS in your Nuxt project is only one command away ✨
@@ -93,11 +93,11 @@ In the meantime, you can upgrade Tailwind by using the [compatibility build](htt
yarn add --dev tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9
```

Please ensure you are using `Node >= 12.13.0` in order to use the version 2 of TailwindCSS.
Please ensure you are using `Node >= 12.13.0` in order to use version 2 of TailwindCSS.

<alert type="warning">

We have seen an issue with NPM regarding the packages resolution (see [comment](https://github.com/nuxt-community/tailwindcss-module/issues/202#issuecomment-738442349)), we hightly recommend to use [Yarn V1](https://classic.yarnpkg.com/en/docs/install) when working with Nuxt 2.
We have seen an issue with NPM regarding the packages resolution (see [comment](https://github.com/nuxt-community/tailwindcss-module/issues/202#issuecomment-738442349)), we highly recommend using [Yarn V1](https://classic.yarnpkg.com/en/docs/install) when working with Nuxt 2.

</alert>

24 changes: 20 additions & 4 deletions docs/content/en/tailwind-config.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: Tailwind Config
description: 'You can configure the integration easily with the storybook property.'
position: 3
position: 4
category: Guide
---

`@nuxtjs/tailwindcss` configures the Tailwind configuration to have the best user experience as possible by default.

## Default Configuration

```js
```js{}[tailwind.config.js]
{
theme: {},
variants: {},
@@ -30,7 +30,7 @@ category: Guide
}
```

> The file is [available on GitHub](https://github.com/nuxt-community/tailwindcss-module/blob/master/lib/files/tailwind.config.js)
> The file is [available on GitHub](https://github.com/nuxt-community/tailwindcss-module/blob/main/lib/files/tailwind.config.js)
You can learn more about the [Tailwind configuration](https://tailwindcss.com/docs/configuration) and the [purge option](https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css) on Tailwind docs.

@@ -79,7 +79,7 @@ Learn more about the [Tailwind config](https://tailwindcss.com/docs/configuratio

You can also use your `nuxt.config.js` to set your Tailwind Config with the `tailwindcss.config` property:

```js{}[nuxt.config.js]
```js [nuxt.config.js]
import tailwindTypography from '@tailwindcss/typography'

export default {
@@ -186,6 +186,22 @@ This merging strategy of with a function only applies to `plugins` and `purge.co

</alert>

### Whitelisting classes

If you need to whitelisting classes and avoid purge system, you need to precise `safelist` option like below :

```js{}[tailwind.config.js]
module.exports = {
purge: {
options: {
// Whitelisting some classes to avoid purge
safelist: ['whitelisted']
}
}
}
```


## Referencing in the application

It can often be useful to reference tailwind configuration values in runtime. For example to access some of your theme values when dynamically applying inline styles in a component.
2 changes: 1 addition & 1 deletion docs/content/en/tailwind-viewer.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Tailwind Viewer
description: 'Visualize your Tailwind configuration with the viewer.'
position: 4
position: 5
category: Guide
categoryPosition: 2
---
20 changes: 9 additions & 11 deletions docs/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import theme from '@nuxt/content-theme-docs'
import { withDocus } from 'docus'

export default theme({
env: {
GITHUB_TOKEN: process.env.GITHUB_TOKEN
export default withDocus({
docus: {
colors: {
primary: '#38b2ac'
}
},
loading: { color: '#38b2ac' },
buildModules: [
// https://github.com/bdrtsky/nuxt-ackee
'nuxt-ackee'
'vue-plausible'
],
ackee: {
server: 'https://ackee.nuxtjs.com',
domainId: '9dfafc05-b435-4ebd-a474-b836e6678e92',
detailed: true
plausible: {
domain: 'tailwindcss.nuxtjs.org'
}
})
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@
"license": "MIT",
"homepage": "https://tailwindcss.nuxtjs.org",
"dependencies": {
"@nuxt/content-theme-docs": "^0.8.2",
"nuxt": "^2.14.12"
"docus": "^0.0.9",
"nuxt": "^2.15.2"
},
"devDependencies": {
"nuxt-ackee": "^2.0.0"
"vue-plausible": "^1.1.3"
}
}
19 changes: 0 additions & 19 deletions docs/tailwind.config.js

This file was deleted.

Loading