Ycap Final is a shadcn/ui theme built around a vivid deep blue primary color (#002050) with light yellow accents (#e3dbc5). The light mode uses a neutral background (#fcfbfe). Dark mode switches to a deep indigo primary (#1c1a47) on an indigo-tinted background (#050510).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #050510black |
| Foreground | #1d1d1dblack | #f9f8fbghostwhite |
| Card | #ffffffwhite | #070613black |
| Card foreground | #1d1d1dblack | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #070613black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #002050midnightblue | #1c1a47midnightblue |
| Primary foreground | #ffffffwhite | #b3b1e2lightsteelblue |
| Secondary | #bca275darkkhaki | #1b1b22black |
| Secondary foreground | #ffffffwhite | #b0afc0silver |
| Muted | #ebeeefwhitesmoke | #202027black |
| Muted foreground | #535455dimgray | #b4b3c1silver |
| Accent | #e3dbc5lightgrey | #252438darkslategray |
| Accent foreground | #1d1d1dblack | #bcbbd3lightsteelblue |
| Destructive | #c00000firebrick | #e70704red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eef0f1whitesmoke | #17171cblack |
| Input | #d6dadcgainsboro | #17171cblack |
| Ring | #002050midnightblue | #1c1a47midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 16.35:1 | AAA |
| Text on card | 16.85:1 | AAA |
| Primary button | 15.87:1 | AAA |
| Secondary button | 2.45:1 | Fail |
| Muted text | 6.50:1 | AA |
| Accent | 12.20:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Ycap Final in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 301.426);
--foreground: oklch(0.231 0 180);
--muted: oklch(0.947 0.003 219.534);
--muted-foreground: oklch(0.445 0.002 247.87);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0.231 0 180);
--border: oklch(0.954 0.003 228.785);
--input: oklch(0.885 0.005 228.824);
--primary: oklch(0.256 0.096 258.29);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.724 0.068 80.976);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.892 0.031 90.342);
--accent-foreground: oklch(0.231 0 180);
--destructive: oklch(0.507 0.208 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.256 0.096 258.29);
--chart-1: oklch(0.256 0.096 258.29);
--chart-2: oklch(0.724 0.068 80.976);
--chart-3: oklch(0.892 0.031 90.342);
--chart-4: oklch(0.745 0.063 81.113);
--chart-5: oklch(0.256 0.099 258.157);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.026 284.939);
--foreground: oklch(0.981 0.004 288.632);
--muted: oklch(0.248 0.013 287.667);
--muted-foreground: oklch(0.772 0.019 288.235);
--popover: oklch(0.133 0.03 284.355);
--popover-foreground: oklch(0.991 0.002 288.671);
--card: oklch(0.133 0.03 284.355);
--card-foreground: oklch(0.991 0.002 288.671);
--border: oklch(0.207 0.01 287.782);
--input: oklch(0.207 0.01 287.782);
--primary: oklch(0.25 0.081 281.065);
--primary-foreground: oklch(0.779 0.07 286.949);
--secondary: oklch(0.226 0.014 287.498);
--secondary-foreground: oklch(0.76 0.024 288.104);
--accent: oklch(0.272 0.035 286.067);
--accent-foreground: oklch(0.801 0.033 287.924);
--destructive: oklch(0.584 0.238 29.269);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.25 0.081 281.065);
--chart-1: oklch(0.25 0.081 281.065);
--chart-2: oklch(0.226 0.014 287.498);
--chart-3: oklch(0.272 0.035 286.067);
--chart-4: oklch(0.255 0.017 287.406);
--chart-5: oklch(0.247 0.086 280.326);
}