- Translated comments from Spanish to English in vite.config.ts, docker-compose.yml, attendance-risk.ts, analytics.ts, attendance.ts, attendees.ts, enums.ts, groups.ts, and onboarding.ts. - Improved descriptions for better understanding of code functionality and purpose. - Ensured uniformity in terminology and phrasing throughout the codebase.
225 lines
7.8 KiB
CSS
225 lines
7.8 KiB
CSS
@import "tailwindcss";
|
|
|
|
/* Self-hosted Inter variable. We declare only latin and latin-ext by hand
|
|
instead of importing @fontsource's wght.css: that one brings all 7 subsets
|
|
and the service worker precaches everything emitted, almost 1 MB that never
|
|
gets downloaded. The .woff2 file does come from the package, hashed with an
|
|
immutable cache. */
|
|
@font-face {
|
|
font-family: "Inter Variable";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 900;
|
|
src: url("@fontsource-variable/inter/files/inter-latin-wght-normal.woff2") format("woff2-variations");
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Inter Variable";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 900;
|
|
src: url("@fontsource-variable/inter/files/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
|
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
}
|
|
|
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
|
|
@theme inline {
|
|
/* Brand scale (fixed identity, same as the landing) */
|
|
--color-brand-50: var(--brand-50);
|
|
--color-brand-100: var(--brand-100);
|
|
--color-brand-200: var(--brand-200);
|
|
--color-brand-300: var(--brand-300);
|
|
--color-brand-400: var(--brand-400);
|
|
--color-brand-500: var(--brand-500);
|
|
--color-brand-600: var(--brand-600);
|
|
--color-brand-700: var(--brand-700);
|
|
--color-brand-800: var(--brand-800);
|
|
--color-brand-900: var(--brand-900);
|
|
--color-brand-950: var(--brand-950);
|
|
|
|
/* Colors sampled from the logo mark */
|
|
--color-brand-night: var(--brand-night);
|
|
--color-brand-celeste: var(--brand-celeste);
|
|
--color-brand-cloud: var(--brand-cloud);
|
|
|
|
/* Semantic tokens (switch with the light/dark theme) */
|
|
--color-background: var(--background);
|
|
--color-surface: var(--surface);
|
|
--color-primary: var(--primary);
|
|
--color-primary-soft: var(--primary-soft);
|
|
--color-foreground: var(--foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-accent: var(--accent);
|
|
--color-accent-strong: var(--accent-strong);
|
|
--color-accent-soft: var(--accent-soft);
|
|
--color-accent-fg: var(--accent-fg);
|
|
--color-border: var(--border);
|
|
--color-on-accent: var(--on-accent);
|
|
--color-overlay: var(--overlay);
|
|
--color-success: var(--success);
|
|
--color-success-soft: var(--success-soft);
|
|
--color-warning: var(--warning);
|
|
--color-warning-soft: var(--warning-soft);
|
|
--color-warning-strong: var(--warning-strong);
|
|
--color-warning-strong-soft: var(--warning-strong-soft);
|
|
--color-danger: var(--danger);
|
|
--color-danger-soft: var(--danger-soft);
|
|
--color-danger-fg: var(--danger-fg);
|
|
--color-attendance-high: var(--attendance-high);
|
|
--color-attendance-attention: var(--attendance-attention);
|
|
--color-attendance-ok: var(--attendance-ok);
|
|
|
|
/* Default border radius */
|
|
--radius-xl: 0.75rem;
|
|
|
|
/* Typography (same as the landing) */
|
|
/* @fontsource-variable/inter registers the family as "Inter Variable" */
|
|
--font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
|
|
|
|
/* Animations */
|
|
--animate-fade-in: fade-in 0.2s ease-out;
|
|
--animate-step-enter: step-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
|
|
@keyframes fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes step-enter {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(1.5rem);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
}
|
|
|
|
:root {
|
|
color-scheme: light;
|
|
|
|
/* Brand scale */
|
|
--brand-50: #eef4ff;
|
|
--brand-100: #dbe6fe;
|
|
--brand-200: #bfd3fe;
|
|
--brand-300: #93b4fd;
|
|
--brand-400: #608afa;
|
|
--brand-500: #3b63f5;
|
|
--brand-600: #2544ea;
|
|
--brand-700: #1d33d8;
|
|
--brand-800: #1e2cb0;
|
|
--brand-900: #1e2b8b;
|
|
--brand-950: #171d54;
|
|
--brand-night: #171d54;
|
|
--brand-celeste: #93b4fd;
|
|
--brand-cloud: #eef4ff;
|
|
|
|
/* Light theme */
|
|
--background: #ffffff;
|
|
--surface: #ffffff;
|
|
--primary: #0f172a;
|
|
--primary-soft: #f1f5f9;
|
|
--foreground: #475569;
|
|
/* Secondary text on soft surfaces (cards). In the light theme the
|
|
`foreground` gray already scores 6.9:1 on `primary-soft` and 7.6:1 on
|
|
`background`, so there's nothing to move here: same value, same contract.
|
|
The token exists anyway so "secondary" is a name and not a color
|
|
coincidence. */
|
|
--secondary: #475569;
|
|
--accent: #2544ea;
|
|
--accent-strong: #1d33d8;
|
|
--accent-soft: #eef4ff;
|
|
--accent-fg: #2544ea;
|
|
--border: #e2e8f0;
|
|
--on-accent: #ffffff;
|
|
--overlay: rgb(0 0 0 / 0.2);
|
|
--success: #059669;
|
|
--success-soft: #ecfdf5;
|
|
--warning: #b45309;
|
|
--warning-soft: #fffbeb;
|
|
/* Orange: severity step for the same alert family (attendance and capacity
|
|
warnings). It scores 4.9:1 on `warning-strong-soft` and 4.4:1 on the card,
|
|
so it works for text and for a subtle border. */
|
|
--warning-strong: #c2410c;
|
|
--warning-strong-soft: #fff7ed;
|
|
--danger: #f43f5e;
|
|
--danger-soft: #fff1f2;
|
|
/* Red legible as TEXT. In the light theme `--danger` scores 3.35:1 on the
|
|
card, so as text it misses AA's 4.5:1 (it does work as a fill, where the
|
|
minimum is 3:1). Same pattern as `accent` / `accent-fg`: one color for
|
|
large surfaces and a legible version of it for labels. This #be123c scores
|
|
5.74:1 on the card and 5.72:1 on `danger-soft`. */
|
|
--danger-fg: #be123c;
|
|
--attendance-high: #d63b3b;
|
|
--attendance-attention: #f5a623;
|
|
--attendance-ok: #2b7bd6;
|
|
}
|
|
|
|
.dark {
|
|
color-scheme: dark;
|
|
|
|
/* Dark theme (slate/brand palette from the landing) */
|
|
--background: #020617;
|
|
--surface: #0f172a;
|
|
--primary: #f1f5f9;
|
|
--primary-soft: #1e293b;
|
|
--foreground: #94a3b8;
|
|
/* Secondary goes one step up from `foreground`: 7.1:1 on the card (#1e293b)
|
|
and 9.8:1 on the background, against 5.7:1 for the previous gray. The step
|
|
matters on soft surfaces, which are what dominates list cards: supporting
|
|
text there is what gets lost the most. */
|
|
--secondary: #a8b6c8;
|
|
--accent: #2544ea;
|
|
--accent-strong: #1d33d8;
|
|
--accent-soft: color-mix(in srgb, var(--brand-500) 15%, transparent);
|
|
--accent-fg: #93b4fd;
|
|
--border: #1e293b;
|
|
--on-accent: #ffffff;
|
|
--overlay: rgb(0 0 0 / 0.4);
|
|
--success: #34d399;
|
|
--success-soft: color-mix(in srgb, var(--success) 15%, transparent);
|
|
--warning: #fcd34d;
|
|
--warning-soft: color-mix(in srgb, var(--warning) 15%, transparent);
|
|
/* In dark the "orange" has to gain lightness to reach the same contrast as
|
|
its light version: #fb923c scores 4.7:1 on the badge's translucent
|
|
background, against 4.1:1 for the #f97316 of the standard palette. */
|
|
--warning-strong: #fb923c;
|
|
--warning-strong-soft: color-mix(in srgb, var(--warning-strong) 18%, transparent);
|
|
--danger: #fb7185;
|
|
--danger-soft: color-mix(in srgb, var(--danger) 15%, transparent);
|
|
/* In dark `#fb7185` already scores 5.44:1 on the card: legible as text and
|
|
more than enough as a fill, so there's nothing to move here. */
|
|
--danger-fg: var(--danger);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border;
|
|
}
|
|
|
|
body {
|
|
@apply bg-background text-primary antialiased transition-colors;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
/* iOS (Safari and standalone) auto-zooms when a form control with font-size
|
|
< 16px is focused, and on keyboard close it doesn't restore the scale:
|
|
the app is left zoomed in. `Input` already goes to 16px on mobile
|
|
(`text-base sm:text-sm`); this is the safety net for textareas, selects or
|
|
raw inputs added later.
|
|
The 639px matches Tailwind's `sm` breakpoint. The `!important` is on
|
|
purpose: without it a `text-sm` class on a future input would win on
|
|
specificity and reintroduce the bug without warning. */
|
|
@media (max-width: 639px) {
|
|
input,
|
|
textarea,
|
|
select {
|
|
font-size: 16px !important;
|
|
}
|
|
}
|
|
}
|