fix(ui): stats light mode theming (#1533)
This commit is contained in:
@@ -1,5 +1,34 @@
|
||||
// Shared chart styles for consistency across all chart components
|
||||
|
||||
@mixin accent-surface($radius: 20px) {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
color-mix(in srgb, var(--stats-badge-accent) 20%, transparent),
|
||||
color-mix(in srgb, var(--stats-badge-accent) 10%, transparent)
|
||||
);
|
||||
border: 1px solid color-mix(in srgb, var(--stats-badge-accent) 30%, transparent);
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
@mixin accent-text($accent-weight: 62%) {
|
||||
color: color-mix(in srgb, var(--stats-badge-accent) $accent-weight, var(--color-text));
|
||||
}
|
||||
|
||||
@mixin accent-badge {
|
||||
@include accent-surface;
|
||||
@include accent-text;
|
||||
|
||||
padding: 0.4rem 1rem;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@mixin neutral-surface($radius: 8px) {
|
||||
background: color-mix(in srgb, var(--color-text) 5%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
.chart-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -13,7 +42,7 @@
|
||||
min-width: 200px;
|
||||
|
||||
h3 {
|
||||
color: var(--text-color, #fff);
|
||||
color: var(--color-text);
|
||||
font-size: 1.25rem;
|
||||
font-weight: 500;
|
||||
margin: 0 0 0.5rem;
|
||||
@@ -23,7 +52,7 @@
|
||||
}
|
||||
|
||||
.chart-description {
|
||||
color: var(--text-secondary-color);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.9rem;
|
||||
margin: 0;
|
||||
line-height: 1.4;
|
||||
@@ -31,20 +60,22 @@
|
||||
}
|
||||
|
||||
.stats-badge {
|
||||
@include neutral-surface;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
border-radius: 8px;
|
||||
padding: 0.5rem 1rem;
|
||||
|
||||
.badge-value {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.badge-label {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary-color);
|
||||
color: var(--color-text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
@@ -58,7 +89,7 @@
|
||||
justify-content: center;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
color: var(--text-secondary-color);
|
||||
color: var(--color-text-secondary);
|
||||
|
||||
i {
|
||||
font-size: 2rem;
|
||||
@@ -69,7 +100,7 @@
|
||||
p {
|
||||
font-size: 0.9rem;
|
||||
margin: 0 0 0.5rem;
|
||||
color: var(--text-color, #fff);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
small {
|
||||
|
||||
Reference in New Issue
Block a user