Skip to content

Commit a7c54c4

Browse files
authoredJan 24, 2025··
docs: direct to v3 tailwindcss docs
1 parent 18f416e commit a7c54c4

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed
 

‎docs/content/1.getting-started/1.installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ When running your Nuxt project, this module will look for these files:
9696

9797
If these files don't exist, the module will automatically generate a basic configuration for them, so you don't have to create these files manually.
9898

99-
You can create the `tailwind.config.js` file by running the following command, as noted by [the Tailwind CSS installation guide](https://tailwindcss.com/docs/installation):
99+
You can create the `tailwind.config.js` file by running the following command, as noted by [the Tailwind CSS installation guide](https://v3.tailwindcss.com/docs/installation):
100100

101101
::code-group
102102

@@ -118,7 +118,7 @@ pnpm dlx tailwindcss init
118118
If the above fails, you can try `npx tailwindcss-cli init`.
119119
::
120120

121-
If you're going to create your own CSS file for Tailwind CSS, make sure to add the [`@tailwind`](https://tailwindcss.com/docs/functions-and-directives#tailwind) directives:
121+
If you're going to create your own CSS file for Tailwind CSS, make sure to add the [`@tailwind`](https://v3.tailwindcss.com/docs/functions-and-directives#tailwind) directives:
122122

123123
```css [~/assets/css/tailwind.css]
124124
@tailwind base;

‎docs/content/1.getting-started/2.module-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default defineNuxtConfig({
126126

127127
- Default: `false`
128128

129-
As a solution to [referencing the configuration in JavaScript](https://tailwindcss.com/docs/configuration#referencing-in-java-script), if you need to resolve the Tailwind configuration in runtime, you can enable the `exposeConfig` option:
129+
As a solution to [referencing the configuration in JavaScript](https://v3.tailwindcss.com/docs/configuration#referencing-in-java-script), if you need to resolve the Tailwind configuration in runtime, you can enable the `exposeConfig` option:
130130

131131
```ts [nuxt.config]
132132
export default defineNuxtConfig({

‎docs/content/2.tailwindcss/1.configuration.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When you install the module, the default Tailwind configuration would be equival
2929
}
3030
```
3131

32-
You can learn more about the [Tailwind configuration](https://tailwindcss.com/docs/configuration) and [content configuration](https://tailwindcss.com/docs/content-configuration) in Tailwind docs.
32+
You can learn more about the [Tailwind configuration](https://v3.tailwindcss.com/docs/configuration) and [content configuration](https://v3.tailwindcss.com/docs/content-configuration) in Tailwind docs.
3333

3434
## Overwriting the configuration
3535

@@ -94,7 +94,7 @@ module.exports = {
9494

9595
::
9696

97-
Learn more about Tailwind configuration in [the official documentation](https://tailwindcss.com/docs/configuration).
97+
Learn more about Tailwind configuration in [the official documentation](https://v3.tailwindcss.com/docs/configuration).
9898

9999
### `config` option
100100

@@ -212,7 +212,7 @@ It is unlikely for `level` to ever be over 4 - the usual depth of a Tailwind con
212212
::
213213

214214
::callout{color="blue" icon="i-ph-info-duotone"}
215-
Named exports for properties below [root options](https://tailwindcss.com/docs/configuration#configuration-options) are prefixed with `_` (`_colors`, `_900`, `_2xl`) to ensure safe variable names. You can use default imports to provide any identifier or rename named imports using `as`. Properties with unsafe variable names (`spacing['1.5']`, `height['1/2']`, `keyframes.ping['75%, 100%']`) do not get exported individually.
215+
Named exports for properties below [root options](https://v3.tailwindcss.com/docs/configuration#configuration-options) are prefixed with `_` (`_colors`, `_900`, `_2xl`) to ensure safe variable names. You can use default imports to provide any identifier or rename named imports using `as`. Properties with unsafe variable names (`spacing['1.5']`, `height['1/2']`, `keyframes.ping['75%, 100%']`) do not get exported individually.
216216
::
217217

218218
## Tailwind CSS version

‎docs/content/2.tailwindcss/2.editor-support.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ const variantClasses = {
4646

4747
## Configuration IntelliSense
4848

49-
Since Tailwind CSS v3.3, [ESM/TS configuration has been supported](https://tailwindcss.com/blog/tailwindcss-v3-3#esm-and-type-script-support) so your editor should automatically configure autocomplete based on your `tailwind.config`. If you have a complex Nuxt project with multiple Tailwind configurations that are within layers, passed from hooks or inline `nuxt.config` and want to use a merged configuration, the module generates it in `.nuxt/tailwind/postcss.mjs` that you can use by adding the following VSCode setting:
49+
Since Tailwind CSS v3.3, [ESM/TS configuration has been supported](https://v3.tailwindcss.com/blog/tailwindcss-v3-3#esm-and-type-script-support) so your editor should automatically configure autocomplete based on your `tailwind.config`. If you have a complex Nuxt project with multiple Tailwind configurations that are within layers, passed from hooks or inline `nuxt.config` and want to use a merged configuration, the module generates it in `.nuxt/tailwind/postcss.mjs` that you can use by adding the following VSCode setting:
5050

5151
::callout{color="blue" icon="i-ph-info-duotone"}
52-
Tailwind provides the [Tailwind CSS IntelliSense](https://tailwindcss.com/docs/editor-setup#jet-brains-ides) extension for better integration with different IDEs.
52+
Tailwind provides the [Tailwind CSS IntelliSense](https://v3.tailwindcss.com/docs/editor-setup#jet-brains-ides) extension for better integration with different IDEs.
5353
::
5454

5555
```diff [.vscode/settings.json]

‎docs/content/3.examples/2.dark-mode.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title: Dark Mode
33
description: Enable Dark Mode in Tailwind CSS with the help of `@nuxtjs/color-mode`
44
---
55

6-
Read more about [Dark Mode in Tailwind CSS](https://tailwindcss.com/docs/dark-mode) and [`@nuxtjs/color-mode`](https://github.com/nuxt-modules/color-mode).
6+
Read more about [Dark Mode in Tailwind CSS](https://v3.tailwindcss.com/docs/dark-mode) and [`@nuxtjs/color-mode`](https://github.com/nuxt-modules/color-mode).
77

88
:sandbox{src="docs-examples/examples/dark-mode"}

0 commit comments

Comments
 (0)
Please sign in to comment.