Skip to content

Commit 7d3b2ce

Browse files
committed
design-tokens: preserve Tailwind v4 directives by copying theme.css instead of minifying via clean-css; eslint(web): enable better-tailwindcss correctness preset to restore class validation
1 parent 62b7999 commit 7d3b2ce

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ const config = createConfig([
233233
plugins: {
234234
'better-tailwindcss': betterTailwind,
235235
},
236+
extends: [betterTailwind.configs.correctness],
236237
rules: {
237238
'better-tailwindcss/sort-classes': 'error',
238239
},

packages/design-tokens/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"scripts": {
4040
"build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references && yarn build:css",
4141
"build:css": "cleancss -o dist/styles.css src/css/index.css && yarn build:css:tailwind",
42-
"build:css:tailwind": "mkdir -p dist/tailwind && cleancss -o dist/tailwind/theme.css src/tailwind/theme.css",
42+
"build:css:tailwind": "mkdir -p dist/tailwind && cp src/tailwind/theme.css dist/tailwind/theme.css",
4343
"check:tailwind-theme-parity": "tsx scripts/check-tailwind-theme-parity.ts",
4444
"changelog:update": "../../scripts/update-changelog.sh @metamask/design-tokens",
4545
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/design-tokens",

0 commit comments

Comments
 (0)