Generated by SassMeister.com.
✓ Published0🌍 Public
Aandresmijares
Last edited Sep 4, 2014
Created on Sep 4, 2014
This example demonstrates how Sass’s `@for` loop and `nth()` function generate five distinct theme classes, each pairing a color from one list with a background from another. The code defines a `theme` mixin that applies the color and background properties, then iterates through two parallel lists to produce CSS rules like `#theme-1` through `#theme-5`. The output shows the resulting styles, where the color and background values swap symmetrically, creating a reverse-gradient effect. Sass v3.4.1 and Compass v1.0.1 are used to compile the SCSS into plain CSS.
AI-generated description