Sensor is a shadcn/ui theme built around a muted teal primary color (#547d72) with muted light teal accents (#dee8e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#547d72) on a neutral background (#030806).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030806black |
| Foreground | #020806black | #f8fcfbmintcream |
| Card | #fcfcfcsnow | #040b09black |
| Card foreground | #010403black | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #040b09black |
| Popover foreground | #010403black | #fcfdfdwhite |
| Primary | #547d72dimgray | #547d72dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dee8e5gainsboro | #1b2824black |
| Secondary foreground | #3c5851darkslategray | #acc8c1silver |
| Muted | #d1e1dcgainsboro | #1e2e2adarkslategray |
| Muted foreground | #4a5955darkslategray | #a6b5b1darkgray |
| Accent | #dee8e5gainsboro | #1b2824black |
| Accent foreground | #3c5851darkslategray | #acc8c1silver |
| Destructive | #8b1d04darkred | #f95c39tomato |
| Destructive foreground | #fdcec4pink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #547d72dimgray | #547d72dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 4.59:1 | AA |
| Secondary button | 6.20:1 | AA |
| Muted text | 5.43:1 | AA |
| Accent | 6.20:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 4.59:1 | AA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 8.59:1 | AAA |
| Destructive | 6.62:1 | AA |
Paste this into your globals.css to use Sensor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.015 178.884);
--muted: oklch(0.896 0.018 178.191);
--muted-foreground: oklch(0.45 0.019 177.488);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.099 0.012 178.884);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.012 178.884);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.557 0.05 175.859);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.923 0.012 178.406);
--secondary-foreground: oklch(0.436 0.036 176.128);
--accent: oklch(0.923 0.012 178.406);
--accent-foreground: oklch(0.436 0.036 176.128);
--destructive: oklch(0.416 0.148 33.236);
--destructive-foreground: oklch(0.89 0.055 32.813);
--ring: oklch(0.557 0.05 175.859);
--chart-1: oklch(0.557 0.05 175.859);
--chart-2: oklch(0.923 0.012 178.406);
--chart-3: oklch(0.923 0.012 178.406);
--chart-4: oklch(0.944 0.009 178.517);
--chart-5: oklch(0.563 0.056 175.432);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.013 178.872);
--foreground: oklch(0.987 0.004 178.661);
--muted: oklch(0.286 0.023 176.226);
--muted-foreground: oklch(0.76 0.017 178.118);
--popover: oklch(0.141 0.015 178.554);
--popover-foreground: oklch(0.994 0.002 178.723);
--card: oklch(0.141 0.015 178.554);
--card-foreground: oklch(0.994 0.002 178.723);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.557 0.05 175.859);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.262 0.019 176.44);
--secondary-foreground: oklch(0.81 0.031 177.622);
--accent: oklch(0.262 0.019 176.44);
--accent-foreground: oklch(0.81 0.031 177.622);
--destructive: oklch(0.677 0.198 34.126);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.557 0.05 175.859);
--chart-1: oklch(0.557 0.05 175.859);
--chart-2: oklch(0.262 0.019 176.44);
--chart-3: oklch(0.262 0.019 176.44);
--chart-4: oklch(0.297 0.023 176.305);
--chart-5: oklch(0.563 0.056 175.432);
}