Attendance is a shadcn/ui theme built around a near-black primary color (#070404) with muted light red accents (#e6dbdb). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#070404) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040101black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #070404black | #070404black |
| Primary foreground | #bc8083rosybrown | #bc8083rosybrown |
| Secondary | #e6dbdbgainsboro | #1e1516black |
| Secondary foreground | #543b3cdarkslategray | #bfa6a7darkgray |
| Muted | #f1e4e5mistyrose | #1b0e0fblack |
| Muted foreground | #503f40darkslategray | #c0afb0silver |
| Accent | #e6dbdbgainsboro | #1e1516black |
| Accent foreground | #543b3cdarkslategray | #bfa6a7darkgray |
| Destructive | #b34509saddlebrown | #f46d25chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #070404black | #070404black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 5.56:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 7.05:1 | AAA |
Paste this into your globals.css to use Attendance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.083 0.013 15.758);
--muted: oklch(0.93 0.014 13.903);
--muted-foreground: oklch(0.386 0.024 14.873);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.083 0.013 15.758);
--card: oklch(1 0 180);
--card-foreground: oklch(0.083 0.013 15.758);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.11 0.009 14.655);
--primary-foreground: oklch(0.662 0.075 15.995);
--secondary: oklch(0.9 0.012 13.875);
--secondary-foreground: oklch(0.38 0.037 15.613);
--accent: oklch(0.9 0.012 13.875);
--accent-foreground: oklch(0.38 0.037 15.613);
--destructive: oklch(0.534 0.156 42.213);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.11 0.009 14.655);
--chart-1: oklch(0.11 0.009 14.655);
--chart-2: oklch(0.9 0.012 13.875);
--chart-3: oklch(0.9 0.012 13.875);
--chart-4: oklch(0.925 0.009 13.8);
--chart-5: oklch(0.109 0.01 14.783);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 13.621);
--muted: oklch(0.182 0.022 16.146);
--muted-foreground: oklch(0.769 0.02 14.121);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 13.621);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 13.621);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.11 0.009 14.655);
--primary-foreground: oklch(0.662 0.075 15.995);
--secondary: oklch(0.208 0.013 14.914);
--secondary-foreground: oklch(0.748 0.029 14.378);
--accent: oklch(0.208 0.013 14.914);
--accent-foreground: oklch(0.748 0.029 14.378);
--destructive: oklch(0.69 0.183 44.451);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.11 0.009 14.655);
--chart-1: oklch(0.11 0.009 14.655);
--chart-2: oklch(0.208 0.013 14.914);
--chart-3: oklch(0.208 0.013 14.914);
--chart-4: oklch(0.239 0.017 15.046);
--chart-5: oklch(0.109 0.01 14.783);
}