Cross is a shadcn/ui theme built around a teal primary color (#297563) with yellow accents (#756329). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#297563) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010403black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #010403black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010403black | #ffffffwhite |
| Primary | #297563seagreen | #297563seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #632975rebeccapurple | #632975rebeccapurple |
| Secondary foreground | #eeddf3lavender | #eeddf3lavender |
| Muted | #f4eff5whitesmoke | #0e0a10black |
| Muted foreground | #5f4f64dimgray | #ab9bb0darkgray |
| Accent | #756329darkolivegreen | #756329darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9b1c0dfirebrick | #ed4331tomato |
| Destructive foreground | #fce1demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #297563seagreen | #297563seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 5.49:1 | AA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 5.85:1 | AA |
| Destructive | 6.62:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.49:1 | AA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 5.85:1 | AA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Cross in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.099 0.011 180.949);
--muted: oklch(0.958 0.009 318.321);
--muted-foreground: oklch(0.45 0.04 318.239);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.099 0.011 180.949);
--card: oklch(1 0 180);
--card-foreground: oklch(0.099 0.011 180.949);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.51 0.08 174.713);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.398 0.134 317.538);
--secondary-foreground: oklch(0.918 0.035 318.293);
--accent: oklch(0.505 0.08 92.364);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.447 0.164 30.516);
--destructive-foreground: oklch(0.931 0.03 25.285);
--ring: oklch(0.51 0.08 174.713);
--chart-1: oklch(0.51 0.08 174.713);
--chart-2: oklch(0.398 0.134 317.538);
--chart-3: oklch(0.505 0.08 92.364);
--chart-4: oklch(0.424 0.144 317.516);
--chart-5: oklch(0.517 0.083 174.343);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.153 0.014 318.231);
--muted-foreground: oklch(0.711 0.036 318.28);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.51 0.08 174.713);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.398 0.134 317.538);
--secondary-foreground: oklch(0.918 0.035 318.293);
--accent: oklch(0.505 0.08 92.364);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.209 30.166);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0.08 174.713);
--chart-1: oklch(0.51 0.08 174.713);
--chart-2: oklch(0.398 0.134 317.538);
--chart-3: oklch(0.505 0.08 92.364);
--chart-4: oklch(0.424 0.144 317.516);
--chart-5: oklch(0.517 0.083 174.343);
}