kernel / core / lib / src / theme / tokens.cssmain at 949894f
/* The look's values, as plain custom properties: nothing here needs Tailwind, so a page with no
build can use the file as it is. theme.css gives them their Tailwind names.
shadcn's neutral theme, as the UI kit has it (packages/ui/src/styles/globals.css), with the
kit's status colours. Each colour is light-dark(light, dark), and color-scheme picks the side:
light, whatever the system says. The class `dark` on <html> picks the other, for a page that
sets it. */
:root {
color-scheme: light;
--radius: 0.625rem;
--background: light-dark(oklch(1 0 0), oklch(0.145 0 0));
--foreground: light-dark(oklch(0.145 0 0), oklch(0.985 0 0));
--card: light-dark(oklch(1 0 0), oklch(0.205 0 0));
--card-foreground: light-dark(oklch(0.145 0 0), oklch(0.985 0 0));
--popover: light-dark(oklch(1 0 0), oklch(0.205 0 0));
--popover-foreground: light-dark(oklch(0.145 0 0), oklch(0.985 0 0));
--primary: light-dark(oklch(0.205 0 0), oklch(0.922 0 0));
--primary-foreground: light-dark(oklch(0.985 0 0), oklch(0.205 0 0));
--secondary: light-dark(oklch(0.97 0 0), oklch(0.269 0 0));
--secondary-foreground: light-dark(oklch(0.205 0 0), oklch(0.985 0 0));
--muted: light-dark(oklch(0.97 0 0), oklch(0.269 0 0));
--muted-foreground: light-dark(oklch(0.556 0 0), oklch(0.708 0 0));
--accent: light-dark(oklch(0.97 0 0), oklch(0.269 0 0));
--accent-foreground: light-dark(oklch(0.205 0 0), oklch(0.985 0 0));
--destructive: light-dark(oklch(0.577 0.245 27.325), oklch(0.704 0.191 22.216));
--success: light-dark(oklch(0.508 0.118 165.612), oklch(0.765 0.177 163.223));
--warning: light-dark(oklch(0.555 0.163 48.998), oklch(0.828 0.189 84.429));
--info: light-dark(oklch(0.5 0.134 242.749), oklch(0.746 0.16 232.661));
--border: light-dark(oklch(0.922 0 0), oklch(1 0 0 / 10%));
--input: light-dark(oklch(0.922 0 0), oklch(1 0 0 / 15%));
--ring: light-dark(oklch(0.708 0 0), oklch(0.556 0 0));
--link: light-dark(oklch(0.205 0 0), oklch(0.922 0 0));
/* Cloudflare's own orange, and dark words on it (7.7:1, where white is 2.6:1) */
--cloudflare: #f6821f;
--cloudflare-foreground: oklch(0.145 0 0);
/* "Sign in with Cloudflare": that orange a step deeper, where bold white words are 4.6:1 (AA),
and deeper still under the pointer; one look in either theme */
--cloudflare-button: #c65102;
--cloudflare-button-foreground: #fff;
--cloudflare-button-hover: #ad4702;
}
:root.dark {
color-scheme: dark;
}