docs: update links to tailwind v4 beta docs

This commit is contained in:
Benjamin Canac
2024-11-21 23:23:44 +01:00
parent 0baa3a06d4
commit c47ffc1cd5
3 changed files with 14 additions and 14 deletions

View File

@@ -7,7 +7,7 @@
[![License][license-src]][license-href] [![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href] [![Nuxt][nuxt-src]][nuxt-href]
We're thrilled to introduce Nuxt UI v3, a significant upgrade to our UI library that delivers extensive improvements and robust new capabilities. This major update harnesses the combined strengths of [Radix Vue](https://www.radix-vue.com/), [Tailwind CSS v4](https://tailwindcss.com/blog/tailwindcss-v4-alpha), and [Tailwind Variants](https://www.tailwind-variants.org/) to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces. We're thrilled to introduce Nuxt UI v3, a significant upgrade to our UI library that delivers extensive improvements and robust new capabilities. This major update harnesses the combined strengths of [Radix Vue](https://www.radix-vue.com/), [Tailwind CSS v4](https://tailwindcss.com/docs/v4-beta), and [Tailwind Variants](https://www.tailwind-variants.org/) to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces.
> [!NOTE] > [!NOTE]
> You are on the `v3` development branch, check out the [dev branch](https://github.com/nuxt/ui) for Nuxt UI v2. > You are on the `v3` development branch, check out the [dev branch](https://github.com/nuxt/ui) for Nuxt UI v2.

View File

@@ -21,15 +21,15 @@ This transition empowers Nuxt UI to become a more comprehensive and flexible UI
### Tailwind CSS v4 ### Tailwind CSS v4
Nuxt UI v3 integrates the latest Tailwind CSS v4 alpha (announced March 6, 2024), bringing significant improvements: Nuxt UI v3 integrates the latest Tailwind CSS v4 beta (released Nov 21, 2024), bringing significant improvements:
- **Faster Builds**: Up to 10x faster, especially for larger projects. - **Built for performance**: Full builds in the new engine are up to 5x faster, and incremental builds are over 100x faster — and measured in microseconds.
- **Unified Toolchain**: Built-in features like vendor prefixing, nesting support, and modern CSS transforms. - **Unified toolchain**: Built-in import handling, vendor prefixing, and syntax transforms, with no additional tooling required.
- **CSS-First Configuration**: New `@theme` directive for easy customization without JavaScript. - **CSS-first configuration**: A reimagined developer experience where you customize and extend the framework directly in CSS instead of a JavaScript configuration file.
- **Optimized Performance**: Smaller engine footprint and more efficient processing. - **Designed for the modern web**: Built on native cascade layers, wide-gamut colors, and including first-class support for modern CSS features like container queries, @starting-style, popovers, and more.
::note ::note
For a comprehensive overview of Tailwind CSS v4 alpha features, visit the [official announcement](https://tailwindcss.com/blog/tailwindcss-v4-alpha). For a comprehensive overview of Tailwind CSS v4 beta features, read the [prerelease documentation](https://tailwindcss.com/docs/v4-beta).
:: ::
### Tailwind Variants ### Tailwind Variants

View File

@@ -5,7 +5,7 @@ description: 'Learn how to customize Nuxt UI components using Tailwind CSS v4, C
## Tailwind CSS ## Tailwind CSS
Nuxt UI v3 uses Tailwind CSS v4 alpha which doesn't have a documentation yet, let's have a look on how to use it. Nuxt UI v3 uses Tailwind CSS v4 beta, you can read the [prerelease documentation](https://tailwindcss.com/docs/v4-beta) for more information.
### `@theme` ### `@theme`
@@ -36,8 +36,8 @@ Tailwind CSS v4 takes a CSS-first configuration approach, you now customize your
The `@theme` directive tells Tailwind to make new utilities and variants available based on these variables. It's the equivalent of the `theme.extend` key in Tailwind CSS v3 `tailwind.config.ts` file. The `@theme` directive tells Tailwind to make new utilities and variants available based on these variables. It's the equivalent of the `theme.extend` key in Tailwind CSS v3 `tailwind.config.ts` file.
::note ::note{to="https://tailwindcss.com/docs/v4-beta#css-first-configuration" target="_blank"}
You can learn more about this on [https://tailwindcss.com/blog/tailwindcss-v4-alpha](https://tailwindcss.com/blog/tailwindcss-v4-alpha#css-first-configuration). Learn more about Tailwind CSS v4 CSS-first configuration approach.
:: ::
### `@source` ### `@source`
@@ -53,8 +53,8 @@ This can be useful when writing Tailwind classes in markdown files with [`@nuxt/
@source "../content/**/*.md"; @source "../content/**/*.md";
``` ```
::note{to="https://github.com/tailwindlabs/tailwindcss/pull/14078"} ::note{to="https://tailwindcss.com/docs/v4-beta#adding-content-sources"}
You can learn more about the `@source` directive in this pull request. Learn how to add content sources in Tailwind CSS v4.
:: ::
### `@plugin` ### `@plugin`
@@ -68,8 +68,8 @@ You can use the `@plugin` directive to import Tailwind CSS plugins.
@plugin "@tailwindcss/typography"; @plugin "@tailwindcss/typography";
``` ```
::note{to="https://github.com/tailwindlabs/tailwindcss/pull/14264"} ::note{to="https://tailwindcss.com/docs/v4-beta#using-plugins"}
You can learn more about the `@plugin` directive in this pull request. Learn more about using plugins in Tailwind CSS v4.
:: ::
## Design system ## Design system