refactor(styles): put gap on the spacing scale (#3562)

Extends the 4px-grid spacing scale with --space-0-5 (2px), --space-1 (4px) and --space-1-5 (6px) and replaces the literal 2/4/6/8/12/16px gap, row-gap and column-gap values with the tokens; computed values are unchanged. src/styles/spacingScale.test.ts flags an on-scale literal gap.

Co-authored-by: Mr0Bread <55754540+Mr0Bread@users.noreply.github.com>
This commit is contained in:
Mr0Bread
2026-11-15 23:59:47 +08:00
committed by GitHub
parent 2913c12a19
commit 9a518e734b
151 changed files with 896 additions and 873 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
.form {
display: flex;
flex-direction: column;
gap: 6px;
gap: var(--space-1-5);
padding: 14px;
}
.hint {
@@ -15,7 +15,7 @@
}
.row {
display: flex;
gap: 8px;
gap: var(--space-2);
align-items: center;
}
.grow {
@@ -34,7 +34,7 @@
.folder {
display: flex;
align-items: center;
gap: 6px;
gap: var(--space-1-5);
width: 100%;
padding: 3px 8px;
border: 0;
@@ -57,14 +57,14 @@
.progress {
display: flex;
flex-direction: column;
gap: 6px;
gap: var(--space-1-5);
margin-top: 4px;
}
.progressLine {
display: flex;
align-items: center;
gap: 6px;
gap: var(--space-1-5);
color: var(--fg-muted);
}