From be8fd7e766a6a189f756f02fa6e076722435212d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 28 Aug 2026 21:53:14 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(web):=20two=20skins=20learn=20?= =?UTF-8?q?their=20manners=20=E2=80=94=20instrument=20rules,=20ledger=20br?= =?UTF-8?q?eathes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style/_instrument.scss | 171 ++++++++++++++++++++++++++++- style/_ledger.scss | 241 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 407 insertions(+), 5 deletions(-) diff --git a/style/_instrument.scss b/style/_instrument.scss index 850fe5e..094d8c8 100644 --- a/style/_instrument.scss +++ b/style/_instrument.scss @@ -1,9 +1,174 @@ // Instrument UI skin — dense, neutral-cool, chrome-quiet. Tokens live in // main.scss; skin-specific overrides and component rules for // [data-ui="instrument"] land here. +// +// Cascade note: this file is `@use`d at the TOP of main.scss, before every +// component rule, so any override must out-specify its base rule rather than +// rely on source order. Everything below sits inside the wrapper block, which +// adds one attribute selector (0,1,0) to every rule. -// --- Instrument skin: chrome (topbar, wordmark, nav) ------------------------- +[data-ui="instrument"] { -// --- Instrument skin: fields & controls -------------------------------------- + // --- Instrument skin: chrome (topbar, wordmark, nav) ----------------------- -// --- Instrument skin: density & spacing -------------------------------------- + // 44px chrome strip. Pairs with the .board-stage min-height below, which + // re-derives its calc from these two literals. + .topbar { + height: 44px; + } + + .filterbar { + height: 40px; + } + + .board-stage { + min-height: calc(100vh - 44px - 40px); + } + + // Wordmark and board name read as engraved panel labels: mono, uppercase, + // tracked wide. + .wordmark-text { + font-family: var(--font-mono); + font-size: 13px; + font-weight: 700; + letter-spacing: 0.12em; + text-transform: uppercase; + } + + .board-name { + font-family: var(--font-mono); + font-size: 11px; + font-weight: 600; + letter-spacing: 0.12em; + text-transform: uppercase; + } + + // Active nav underlines in accent, not ink. + .topbar-nav-on { + box-shadow: inset 0 -2px 0 var(--accent); + } + + // --- Instrument skin: board (ruled columns) -------------------------------- + + // Columns are not floating wells; they are panels separated by hairline + // rules. Cards keep surface/1px border/radius-3/no-shadow — the instrument + // tokens already supply all four, so .card itself needs no override. + .board-columns { + gap: 0; + } + + .column { + background: transparent; + border-right: 1px solid var(--border); + + &:last-child { + border-right: none; + } + } + + // --- Instrument skin: chips (status LEDs) ---------------------------------- + + // Tint fills go away; a chip is its colored text plus a 6px LED square. + // Per-variant colors (.chip-overdue etc.) survive untouched — this rule + // never declares `color`. + .chip { + background: transparent; + font-family: var(--font-mono); + font-size: 10px; + font-weight: 500; + letter-spacing: 0.08em; + text-transform: uppercase; + + &::before { + content: ""; + width: 6px; + height: 6px; + margin-right: 6px; + flex: none; + background: currentColor; + } + } + + // --- Instrument skin: avatars (squares) ------------------------------------ + + // Circles become 18px squares; the 2px overlap ring is gone, so assignees + // butt closer. 2px is intentional (below the 3px radius token) — squares + // must not read as chips. + .avatar { + width: 18px; + height: 18px; + border-radius: 2px; + border: none; + } + + .avatar + .avatar { + margin-left: -4px; + } + + // Keep the empty-assignee slot's dashed outline, which the border: none + // above would otherwise silence. + .avatar-none { + border: 1px dashed var(--border-strong); + background: transparent; + } + + // --- Instrument skin: fields & controls ------------------------------------- + + // The primary action is an outlined target, not a filled one. + .primary { + background: transparent; + border: 1px solid var(--accent-border); + color: var(--accent); + + &:hover { + background: transparent; + border-color: var(--accent); + color: var(--accent); + } + } + + // Quiet stays outline-muted; only the fill drops so fields and buttons + // share one flat ground. + .quiet { + background: transparent; + } + + // --- Instrument skin: mono metadata idiom ----------------------------------- + + // Timestamps, card meta and member statuses join .field-label/.detail-label + // in tracked uppercase mono. (Emails stay sentence-case — .member-address + // keeps its mono but gains no uppercase; uppercase addresses hurt reading.) + .comment-when { + font-size: 10px; + letter-spacing: 0.08em; + text-transform: uppercase; + } + + .card-comments, + .card-deadline { + letter-spacing: 0.08em; + text-transform: uppercase; + } + + .member-status { + font-family: var(--font-mono); + font-size: 10px; + letter-spacing: 0.08em; + text-transform: uppercase; + } + + .member-you { + font-family: var(--font-mono); + font-size: 10px; + letter-spacing: 0.08em; + text-transform: uppercase; + border-radius: var(--radius-sm); + } + + // --- Instrument skin: density & spacing -------------------------------------- + + // (Deliberately sparse: density lives in the chrome heights, the gapless + // ruled columns and the square avatars above. Token values — control + // heights, radii, shadows — already carry the rest.) + +} diff --git a/style/_ledger.scss b/style/_ledger.scss index 5adeca7..8ef79e0 100644 --- a/style/_ledger.scss +++ b/style/_ledger.scss @@ -2,6 +2,243 @@ // Tokens live in main.scss; skin-specific overrides and component rules for // [data-ui="ledger"] land here. -// --- Ledger skin: paper & typography ----------------------------------------- +// Every selector carries the [data-ui="ledger"] prefix (one nested block +// below). That attribute+class specificity outranks the same-name class +// rules in main.scss, so the order of the @use never matters. -// --- Ledger skin: rules & ornaments ------------------------------------------ +[data-ui="ledger"] { + // --- Ledger skin: typography ------------------------------------------------- + + // The display face carries named things: the wordmark, page/board/panel + // titles, task titles, people. Keys, dates, counts and labels stay IBM + // Plex Mono 10px uppercase — main.scss's metadata idiom is left alone. + .wordmark-text { + font-family: var(--font-display); + font-size: 21px; + font-weight: 600; + } + + .board-name { + font-family: var(--font-display); + font-size: 15px; + } + + .auth-title, + .settings-title, + .detail-title, + .title-input, + .panel-title, + .column-name, + .card-title, + .member-name { + font-family: var(--font-display); + } + + .settings-title { font-size: 22px; } + .panel-title { font-size: 15px; } + .card-title { font-size: 14px; } + + // --- Ledger skin: rules & ornaments (no boxes) ------------------------------- + + // Panels and cards give up their chrome: the paper itself is the surface + // and a hairline separates entries. Section heads sit on a 2px ink rule. + .panel { + background: transparent; + border: none; + box-shadow: none; + } + + .panel-head { + border-bottom: 2px solid var(--rule-strong); + padding: 0 0 10px; + } + + .auth-card { + background: transparent; + border: none; + box-shadow: none; + padding: 0; + } + + .column { + background: transparent; + border-radius: 0; + } + + .column-empty { + background: transparent; + border-color: var(--border-soft); + } + + .column-head { + padding: 2px 4px 8px; + border-bottom: 2px solid var(--rule-strong); + } + + // A card is an entry in the ledger: no box, a hairline under it, and the + // hover darkens that rule instead of flooding a background. + .card { + background: transparent; + border: none; + border-bottom: 1px solid var(--border); + border-radius: 0; + box-shadow: none; + padding: 10px 2px; + transition: border-color var(--dur-fast) var(--ease); + + &:hover { + background: transparent; + border-bottom-color: var(--rule-strong); + } + } + + .card-done { + background: transparent; + + .card-title { text-decoration: line-through; } + } + + .rule-row { + background: transparent; + border: none; + border-bottom: 1px solid var(--border); + border-radius: 0; + padding: 14px 2px; + + &-off { background: transparent; } + } + + // --- Ledger skin: baseline header -------------------------------------------- + + .topbar { + background: transparent; + border-bottom: 1px solid var(--rule-strong); + } + + .topbar-nav-on { box-shadow: inset 0 -2px 0 var(--rule-strong); } + + // --- Ledger skin: chips as inked text ---------------------------------------- + + .chip { + display: inline-flex; + align-items: baseline; + height: auto; + padding: 0; + background: transparent; + border: none; + border-bottom: 1px dotted currentColor; + border-radius: 0; + font-family: var(--font-mono); + font-size: 10px; + font-weight: 500; + letter-spacing: 0.08em; + text-transform: uppercase; + + // The tint fills and boxes go; the hue stays on as the ink color. + &-overdue, + &-blocked, + &-role, + &-admin, + &-connected, + &-off { background: transparent; } + + &-role, + &-admin { border: none; border-bottom: 1px dotted currentColor; } + + &-role, + &-admin, + &-connected, + &-off { text-transform: uppercase; } + } + + // --- Ledger skin: controls ----------------------------------------------------- + + // Outlined-ink controls; the primary action is set in solid ink with paper + // text, inverting cleanly in the dark set because both sides are tokens. + .primary { + background: var(--ink); + border-color: var(--ink); + color: var(--bg); + + &:hover { + background: var(--ink-soft); + border-color: var(--ink-soft); + color: var(--bg); + } + } + + .auth-submit, + .edit-save, + .comment-post { + background: var(--ink); + color: var(--bg); + } + + .auth-submit:hover, + .edit-save:hover, + .comment-post:hover { + background: var(--ink-soft); + } + + .quiet { + background: transparent; + border-color: var(--ink-soft); + + &:hover { + border-color: var(--ink); + color: var(--ink); + } + } + + .quiet-danger { + border-color: var(--danger); + + &:hover { + border-color: var(--danger); + background: transparent; + } + } + + .detail-delete { + background: transparent; + border-color: var(--danger); + } + + // Fields rule themselves onto the paper: transparent ground, ink outline. + .auth-input, + .field-input, + .title-input { + background: transparent; + border-color: var(--ink-soft); + + &:focus-visible { + background: transparent; + border-color: var(--ink); + } + + &:disabled { background: transparent; } + } + + .auth-locked, + .field-box, + .status-form { + background: transparent; + border-color: var(--ink-soft); + } + + // --- Ledger skin: toggles ------------------------------------------------------ + + // The switch becomes what a mark is on paper: an empty ink square when + // off, a filled one when on. The knob has no role here. + .rule-switch { + width: 14px; + height: 14px; + border: 1px solid var(--ink); + border-radius: 0; + background: transparent; + + .rule-switch-knob { display: none; } + } + + .rule-switch-on { background: var(--ink); } +}