Fantasy is a shadcn/ui theme built around a light teal primary color (#c9eeea) with neutral gray accents (#e4e7e7). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the light teal primary (#c9eeea) on a teal-tinted background (#05100f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #05100fblack |
| Foreground | #021211black | #fcfdfdwhite |
| Card | #f8fbfbghostwhite | #061312black |
| Card foreground | #020e0dblack | #ffffffwhite |
| Popover | #fcfdfdwhite | #05100fblack |
| Popover foreground | #021211black | #fcfdfdwhite |
| Primary | #c9eeeapaleturquoise | #c9eeeapaleturquoise |
| Primary foreground | #071716black | #071716black |
| Secondary | #e4e7e7gainsboro | #202827darkslategray |
| Secondary foreground | #495050darkslategray | #b5c4c3silver |
| Muted | #e1e5e4gainsboro | #1a1e1dblack |
| Muted foreground | #414e4ddarkslategray | #b1bebdsilver |
| Accent | #e4e7e7gainsboro | #202827darkslategray |
| Accent foreground | #495050darkslategray | #b5c4c3silver |
| Destructive | #af4608saddlebrown | #e0590bchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9eeeapaleturquoise | #c9eeeapaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.79:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 14.74:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 6.81:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 5.67:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 14.74:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 8.80:1 | AAA |
| Accent | 8.38:1 | AAA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Fantasy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 191.213);
--foreground: oklch(0.167 0.025 188.603);
--muted: oklch(0.918 0.004 191.163);
--muted-foreground: oklch(0.412 0.016 190.366);
--popover: oklch(0.994 0.002 191.213);
--popover-foreground: oklch(0.167 0.025 188.603);
--card: oklch(0.987 0.003 191.175);
--card-foreground: oklch(0.148 0.021 189.369);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.921 0.038 190.335);
--primary-foreground: oklch(0.191 0.022 188.582);
--secondary: oklch(0.925 0.003 191.185);
--secondary-foreground: oklch(0.425 0.01 190.74);
--accent: oklch(0.925 0.003 191.185);
--accent-foreground: oklch(0.425 0.01 190.74);
--destructive: oklch(0.528 0.152 43.35);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.921 0.038 190.335);
--chart-1: oklch(0.921 0.038 190.335);
--chart-2: oklch(0.925 0.003 191.185);
--chart-3: oklch(0.925 0.003 191.185);
--chart-4: oklch(0.948 0.002 191.206);
--chart-5: oklch(0.923 0.04 190.285);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.017 189.323);
--foreground: oklch(0.994 0.002 191.206);
--muted: oklch(0.23 0.005 190.766);
--muted-foreground: oklch(0.791 0.014 190.854);
--popover: oklch(0.159 0.017 189.323);
--popover-foreground: oklch(0.994 0.002 191.206);
--card: oklch(0.175 0.02 188.853);
--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.921 0.038 190.335);
--primary-foreground: oklch(0.191 0.022 188.582);
--secondary: oklch(0.267 0.011 190.325);
--secondary-foreground: oklch(0.809 0.016 190.813);
--accent: oklch(0.267 0.011 190.325);
--accent-foreground: oklch(0.809 0.016 190.813);
--destructive: oklch(0.631 0.184 42.824);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.921 0.038 190.335);
--chart-1: oklch(0.921 0.038 190.335);
--chart-2: oklch(0.267 0.011 190.325);
--chart-3: oklch(0.267 0.011 190.325);
--chart-4: oklch(0.3 0.013 190.28);
--chart-5: oklch(0.923 0.04 190.285);
}