Skip to content

Commit 8e54b1c

Browse files
committed
feat: introducing the Tailwind plugin to demo's globalcss
1 parent 6b54cb4 commit 8e54b1c

File tree

1 file changed

+3
-120
lines changed

1 file changed

+3
-120
lines changed

playground/src/app/globals.css

Lines changed: 3 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,6 @@
11
@import 'tailwindcss';
2-
@source "../../../packages/ui/src/**/*.{ts,tsx}";
3-
@source "../../../packages/ui-variants/src/**/*.{ts,tsx}";
4-
5-
@custom-variant dark (&:is(.dark *));
6-
7-
@theme inline {
8-
--color-background: var(--background);
9-
--color-foreground: var(--foreground);
10-
--font-sans: var(--font-geist-sans);
11-
--font-mono: var(--font-geist-mono);
12-
--color-sidebar-ring: var(--sidebar-ring);
13-
--color-sidebar-border: var(--sidebar-border);
14-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
15-
--color-sidebar-accent: var(--sidebar-accent);
16-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
17-
--color-sidebar-primary: var(--sidebar-primary);
18-
--color-sidebar-foreground: var(--sidebar-foreground);
19-
--color-sidebar: var(--sidebar);
20-
--color-chart-5: var(--chart-5);
21-
--color-chart-4: var(--chart-4);
22-
--color-chart-3: var(--chart-3);
23-
--color-chart-2: var(--chart-2);
24-
--color-chart-1: var(--chart-1);
25-
--color-ring: var(--ring);
26-
--color-input: var(--input);
27-
--color-border: var(--border);
28-
--color-destructive: var(--destructive);
29-
--color-accent-foreground: var(--accent-foreground);
30-
--color-accent: var(--accent);
31-
--color-muted-foreground: var(--muted-foreground);
32-
--color-muted: var(--muted);
33-
--color-secondary-foreground: var(--secondary-foreground);
34-
--color-secondary: var(--secondary);
35-
--color-primary-foreground: var(--primary-foreground);
36-
--color-primary: var(--primary);
37-
--color-popover-foreground: var(--popover-foreground);
38-
--color-popover: var(--popover);
39-
--color-card-foreground: var(--card-foreground);
40-
--color-card: var(--card);
41-
--radius-sm: calc(var(--radius) - 4px);
42-
--radius-md: calc(var(--radius) - 2px);
43-
--radius-lg: var(--radius);
44-
--radius-xl: calc(var(--radius) + 4px);
45-
}
2+
@config "../../tailwind.config.ts";
463

47-
:root {
48-
--radius: 0.625rem;
49-
--background: oklch(1 0 0);
50-
--foreground: oklch(0.145 0 0);
51-
--card: oklch(1 0 0);
52-
--card-foreground: oklch(0.145 0 0);
53-
--popover: oklch(1 0 0);
54-
--popover-foreground: oklch(0.145 0 0);
55-
--primary: oklch(0.205 0 0);
56-
--primary-foreground: oklch(0.985 0 0);
57-
--secondary: oklch(0.97 0 0);
58-
--secondary-foreground: oklch(0.205 0 0);
59-
--muted: oklch(0.97 0 0);
60-
--muted-foreground: oklch(0.556 0 0);
61-
--accent: oklch(0.97 0 0);
62-
--accent-foreground: oklch(0.205 0 0);
63-
--destructive: oklch(0.577 0.245 27.325);
64-
--border: oklch(0.922 0 0);
65-
--input: oklch(0.922 0 0);
66-
--ring: oklch(0.708 0 0);
67-
--chart-1: oklch(0.646 0.222 41.116);
68-
--chart-2: oklch(0.6 0.118 184.704);
69-
--chart-3: oklch(0.398 0.07 227.392);
70-
--chart-4: oklch(0.828 0.189 84.429);
71-
--chart-5: oklch(0.769 0.188 70.08);
72-
--sidebar: oklch(0.985 0 0);
73-
--sidebar-foreground: oklch(0.145 0 0);
74-
--sidebar-primary: oklch(0.205 0 0);
75-
--sidebar-primary-foreground: oklch(0.985 0 0);
76-
--sidebar-accent: oklch(0.97 0 0);
77-
--sidebar-accent-foreground: oklch(0.205 0 0);
78-
--sidebar-border: oklch(0.922 0 0);
79-
--sidebar-ring: oklch(0.708 0 0);
80-
}
814

82-
.dark {
83-
--background: oklch(0.145 0 0);
84-
--foreground: oklch(0.985 0 0);
85-
--card: oklch(0.205 0 0);
86-
--card-foreground: oklch(0.985 0 0);
87-
--popover: oklch(0.205 0 0);
88-
--popover-foreground: oklch(0.985 0 0);
89-
--primary: oklch(0.922 0 0);
90-
--primary-foreground: oklch(0.205 0 0);
91-
--secondary: oklch(0.269 0 0);
92-
--secondary-foreground: oklch(0.985 0 0);
93-
--muted: oklch(0.269 0 0);
94-
--muted-foreground: oklch(0.708 0 0);
95-
--accent: oklch(0.269 0 0);
96-
--accent-foreground: oklch(0.985 0 0);
97-
--destructive: oklch(0.704 0.191 22.216);
98-
--border: oklch(1 0 0 / 10%);
99-
--input: oklch(1 0 0 / 15%);
100-
--ring: oklch(0.556 0 0);
101-
--chart-1: oklch(0.488 0.243 264.376);
102-
--chart-2: oklch(0.696 0.17 162.48);
103-
--chart-3: oklch(0.769 0.188 70.08);
104-
--chart-4: oklch(0.627 0.265 303.9);
105-
--chart-5: oklch(0.645 0.246 16.439);
106-
--sidebar: oklch(0.205 0 0);
107-
--sidebar-foreground: oklch(0.985 0 0);
108-
--sidebar-primary: oklch(0.488 0.243 264.376);
109-
--sidebar-primary-foreground: oklch(0.985 0 0);
110-
--sidebar-accent: oklch(0.269 0 0);
111-
--sidebar-accent-foreground: oklch(0.985 0 0);
112-
--sidebar-border: oklch(1 0 0 / 10%);
113-
--sidebar-ring: oklch(0.556 0 0);
114-
}
115-
116-
@layer base {
117-
* {
118-
@apply border-border outline-ring/50;
119-
}
120-
body {
121-
@apply bg-background text-foreground;
122-
}
123-
}
5+
@source "../../../packages/ui/src/**/*.{ts,tsx}";
6+
@source "../../../packages/ui-variants/src/**/*.{ts,tsx}";

0 commit comments

Comments
 (0)