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:
Ulas
2026-04-04 06:50:19 +02:00
parent 364d029950
commit d92f7ca446
7 changed files with 55 additions and 49 deletions
+9 -9
View File
@@ -161,8 +161,8 @@
font-size: var(--text-sm);
font-weight: var(--font-weight-medium);
color: var(--color-text-secondary);
width: 26px;
height: 26px;
width: var(--space-6);
height: var(--space-6);
display: flex;
align-items: center;
justify-content: center;
@@ -183,9 +183,9 @@
.month-day__event {
font-size: var(--text-xs);
font-weight: var(--font-weight-medium);
padding: 1px 5px;
padding: var(--space-px) var(--space-1);
border-radius: var(--radius-xs);
margin-bottom: 2px;
margin-bottom: var(--space-0h);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -325,7 +325,7 @@
top: -4px;
width: 10px;
height: 10px;
border-radius: 50%;
border-radius: var(--radius-full);
background-color: var(--color-danger);
}
@@ -334,7 +334,7 @@
left: 2px;
right: 2px;
border-radius: var(--radius-xs);
padding: 2px 5px;
padding: var(--space-0h) var(--space-1);
font-size: var(--text-xs);
font-weight: var(--font-weight-medium);
color: #ffffff;
@@ -467,7 +467,7 @@
height: 10px;
border-radius: var(--radius-full);
flex-shrink: 0;
margin-top: 5px;
margin-top: var(--space-1);
}
.agenda-event__body {
@@ -629,12 +629,12 @@
.allday-event {
font-size: var(--text-xs);
font-weight: var(--font-weight-medium);
padding: 1px 6px;
padding: var(--space-px) var(--space-1);
border-radius: var(--radius-xs);
color: #ffffff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 2px;
margin-bottom: var(--space-0h);
cursor: pointer;
}