Skip to content

Commit 9d1114b

Browse files
committed
feat: modify the Tailwind configuration of the demo
1 parent c70981b commit 9d1114b

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed

playground/tailwind.config.ts

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,9 @@
1-
import path from 'node:path';
2-
1+
import { soybeanUIPlugin } from 'skyroc-tailwind-plugin';
32
import type { Config } from 'tailwindcss';
43

54
const config: Config = {
6-
content: ['./src/**/*.{js,ts,jsx,tsx}', '../../packages/ui/src/**/*.{ts,tsx}'],
7-
theme: {
8-
extend: {
9-
colors: {
10-
accent: {
11-
DEFAULT: 'var(--accent)',
12-
foreground: 'var(--accent-foreground)'
13-
},
14-
background: 'var(--background)',
15-
destructive: {
16-
DEFAULT: 'var(--destructive)',
17-
foreground: 'var(--destructive-foreground)'
18-
},
19-
foreground: 'var(--foreground)',
20-
input: 'var(--input)',
21-
primary: {
22-
DEFAULT: 'var(--primary)',
23-
foreground: 'var(--primary-foreground)'
24-
},
25-
ring: 'var(--ring)',
26-
secondary: {
27-
DEFAULT: 'var(--secondary)',
28-
foreground: 'var(--secondary-foreground)'
29-
}
30-
}
31-
}
32-
}
5+
darkMode: 'class',
6+
plugins: [soybeanUIPlugin()]
337
};
348

359
export default config;

0 commit comments

Comments
 (0)