refactor(src/shared/styles): replace hardcoded CSS values with design token variables

Introduce consistent design tokens for radii and colors, replacing alpha() and hardcoded values with theme variables for easier theming and maintenance.

- New Features:   - Add CSS variable usage for radii (var(--radius-*)) and color tokens (@border-subtle, @text-main, @accent)
- Enhancements:
  - Replace hardcoded border, radius, and color definitions with variable references
  - Align styling with the project's theme system
- Bug Fixes:
  - No bug fixes included
This commit is contained in:
sankalp committed 2026-05-14 15:31:01 +05:45
1 parent 60c63308db
commit 5502f85dd1
18 files changed
+340 -314

No files matched your search

+8 -8
View File
@@ -1,6 +1,6 @@
#settings-window {
background-color: var(--background);
border-radius: 12px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
min-width: 850px;
min-height: 600px;
@@ -19,7 +19,7 @@
#settings-sidebar-button {
padding: 10px 15px;
border-radius: 8px;
border-radius: var(--radius-sm);
margin-bottom: 2px;
}
@@ -53,7 +53,7 @@
#settings-row {
padding: 12px 15px;
border-radius: 8px;
border-radius: var(--radius-sm);
background-color: rgba(255, 255, 255, 0.03);
margin-bottom: 2px;
}
@@ -71,7 +71,7 @@
#settings-switch {
background-color: rgba(255, 255, 255, 0.1);
padding: 6px 12px;
border-radius: 20px;
border-radius: var(--radius-xl);
min-width: 50px;
transition: all 0.2s ease;
}
@@ -84,7 +84,7 @@
#settings-entry {
background-color: rgba(255, 255, 255, 0.05);
padding: 8px 12px;
border-radius: 6px;
border-radius: var(--radius-xs);
border: 1px solid var(--border);
min-width: 200px;
color: var(--foreground);
@@ -97,7 +97,7 @@
#settings-combo {
background-color: rgba(255, 255, 255, 0.05);
padding: 4px 8px;
border-radius: 6px;
border-radius: var(--radius-xs);
border: 1px solid var(--border);
min-width: 150px;
color: var(--foreground);
@@ -113,7 +113,7 @@
#settings-list-tag {
background-color: rgba(255, 255, 255, 0.08);
border-radius: 15px;
border-radius: var(--radius-md);
padding: 4px 10px;
margin-right: 5px;
margin-bottom: 5px;
@@ -141,6 +141,6 @@
background-color: rgba(255, 255, 255, 0.03);
border: 1px dashed var(--border);
padding: 6px 12px;
border-radius: 6px;
border-radius: var(--radius-xs);
font-size: 13px;
}