Fix transparent CTA and footer backgrounds
The design-system colour variables are RGB triplets (--ids__surface-RGB: 238, 240, 242) meant to be wrapped in rgb()/rgba(). Two components use them as a colour
directly, so the browser discards the declaration and both blocks render
with a transparent background. Computed style on production confirms rgba(0, 0, 0, 0) for both.
Current State
src/lib/CallToAction.svelte—.ctahasbackground: var(--ids__surface-RGB)src/routes/Footer.svelte—footerhasbackground: var(--ids__surface-RGB)andmask: var(--squircle-mask); the mask variable is not defined anywhere
Tasks
- Wrap both in
rgb(var(--ids__surface-RGB)), or better, add resolved colour tokens (--ids__surface) tocolors.cssand migrate away from the triplet pattern - Define
--squircle-maskor drop the mask declaration and use.ids__rounded - Grep the rest of the codebase for other bare
var(--ids__*-RGB)usages outsidergb()/rgba()
Read next
