Laptop is a shadcn/ui theme built around a vivid blue primary color (#0c95e4) with vivid orange accents (#e45b0c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0c95e4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030f16black | #f9fafbghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030c12black | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #030c12black | #fcfdfdwhite |
| Primary | #0c95e4dodgerblue | #0c95e4dodgerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e45b0cchocolate | #e45b0cchocolate |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ede0d9antiquewhite | #261912black |
| Muted foreground | #584941darkolivegreen | #beafa7darkgray |
| Accent | #e45b0cchocolate | #e45b0cchocolate |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #873008saddlebrown | #f26726chocolate |
| Destructive foreground | #fcd6c5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c95e4dodgerblue | #0c95e4dodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 3.27:1 | AA Large |
| Secondary button | 3.62:1 | AA Large |
| Muted text | 6.66:1 | AA |
| Accent | 3.62:1 | AA Large |
| Destructive | 6.33:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 3.27:1 | AA Large |
| Secondary button | 3.62:1 | AA Large |
| Muted text | 8.00:1 | AAA |
| Accent | 3.62:1 | AA Large |
| Destructive | 6.74:1 | AA |
Paste this into your globals.css to use Laptop in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.161 0.025 232.311);
--muted: oklch(0.916 0.018 52.323);
--muted-foreground: oklch(0.419 0.024 51.849);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.147 0.022 229.673);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.147 0.022 229.673);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.644 0.156 243.801);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.64 0.186 42.981);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.64 0.186 42.981);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.431 0.128 40.647);
--destructive-foreground: oklch(0.904 0.048 46.334);
--ring: oklch(0.644 0.156 243.801);
--chart-1: oklch(0.644 0.156 243.801);
--chart-2: oklch(0.64 0.186 42.981);
--chart-3: oklch(0.64 0.186 42.981);
--chart-4: oklch(0.67 0.195 42.868);
--chart-5: oklch(0.648 0.159 244.336);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.001 232.596);
--muted: oklch(0.229 0.025 51.124);
--muted-foreground: oklch(0.765 0.021 52.227);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.992 0.001 232.588);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 232.588);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.644 0.156 243.801);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.64 0.186 42.981);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.64 0.186 42.981);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.679 0.187 41.991);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.644 0.156 243.801);
--chart-1: oklch(0.644 0.156 243.801);
--chart-2: oklch(0.64 0.186 42.981);
--chart-3: oklch(0.64 0.186 42.981);
--chart-4: oklch(0.67 0.195 42.868);
--chart-5: oklch(0.648 0.159 244.336);
}