Jovial is a shadcn/ui theme built around a green primary color (#cada6c) with indigo accents (#7d6cda). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#cada6c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #0c0e02black | #fdfdfcwhite |
| Card | #f9faf5whitesmoke | #030303black |
| Card foreground | #080901black | #ffffffwhite |
| Popover | #fbfcf8snow | #000000black |
| Popover foreground | #0c0e02black | #fdfdfcwhite |
| Primary | #cada6cdarkkhaki | #cada6cdarkkhaki |
| Primary foreground | #0e1004black | #0e1004black |
| Secondary | #7d6cdamediumslateblue | #7d6cdamediumslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9e7f3lavender | #0e0c18black |
| Muted foreground | #45454adarkslategray | #b6b5basilver |
| Accent | #7d6cdamediumslateblue | #7d6cdamediumslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c33613firebrick | #d53c15firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cada6cdarkkhaki | #cada6cdarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.85:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 12.58:1 | AAA |
| Secondary button | 4.17:1 | AA Large |
| Muted text | 7.82:1 | AAA |
| Accent | 4.17:1 | AA Large |
| Destructive | 5.43:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.58:1 | AAA |
| Secondary button | 4.17:1 | AA Large |
| Muted text | 9.50:1 | AAA |
| Accent | 4.17:1 | AA Large |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use Jovial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 113.398);
--foreground: oklch(0.155 0.029 115.163);
--muted: oklch(0.934 0.015 292.995);
--muted-foreground: oklch(0.392 0.01 292.844);
--popover: oklch(0.989 0.005 113.398);
--popover-foreground: oklch(0.155 0.029 115.163);
--card: oklch(0.983 0.007 113.445);
--card-foreground: oklch(0.134 0.025 114.506);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.854 0.137 116.437);
--primary-foreground: oklch(0.168 0.026 115.489);
--secondary: oklch(0.6 0.162 287.347);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.6 0.162 287.347);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.544 0.183 34.245);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.854 0.137 116.437);
--chart-1: oklch(0.854 0.137 116.437);
--chart-2: oklch(0.6 0.162 287.347);
--chart-3: oklch(0.6 0.162 287.347);
--chart-4: oklch(0.633 0.148 288.305);
--chart-5: oklch(0.861 0.142 116.557);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 113.344);
--muted: oklch(0.163 0.024 290.378);
--muted-foreground: oklch(0.775 0.008 293.11);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 113.344);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.854 0.137 116.437);
--primary-foreground: oklch(0.168 0.026 115.489);
--secondary: oklch(0.6 0.162 287.347);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.6 0.162 287.347);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.581 0.196 34.184);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.854 0.137 116.437);
--chart-1: oklch(0.854 0.137 116.437);
--chart-2: oklch(0.6 0.162 287.347);
--chart-3: oklch(0.6 0.162 287.347);
--chart-4: oklch(0.633 0.148 288.305);
--chart-5: oklch(0.861 0.142 116.557);
}