Skip to main content
100%

Generated by SassMeister.com.

✓ Published0🌍 Public
Aandresmijares
Last edited Sep 5, 2014
Created on Sep 5, 2014

The example demonstrates a Sass theme generator that outputs a five-color palette as styled spans, each displaying its corresponding hex value via generated CSS content. The code defines a `themePicker` mixin that takes five color arguments and uses an `@for` loop with `nth()` list indexing to apply backgrounds and pseudo-element text. Sass v3.4.3 and Compass v1.0.1 compile the input into a `#theme1` block with five rules, each targeting a `span:nth-child` selector and its nested `span:after` pseudo-element. The visible data is the color list passed to the mixin, rendered as both swatches and textual labels.

AI-generated description

Similar vizzes