10b — How It's Built
The Structure Behind the System
Four layers, 40 files, and six shared components — how they're organised and how a single change travels from a token file to every page on the site.
4
clear, separate layers
40
focused style files
6
shared component files
9
page-specific files
Watch a change travel through the system
Pick a scenario and click "Trace it →" to watch exactly how a single edit travels from the token file through to every affected page — step by step.
Pick a scenario to trace
@button-tocart-bg: #e34f33; // was #000000
Edit 1 token file
Compiler resolves references
Component files update
All page types reflect the change
How the files are organised
40 focused files, each with a single responsibility. Browse the structure to see which file handles which part of the storefront.
How rules are shared without being repeated
Each of the 40 style files needs access to the shared brand rules. A regular import would copy all 401 rules into every file — printing them 40 times in the final CSS. A reference import gives each file access to the rules without printing them again.
// _product-card.less @import "_variables.less"; // full copy // _minicart.less @import "_variables.less"; // full copy again // _navigation.less @import "_variables.less"; // × 40 files // Result: 401 rules × 40 files // = 16,040 duplicate declarations
// _product-card.less @import (reference) "_variables.less"; // _minicart.less @import (reference) "_variables.less"; // _navigation.less @import (reference) "_variables.less"; // Result: 401 rules defined exactly once // Zero duplication in the output
How the new rules connect to the Magento platform
Magento has its own internal variable names for colours, fonts, and buttons. Rather than replacing them, a bridge file maps Art Lounge's named rules onto Magento's names — so the platform picks up the right brand values automatically, and updating the brand updates everything at once.
@color-primary@link__colorNav links, text links@color-primary@button__colorPlatform button labels@color-black@color-blackBorders, dark text@font-family-base@font-family__baseAll body text@color-success@color-successSuccess states, badges@color-white@color-whiteButton labels, backgroundsChange any Art Lounge token and both custom styles and Magento's own components update simultaneously.
Try changing the tokens live
Pick a component and adjust its token values. Each control maps directly to a named rule in _variables.less — change it here and the preview updates instantly, just like it would across the real site.
Product Card
_product-card.lessOne card template used on 5 different page types.
Used on
Live preview
Acrylic Art Set 1
₹1,499
Acrylic Art Set 2
₹1,499
Tweak token values
Changing the button colour here is exactly what updating @button-tocart-bg in _variables.less does — it flows to every card on every page instantly.
The six shared components — named rules behind each one
Each component below has its own set of named rules. These are what make it look consistent everywhere it appears — and what make it easy to update in the future.