Skip to main content
100%

Generated by SassMeister.com.

✓ Published0🌍 Public
Aandresin87
Last edited Jan 26, 2022
Created on Jan 26, 2022

SassMeister demonstrates how Sass variables and CSS custom properties interact across theme layers. The input.scss file defines a `$color` variable defaulting to `var(--c-primary)`, then overrides it with a red value in `:root` before applying it to an `input` background. A second vertical-theme block reuses `$color` but relies on the earlier `$input-token` default, while the markup.html sets `--c-primary` to blue via inline styles. The Dart Sass compiler outputs expanded CSS where the focus state’s box-shadow references the token, showing how variable scope and defaults resolve across separate theme files.

AI-generated description

Similar vizzes