refactor(styles): simplify color variables and update CSS constants

Add new color palette file and refactor constant definitions to use variable tokens.
This commit is contained in:
sankalp committed 2026-07-04 05:00:18 +05:45
1 parent 9c90de0dc8
commit c1e24f7cb4
46 files changed
+1789 -1815

No files matched your search

+78
View File
@@ -0,0 +1,78 @@
#about-menu {
background-color: @bg-a50;
box-shadow:
inset 0 -0.5px 0 0.5px alpha(@bg-a90, 0.7),
inset 0 0.5px 0 0.5px @outline-a70;
border: 1px solid @outline-a30;
border-top: none;
border-radius: 1.25rem;
padding: 2rem;
}
#about-options {
background-color: @surface-bright-a90;
border-radius: apply(radius-md);
padding: 2rem;
}
#about-logo-box {
margin-top: 2rem;
margin-bottom: 2rem;
}
#about-button-box {
padding: 1rem;
}
#vendor-label {
color: @fg-a40;
margin-top: -1rem;
}
#info-label {
color: @fg-a60;
}
#about-info-title-box {
padding-left: 4rem;
}
#about-name-label {
font-size: 24px;
margin: 0px;
font-weight: 600;
}
#about-date-label {
font-size: apply(font-xs);
margin: 0px;
color: @text;
font-weight: 400;
margin-bottom: 2rem;
}
#about-chip-title-label,
#about-so-title-label,
#about-mem-title-label {
font-size: apply(font-sm);
margin: 0px;
margin-right: 10px;
font-weight: 500;
}
#more-info-button {
background-color: @fg-a40;
border-radius: apply(radius-xs);
padding: 0px 10px;
margin: 1px 2px;
transition: all apply(transition-medium) ease-in-out;
}
#more-info-button:hover {
background-color: @primary;
}
#more-info-button label {
font-size: apply(font-sm);
margin: 0px;
font-weight: 400;
color: @foreground;
}
+274
View File
@@ -0,0 +1,274 @@
#weather-container {
margin: 5px 5px 20px 5px;
min-width: 170px;
min-height: 170px;
border-radius: apply(radius-lg);
transition: all apply(transition-slow);
background: @surface;
}
/* Base Weather Layout */
#weather-widget {
padding: 12px 14px;
}
#city {
color: @fg-a85;
font-weight: 600;
font-size: 18px;
}
#temperature {
font-size: 64px;
font-weight: 600;
color: white;
margin-top: -5px;
margin-bottom: -5px;
}
#condition-emoji {
margin-top: -2px;
}
#condition {
font-size: apply(font-lg);
font-weight: 600;
color: white;
}
#feels-like {
font-weight: 500;
font-size: 15px;
color: @fg-a80;
}
/* Weather Condition Gradients */
.weather-clear {
background: linear-gradient(135deg, @primary 0%, @cyan 100%);
}
.weather-mostly-clear {
background: linear-gradient(135deg, @primary 0%, @primary 100%);
}
.weather-partly-cloudy {
background: linear-gradient(135deg, @outline 0%, #bac8e0 100%);
}
.weather-overcast {
background: linear-gradient(135deg, @bg-a80 0%, @bg-a80 100%);
}
.weather-fog {
background: linear-gradient(135deg, @outline 0%, @foreground 100%);
}
.weather-light-rain {
background: linear-gradient(135deg, @on-primary 0%, @bg-a90 100%);
}
.weather-rain {
background: linear-gradient(135deg, @bg-a70 0%, @on-tertiary 100%);
}
.weather-heavy-rain {
background: linear-gradient(135deg, @surface 0%, @bg-a90 100%);
}
.weather-snow,
.weather-heavy-snow {
background: linear-gradient(135deg, @secondary 0%, @cyan 100%);
}
.weather-storm {
background: linear-gradient(135deg, @background 0%, @surface-bright 50%, @outline 100%);
}
/* # */
/* Calendar Widget */
#calendar-box-widget {
background: linear-gradient(to bottom, @surface, @background);
margin: 5px 20px 20px 10px;
min-width: 170px;
min-height: 170px;
border-radius: apply(radius-lg);
}
#calendar-widget {
margin: 5px 10px 0px 10px;
}
#calendar-month {
font-size: apply(font-lg);
font-weight: 600;
color: @primary;
margin-bottom: 6px;
}
#calendar-days-header {
margin-bottom: 4px;
}
#calendar-day-header {
font-size: apply(font-sm);
font-weight: 600;
color: @foreground;
min-width: 18px;
min-height: 10px;
}
#calendar-day-header-weekend {
font-size: apply(font-sm);
font-weight: 600;
color: @fg-a50;
min-width: 18px;
min-height: 10px;
}
#calendar-day {
font-size: apply(font-sm);
margin: 1.4px 0px 1.4px 0px;
font-weight: 500;
color: @foreground;
min-width: 18px;
min-height: 10px;
}
#calendar-day-weekend {
font-size: apply(font-sm);
font-weight: 500;
color: @fg-a50;
min-width: 18px;
min-height: 16px;
}
#calendar-day-today {
font-size: apply(font-sm);
font-weight: 700;
color: @foreground;
background-color: @primary;
border-radius: apply(radius-full);
min-width: 18px;
min-height: 16px;
padding: 2px;
}
#calendar-day-empty {
min-width: 18px;
min-height: 16px;
}
#calendar-grid {
margin-top: 2px;
}
/* Date Widget CSS */
#date-widget label {
margin-top: 10px;
}
#day label,
#month label {
color: var(--foreground);
padding: 5px;
margin-top: 10px;
font-size: 30px;
color: @fg-a90;
font-weight: 600;
}
#date label {
color: @fg-a90;
margin-top: -10px;
font-size: 90px;
font-weight: 600;
}
#day label {
color: alpha(@primary, 0.9);
}
#date-container {
background: linear-gradient(to bottom, @surface, @background);
margin: 5px 10px 20px 5px;
min-width: 170px;
min-height: 170px;
border-radius: apply(radius-lg);
}
/* System Info Widget CSS */
#info-box-widget {
background: linear-gradient(to bottom, @surface, @background);
margin: 5px 5px 5px 5px;
min-width: 170px;
min-height: 170px;
border-radius: apply(radius-lg);
}
#ram-progress {
margin-left: 12px;
color: var(--foreground);
}
#progress-label {
font-weight: 600;
font-size: apply(font-md);
}
#progress {
background-color: transparent;
border: solid 8px @primary-a20;
color: @foreground; /* Filled progress as solid white/foreground */
}
/* Color indicators for memory usage */
#used-color-indicator {
color: @primary;
font-size: apply(font-2xs);
font-weight: 900;
}
#free-color-indicator {
color: @outline;
font-size: apply(font-2xs);
font-weight: 900;
}
#temp-color-indicator {
color: @primary;
font-size: apply(font-2xs);
font-weight: 900;
}
/* Info text styling */
#info-text {
font-size: apply(font-md);
font-weight: 500;
color: @fg-a60;
min-width: 32px;
}
#info-value {
font-size: apply(font-sm);
font-weight: 600;
color: @foreground;
}
#info-container {
margin-left: -8px;
margin-top: 5px;
}
#info {
margin-left: -13px;
margin-top: 5px;
font-size: apply(font-base);
font-weight: 600;
}
#component-name {
font-size: apply(font-2xs);
}
+65
View File
@@ -0,0 +1,65 @@
#dropdown-menu {
background-color: transparent;
border-radius: 0.75rem;
margin: 0;
}
#dropdown-options {
background-color: @bg-a50;
box-shadow: inset 0 0 0 1px alpha(@fg-a40, 0.4);
border: 1px solid @outline-a40;
border-radius: 0.75rem;
padding: 0.5rem;
}
#dropdown-option {
background-color: transparent;
border-radius: apply(radius-xs);
padding: 0px 10px;
margin: 1px 2px;
transition: all 0ms ease-in-out;
}
#dropdown-option:hover {
color: @on-primary;
transition: all 20ms ease-in-out;
background-color: @primary;
}
#dropdown-option:hover #dropdown-option-label {
color: @on-primary;
}
#dropdown-option-label {
font-size: apply(font-md);
margin: 0px;
color: @foreground;
font-weight: 400;
}
#dropdown-option-label:first-child {
padding-right: 5rem;
}
#dropdown-option:hover #dropdown-option-keybind {
color: @on-primary;
}
#dropdown-option-keybind {
font-weight: 500;
color: @fg-a80;
}
/* Divider */
#dropdown-divider-box {
background-color: transparent;
border-radius: apply(radius-xs);
padding: 0px 10px;
margin: 2px;
}
#dropdown-divider {
border-bottom: 1px solid alpha(@fg-a80, 0.3);
margin: 2px 0;
}
+5
View File
@@ -0,0 +1,5 @@
@import url("widgets/dropdown.css");
@import url("widgets/about.css");
@import url("widgets/other.css");
@import url("widgets/desktop-widgets.css");
@import url("widgets/tray.css");
+39
View File
@@ -0,0 +1,39 @@
/* FlatScale styling */
.flat-scale {
margin: 4px 0px;
}
.flat-scale slider {
/* background: linear-gradient(135deg, @foreground 0%, @foreground 100%); */
background-color: white;
min-height: 24px;
min-width: 24px;
border-radius: apply(radius-full);
}
.flat-scale trough {
background-color: alpha(@bg-a80, 0.5);
min-height: 25px;
border-radius: apply(radius-full);
border: 1px solid alpha(@bg-a75, 0.3);
}
.flat-scale highlight {
background-color: @fg-a80;
min-height: 25px;
border-radius: apply(radius-full);
}
/* SmoothSwitch styling */
.smooth-switch {
min-width: 44px;
min-height: 24px;
background-color: @bg-a80;
color: @foreground;
}
.smooth-switch.checked {
background-color: @fg-a80;
color: @foreground;
}
+50
View File
@@ -0,0 +1,50 @@
tooltip {
border: @bg-a90 solid 1px;
border-radius: 0.75rem;
background-color: @bg-a50;
}
@keyframes tooltipShow {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
tooltip > * {
padding: 3px 10px;
border-radius: 0.75rem;
}
menu {
border: @bg-a90 solid 1px;
border-radius: 0.75rem;
transition: all apply(transition-xfast) ease-in-out;
background-color: @bg-a50;
}
menu > menuitem {
padding: 5px 10px;
margin: 1px 2px;
font-size: apply(font-md);
border-bottom: @bg-a90 solid 1px;
}
menu > menuitem:last-child {
border-bottom: none;
}
menu > menuitem:hover {
transition: all 20ms ease-in-out;
font-size: apply(font-md);
border-radius: apply(radius-xs);
color: @on-primary;
background-color: @primary;
}
menu > menuitem:hover > label {
color: @on-primary;
font-weight: 400;
}