@@ -215,11 +215,11 @@
z-index: 80;
align-items: center;
justify-content: center;
- padding: 20px;
+ padding: 20px; /* token-exempt: matches the app.css #modal backdrop inset */
background: rgba(0, 0, 0, 0.55);
}
.seal-error {
color: var(--warn, #ff6b81);
- margin: 2px 0 4px;
+ margin: var(--space-1) 0 var(--space-2);
}
diff --git a/v2/src/lib/components/TagsPanel.svelte b/v2/src/lib/components/TagsPanel.svelte
index 9bf2390..490df65 100644
--- a/v2/src/lib/components/TagsPanel.svelte
+++ b/v2/src/lib/components/TagsPanel.svelte
@@ -69,7 +69,7 @@
{#if !folded}
{#if tags.length > 0}
-
+
{#each tags as tag (tag)}
{:else}
- none yet
+ none yet
{/if}
Date: Sat, 25 Jul 2026 01:27:32 -0400
Subject: [PATCH 003/154] Use design tokens for spacing, type, radius and
motion in CardView and Reader
The two largest component stylesheets carried most of v2's literal px
values. Route them through the app.css tokens and annotate the one-off
widths, gutters and grid floors that stay literal.
---
v2/src/lib/components/CardView.svelte | 76 +++++++++++++-------------
v2/src/lib/components/Reader.svelte | 49 +++++++++--------
v2/src/lib/components/SealModal.svelte | 2 +-
3 files changed, 64 insertions(+), 63 deletions(-)
diff --git a/v2/src/lib/components/CardView.svelte b/v2/src/lib/components/CardView.svelte
index a12c990..599780e 100644
--- a/v2/src/lib/components/CardView.svelte
+++ b/v2/src/lib/components/CardView.svelte
@@ -495,7 +495,7 @@
{/if}
@@ -595,7 +595,7 @@
{@render faceRows(card.back ?? [], false, 'back empty')}
-
↻ click to flip
+
↻ click to flip
{:else if card.verbs?.flip}
@@ -638,9 +638,9 @@
border: none;
color: inherit;
cursor: pointer;
- font-size: 12px;
+ font-size: var(--fs-sm);
opacity: 0.5;
- padding: 2px 4px;
+ padding: var(--space-1) var(--space-2);
}
.slot-del:hover {
opacity: 1;
@@ -652,50 +652,50 @@
background: transparent;
color: inherit;
border: 1px solid var(--line);
- border-radius: 4px;
- font-size: 11px;
- padding: 2px 6px;
- width: 150px;
+ border-radius: var(--radius-sm);
+ font-size: var(--fs-xs);
+ padding: var(--space-1) var(--space-3);
+ width: 150px; /* token-exempt: one-off field width sized to the tag list */
}
.type-name-input {
background: var(--panel);
color: inherit;
border: 1px solid var(--line);
- border-radius: 4px;
- font-size: 12px;
- padding: 2px 6px;
- width: 140px;
+ border-radius: var(--radius-sm);
+ font-size: var(--fs-sm);
+ padding: var(--space-1) var(--space-3);
+ width: 140px; /* token-exempt: one-off field width sized to a type name */
}
.done-badge {
position: absolute;
- top: 8px;
- right: 12px;
- font-size: 11px;
+ top: var(--space-4);
+ right: var(--space-6);
+ font-size: var(--fs-xs);
font-weight: 600;
color: var(--accent, #7c3aed);
opacity: 0.8;
}
.scope-error {
- font-size: 12px;
+ font-size: var(--fs-sm);
color: #dc2626;
- margin-bottom: 8px;
+ margin-bottom: var(--space-4);
}
/* Out of flow like the ported pin/archive buttons (app.css .furn .arch), so a card with the
notes service on reserves no blank line for it. Quiet until hover or keyboard focus (D9);
a card that already carries notes keeps the marker visible. */
.notes-toggle {
position: absolute;
- right: 9px;
- bottom: 6px;
+ right: 9px; /* token-exempt: sits on the same edge as the app.css .furn .arch buttons */
+ bottom: var(--space-3);
z-index: 2;
background: none;
border: none;
color: inherit;
cursor: pointer;
- font-size: 11px;
+ font-size: var(--fs-xs);
opacity: 0;
- padding: 2px 4px;
- transition: opacity 0.12s ease;
+ padding: var(--space-1) var(--space-2);
+ transition: opacity var(--t-quick) ease;
}
.furn:hover .notes-toggle,
.notes-toggle:focus-visible,
@@ -706,7 +706,7 @@
.notes-toggle.open {
position: static;
opacity: 0.8;
- padding: 4px 0 0;
+ padding: var(--space-2) 0 0;
}
.notes-toggle.has-notes {
color: var(--accent, #7c3aed);
@@ -720,9 +720,9 @@
.bs-head {
display: flex;
align-items: center;
- gap: 5px;
- margin: 0 0 6px;
- padding-right: 12px;
+ gap: 5px; /* token-exempt: mirrors the v1 .benchslot .bs-head gap */
+ margin: 0 0 var(--space-3);
+ padding-right: var(--space-6);
}
.bs-head .spacer {
flex: 1;
@@ -735,10 +735,10 @@
position: absolute;
top: 0;
right: 0;
- width: 11px;
+ width: 11px; /* token-exempt: mirrors the v1 .benchslot .rz grab strip */
height: 100%;
cursor: ew-resize;
- border-radius: 0 10px 10px 0;
+ border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
z-index: 2;
}
.cardslot:hover .bs-rz,
@@ -746,7 +746,7 @@
background: linear-gradient(90deg, transparent, rgba(110, 168, 254, 0.3));
}
.slot {
- margin-bottom: 8px;
+ margin-bottom: var(--space-4);
}
.slot:last-child {
margin-bottom: 0;
@@ -754,7 +754,7 @@
.slot.editing {
display: flex;
align-items: flex-start;
- gap: 4px;
+ gap: var(--space-2);
}
.slot.editing > :global(:first-child) {
flex: 1;
@@ -762,26 +762,26 @@
.slot-adder {
display: flex;
align-items: center;
- gap: 6px;
- margin-top: 8px;
+ gap: var(--space-3);
+ margin-top: var(--space-4);
}
.slot-adder select {
background: var(--panel);
color: inherit;
border: 1px solid var(--line);
- border-radius: 4px;
- font-size: 12px;
- padding: 2px 6px;
+ border-radius: var(--radius-sm);
+ font-size: var(--fs-sm);
+ padding: var(--space-1) var(--space-3);
}
.slot-adder button {
background: none;
border: 1px dashed var(--line);
- border-radius: 4px;
+ border-radius: var(--radius-sm);
color: inherit;
cursor: pointer;
- font-size: 12px;
+ font-size: var(--fs-sm);
opacity: 0.6;
- padding: 4px 10px;
+ padding: var(--space-2) var(--space-5);
}
.slot-adder button:hover {
opacity: 1;
diff --git a/v2/src/lib/components/Reader.svelte b/v2/src/lib/components/Reader.svelte
index bb2b6ce..cbc8800 100644
--- a/v2/src/lib/components/Reader.svelte
+++ b/v2/src/lib/components/Reader.svelte
@@ -661,10 +661,10 @@
{/if}
-
+
-
+
.brand-nb {
font-weight: 600;
- padding: 0 6px;
+ padding: 0 var(--space-3);
opacity: 0.9;
}
.section-head {
display: flex;
align-items: center;
- gap: 6px;
- margin-bottom: 12px;
- padding-right: 26px;
+ gap: var(--space-3);
+ margin-bottom: var(--space-6);
+ padding-right: 26px; /* token-exempt: one-off gutter that clears the section controls */
}
.section-name {
flex: 1;
- font-size: 16px;
+ font-size: var(--fs-lg);
background: transparent;
color: inherit;
border: 1px solid transparent;
- border-radius: 4px;
- padding: 4px 6px;
+ border-radius: var(--radius-sm);
+ padding: var(--space-2) var(--space-3);
}
.section-name:hover,
.section-name:focus {
@@ -870,9 +870,9 @@
border: none;
color: inherit;
cursor: pointer;
- font-size: 12px;
+ font-size: var(--fs-sm);
opacity: 0.5;
- padding: 2px 4px;
+ padding: var(--space-1) var(--space-2);
}
.section-head button:hover {
opacity: 1;
@@ -881,12 +881,12 @@
.add-section {
background: none;
border: 1px dashed var(--line);
- border-radius: 4px;
+ border-radius: var(--radius-sm);
color: inherit;
cursor: pointer;
- font-size: 12px;
+ font-size: var(--fs-sm);
opacity: 0.6;
- padding: 4px 10px;
+ padding: var(--space-2) var(--space-5);
}
.add-card:hover,
.add-section:hover {
@@ -895,17 +895,18 @@
}
.add-row {
display: flex;
- gap: 8px;
- margin-bottom: 12px;
+ gap: var(--space-4);
+ margin-bottom: var(--space-6);
}
.add-card {
flex: 1;
}
.gallery {
display: grid;
+ /* token-exempt: 160px is a grid track floor, not a spacing step */
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
- gap: 8px;
- margin-bottom: 12px;
+ gap: var(--space-4);
+ margin-bottom: var(--space-6);
}
.gallery-item {
position: relative;
@@ -914,26 +915,26 @@
width: 100%;
display: flex;
flex-direction: column;
- gap: 4px;
+ gap: var(--space-2);
align-items: flex-start;
text-align: left;
background: var(--panel);
border: 1px solid var(--line);
- border-radius: 6px;
+ border-radius: var(--radius-md);
color: inherit;
cursor: pointer;
- font-size: 12px;
- padding: 10px;
+ font-size: var(--fs-sm);
+ padding: var(--space-5);
}
.gallery-stamp:hover {
border-color: var(--accent, #7c3aed);
}
.gallery-stamp span {
opacity: 0.6;
- font-size: 11px;
+ font-size: var(--fs-xs);
}
.add-section {
width: 100%;
- padding: 8px;
+ padding: var(--space-4);
}
diff --git a/v2/src/lib/components/SealModal.svelte b/v2/src/lib/components/SealModal.svelte
index 5c35267..ee72644 100644
--- a/v2/src/lib/components/SealModal.svelte
+++ b/v2/src/lib/components/SealModal.svelte
@@ -166,7 +166,7 @@
Varieties:
{#each draft.varieties as v, i (i)}
-
+
Date: Sat, 25 Jul 2026 01:29:15 -0400
Subject: [PATCH 004/154] Use spacing and radius tokens in the remaining v2
component markup
The inline style attributes in SectionView, SideFactory, CoverageMatrix,
ProductDetail, SideBar, SlotConfig and TopBar were the last cluster of
literal px values; the ones that stay literal now say why.
---
v2/src/lib/components/CoverageMatrix.svelte | 2 +-
v2/src/lib/components/ProductDetail.svelte | 12 +++++++-----
v2/src/lib/components/SectionView.svelte | 2 +-
v2/src/lib/components/SideBar.svelte | 2 +-
v2/src/lib/components/SideFactory.svelte | 2 +-
v2/src/lib/components/SlotConfig.svelte | 8 ++++----
v2/src/lib/components/TopBar.svelte | 4 ++--
7 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/v2/src/lib/components/CoverageMatrix.svelte b/v2/src/lib/components/CoverageMatrix.svelte
index caf269d..7759d93 100644
--- a/v2/src/lib/components/CoverageMatrix.svelte
+++ b/v2/src/lib/components/CoverageMatrix.svelte
@@ -142,7 +142,7 @@