Drkryz Smooth Dark Theme is a shadcn/ui theme built around a vivid light violet primary color (#cfadff) with neutral gray accents (#343437). The light mode uses a neutral background (#0f0f10). Dark mode keeps the vivid light violet primary (#cfadff) on a neutral background (#0f0f10).
| Token | Light | Dark |
|---|---|---|
| Background | #0f0f10black | #0f0f10black |
| Foreground | #ffffffwhite | #ffffffwhite |
| Card | #0a0a0bblack | #0a0a0bblack |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #070708black | #070708black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #cfadffplum | #cfadffplum |
| Primary foreground | #33007aindigo | #33007aindigo |
| Secondary | #3d2d53darkslategray | #3d2d53darkslategray |
| Secondary foreground | #d7cde4gainsboro | #d7cde4gainsboro |
| Muted | #22222bdarkslategray | #22222bdarkslategray |
| Muted foreground | #9b9bb0darkgray | #9b9bb0darkgray |
| Accent | #343437darkslategray | #343437darkslategray |
| Accent foreground | #cdcdd0lightgrey | #cdcdd0lightgrey |
| Destructive | #fd250dorangered | #fd250dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1c1c1cblack | #1c1c1cblack |
| Input | #242424darkslategray | #242424darkslategray |
| Ring | #cfadffplum | #cfadffplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 3.87:1 | AA Large |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Drkryz Smooth Dark Theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.168 0.002 286.195);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.017 285.115);
--muted-foreground: oklch(0.697 0.031 285.565);
--popover: oklch(0.131 0.001 286.237);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.145 0.001 286.235);
--card-foreground: oklch(1 0 180);
--border: oklch(0.227 0 164.055);
--input: oklch(0.259 0 167.471);
--primary: oklch(0.808 0.118 302.977);
--primary-foreground: oklch(0.3 0.17 289.394);
--secondary: oklch(0.332 0.068 302.042);
--secondary-foreground: oklch(0.864 0.033 304.518);
--accent: oklch(0.326 0.006 286.084);
--accent-foreground: oklch(0.849 0.004 286.314);
--destructive: oklch(0.634 0.246 30.398);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.808 0.118 302.977);
--chart-1: oklch(0.808 0.118 302.977);
--chart-2: oklch(0.332 0.068 302.042);
--chart-3: oklch(0.326 0.006 286.084);
--chart-4: oklch(0.357 0.075 301.97);
--chart-5: oklch(0.806 0.121 302.906);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.168 0.002 286.195);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.017 285.115);
--muted-foreground: oklch(0.697 0.031 285.565);
--popover: oklch(0.131 0.001 286.237);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.145 0.001 286.235);
--card-foreground: oklch(1 0 180);
--border: oklch(0.227 0 164.055);
--input: oklch(0.259 0 167.471);
--primary: oklch(0.808 0.118 302.977);
--primary-foreground: oklch(0.3 0.17 289.394);
--secondary: oklch(0.332 0.068 302.042);
--secondary-foreground: oklch(0.864 0.033 304.518);
--accent: oklch(0.326 0.006 286.084);
--accent-foreground: oklch(0.849 0.004 286.314);
--destructive: oklch(0.634 0.246 30.398);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.808 0.118 302.977);
--chart-1: oklch(0.808 0.118 302.977);
--chart-2: oklch(0.332 0.068 302.042);
--chart-3: oklch(0.326 0.006 286.084);
--chart-4: oklch(0.357 0.075 301.97);
--chart-5: oklch(0.806 0.121 302.906);
}