|
1 | 1 | @import "tailwindcss"; |
2 | 2 |
|
| 3 | +@custom-variant dark (&:is(.dark *)); |
| 4 | + |
3 | 5 | @variant dark (&:where(.dark *)); |
4 | 6 | /* SpaceDF Theme Color Configuration */ |
5 | 7 | :root { |
6 | 8 | --nextra-primary-hue: 255deg; |
7 | 9 | --nextra-primary-saturation: 84%; |
8 | 10 | --nextra-primary-lightness: 80%; |
| 11 | + --radius: 0.625rem; |
| 12 | + --background: oklch(1 0 0); |
| 13 | + --foreground: oklch(0.145 0 0); |
| 14 | + --card: oklch(1 0 0); |
| 15 | + --card-foreground: oklch(0.145 0 0); |
| 16 | + --popover: oklch(1 0 0); |
| 17 | + --popover-foreground: oklch(0.145 0 0); |
| 18 | + --primary: oklch(0.205 0 0); |
| 19 | + --primary-foreground: oklch(0.985 0 0); |
| 20 | + --secondary: oklch(0.97 0 0); |
| 21 | + --secondary-foreground: oklch(0.205 0 0); |
| 22 | + --muted: oklch(0.97 0 0); |
| 23 | + --muted-foreground: oklch(0.556 0 0); |
| 24 | + --accent: oklch(0.97 0 0); |
| 25 | + --accent-foreground: oklch(0.205 0 0); |
| 26 | + --destructive: oklch(0.577 0.245 27.325); |
| 27 | + --border: oklch(0.922 0 0); |
| 28 | + --input: oklch(0.922 0 0); |
| 29 | + --ring: oklch(0.708 0 0); |
| 30 | + --chart-1: oklch(0.646 0.222 41.116); |
| 31 | + --chart-2: oklch(0.6 0.118 184.704); |
| 32 | + --chart-3: oklch(0.398 0.07 227.392); |
| 33 | + --chart-4: oklch(0.828 0.189 84.429); |
| 34 | + --chart-5: oklch(0.769 0.188 70.08); |
| 35 | + --sidebar: oklch(0.985 0 0); |
| 36 | + --sidebar-foreground: oklch(0.145 0 0); |
| 37 | + --sidebar-primary: oklch(0.205 0 0); |
| 38 | + --sidebar-primary-foreground: oklch(0.985 0 0); |
| 39 | + --sidebar-accent: oklch(0.97 0 0); |
| 40 | + --sidebar-accent-foreground: oklch(0.205 0 0); |
| 41 | + --sidebar-border: oklch(0.922 0 0); |
| 42 | + --sidebar-ring: oklch(0.708 0 0); |
9 | 43 | } |
10 | 44 |
|
11 | 45 | .dark { |
12 | 46 | --nextra-primary-lightness: 80%; |
| 47 | + --background: oklch(0.145 0 0); |
| 48 | + --foreground: oklch(0.985 0 0); |
| 49 | + --card: oklch(0.205 0 0); |
| 50 | + --card-foreground: oklch(0.985 0 0); |
| 51 | + --popover: oklch(0.205 0 0); |
| 52 | + --popover-foreground: oklch(0.985 0 0); |
| 53 | + --primary: oklch(0.922 0 0); |
| 54 | + --primary-foreground: oklch(0.205 0 0); |
| 55 | + --secondary: oklch(0.269 0 0); |
| 56 | + --secondary-foreground: oklch(0.985 0 0); |
| 57 | + --muted: oklch(0.269 0 0); |
| 58 | + --muted-foreground: oklch(0.708 0 0); |
| 59 | + --accent: oklch(0.269 0 0); |
| 60 | + --accent-foreground: oklch(0.985 0 0); |
| 61 | + --destructive: oklch(0.704 0.191 22.216); |
| 62 | + --border: oklch(1 0 0 / 10%); |
| 63 | + --input: oklch(1 0 0 / 15%); |
| 64 | + --ring: oklch(0.556 0 0); |
| 65 | + --chart-1: oklch(0.488 0.243 264.376); |
| 66 | + --chart-2: oklch(0.696 0.17 162.48); |
| 67 | + --chart-3: oklch(0.769 0.188 70.08); |
| 68 | + --chart-4: oklch(0.627 0.265 303.9); |
| 69 | + --chart-5: oklch(0.645 0.246 16.439); |
| 70 | + --sidebar: oklch(0.205 0 0); |
| 71 | + --sidebar-foreground: oklch(0.985 0 0); |
| 72 | + --sidebar-primary: oklch(0.488 0.243 264.376); |
| 73 | + --sidebar-primary-foreground: oklch(0.985 0 0); |
| 74 | + --sidebar-accent: oklch(0.269 0 0); |
| 75 | + --sidebar-accent-foreground: oklch(0.985 0 0); |
| 76 | + --sidebar-border: oklch(1 0 0 / 10%); |
| 77 | + --sidebar-ring: oklch(0.556 0 0); |
13 | 78 | } |
14 | 79 |
|
15 | 80 | /* Custom SpaceDF primary color #4006AA overrides */ |
@@ -54,3 +119,71 @@ html[class~="dark"] .dark\:nx-text-primary-600 { |
54 | 119 | .dark .svg-icon { |
55 | 120 | filter: brightness(0) invert(1); |
56 | 121 | } |
| 122 | + |
| 123 | +@theme inline { |
| 124 | + --radius-sm: calc(var(--radius) - 4px); |
| 125 | + --radius-md: calc(var(--radius) - 2px); |
| 126 | + --radius-lg: var(--radius); |
| 127 | + --radius-xl: calc(var(--radius) + 4px); |
| 128 | + --radius-2xl: calc(var(--radius) + 8px); |
| 129 | + --radius-3xl: calc(var(--radius) + 12px); |
| 130 | + --radius-4xl: calc(var(--radius) + 16px); |
| 131 | + --color-background: var(--background); |
| 132 | + --color-foreground: var(--foreground); |
| 133 | + --color-card: var(--card); |
| 134 | + --color-card-foreground: var(--card-foreground); |
| 135 | + --color-popover: var(--popover); |
| 136 | + --color-popover-foreground: var(--popover-foreground); |
| 137 | + --color-primary: var(--primary); |
| 138 | + --color-primary-foreground: var(--primary-foreground); |
| 139 | + --color-secondary: var(--secondary); |
| 140 | + --color-secondary-foreground: var(--secondary-foreground); |
| 141 | + --color-muted: var(--muted); |
| 142 | + --color-muted-foreground: var(--muted-foreground); |
| 143 | + --color-accent: var(--accent); |
| 144 | + --color-accent-foreground: var(--accent-foreground); |
| 145 | + --color-destructive: var(--destructive); |
| 146 | + --color-border: var(--border); |
| 147 | + --color-input: var(--input); |
| 148 | + --color-ring: var(--ring); |
| 149 | + --color-chart-1: var(--chart-1); |
| 150 | + --color-chart-2: var(--chart-2); |
| 151 | + --color-chart-3: var(--chart-3); |
| 152 | + --color-chart-4: var(--chart-4); |
| 153 | + --color-chart-5: var(--chart-5); |
| 154 | + --color-sidebar: var(--sidebar); |
| 155 | + --color-sidebar-foreground: var(--sidebar-foreground); |
| 156 | + --color-sidebar-primary: var(--sidebar-primary); |
| 157 | + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); |
| 158 | + --color-sidebar-accent: var(--sidebar-accent); |
| 159 | + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); |
| 160 | + --color-sidebar-border: var(--sidebar-border); |
| 161 | + --color-sidebar-ring: var(--sidebar-ring); |
| 162 | +} |
| 163 | + |
| 164 | +@layer base { |
| 165 | + * { |
| 166 | + @apply border-border outline-ring/50; |
| 167 | + } |
| 168 | + body { |
| 169 | + @apply bg-background text-foreground; |
| 170 | + } |
| 171 | +} |
| 172 | + |
| 173 | +html { |
| 174 | + font-size: 18px; |
| 175 | +} |
| 176 | + |
| 177 | +@media (max-width: 768px) { |
| 178 | + html { |
| 179 | + font-size: 14px; |
| 180 | + } |
| 181 | + |
| 182 | + h1 { |
| 183 | + font-size: 24px; |
| 184 | + } |
| 185 | + |
| 186 | + h2 { |
| 187 | + font-size: 20px; |
| 188 | + } |
| 189 | +} |
0 commit comments