166 lines
5.1 KiB
CSS
166 lines
5.1 KiB
CSS
/* Semua warna, font, ukuran huruf, radius, bayangan dan gerak lewat token di sini (Tailwind v4 @theme + :root).
|
|
Kontras setiap pasangan teks/permukaan dicatat di docs/design-system.md. */
|
|
|
|
@theme static {
|
|
--color-*: initial;
|
|
|
|
/* Kanvas: porselen sejuk dengan lapisan warna tipis supaya kaca punya sesuatu untuk dikaburkan */
|
|
--color-paper: oklch(97.4% 0.008 250);
|
|
--color-paper-2: oklch(94.5% 0.016 248);
|
|
--color-paper-3: oklch(89.5% 0.028 244);
|
|
--color-wash: oklch(93.5% 0.035 22);
|
|
--color-wash-2: oklch(94.5% 0.04 92);
|
|
|
|
/* Permukaan: kaca (tembus pandang) dan padanan solidnya */
|
|
--color-surface: oklch(99% 0.004 250);
|
|
--color-glass: oklch(99.4% 0.004 250 / 0.62);
|
|
--color-glass-strong: oklch(99.4% 0.004 250 / 0.8);
|
|
--color-glass-fallback: oklch(99% 0.004 250 / 0.96);
|
|
--color-scrim: oklch(24% 0.03 250 / 0.38);
|
|
|
|
/* Tinta (hangat, dari lambang) dan garis */
|
|
--color-ink: oklch(21% 0.012 25);
|
|
--color-ink-2: oklch(36% 0.014 25);
|
|
--color-muted: oklch(47% 0.014 250);
|
|
--color-edge: oklch(60% 0.016 250);
|
|
--color-rule: oklch(87% 0.012 250);
|
|
|
|
/* Satu aksen: merah tua Untan untuk aksi utama dan penanda halaman aktif */
|
|
--color-accent: oklch(48% 0.19 27);
|
|
--color-accent-hi: oklch(43% 0.18 27);
|
|
--color-accent-lo: oklch(39% 0.16 27);
|
|
--color-accent-ink: oklch(99% 0.004 25);
|
|
--color-accent-soft: oklch(94% 0.032 25);
|
|
--color-accent-text: oklch(41% 0.17 27);
|
|
--color-focus: oklch(50% 0.2 27);
|
|
|
|
/* Teks di atas warna data pengguna (warna jenis kegiatan): hitam atau putih murni, sama di tema terang dan gelap.
|
|
Dipilih per warna lewat luminansi (AcademicCalendar) sehingga kontrasnya minimal sekitar 4,6:1. */
|
|
--color-on-swatch-dark: oklch(0% 0 0);
|
|
--color-on-swatch-light: oklch(100% 0 0);
|
|
|
|
/* Aurora: warna lapisan latar agar kaca punya sesuatu untuk dikaburkan */
|
|
--color-aurora-rose: oklch(87% 0.09 18);
|
|
--color-aurora-amber: oklch(92% 0.1 88);
|
|
--color-aurora-sky: oklch(89% 0.07 235);
|
|
--color-aurora-violet: oklch(88% 0.08 295);
|
|
--color-accent-2: oklch(41% 0.19 8);
|
|
--color-info: oklch(45% 0.13 250);
|
|
--color-info-soft: oklch(94.5% 0.035 250);
|
|
--color-violet: oklch(45% 0.15 300);
|
|
--color-violet-soft: oklch(94.5% 0.04 300);
|
|
|
|
/* Warna lambang: hanya untuk tanda dekoratif, tidak pernah untuk teks */
|
|
--color-brand-red: oklch(59.5% 0.225 27);
|
|
--color-gold: oklch(82% 0.155 85);
|
|
--color-gold-soft: oklch(94.5% 0.06 95);
|
|
--color-gold-ink: oklch(36% 0.07 75);
|
|
|
|
/* Status */
|
|
--color-success: oklch(42% 0.11 155);
|
|
--color-success-soft: oklch(94.5% 0.04 155);
|
|
--color-error: oklch(46% 0.19 25);
|
|
--color-error-soft: oklch(95% 0.03 25);
|
|
|
|
/* Huruf: dua keluarga, dihosting sendiri lewat @fontsource */
|
|
--font-display: "Plus Jakarta Sans Variable", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
|
|
--font-body: "Hanken Grotesk Variable", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
|
|
--font-sans: var(--font-body);
|
|
|
|
/* Skala huruf tetap, rasio 1.2 dari 16px */
|
|
--text-*: initial;
|
|
--text-xs: 0.75rem;
|
|
--text-xs--line-height: 1.4;
|
|
--text-sm: 0.875rem;
|
|
--text-sm--line-height: 1.45;
|
|
--text-md: 1rem;
|
|
--text-md--line-height: 1.55;
|
|
--text-lg: 1.2rem;
|
|
--text-lg--line-height: 1.45;
|
|
--text-xl: 1.44rem;
|
|
--text-xl--line-height: 1.3;
|
|
--text-2xl: 1.728rem;
|
|
--text-2xl--line-height: 1.2;
|
|
--text-3xl: 2.074rem;
|
|
--text-3xl--line-height: 1.15;
|
|
--text-hero: 2.986rem;
|
|
--text-hero--line-height: 1.1;
|
|
--text-display-s: 1.728rem;
|
|
--text-display: 2.074rem;
|
|
--text-section: 1.44rem;
|
|
--text-title: 1.2rem;
|
|
--text-lead: 1.2rem;
|
|
--tracking-display: -0.012em;
|
|
|
|
/* Bentuk */
|
|
--radius-*: initial;
|
|
--radius-card: 1rem;
|
|
--radius-inner: 0.75rem;
|
|
--radius-control: 0.5rem;
|
|
--radius-pill: 999px;
|
|
|
|
/* Bayangan: satu bayangan kaca berlapis dan satu bayangan tombol */
|
|
--shadow-*: initial;
|
|
--shadow-glass: 0 1px 2px oklch(30% 0.04 250 / 0.06), 0 14px 36px -14px oklch(30% 0.05 250 / 0.22);
|
|
--shadow-raised: 0 1px 2px oklch(25% 0.05 27 / 0.28);
|
|
|
|
/* Gerak */
|
|
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
--ease-in: cubic-bezier(0.7, 0, 0.84, 0);
|
|
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
|
|
/* Titik henti: satu untuk tata letak (60rem), satu untuk huruf (40rem) */
|
|
--breakpoint-*: initial;
|
|
--breakpoint-sm: 40rem;
|
|
--breakpoint-md: 60rem;
|
|
--breakpoint-xl: 90rem;
|
|
}
|
|
|
|
:root {
|
|
--space-3xs: 2px;
|
|
--space-2xs: 4px;
|
|
--space-xs: 8px;
|
|
--space-sm: 12px;
|
|
--space-md: 16px;
|
|
--space-lg: 24px;
|
|
--space-xl: 40px;
|
|
--space-2xl: 64px;
|
|
--space-3xl: 96px;
|
|
--space-4xl: 144px;
|
|
|
|
--dur-micro: 120ms;
|
|
--dur-short: 220ms;
|
|
--dur-long: 420ms;
|
|
|
|
--z-base: 1;
|
|
--z-raised: 10;
|
|
--z-dropdown: 100;
|
|
--z-sticky: 200;
|
|
--z-sticky-nav: 300;
|
|
--z-modal: 400;
|
|
--z-toast: 500;
|
|
--z-tooltip: 600;
|
|
|
|
/* Kaca: kabur, kejenuhan, tepi bercahaya, cincin tipis */
|
|
--glass-blur: 22px;
|
|
--glass-saturate: 1.5;
|
|
--glass-edge: inset 0 1px 0 oklch(99.8% 0.002 250 / 0.95);
|
|
--glass-ring: 0 0 0 1px oklch(42% 0.03 250 / 0.1);
|
|
|
|
/* Tata letak */
|
|
--container: 95rem;
|
|
--gutter: 1rem;
|
|
--sidebar-w: 19.5rem;
|
|
--topbar-h: 3.5rem;
|
|
--control-h: 2.75rem;
|
|
--rule-hair: 1px;
|
|
}
|
|
|
|
@media (width >= 40rem) {
|
|
:root { --gutter: 1.5rem; }
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
:root { --control-h: 3rem; }
|
|
}
|