forge
Explore
Log in

Don't you dare go Hollow

Two skins learn their manners — instrument rules, ledger breathes

Browse files at this commit

be8fd7e766a6a189f756f02fa6e076722435212dAhmet Kaan GümüşParent: dce3af0
  • feat
    • two skins learn their manners — instrument rules, ledger breathes
Show full message
✨ feat(web): two skins learn their manners — instrument rules, ledger breathes
style/_instrument.scssmodified+168 -3
@@ -1,9 +1,174 @@
1 // Instrument UI skin — dense, neutral-cool, chrome-quiet. Tokens live in1 // Instrument UI skin — dense, neutral-cool, chrome-quiet. Tokens live in
2 // main.scss; skin-specific overrides and component rules for2 // main.scss; skin-specific overrides and component rules for
3 // [data-ui="instrument"] land here.3 // [data-ui="instrument"] land here.
4+//
5+// Cascade note: this file is `@use`d at the TOP of main.scss, before every
6+// component rule, so any override must out-specify its base rule rather than
7+// rely on source order. Everything below sits inside the wrapper block, which
8+// adds one attribute selector (0,1,0) to every rule.
4 9
5-// --- Instrument skin: chrome (topbar, wordmark, nav) -------------------------10+[data-ui="instrument"] {
6 11
7-// --- Instrument skin: fields & controls --------------------------------------12+ // --- Instrument skin: chrome (topbar, wordmark, nav) -----------------------
8 13
9-// --- Instrument skin: density & spacing --------------------------------------14+ // 44px chrome strip. Pairs with the .board-stage min-height below, which
15+ // re-derives its calc from these two literals.
16+ .topbar {
17+ height: 44px;
18+ }
19+
20+ .filterbar {
21+ height: 40px;
22+ }
23+
24+ .board-stage {
25+ min-height: calc(100vh - 44px - 40px);
26+ }
27+
28+ // Wordmark and board name read as engraved panel labels: mono, uppercase,
29+ // tracked wide.
30+ .wordmark-text {
31+ font-family: var(--font-mono);
32+ font-size: 13px;
33+ font-weight: 700;
34+ letter-spacing: 0.12em;
35+ text-transform: uppercase;
36+ }
37+
38+ .board-name {
39+ font-family: var(--font-mono);
40+ font-size: 11px;
41+ font-weight: 600;
42+ letter-spacing: 0.12em;
43+ text-transform: uppercase;
44+ }
45+
46+ // Active nav underlines in accent, not ink.
47+ .topbar-nav-on {
48+ box-shadow: inset 0 -2px 0 var(--accent);
49+ }
50+
51+ // --- Instrument skin: board (ruled columns) --------------------------------
52+
53+ // Columns are not floating wells; they are panels separated by hairline
54+ // rules. Cards keep surface/1px border/radius-3/no-shadow — the instrument
55+ // tokens already supply all four, so .card itself needs no override.
56+ .board-columns {
57+ gap: 0;
58+ }
59+
60+ .column {
61+ background: transparent;
62+ border-right: 1px solid var(--border);
63+
64+ &:last-child {
65+ border-right: none;
66+ }
67+ }
68+
69+ // --- Instrument skin: chips (status LEDs) ----------------------------------
70+
71+ // Tint fills go away; a chip is its colored text plus a 6px LED square.
72+ // Per-variant colors (.chip-overdue etc.) survive untouched — this rule
73+ // never declares `color`.
74+ .chip {
75+ background: transparent;
76+ font-family: var(--font-mono);
77+ font-size: 10px;
78+ font-weight: 500;
79+ letter-spacing: 0.08em;
80+ text-transform: uppercase;
81+
82+ &::before {
83+ content: "";
84+ width: 6px;
85+ height: 6px;
86+ margin-right: 6px;
87+ flex: none;
88+ background: currentColor;
89+ }
90+ }
91+
92+ // --- Instrument skin: avatars (squares) ------------------------------------
93+
94+ // Circles become 18px squares; the 2px overlap ring is gone, so assignees
95+ // butt closer. 2px is intentional (below the 3px radius token) — squares
96+ // must not read as chips.
97+ .avatar {
98+ width: 18px;
99+ height: 18px;
100+ border-radius: 2px;
101+ border: none;
102+ }
103+
104+ .avatar + .avatar {
105+ margin-left: -4px;
106+ }
107+
108+ // Keep the empty-assignee slot's dashed outline, which the border: none
109+ // above would otherwise silence.
110+ .avatar-none {
111+ border: 1px dashed var(--border-strong);
112+ background: transparent;
113+ }
114+
115+ // --- Instrument skin: fields & controls -------------------------------------
116+
117+ // The primary action is an outlined target, not a filled one.
118+ .primary {
119+ background: transparent;
120+ border: 1px solid var(--accent-border);
121+ color: var(--accent);
122+
123+ &:hover {
124+ background: transparent;
125+ border-color: var(--accent);
126+ color: var(--accent);
127+ }
128+ }
129+
130+ // Quiet stays outline-muted; only the fill drops so fields and buttons
131+ // share one flat ground.
132+ .quiet {
133+ background: transparent;
134+ }
135+
136+ // --- Instrument skin: mono metadata idiom -----------------------------------
137+
138+ // Timestamps, card meta and member statuses join .field-label/.detail-label
139+ // in tracked uppercase mono. (Emails stay sentence-case — .member-address
140+ // keeps its mono but gains no uppercase; uppercase addresses hurt reading.)
141+ .comment-when {
142+ font-size: 10px;
143+ letter-spacing: 0.08em;
144+ text-transform: uppercase;
145+ }
146+
147+ .card-comments,
148+ .card-deadline {
149+ letter-spacing: 0.08em;
150+ text-transform: uppercase;
151+ }
152+
153+ .member-status {
154+ font-family: var(--font-mono);
155+ font-size: 10px;
156+ letter-spacing: 0.08em;
157+ text-transform: uppercase;
158+ }
159+
160+ .member-you {
161+ font-family: var(--font-mono);
162+ font-size: 10px;
163+ letter-spacing: 0.08em;
164+ text-transform: uppercase;
165+ border-radius: var(--radius-sm);
166+ }
167+
168+ // --- Instrument skin: density & spacing --------------------------------------
169+
170+ // (Deliberately sparse: density lives in the chrome heights, the gapless
171+ // ruled columns and the square avatars above. Token values — control
172+ // heights, radii, shadows — already carry the rest.)
173+
174+}
style/_ledger.scssmodified+239 -2
@@ -2,6 +2,243 @@
2 // Tokens live in main.scss; skin-specific overrides and component rules for2 // Tokens live in main.scss; skin-specific overrides and component rules for
3 // [data-ui="ledger"] land here.3 // [data-ui="ledger"] land here.
4 4
5-// --- Ledger skin: paper & typography -----------------------------------------5+// Every selector carries the [data-ui="ledger"] prefix (one nested block
6+// below). That attribute+class specificity outranks the same-name class
7+// rules in main.scss, so the order of the @use never matters.
6 8
7-// --- Ledger skin: rules & ornaments ------------------------------------------9+[data-ui="ledger"] {
10+ // --- Ledger skin: typography -------------------------------------------------
11+
12+ // The display face carries named things: the wordmark, page/board/panel
13+ // titles, task titles, people. Keys, dates, counts and labels stay IBM
14+ // Plex Mono 10px uppercase — main.scss's metadata idiom is left alone.
15+ .wordmark-text {
16+ font-family: var(--font-display);
17+ font-size: 21px;
18+ font-weight: 600;
19+ }
20+
21+ .board-name {
22+ font-family: var(--font-display);
23+ font-size: 15px;
24+ }
25+
26+ .auth-title,
27+ .settings-title,
28+ .detail-title,
29+ .title-input,
30+ .panel-title,
31+ .column-name,
32+ .card-title,
33+ .member-name {
34+ font-family: var(--font-display);
35+ }
36+
37+ .settings-title { font-size: 22px; }
38+ .panel-title { font-size: 15px; }
39+ .card-title { font-size: 14px; }
40+
41+ // --- Ledger skin: rules & ornaments (no boxes) -------------------------------
42+
43+ // Panels and cards give up their chrome: the paper itself is the surface
44+ // and a hairline separates entries. Section heads sit on a 2px ink rule.
45+ .panel {
46+ background: transparent;
47+ border: none;
48+ box-shadow: none;
49+ }
50+
51+ .panel-head {
52+ border-bottom: 2px solid var(--rule-strong);
53+ padding: 0 0 10px;
54+ }
55+
56+ .auth-card {
57+ background: transparent;
58+ border: none;
59+ box-shadow: none;
60+ padding: 0;
61+ }
62+
63+ .column {
64+ background: transparent;
65+ border-radius: 0;
66+ }
67+
68+ .column-empty {
69+ background: transparent;
70+ border-color: var(--border-soft);
71+ }
72+
73+ .column-head {
74+ padding: 2px 4px 8px;
75+ border-bottom: 2px solid var(--rule-strong);
76+ }
77+
78+ // A card is an entry in the ledger: no box, a hairline under it, and the
79+ // hover darkens that rule instead of flooding a background.
80+ .card {
81+ background: transparent;
82+ border: none;
83+ border-bottom: 1px solid var(--border);
84+ border-radius: 0;
85+ box-shadow: none;
86+ padding: 10px 2px;
87+ transition: border-color var(--dur-fast) var(--ease);
88+
89+ &:hover {
90+ background: transparent;
91+ border-bottom-color: var(--rule-strong);
92+ }
93+ }
94+
95+ .card-done {
96+ background: transparent;
97+
98+ .card-title { text-decoration: line-through; }
99+ }
100+
101+ .rule-row {
102+ background: transparent;
103+ border: none;
104+ border-bottom: 1px solid var(--border);
105+ border-radius: 0;
106+ padding: 14px 2px;
107+
108+ &-off { background: transparent; }
109+ }
110+
111+ // --- Ledger skin: baseline header --------------------------------------------
112+
113+ .topbar {
114+ background: transparent;
115+ border-bottom: 1px solid var(--rule-strong);
116+ }
117+
118+ .topbar-nav-on { box-shadow: inset 0 -2px 0 var(--rule-strong); }
119+
120+ // --- Ledger skin: chips as inked text ----------------------------------------
121+
122+ .chip {
123+ display: inline-flex;
124+ align-items: baseline;
125+ height: auto;
126+ padding: 0;
127+ background: transparent;
128+ border: none;
129+ border-bottom: 1px dotted currentColor;
130+ border-radius: 0;
131+ font-family: var(--font-mono);
132+ font-size: 10px;
133+ font-weight: 500;
134+ letter-spacing: 0.08em;
135+ text-transform: uppercase;
136+
137+ // The tint fills and boxes go; the hue stays on as the ink color.
138+ &-overdue,
139+ &-blocked,
140+ &-role,
141+ &-admin,
142+ &-connected,
143+ &-off { background: transparent; }
144+
145+ &-role,
146+ &-admin { border: none; border-bottom: 1px dotted currentColor; }
147+
148+ &-role,
149+ &-admin,
150+ &-connected,
151+ &-off { text-transform: uppercase; }
152+ }
153+
154+ // --- Ledger skin: controls -----------------------------------------------------
155+
156+ // Outlined-ink controls; the primary action is set in solid ink with paper
157+ // text, inverting cleanly in the dark set because both sides are tokens.
158+ .primary {
159+ background: var(--ink);
160+ border-color: var(--ink);
161+ color: var(--bg);
162+
163+ &:hover {
164+ background: var(--ink-soft);
165+ border-color: var(--ink-soft);
166+ color: var(--bg);
167+ }
168+ }
169+
170+ .auth-submit,
171+ .edit-save,
172+ .comment-post {
173+ background: var(--ink);
174+ color: var(--bg);
175+ }
176+
177+ .auth-submit:hover,
178+ .edit-save:hover,
179+ .comment-post:hover {
180+ background: var(--ink-soft);
181+ }
182+
183+ .quiet {
184+ background: transparent;
185+ border-color: var(--ink-soft);
186+
187+ &:hover {
188+ border-color: var(--ink);
189+ color: var(--ink);
190+ }
191+ }
192+
193+ .quiet-danger {
194+ border-color: var(--danger);
195+
196+ &:hover {
197+ border-color: var(--danger);
198+ background: transparent;
199+ }
200+ }
201+
202+ .detail-delete {
203+ background: transparent;
204+ border-color: var(--danger);
205+ }
206+
207+ // Fields rule themselves onto the paper: transparent ground, ink outline.
208+ .auth-input,
209+ .field-input,
210+ .title-input {
211+ background: transparent;
212+ border-color: var(--ink-soft);
213+
214+ &:focus-visible {
215+ background: transparent;
216+ border-color: var(--ink);
217+ }
218+
219+ &:disabled { background: transparent; }
220+ }
221+
222+ .auth-locked,
223+ .field-box,
224+ .status-form {
225+ background: transparent;
226+ border-color: var(--ink-soft);
227+ }
228+
229+ // --- Ledger skin: toggles ------------------------------------------------------
230+
231+ // The switch becomes what a mark is on paper: an empty ink square when
232+ // off, a filled one when on. The knob has no role here.
233+ .rule-switch {
234+ width: 14px;
235+ height: 14px;
236+ border: 1px solid var(--ink);
237+ border-radius: 0;
238+ background: transparent;
239+
240+ .rule-switch-knob { display: none; }
241+ }
242+
243+ .rule-switch-on { background: var(--ink); }
244+}