Files
vitareba/components/sections/ImpactStats.module.css
T
g-butandClaude Sonnet 4.6 47791754f1 refactor(css): centralise all design tokens — eliminate color/shadow/font SSOT violations
• Expanded globals.css :root with full opacity scales:
  - White (--white-3 through --white-97) for dark-background sections
  - Primary/teal (--teal-6 through --teal-70) via color-mix so --teal cascades
  - Gold (--gold-6 through --gold-70), danger, warn, muted opacity scales
  - Shadow scale (--shadow-sm/md/lg)
  - Border radius (--radius-xs through --radius-full)
  - Transition timing (--transition-fast/normal/slow)
  - Z-index scale (--z-nav, --z-overlay, --z-overlay-pb, --z-overlay-close)
• Replaced every #fff → var(--white) across 28 CSS module files
• Replaced every rgba(255,255,255,X) → var(--white-X) across all dark-context files
• Replaced every rgba(42,122,138,X) teal → var(--teal-X) across all section/portal files
• Replaced every inline color-mix() in admin/portal/section files → named tokens
• Fixed hardcoded "DM Sans" font in not-found.module.css → var(--font-dm-sans)
• Replaced box-shadow rgba(0,0,0) values with --shadow-* tokens in Nav, UserDropdown, LanguageSwitcher
• global-error.module.css left intentionally self-sufficient (renders outside root layout)

Changing --teal to any colour now cascades to all opacity variants site-wide.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 11:52:32 +02:00

87 lines
1.2 KiB
CSS

.section {
background: var(--ink);
padding: 4rem 1.5rem;
}
.header {
text-align: center;
margin-bottom: 2rem;
}
.eyebrowDim {
color: var(--teal-70);
}
.secTitle {
color: var(--white);
text-align: center;
}
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-bottom: 3rem;
margin-top: 2.5rem;
}
.card {
text-align: center;
padding: 1.5rem 1rem;
}
.n {
font-family: var(--font-cormorant), serif;
font-size: 2.8rem;
font-weight: 300;
color: var(--teal);
line-height: 1;
}
.unit {
font-family: var(--font-cormorant), serif;
font-size: 1rem;
color: var(--teal-50);
}
.label {
font-size: 0.7rem;
letter-spacing: 0.1em;
color: var(--white-35);
margin-top: 0.5rem;
line-height: 1.5;
}
.source {
font-size: 0.6rem;
color: var(--white-12);
margin-top: 0.3rem;
}
.text {
max-width: 50rem;
margin: 0 auto;
text-align: center;
}
.text p {
font-size: 0.88rem;
color: var(--white-40);
line-height: 1.85;
}
.text em {
color: var(--teal);
font-style: normal;
}
@media (min-width: 768px) {
.section {
padding: 6rem 3rem;
}
.grid {
grid-template-columns: repeat(4, 1fr);
}
}