Files
CollabTable/frontend/src/app.css
T
Gabriel20xx a8b79ffd1b
Lint / Lint (push) Successful in 1m2s
Security / Secrets (gitleaks) (push) Successful in 1m15s
Security / Dependencies (Trivy) (push) Successful in 1m14s
Security / Code (Semgrep) (push) Successful in 2m6s
Tests / Dashboard checks (push) Failing after 1m10s
Tests / Go backend (push) Successful in 3m14s
Docker / Docker Build & Push (push) Successful in 9m55s
style: normalize frontend formatting and line endings
2026-11-17 14:13:00 +01:00

134 lines
4.4 KiB
CSS

@import 'tailwindcss';
@import 'tw-animate-css';
/*
* Semantic color tokens, one block per theme. Components should only ever
* use the Tailwind utilities mapped below (bg-bg, text-fg, bg-surface, etc.),
* never the raw values, so switching theme/data-attribute is all it takes.
*/
:root,
[data-theme='dark'] {
--color-bg: var(--sc-bg);
--color-surface: var(--sc-surface);
--color-surface-hover: var(--sc-surface-hover);
--color-border: var(--sc-border);
--color-fg: var(--sc-fg);
--color-muted-fg: var(--sc-muted-fg);
--color-primary: #3b82f6;
--color-primary-fg: #04122e;
--color-secondary: var(--sc-secondary);
--color-secondary-fg: var(--sc-secondary-fg);
--color-accent: #3b82f6;
--color-accent-fg: #04122e;
--color-danger: var(--sc-danger);
--color-danger-fg: var(--sc-danger-fg);
--color-success: var(--sc-success);
--color-success-fg: var(--sc-success-fg);
--color-warning: var(--sc-warning);
--color-warning-fg: var(--sc-warning-fg);
--color-ring: #60a5fa;
color-scheme: dark;
}
/* Bridge onto the shared component library's own --sc-* tokens so parts of the app built from
@gabriel20xx/web-ui components outside AppShell's .collabtable-shell scope (AuthPage, the
Settings/Profile dialogs) carry this project's brand color too, instead of falling back to the
shared library's generic default blue. `html` raises specificity above shared-styles.css's
plain `:root`/`[data-theme]` rules so this wins regardless of stylesheet import order. */
html:root,
html[data-theme='dark'] {
--sc-primary: var(--color-primary);
--sc-primary-hover: var(--color-secondary);
--sc-primary-fg: var(--color-primary-fg);
--sc-accent: var(--color-accent);
--sc-accent-fg: var(--color-accent-fg);
--sc-ring: var(--color-ring);
}
[data-theme='light'] {
--color-bg: var(--sc-bg);
--color-surface: var(--sc-surface);
--color-surface-hover: var(--sc-surface-hover);
--color-border: var(--sc-border);
--color-fg: var(--sc-fg);
--color-muted-fg: var(--sc-muted-fg);
--color-primary: #2563eb;
--color-primary-fg: #ffffff;
--color-secondary: var(--sc-secondary);
--color-secondary-fg: var(--sc-secondary-fg);
--color-accent: #2563eb;
--color-accent-fg: #ffffff;
--color-danger: var(--sc-danger);
--color-danger-fg: var(--sc-danger-fg);
--color-success: var(--sc-success);
--color-success-fg: var(--sc-success-fg);
--color-warning: var(--sc-warning);
--color-warning-fg: var(--sc-warning-fg);
--color-ring: #2563eb;
color-scheme: light;
}
/* See the dark-theme bridge above for why this exists and why `html` is needed. */
html[data-theme='light'] {
--sc-primary: var(--color-primary);
--sc-primary-hover: var(--color-secondary);
--sc-primary-fg: var(--color-primary-fg);
--sc-accent: var(--color-accent);
--sc-accent-fg: var(--color-accent-fg);
--sc-ring: var(--color-ring);
}
@theme inline {
--color-bg: var(--color-bg);
--color-surface: var(--color-surface);
--color-surface-hover: var(--color-surface-hover);
--color-border: var(--color-border);
--color-fg: var(--color-fg);
--color-muted-fg: var(--color-muted-fg);
--color-primary: var(--color-primary);
--color-primary-fg: var(--color-primary-fg);
--color-secondary: var(--color-secondary);
--color-secondary-fg: var(--color-secondary-fg);
--color-accent: var(--color-accent);
--color-accent-fg: var(--color-accent-fg);
--color-danger: var(--color-danger);
--color-danger-fg: var(--color-danger-fg);
--color-success: var(--color-success);
--color-success-fg: var(--color-success-fg);
--color-warning: var(--color-warning);
--color-warning-fg: var(--color-warning-fg);
--color-ring: var(--color-ring);
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
html,
body {
height: 100%;
}
body {
margin: 0;
background-color: var(--color-bg);
color: var(--color-fg);
font-family: var(--font-sans);
transition:
background-color 150ms ease,
color 150ms ease;
}
::selection {
background-color: var(--color-primary);
color: var(--color-primary-fg);
}
/* Wide-page setting: lifts the shared shell's default max-width cap on the main content area. */
[data-wide-layout='true'] .sc-main {
width: calc(100% - 2rem);
}
/* The shared paginator adds separation when it follows content directly. Inside the overview
card, the card padding provides that spacing and keeps the top and bottom insets balanced. */
.pagination-card .sc-pagination {
margin-top: 0;
}