fix(design): replace hardcoded values with design tokens
Audit found ~35 violations against the token system. Fixed: - Hardcoded shadows in layout.css replaced with --shadow-sm/md - 8 rgba colors extracted to new glass tokens (--color-glass-*) - border-radius: 50% replaced with var(--radius-full) - ~25 off-grid spacing values (5px, 6px, 7px, 14px, 15px, 22px, 26px, 34px) aligned to 4px grid using space tokens
This commit is contained in:
@@ -72,14 +72,14 @@
|
||||
}
|
||||
|
||||
.list-tab__count {
|
||||
background-color: rgba(255, 255, 255, 0.25);
|
||||
background-color: var(--color-glass);
|
||||
border-radius: var(--radius-full);
|
||||
padding: 1px 6px;
|
||||
padding: var(--space-px) var(--space-1);
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
.list-tab--active .list-tab__count {
|
||||
background-color: rgba(255, 255, 255, 0.3);
|
||||
background-color: var(--color-glass-hover);
|
||||
}
|
||||
|
||||
.list-tab__new {
|
||||
@@ -126,8 +126,8 @@
|
||||
}
|
||||
|
||||
.list-header__edit-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
width: var(--space-4);
|
||||
height: var(--space-4);
|
||||
color: var(--color-text-disabled);
|
||||
}
|
||||
|
||||
@@ -301,8 +301,8 @@
|
||||
}
|
||||
|
||||
.item-category__icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
width: var(--space-3);
|
||||
height: var(--space-3);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
@@ -360,8 +360,8 @@
|
||||
}
|
||||
|
||||
.item-check__icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
width: var(--space-3);
|
||||
height: var(--space-3);
|
||||
color: #ffffff;
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user