Skip to content

Commit d9364f6

Browse files
authored
Merge pull request #98 from lambda-curry/fix-styles
2 parents 1c5a4e6 + a590215 commit d9364f6

1 file changed

Lines changed: 28 additions & 29 deletions

File tree

apps/docs/src/main.css

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,76 +4,75 @@
44
:root {
55
--background: hsl(0 0% 100%);
66
--foreground: hsl(222.2 47.4% 11.2%);
7-
87
--muted: hsl(210 40% 96.1%);
98
--muted-foreground: hsl(215.4 16.3% 46.9%);
10-
119
--popover: hsl(0 0% 100%);
1210
--popover-foreground: hsl(222.2 47.4% 11.2%);
13-
1411
--border: hsl(214.3 31.8% 91.4%);
1512
--input: hsl(214.3 31.8% 91.4%);
16-
1713
--card: hsl(0 0% 100%);
1814
--card-foreground: hsl(222.2 47.4% 11.2%);
19-
2015
--primary: hsl(222.2 47.4% 11.2%);
2116
--primary-foreground: hsl(210 40% 98%);
22-
2317
--secondary: hsl(210 40% 96.1%);
2418
--secondary-foreground: hsl(222.2 47.4% 11.2%);
25-
2619
--accent: hsl(210 40% 96.1%);
2720
--accent-foreground: hsl(222.2 47.4% 11.2%);
28-
2921
--destructive: hsl(0 100% 50%);
3022
--destructive-foreground: hsl(210 40% 98%);
31-
3223
--ring: hsl(215 20.2% 65.1%);
33-
3424
--radius: 0.5rem;
3525
}
3626

3727
.dark {
3828
--background: hsl(224 71% 4%);
3929
--foreground: hsl(213 31% 91%);
40-
4130
--muted: hsl(223 47% 11%);
4231
--muted-foreground: hsl(215.4 16.3% 56.9%);
43-
4432
--accent: hsl(216 34% 17%);
4533
--accent-foreground: hsl(210 40% 98%);
46-
4734
--popover: hsl(224 71% 4%);
4835
--popover-foreground: hsl(215 20.2% 65.1%);
49-
5036
--border: hsl(216 34% 17%);
5137
--input: hsl(216 34% 17%);
52-
5338
--card: hsl(224 71% 4%);
5439
--card-foreground: hsl(213 31% 91%);
55-
5640
--primary: hsl(210 40% 98%);
5741
--primary-foreground: hsl(222.2 47.4% 1.2%);
58-
59-
--secondary: hsl(222.2 84% 4.9%);
42+
--secondary: hsl(222.2 47.4% 11.2%);
6043
--secondary-foreground: hsl(210 40% 98%);
61-
6244
--destructive: hsl(0 63% 31%);
6345
--destructive-foreground: hsl(210 40% 98%);
64-
6546
--ring: hsl(216 34% 17%);
66-
6747
--radius: 0.5rem;
6848
}
69-
70-
* {
71-
border-color: hsl(var(--border));
49+
@theme inline {
50+
--color-background: var(--background);
51+
--color-foreground: var(--foreground);
52+
--color-muted: var(--muted);
53+
--color-muted-foreground: var(--muted-foreground);
54+
--color-popover: var(--popover);
55+
--color-popover-foreground: var(--popover-foreground);
56+
--color-border: var(--border);
57+
--color-input: var(--input);
58+
--color-card: var(--card);
59+
--color-card-foreground: var(--card-foreground);
60+
--color-primary: var(--primary);
61+
--color-primary-foreground: var(--primary-foreground);
62+
--color-secondary: var(--secondary);
63+
--color-secondary-foreground: var(--secondary-foreground);
64+
--color-accent: var(--accent);
65+
--color-accent-foreground: var(--accent-foreground);
66+
--color-destructive: var(--destructive);
67+
--color-destructive-foreground: var(--destructive-foreground);
68+
--color-ring: var(--ring);
7269
}
7370

74-
body {
75-
background-color: hsl(var(--background));
76-
color: hsl(var(--foreground));
77-
font-feature-settings: "rlig" 1, "calt" 1;
71+
@layer base {
72+
* {
73+
@apply border-[var(--color-border)];
74+
}
75+
body {
76+
@apply bg-[var(--color-background)] text-[var(--color-foreground)];
77+
}
7878
}
79-

0 commit comments

Comments
 (0)