Cascade Layers Lab - Free Online CSS Tool | IconVault
Learn CSS cascade layers visually: reorder @layer blocks and watch which styles win. Free, no signup, runs in your browser.
Cascade Layers Lab
Master @layer ordering visually
Layer order
Drag to reorder. The bottom layer wins ties.
@layer base, components, utilities;
Which rule wins?
The button background is #7c3aed from the utilities layer.
utilities is the last layer in the order that sets a background on .layer-demo-btn, so it beats the earlier layers even though all three selectors have identical specificity.
Live demo
Layered heading
Edit the CSS in any layer tab below, or reorder the layers, and this demo restyles instantly.
Layer CSS
@layer base
@layer components
@layer utilities
5 of 5 free copies left.
About this tool
IconVault's Cascade Layers Lab makes @layer tangible: declare layers like base, components, utilities, reorder them with a click and watch the cascade pick a different winner live. It shows how layer order beats specificity, and where unlayered styles sit in the priority stack.
Cascade layers are the modern answer to specificity wars and !important arms races: a framework can ship in low-priority layers while your overrides win from higher ones. Free and runs fully in your browser.
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon