322 lines
13 KiB
CSS
322 lines
13 KiB
CSS
@custom-variant dark (&:is(.dark *));
|
|
|
|
:root {
|
|
--font-size: 16px;
|
|
/* Typography scale variables */
|
|
--text-xs: 12px;
|
|
--text-sm: 14px;
|
|
--text-base: 16px;
|
|
--text-lg: 18px;
|
|
--text-xl: 20px;
|
|
--text-2xl: 24px;
|
|
--text-3xl: 40px;
|
|
--text-4xl: 72px;
|
|
/* Font family variables */
|
|
--font-inter: 'Inter', sans-serif;
|
|
--font-noto-sans: 'Noto Sans', sans-serif;
|
|
/* Font weight variables */
|
|
--font-weight-normal: 400;
|
|
--font-weight-medium: 600;
|
|
/* The default background color for the application. */
|
|
--background: rgba(255, 255, 255, 1.00);
|
|
/* The default color for elements or text that appears on top of the background. */
|
|
--foreground: rgba(15, 48, 114, 1.00);
|
|
/* The background color for cards, modals, and other containers. */
|
|
--card: rgba(255, 255, 255, 1.00);
|
|
/* The default color for text or elements that appear on top of cards, modals and other background containers. */
|
|
--card-foreground: rgba(53, 64, 76, 1.00);
|
|
/* The background color for dropdowns and tooltips. */
|
|
--popover: rgba(0, 0, 0, 1.00);
|
|
/* The default color for text or elements that appear on top of dropdowns and tooltips. */
|
|
--popover-foreground: rgba(255, 255, 255, 0.95);
|
|
/* The primary color used for buttons, links, and other interactive elements. */
|
|
--primary: rgba(11, 77, 209, 1.00);
|
|
/* The default color for text or elements that appear on top of primary colored elements. */
|
|
--primary-foreground: rgba(249, 250, 251, 1.00);
|
|
/* The secondary color used for secondary(but NOT-DESTRUCTIVE) buttons and interactive elements. */
|
|
--secondary: rgba(246, 249, 253, 1.00);
|
|
/* The default color for text or elements that appear on top of secondary colored elements. */
|
|
--secondary-foreground: rgba(11, 77, 209, 1.00);
|
|
/* The muted color used for less prominent elements, such as disabled buttons or disabled text. */
|
|
/* WCAG AA: #5C6F80 on white = 5.19:1 ✓ (was #99ABBC = 2.36:1 ❌) */
|
|
--muted: rgba(92, 111, 128, 1.00);
|
|
/* The default color for text or elements that appear on top of muted colored elements. */
|
|
/* WCAG AA: #64737F on white = 4.87:1 ✓ (was #BCC7D2 = 1.73:1 ❌) */
|
|
--muted-foreground: rgba(100, 115, 127, 1.00);
|
|
/* The accent color used for highlights, links, and other interactive elements. */
|
|
--accent: rgba(229, 236, 251, 1.00);
|
|
/* The default color for text or elements that appear on top of accent colored elements. */
|
|
--accent-foreground: rgba(13, 62, 161, 1.00);
|
|
/* The color used for background in destructive actions, such as delete buttons or error messages. */
|
|
/* WCAG AA: #A31113 on white = 7.94:1 ✓ */
|
|
--destructive: rgba(163, 17, 19, 1.00);
|
|
/* White on #A31113 = 7.94:1 ✓ */
|
|
--destructive-foreground: rgba(255, 255, 255, 0.95);
|
|
/* The default border color for elements such as inputs, buttons, and other containers. */
|
|
--border: rgba(200, 209, 218, 1.00);
|
|
/* The default background color for input fields once the text has been filled. Should be either transparent or match the input-background. */
|
|
--input: rgba(255, 255, 255, 1.00);
|
|
/* The default background color for input fields, text areas, and other input elements. */
|
|
--input-background: rgba(255, 255, 255, 1.00);
|
|
/* The color for focus rings, outlines, and other focus indicators. */
|
|
--ring: rgba(19, 40, 83, 1.00);
|
|
/* Shadow for small elevations, such as cards or modals. */
|
|
--elevation-sm: 0px 4px 12px 0px rgba(33, 38, 44, 0.16);
|
|
/* The color for chart elements, such as a bar or line in a chart. */
|
|
--chart-1: rgba(52, 167, 242, 1.00);
|
|
/* The color for another chart element, such as a bar or line in a chart. */
|
|
--chart-2: rgba(255, 152, 0, 1.00);
|
|
/* The color for another chart element, such as a bar or line in a chart. */
|
|
--chart-3: rgba(102, 74, 182, 1.00);
|
|
/* The color for another chart element, such as a bar or line in a chart. */
|
|
--chart-4: rgba(78, 194, 192, 1.00);
|
|
/* The color for another chart element, such as a bar or line in a chart. */
|
|
--chart-5: rgba(243, 87, 142, 1.00);
|
|
/* Success state background — used for positive-signal cells (e.g. Attended count).
|
|
WCAG AA: #166534 on #f0fdf4 = 8.91:1 ✓ */
|
|
--success-bg: rgba(240, 253, 244, 1.00);
|
|
/* Success state foreground — primary value text */
|
|
--success-fg: rgba(21, 128, 61, 1.00);
|
|
/* Success state label text — slightly darker for hierarchy */
|
|
--success-fg-label: rgba(22, 101, 52, 1.00);
|
|
/* The default border radius for elements such as buttons, tooltip, and other containers. */
|
|
--radius: 4px;
|
|
/* The border radius for cards and larger containers. */
|
|
--radius-card: 8px;
|
|
/* The border radius for buttons and form controls. */
|
|
--radius-button: 4px;
|
|
/* Brand orange for Lucide / UI icons (wordmark buzz color). */
|
|
--icon: #EF8D1D;
|
|
/* The background color for sidebars, navigation menus, and other persistent elements. */
|
|
--sidebar: rgba(255, 255, 255, 1.00);
|
|
/* The default color for text or elements that appear on top of sidebars, navigation menus, and other persistent elements. */
|
|
--sidebar-foreground: #484B57;
|
|
/* The primary color used for buttons, links, and other interactive elements in sidebars and navigation menus. */
|
|
/* WCAG AA: #0B4DD1 on white sidebar = 7.00:1 ✓ */
|
|
--sidebar-primary: rgba(11, 77, 209, 1.00);
|
|
/* White on #0B4DD1 = 7.00:1 ✓ */
|
|
--sidebar-primary-foreground: rgba(255, 255, 255, 1.00);
|
|
/* The accent color used for highlights, links, and other interactive elements in sidebars and navigation menus. */
|
|
--sidebar-accent: rgba(229, 236, 251, 1.00);
|
|
/* The default color for text or elements that appear on top of accent colored elements in sidebars and navigation menus. */
|
|
--sidebar-accent-foreground: #484B57;
|
|
/* The default border color for elements in sidebars and navigation menus. */
|
|
--sidebar-border: rgba(216, 222, 228, 1.00);
|
|
/* The default color for focus rings, outlines, and other focus indicators in sidebars and navigation menus. */
|
|
--sidebar-ring: rgba(11, 77, 209, 1.00);
|
|
}
|
|
|
|
.dark {
|
|
--background: rgba(15, 23, 42, 1.00);
|
|
--foreground: rgba(248, 250, 252, 1.00);
|
|
--card: rgba(30, 41, 59, 1.00);
|
|
--card-foreground: rgba(226, 232, 240, 1.00);
|
|
--popover: rgba(15, 23, 42, 1.00);
|
|
--popover-foreground: rgba(248, 250, 252, 1.00);
|
|
/* WCAG AA: #60A5FA on dark card (#1E293B) = 5.74:1 ✓ (was #3B82F6 = 3.97:1 ❌) */
|
|
--primary: rgba(96, 165, 250, 1.00);
|
|
/* Dark text on lighter blue button: 7.02:1 ✓ */
|
|
--primary-foreground: rgba(15, 23, 42, 1.00);
|
|
--secondary: rgba(51, 65, 85, 1.00);
|
|
--secondary-foreground: rgba(248, 250, 252, 1.00);
|
|
/* WCAG AA: #94A3B8 on dark card (#1E293B) = 5.69:1 ✓ (was #475569 = 1.92:1 ❌) */
|
|
--muted: rgba(148, 163, 184, 1.00);
|
|
/* WCAG AA: #A8B8CC on dark card (#1E293B) = 7.24:1 ✓ (was #94A3B8 = 5.69:1, now differentiated) */
|
|
--muted-foreground: rgba(168, 184, 204, 1.00);
|
|
--accent: rgba(51, 65, 85, 1.00);
|
|
--accent-foreground: rgba(248, 250, 252, 1.00);
|
|
/* WCAG AA: #DC2626 with white foreground = 4.60:1 ✓ (was #EF4444 = 3.76:1 ❌) */
|
|
--destructive: rgba(220, 38, 38, 1.00);
|
|
/* White on #DC2626 = 4.60:1 ✓ */
|
|
--destructive-foreground: rgba(248, 250, 252, 1.00);
|
|
--border: rgba(51, 65, 85, 1.00);
|
|
--input: rgba(51, 65, 85, 1.00);
|
|
/* Dark mode input background — darker than --card so inputs visually recede.
|
|
Light text (--card-foreground #E2E8F0) on this value = ~14:1 contrast ✓ WCAG AAA */
|
|
--input-background: rgba(15, 23, 42, 1.00);
|
|
--ring: rgba(147, 197, 253, 1.00);
|
|
/* Dark mode success — deep green bg, bright mint value, lighter mint label.
|
|
--success-fg (#4ADE80) on --success-bg (#052E16) = 10.2:1 ✓ WCAG AAA
|
|
--success-fg-label (#86EFAC) on --success-bg (#052E16) = 7.8:1 ✓ WCAG AAA */
|
|
--success-bg: rgba(5, 46, 22, 1.00);
|
|
--success-fg: rgba(74, 222, 128, 1.00);
|
|
--success-fg-label: rgba(134, 239, 172, 1.00);
|
|
--elevation-sm: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
|
|
/* Same brand orange in dark mode for icon consistency. */
|
|
--icon: #EF8D1D;
|
|
--sidebar: rgba(30, 41, 59, 1.00);
|
|
--sidebar-foreground: rgba(248, 250, 252, 1.00);
|
|
/* WCAG AA: #60A5FA on dark sidebar-accent (#334155) = 4.05:1 ✓ (was #3B82F6 = 2.81:1 ❌) */
|
|
--sidebar-primary: rgba(96, 165, 250, 1.00);
|
|
/* Dark text on lighter blue: 7.02:1 ✓ */
|
|
--sidebar-primary-foreground: rgba(15, 23, 42, 1.00);
|
|
--sidebar-accent: rgba(51, 65, 85, 1.00);
|
|
--sidebar-accent-foreground: rgba(248, 250, 252, 1.00);
|
|
--sidebar-border: rgba(51, 65, 85, 1.00);
|
|
--sidebar-ring: rgba(147, 197, 253, 1.00);
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-input-background: var(--input-background);
|
|
--color-ring: var(--ring);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-5: var(--chart-5);
|
|
--radius-sm: calc(var(--radius) - 2px);
|
|
--radius-md: var(--radius);
|
|
--radius-lg: var(--radius-card);
|
|
--radius-xl: calc(var(--radius-card) + 4px);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-icon: var(--icon);
|
|
--shadow-sm: var(--elevation-sm);
|
|
--shadow-md: 0px 6px 16px 0px rgba(33, 38, 44, 0.20);
|
|
--shadow-lg: 0px 8px 24px 0px rgba(33, 38, 44, 0.24);
|
|
--shadow-xl: 0px 12px 32px 0px rgba(33, 38, 44, 0.28);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
font-family: var(--font-noto-sans);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Base typography. This is not applied to elements which have an ancestor with a Tailwind text class.
|
|
*/
|
|
@layer base {
|
|
:where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) {
|
|
h1 {
|
|
font-family: var(--font-inter);
|
|
font-size: var(--text-4xl);
|
|
font-weight: var(--font-weight-medium);
|
|
line-height: 1.2;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
h2 {
|
|
font-family: var(--font-inter);
|
|
font-size: var(--text-3xl);
|
|
font-weight: var(--font-weight-medium);
|
|
line-height: 1.3;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
h3 {
|
|
font-family: var(--font-inter);
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-weight-medium);
|
|
line-height: 1.4;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
h4 {
|
|
font-family: var(--font-inter);
|
|
font-size: var(--text-xl);
|
|
font-weight: var(--font-weight-medium);
|
|
line-height: 1.4;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
p {
|
|
font-family: var(--font-noto-sans);
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-weight-normal);
|
|
line-height: 1.5;
|
|
color: var(--card-foreground);
|
|
}
|
|
|
|
label {
|
|
font-family: var(--font-noto-sans);
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-weight-medium);
|
|
line-height: 1.5;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
button {
|
|
font-family: var(--font-noto-sans);
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-weight-medium);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
input {
|
|
font-family: var(--font-noto-sans);
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-weight-normal);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.caption {
|
|
font-family: var(--font-noto-sans);
|
|
font-size: var(--text-xs);
|
|
font-weight: var(--font-weight-normal);
|
|
line-height: 1.4;
|
|
color: var(--muted-foreground);
|
|
}
|
|
}
|
|
}
|
|
|
|
html {
|
|
font-size: var(--font-size);
|
|
}
|
|
|
|
/**
|
|
* Lucide React icons use currentColor — force brand orange app-wide.
|
|
* Overrides per-icon muted/primary inline colors so icons stay consistent.
|
|
*/
|
|
svg.lucide {
|
|
color: var(--icon) !important;
|
|
}
|
|
|
|
/**
|
|
* Icon-in-box: when a container's only child is a Lucide icon, match its
|
|
* border to the icon color (no-op when the element has no border).
|
|
* Hover fills the box orange with a white icon.
|
|
*/
|
|
:is(button, a, span, div, label):has(> svg.lucide:only-child) {
|
|
border-color: var(--icon) !important;
|
|
transition: background-color 0.12s, border-color 0.12s, color 0.12s;
|
|
}
|
|
|
|
:is(button, a):has(> svg.lucide:only-child):not(:disabled):hover {
|
|
background-color: var(--icon) !important;
|
|
border-color: var(--icon) !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
:is(button, a):has(> svg.lucide:only-child):not(:disabled):hover > svg.lucide {
|
|
color: #fff !important;
|
|
} |