Cross is a shadcn/ui theme built around a teal primary color (#4a8c82) with red accents (#8c4a54). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#4a8c82) on a teal-tinted background (#040b0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #040b0ablack |
| Foreground | #051512black | #fcfdfdwhite |
| Card | #fbfefdwhite | #040b0ablack |
| Card foreground | #051512black | #fcfdfdwhite |
| Popover | #fbfefdwhite | #040b0ablack |
| Popover foreground | #051512black | #fcfdfdwhite |
| Primary | #4a8c82cadetblue | #4a8c82cadetblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8c4a54sienna | #8c4a54sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7dadcgainsboro | #25181ablack |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #8c4a54sienna | #8c4a54sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a20e07darkred | #f74036tomato |
| Destructive foreground | #fededdmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a8c82cadetblue | #4a8c82cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.40:1 | AAA |
| Text on card | 18.40:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 6.51:1 | AA |
| Muted text | 4.56:1 | AA |
| Accent | 6.51:1 | AA |
| Destructive | 6.43:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 6.51:1 | AA |
| Muted text | 6.38:1 | AA |
| Accent | 6.51:1 | AA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Cross in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 186.532);
--foreground: oklch(0.179 0.024 183.242);
--muted: oklch(0.9 0.014 6.976);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.994 0.002 186.532);
--popover-foreground: oklch(0.179 0.024 183.242);
--card: oklch(0.994 0.002 186.532);
--card-foreground: oklch(0.179 0.024 183.242);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.594 0.07 183.042);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.492 0.09 11.401);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.492 0.09 11.401);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.452 0.178 29.495);
--destructive-foreground: oklch(0.927 0.035 21.393);
--ring: oklch(0.594 0.07 183.042);
--chart-1: oklch(0.594 0.07 183.042);
--chart-2: oklch(0.492 0.09 11.401);
--chart-3: oklch(0.492 0.09 11.401);
--chart-4: oklch(0.517 0.095 11.445);
--chart-5: oklch(0.602 0.075 182.732);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.014 185.835);
--foreground: oklch(0.993 0.002 186.556);
--muted: oklch(0.227 0.02 8.782);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.142 0.014 185.835);
--popover-foreground: oklch(0.993 0.002 186.556);
--card: oklch(0.142 0.014 185.835);
--card-foreground: oklch(0.993 0.002 186.556);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.594 0.07 183.042);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.492 0.09 11.401);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.492 0.09 11.401);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.644 0.22 28.161);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.594 0.07 183.042);
--chart-1: oklch(0.594 0.07 183.042);
--chart-2: oklch(0.492 0.09 11.401);
--chart-3: oklch(0.492 0.09 11.401);
--chart-4: oklch(0.517 0.095 11.445);
--chart-5: oklch(0.602 0.075 182.732);
}