/* * The theme as Tailwind sees it: each token reads the app's CSS variable of its name (`--color-primary` is * `var(--primary)`, the radii follow `--radius`, the fonts `--font` and `--font-code`). The admin app's stylesheet * imports it, and a plugin's stylesheet references it, so a plugin's utilities draw with the app's theme whatever * version of the app loads them, and with these defaults where the app sets none. */ /* `dark:` follows the theme the user picked in the app, not only the system's, for the app and plugins alike. */ @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *)); /* `short:` is a page about as short as a phone's above its open keyboard, which the iOS and Android app shrink it to. */ @custom-variant short (@media (max-height: 560px)); @theme inline { --color-background: var(--background); --color-surface: var(--surface); --color-muted: var(--muted); --color-border: var(--border); --color-border-strong: var(--border-strong); --color-foreground: var(--foreground); --color-muted-foreground: var(--muted-foreground); --color-faint-foreground: var(--faint-foreground); --color-primary: var(--primary); --color-primary-hover: var(--primary-hover); --color-primary-foreground: var(--primary-foreground); --color-primary-soft: var(--primary-soft); --color-primary-border: var(--primary-border); --color-primary-text: var(--primary-text); --color-success: var(--success); --color-success-soft: var(--success-soft); --color-success-text: var(--success-text); --color-warning: var(--warning); --color-warning-soft: var(--warning-soft); --color-warning-text: var(--warning-text); --color-danger: var(--danger); --color-danger-soft: var(--danger-soft); --color-danger-text: var(--danger-text); --color-violet: var(--violet); --color-violet-soft: var(--violet-soft); --color-violet-text: var(--violet-text); --color-sidebar: var(--sidebar); --shadow-pop: var(--shadow-pop); --color-backdrop: var(--backdrop); --font-sans: var(--font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); --font-mono: var(--font-code, ui-monospace, "SF Mono", Menlo, Consolas, monospace); /* The app's base text size: the body's, and `text-body` where an element must restate it. */ --text-body: 0.875rem; /* A menu's items where it opens as a sheet on a phone: the sidebar drawer's items' size, as the two are side by side. */ --text-menu-sheet: 0.875rem; --text-menu-sheet--line-height: 1.4; /* The page's title in the top bar on a phone, a step above the body's. */ --text-mobile-title: 1.1875rem; --text-mobile-title--line-height: 1.25; --radius-sm: max(0px, calc(var(--radius, 6px) - 2px)); --radius-md: var(--radius, 6px); --radius-lg: calc(var(--radius, 6px) + 2px); --radius-xl: calc(var(--radius, 6px) + 6px); }