Skip to content

Commit 054d3ac

Browse files
committed
chore: migrate to tailwind 4 beta
1 parent 03d18cb commit 054d3ac

File tree

10 files changed

+189
-266
lines changed

10 files changed

+189
-266
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"tauri-apps.tauri-vscode",
1313
"rust-lang.rust-analyzer",
1414
"vitest.explorer",
15-
"inlang.vs-code-extension"
15+
"inlang.vs-code-extension",
16+
"bradlc.vscode-tailwindcss"
1617
]
1718
}

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
"front_matter_title": ""
1515
}
1616
},
17-
"cSpell.words": ["fontawesome", "fortawesome", "pathfinding", "Xmark"],
17+
"cSpell.enabledFileTypes": {
18+
"*": true,
19+
"javascript": false,
20+
"typescript": false,
21+
"svelte": false
22+
},
23+
"files.associations": {
24+
"*.css": "tailwindcss"
25+
},
1826
"editor.codeActionsOnSave": {
1927
"source.fixAll.eslint": "explicit",
2028
"source.sortImports": "never"

apps/petal-notes/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,20 @@
3232
"@sveltejs/adapter-static": "^3.0.8",
3333
"@sveltejs/kit": "^2.16.0",
3434
"@sveltejs/vite-plugin-svelte": "^5.0.3",
35-
"@tailwindcss/container-queries": "^0.1.1",
3635
"@tailwindcss/forms": "^0.5.10",
3736
"@tailwindcss/typography": "^0.5.16",
37+
"@tailwindcss/vite": "4.0.0-beta.9",
3838
"@total-typescript/ts-reset": "^0.6.1",
3939
"@vitest/browser": "^3.0.2",
4040
"@vitest/coverage-v8": "^3.0.2",
41-
"autoprefixer": "^10.4.20",
4241
"chromatic": "^11.25.0",
4342
"deputy": "workspace:^",
4443
"eslint": "^9.18.0",
4544
"jiti": "^2.4.2",
4645
"storybook": "^8.5.0",
4746
"svelte": "^5.19.0",
4847
"svelte-check": "^4.1.4",
49-
"tailwindcss": "^3.4.17",
48+
"tailwindcss": "4.0.0-beta.9",
5049
"typescript": "~5.7.3",
5150
"vite": "^6.0.7",
5251
"vitest": "^3.0.2",

apps/petal-notes/postcss.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/petal-notes/src/app.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
@import "tailwindcss/base";
2-
@import "tailwindcss/components";
3-
@import "tailwindcss/utilities";
1+
@import "tailwindcss";
2+
3+
@plugin '@tailwindcss/typography';
4+
@plugin '@tailwindcss/forms';

apps/petal-notes/tailwind.config.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/petal-notes/vite.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { storybookTest } from "@storybook/experimental-addon-test/vitest-plugin";
22
import { sveltekit } from "@sveltejs/kit/vite";
3+
import tailwindcss from "@tailwindcss/vite";
34
import * as path from "node:path";
45
import {
56
coverageConfigDefaults,
@@ -8,7 +9,16 @@ import {
89
} from "vitest/config";
910

1011
export default defineConfig({
11-
plugins: [sveltekit()],
12+
plugins: [sveltekit(), tailwindcss()],
13+
14+
build: {
15+
cssMinify: "lightningcss",
16+
sourcemap: true,
17+
},
18+
19+
css: {
20+
transformer: "lightningcss",
21+
},
1222

1323
// Tell Vitest to use the `browser` entry points in `package.json` files, even though it's running in Node
1424
resolve: {

knip.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
"ignoreDependencies": ["deputy"]
99
},
1010
"apps/petal-notes": {
11-
"ignore": [
12-
".storybook/vitest.setup.ts",
13-
"eslint.config.ts",
14-
"postcss.config.js"
15-
],
11+
"ignore": [".storybook/vitest.setup.ts", "eslint.config.ts"],
1612
"ignoreDependencies": [
1713
"@tailwindcss/forms",
1814
"@tailwindcss/typography",

0 commit comments

Comments
 (0)