Chore/architecture refactoring #42

Merged
ilia merged 29 commits from chore/architecture-refactoring into main 2026-05-25 08:43:07 +00:00
2 changed files with 23 additions and 3 deletions
Showing only changes of commit 4126275c4d - Show all commits
+21
View File
@@ -19,6 +19,7 @@
--color-border-subtle: var(--neutral-300); --color-border-subtle: var(--neutral-300);
--color-text-subtle: var(--neutral-500); --color-text-subtle: var(--neutral-500);
--color-skeleton: var(--neutral-200); --color-skeleton: var(--neutral-200);
--color-grid-line: rgb(0 0 0 / 0.03);
/* Neutral Grays */ /* Neutral Grays */
--neutral-50: #fafafa; --neutral-50: #fafafa;
@@ -114,6 +115,7 @@
--color-border-subtle: rgb(255 255 255 / 0.1); --color-border-subtle: rgb(255 255 255 / 0.1);
--color-text-subtle: var(--neutral-400); --color-text-subtle: var(--neutral-400);
--color-skeleton: var(--neutral-800); --color-skeleton: var(--neutral-800);
--color-grid-line: rgb(255 255 255 / 0.05);
--background: oklch(0.145 0 0); --background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0); --foreground: oklch(0.985 0 0);
@@ -401,6 +403,25 @@
background-color: color-mix(in srgb, var(--color-skeleton) 70%, transparent); background-color: color-mix(in srgb, var(--color-skeleton) 70%, transparent);
} }
/* Subtle dotted-grid overlay used as a decorative background on the
comparison paper surface. Color and intensity auto-switch via
--color-grid-line. `bg-grid-sm` uses a tighter cell — typical mobile
choice; `bg-grid` is the default desktop cell. Pair with absolute /
pointer-events-none on the overlay element. */
@utility bg-grid {
background-image:
linear-gradient(var(--color-grid-line) 1px, transparent 1px),
linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px);
background-size: 20px 20px;
}
@utility bg-grid-sm {
background-image:
linear-gradient(var(--color-grid-line) 1px, transparent 1px),
linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px);
background-size: 10px 10px;
}
/* ── Typography ───────────────────────────────────────────────── */ /* ── Typography ───────────────────────────────────────────────── */
@utility text-label-mono { @utility text-label-mono {
@@ -288,10 +288,9 @@ $effect(() => {
'shadow-floating-panel dark:shadow-floating-panel-dark', 'shadow-floating-panel dark:shadow-floating-panel-dark',
)} )}
> >
<!-- Subtle grid overlay — pointer-events-none, very low opacity --> <!-- Subtle dotted-grid overlay — purely decorative. -->
<div <div
class="absolute inset-0 pointer-events-none opacity-[0.03] dark:opacity-[0.05] text-swiss-black dark:text-swiss-white" class="absolute inset-0 pointer-events-none bg-grid-sm md:bg-grid"
style={gridStyle}
aria-hidden="true" aria-hidden="true"
> >
</div> </div>