You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sites/skeleton.dev/src/content/docs/get-started/migrate-from-v2.mdx
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,14 +61,16 @@ Migrate to the latest release of SvelteKit v2.
61
61
62
62
### Tailwind v4
63
63
64
-
Before migration to tailwind V4 using their upgrade guide some manual steps are required:
64
+
Before migration to tailwind v4 using their upgrade guide some manual steps are required:
65
65
66
66
1. Remove the `skeleton` plugin from your `tailwind.config` file.
67
67
2. Rename your `app.postcss` or `app.pcss` to `app.css`.
68
68
3. Remove the `purgecss` (`vite-plugin-tailwind-purgecss`) vite plugin from your `vite.config` (if installed).
69
69
70
70
Migrate to the latest release of Tailwind v4.
71
71
72
+
> TIP: Having trouble running Tailwind's automated migration script due to `@apply`? Remove the classes temporarily, then follow [these steps](/docs/get-started/migrate-from-v2#replacing-apply) to adapt to native CSS custom properties and Tailwind's new utilities.
@@ -214,6 +216,35 @@ Taliwind v4 represents a major update for Tailwind. We've detailed the most nota
214
216
- The Skeleton `data-theme` attribute has moved from `<body>` to `<html>`
215
217
- Themes colors are now stored in the [oklch format](https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl), but optionally support any format.
216
218
219
+
### Replacing @apply
220
+
221
+
We strongly encourage you take this opportunity to move away from any usage of `@apply`. Tailwind has long since advocated against heavy use of this, and Tailwind v4 introduces new directives and functions that make this much easier to avoid. Here's a trivial example:
- Usage of `@apply` may be found in your global stylesheet or component `<style>` blocks.
245
+
- Refer to the Skeleton [Core API](/docs/get-started/core-api) documentation for a full list of Skeleton's CSS custom properties.
246
+
- Refer to the Tailwind's [functions and directives](https://tailwindcss.com/docs/functions-and-directives) for information on how to utilize these new features.
247
+
217
248
### Replace Unsupported Features
218
249
219
250
Skeleton v3 represents a point of reflection on what features should remain as part of the core experience. As such, we've identified a number of features that fall outside of this scope. Don't fret though, we've gone out of our way to detail each feature and provide the best alternative available.
0 commit comments