Commit awal: prototipe UI SIAKAD Untan

This commit is contained in:
Ariyutta
2026-10-24 11:45:32 +07:00
commit d9b9cb5c0f
477 changed files with 51958 additions and 0 deletions
+127
View File
@@ -0,0 +1,127 @@
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html {
color-scheme: light;
background: var(--color-canvas-2);
scrollbar-color: var(--color-edge) var(--color-canvas-3);
scroll-padding-top: calc(var(--topbar-h) + var(--space-xl));
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body {
position: relative;
isolation: isolate;
min-height: 100dvh;
margin: 0;
color: var(--color-ink);
font-family: var(--font-body);
font-size: var(--text-md);
line-height: 1.55;
font-synthesis: none;
-webkit-font-smoothing: antialiased;
caret-color: var(--color-accent);
}
/* Kanvas: gradien linear marun ke biru tinta, dua panel kaca miring bertepi tegas, garis kisi tipis seperti kertas buku besar.
Hanya gradien linear: tidak ada lingkaran cahaya di belakang kaca. */
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
background:
linear-gradient(112deg, transparent 0 56%, var(--color-pane) 56% 78%, transparent 78%),
linear-gradient(112deg, transparent 0 22%, var(--color-pane-2) 22% 36%, transparent 36%),
linear-gradient(var(--color-grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
linear-gradient(158deg, var(--color-canvas-1) 0%, var(--color-canvas-2) 48%, var(--color-canvas-3) 100%);
}
/* Garis emas tipis di tepi atas halaman: penanda lambang, bukan cahaya */
body::after {
content: "";
position: fixed;
inset: 0 0 auto 0;
z-index: 0;
height: 3px;
pointer-events: none;
background: linear-gradient(90deg, var(--color-accent) 0 33%, var(--color-gold) 33% 66%, var(--color-canvas-3) 66%);
}
::selection {
background: color-mix(in oklab, var(--color-gold) 55%, transparent);
color: var(--color-ink);
}
:focus-visible {
outline: 2px solid var(--color-focus);
outline-offset: 2px;
}
.on-dark :focus-visible,
.glass-dark :focus-visible,
.auth__hero :focus-visible { outline-color: var(--color-focus-dark); }
a {
color: inherit;
text-decoration-thickness: 1px;
text-underline-offset: 0.16em;
}
h1, h2, h3, h4 {
margin: 0;
font-family: var(--font-display);
font-weight: 500;
font-synthesis: none;
letter-spacing: var(--tracking-display);
overflow-wrap: break-word;
min-width: 0;
text-wrap: balance;
}
h1 { font-size: var(--text-2xl); line-height: 1.15; }
h2 { font-size: var(--text-xl); line-height: 1.25; }
h3 { font-size: var(--text-lg); line-height: 1.3; }
@media (width >= 40rem) {
h1 { font-size: var(--text-3xl); }
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
/* Elemen khusus JS hanya tampil bila skrip jalan (kelas .js dipasang di <html>) */
.js-only { display: none; }
.js .js-only { display: revert; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
+162
View File
@@ -0,0 +1,162 @@
/* Token template HTML statis SIAKAD Untan. Semua warna, font, bentuk, bayangan dan gerak ada di blok ini.
Kanvas gelap berlapis (marun, kirmizi, biru tinta) supaya kaca terang punya sesuatu untuk dikaburkan. */
@theme static {
--color-*: initial;
/* Kanvas: gradien linear marun ke biru tinta; tanpa lingkaran cahaya di belakang kaca */
--color-canvas-1: oklch(27% 0.115 24);
--color-canvas-2: oklch(23% 0.075 12);
--color-canvas-3: oklch(21% 0.06 262);
--color-pane: oklch(100% 0 0 / 0.05);
--color-pane-2: oklch(100% 0 0 / 0.035);
--color-grid-line: oklch(100% 0 0 / 0.045);
--color-canvas-gold: oklch(82% 0.155 85 / 0.55);
--color-on-canvas: oklch(97.5% 0.008 250);
--color-on-canvas-2: oklch(87% 0.02 250);
/* Kaca terang (konten) dan kaca gelap (sidebar) */
--color-glass: oklch(98.6% 0.006 250 / 0.82);
--color-glass-strong: oklch(98.8% 0.005 250 / 0.9);
--color-glass-dark: oklch(18% 0.045 262 / 0.68);
--color-glass-fallback: oklch(99% 0.004 250 / 0.97);
--color-glass-dark-fallback: oklch(19% 0.04 262 / 0.97);
--color-scrim: oklch(15% 0.04 262 / 0.55);
/* Permukaan solid dan tinta */
--color-surface: oklch(99.2% 0.004 250);
--color-surface-2: oklch(96.4% 0.01 250);
--color-surface-3: oklch(92.5% 0.016 250);
--color-ink: oklch(21% 0.025 262);
--color-ink-2: oklch(34% 0.025 262);
--color-muted: oklch(42% 0.025 262);
--color-edge: oklch(58% 0.025 262);
--color-rule: oklch(86% 0.014 255);
--color-rule-strong: oklch(78% 0.02 255);
/* Tinta di atas kaca gelap */
--color-nav-ink: oklch(97% 0.008 250);
--color-nav-muted: oklch(82% 0.02 255);
--color-nav-rule: oklch(100% 0 0 / 0.14);
--color-nav-hover: oklch(100% 0 0 / 0.09);
--color-nav-active: oklch(100% 0 0 / 0.16);
/* Satu aksen: merah tua Untan */
--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);
--color-focus-dark: oklch(86% 0.13 85);
/* Warna lambang: hanya tanda dekoratif */
--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-warning: oklch(42% 0.1 70);
--color-warning-soft: oklch(95% 0.06 90);
--color-danger: oklch(46% 0.19 25);
--color-danger-soft: oklch(95% 0.03 25);
--color-info: oklch(41% 0.12 255);
--color-info-soft: oklch(94.5% 0.03 250);
/* Grafik: empat warna yang tetap terbedakan pada kaca terang */
--color-chart-1: oklch(48% 0.19 27);
--color-chart-2: oklch(40% 0.12 262);
--color-chart-3: oklch(70% 0.14 80);
--color-chart-4: oklch(52% 0.1 175);
--color-chart-track: oklch(90% 0.012 255);
/* Huruf: dihosting sendiri lewat @fontsource */
--font-display: "Newsreader Variable", ui-serif, Georgia, "Times New Roman", serif;
--font-body: "Hanken Grotesk Variable", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
--font-sans: var(--font-body);
--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.08;
--tracking-display: -0.012em;
--radius-*: initial;
--radius-card: 1.25rem;
--radius-inner: 0.875rem;
--radius-control: 0.625rem;
--radius-pill: 999px;
--shadow-*: initial;
--shadow-glass: 0 1px 2px oklch(14% 0.05 20 / 0.18), 0 22px 48px -22px oklch(10% 0.06 20 / 0.6);
--shadow-raised: 0 1px 2px oklch(25% 0.05 27 / 0.3);
--shadow-pop: 0 2px 6px oklch(14% 0.05 262 / 0.16), 0 24px 48px -16px oklch(14% 0.05 262 / 0.42);
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--ease-in: cubic-bezier(0.7, 0, 0.84, 0);
--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;
--dur-micro: 120ms;
--dur-short: 220ms;
--dur-long: 420ms;
--z-sticky: 200;
--z-dropdown: 300;
--z-drawer: 400;
--z-modal: 500;
--z-toast: 600;
/* Kaca: kabur, kejenuhan, tepi atas bercahaya, cincin tipis */
--glass-blur: 24px;
--glass-saturate: 1.6;
--glass-edge: inset 0 1px 0 oklch(100% 0 0 / 0.9);
--glass-ring: 0 0 0 1px oklch(100% 0 0 / 0.35);
--glass-edge-dark: inset 0 1px 0 oklch(100% 0 0 / 0.22);
--glass-ring-dark: 0 0 0 1px oklch(100% 0 0 / 0.1);
--container: 96rem;
--gutter: 1rem;
--sidebar-w: 17.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; }
}