Expand simple SCSS variables and nested selectors into plain CSS without claiming full Sass compilation.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Top-level dollar-prefixed declarations are collected and substituted into later values, then each nested selector is combined with its parent. A child beginning with ampersand replaces that marker with the outer selector, while comments are omitted from the emitted subset.
$primary: #3498db;
.btn {
color: $primary;
&:hover {
color: $primary;
}
}
.btn {
color: #3498db;
}
.btn:hover {
color: #3498db;
}
Component snippets expand colour variables, hover rules flatten ampersand selectors, and small design-system samples demonstrate descendant nesting.