Competent is a shadcn/ui theme built around a vivid cyan primary color (#79d2fb) with vivid orange accents (#fba279). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the vivid cyan primary (#79d2fb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #000000black |
| Foreground | #060f14black | #f9fafbghostwhite |
| Card | #f3f9fcaliceblue | #030303black |
| Card foreground | #040c10black | #fcfdfdwhite |
| Popover | #f3f9fcaliceblue | #030303black |
| Popover foreground | #040c10black | #fcfdfdwhite |
| Primary | #79d2fblightskyblue | #79d2fblightskyblue |
| Primary foreground | #022d40midnightblue | #022d40midnightblue |
| Secondary | #fba279lightsalmon | #fba279lightsalmon |
| Secondary foreground | #401602black | #401602black |
| Muted | #e6e2e0gainsboro | #1f1b19black |
| Muted foreground | #464544darkslategray | #bbbab9silver |
| Accent | #fba279lightsalmon | #fba279lightsalmon |
| Accent foreground | #401602black | #401602black |
| Destructive | #bc3f01firebrick | #f45201orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #79d2fblightskyblue | #79d2fblightskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.54:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 7.42:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 5.45:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.81:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Competent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 226.918);
--foreground: oklch(0.162 0.018 227.398);
--muted: oklch(0.915 0.005 46.797);
--muted-foreground: oklch(0.39 0.001 46.814);
--popover: oklch(0.978 0.007 226.95);
--popover-foreground: oklch(0.149 0.016 225.283);
--card: oklch(0.978 0.007 226.95);
--card-foreground: oklch(0.149 0.016 225.283);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.823 0.103 229.724);
--primary-foreground: oklch(0.279 0.057 234.537);
--secondary: oklch(0.793 0.119 45.437);
--secondary-foreground: oklch(0.263 0.073 43.737);
--accent: oklch(0.793 0.119 45.437);
--accent-foreground: oklch(0.263 0.073 43.737);
--destructive: oklch(0.54 0.17 39.69);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.103 229.724);
--chart-1: oklch(0.823 0.103 229.724);
--chart-2: oklch(0.793 0.119 45.437);
--chart-3: oklch(0.793 0.119 45.437);
--chart-4: oklch(0.814 0.105 45.669);
--chart-5: oklch(0.825 0.106 229.858);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.001 226.874);
--muted: oklch(0.226 0.007 46.534);
--muted-foreground: oklch(0.789 0.001 46.839);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.001 226.866);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.001 226.866);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.823 0.103 229.724);
--primary-foreground: oklch(0.279 0.057 234.537);
--secondary: oklch(0.793 0.119 45.437);
--secondary-foreground: oklch(0.263 0.073 43.737);
--accent: oklch(0.793 0.119 45.437);
--accent-foreground: oklch(0.263 0.073 43.737);
--destructive: oklch(0.654 0.209 39.039);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.103 229.724);
--chart-1: oklch(0.823 0.103 229.724);
--chart-2: oklch(0.793 0.119 45.437);
--chart-3: oklch(0.793 0.119 45.437);
--chart-4: oklch(0.814 0.105 45.669);
--chart-5: oklch(0.825 0.106 229.858);
}