Present is a shadcn/ui theme built around a vivid blue primary color (#0f33c2) with neutral gray accents (#ceced0). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid blue primary (#0f33c2) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #020204black |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #f8f9fcghostwhite | #030407black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f9fcghostwhite | #030407black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0f33c2mediumblue | #0f33c2mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ceced0lightgrey | #292c38darkslategray |
| Secondary foreground | #343537darkslategray | #c1c5d1silver |
| Muted | #e6e8eflavender | #101219black |
| Muted foreground | #484c5bdarkslategray | #a4a8b7darkgray |
| Accent | #ceced0lightgrey | #292c38darkslategray |
| Accent foreground | #343537darkslategray | #c1c5d1silver |
| Destructive | #d54810chocolate | #f06c38tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f33c2mediumblue | #0f33c2mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 9.25:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 6.96:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 4.39:1 | AA Large |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 9.25:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.90:1 | AA |
Paste this into your globals.css to use Present in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 275.012);
--foreground: oklch(0.081 0.013 267.869);
--muted: oklch(0.931 0.01 274.898);
--muted-foreground: oklch(0.418 0.027 274.161);
--popover: oklch(0.982 0.004 274.989);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.004 274.989);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.417 0.223 265.016);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.851 0.002 275.003);
--secondary-foreground: oklch(0.329 0.003 274.92);
--accent: oklch(0.851 0.002 275.003);
--accent-foreground: oklch(0.329 0.003 274.92);
--destructive: oklch(0.594 0.187 38.114);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.417 0.223 265.016);
--chart-1: oklch(0.417 0.223 265.016);
--chart-2: oklch(0.851 0.002 275.003);
--chart-3: oklch(0.851 0.002 275.003);
--chart-4: oklch(0.875 0.002 275.009);
--chart-5: oklch(0.417 0.229 264.81);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.009 270.36);
--foreground: oklch(0.991 0.002 275.011);
--muted: oklch(0.182 0.016 273.802);
--muted-foreground: oklch(0.732 0.023 274.629);
--popover: oklch(0.106 0.012 270.36);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.106 0.012 270.36);
--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.417 0.223 265.016);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.296 0.022 274.018);
--secondary-foreground: oklch(0.824 0.018 274.754);
--accent: oklch(0.296 0.022 274.018);
--accent-foreground: oklch(0.824 0.018 274.754);
--destructive: oklch(0.684 0.176 40.703);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.417 0.223 265.016);
--chart-1: oklch(0.417 0.223 265.016);
--chart-2: oklch(0.296 0.022 274.018);
--chart-3: oklch(0.296 0.022 274.018);
--chart-4: oklch(0.324 0.024 273.979);
--chart-5: oklch(0.417 0.229 264.81);
}