Artistic is a shadcn/ui theme built around a muted deep green primary color (#303225) with muted light green accents (#d4d7c1). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#303225) on a neutral background (#070802).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #070802black |
| Foreground | #040401black | #fafbf9snow |
| Card | #fdfefbwhite | #070802black |
| Card foreground | #040401black | #fafbf9snow |
| Popover | #fdfefbwhite | #070802black |
| Popover foreground | #040401black | #fafbf9snow |
| Primary | #303225darkslategray | #303225darkslategray |
| Primary foreground | #cbcdbcsilver | #cbcdbcsilver |
| Secondary | #e6e7degainsboro | #22231fblack |
| Secondary foreground | #53563edarkolivegreen | #bdbeb7silver |
| Muted | #f5f7eewhitesmoke | #101108black |
| Muted foreground | #676a58dimgray | #a4a795darkgray |
| Accent | #d4d7c1lightgrey | #34362bdarkslategray |
| Accent foreground | #3b3e28darkslategray | #cecfc4lightgrey |
| Destructive | #9c1407darkred | #f41f0bred |
| Destructive foreground | #fddbd8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #303225darkslategray | #303225darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 6.10:1 | AA |
| Muted text | 5.12:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Artistic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 112.606);
--foreground: oklch(0.106 0.018 113.818);
--muted: oklch(0.972 0.011 112.765);
--muted-foreground: oklch(0.516 0.027 113.508);
--popover: oklch(0.995 0.003 112.606);
--popover-foreground: oklch(0.106 0.018 113.818);
--card: oklch(0.995 0.003 112.606);
--card-foreground: oklch(0.106 0.018 113.818);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.311 0.022 113.886);
--primary-foreground: oklch(0.842 0.024 113.077);
--secondary: oklch(0.926 0.012 112.787);
--secondary-foreground: oklch(0.443 0.037 114.104);
--accent: oklch(0.871 0.03 113.193);
--accent-foreground: oklch(0.355 0.037 114.474);
--destructive: oklch(0.443 0.17 30.125);
--destructive-foreground: oklch(0.919 0.038 24.033);
--ring: oklch(0.311 0.022 113.886);
--chart-1: oklch(0.311 0.022 113.886);
--chart-2: oklch(0.926 0.012 112.787);
--chart-3: oklch(0.871 0.03 113.193);
--chart-4: oklch(0.946 0.009 112.716);
--chart-5: oklch(0.315 0.027 114.119);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.019 113.661);
--foreground: oklch(0.987 0.002 112.582);
--muted: oklch(0.174 0.017 114.333);
--muted-foreground: oklch(0.721 0.025 113.184);
--popover: oklch(0.131 0.019 113.661);
--popover-foreground: oklch(0.987 0.002 112.582);
--card: oklch(0.131 0.019 113.661);
--card-foreground: oklch(0.987 0.002 112.582);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.311 0.022 113.886);
--primary-foreground: oklch(0.842 0.024 113.077);
--secondary: oklch(0.254 0.006 112.995);
--secondary-foreground: oklch(0.798 0.01 112.769);
--accent: oklch(0.327 0.018 113.583);
--accent-foreground: oklch(0.851 0.016 112.898);
--destructive: oklch(0.615 0.241 30.054);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.311 0.022 113.886);
--chart-1: oklch(0.311 0.022 113.886);
--chart-2: oklch(0.254 0.006 112.995);
--chart-3: oklch(0.327 0.018 113.583);
--chart-4: oklch(0.286 0.007 113.02);
--chart-5: oklch(0.315 0.027 114.119);
}