tailwindcss classes and standard SCSS stylesheets.
Squeditor bridges this natively in the templates.
Configuration Bridge
Inside each project, thetailwind.config.js file is wired directly to resolve the deep SCSS properties. This ensures changes made in src/assets/scss/_tokens.scss propagate globally into standard bg-primary, text-accent, or font-sans classes.
The config file
tailwind.config.js
How It Works
Because the variables evaluate at runtime in the browser as CSS variables:- SCSS defines the style channels:
_tokens.scssassigns--sq-color-primary-rgb: 25 25 27;to:root. - Tailwind maps the class: The config maps
text-primarytocolor: rgb(var(--sq-color-primary-rgb) / <alpha-value>);. - The Browser renders: It compiles as
color: rgb(25 25 27 / 1).
bg-primary/50, Tailwind safely replaces <alpha-value> with 0.5, guaranteeing dynamic transparency that matches the exact active theme variables.
Custom Plugins (addUtilities)
Squeditor relies on the plugins array to inject overarching background utilities (like .sq-bg-primary).
While you could just define .sq-bg-primary inside your _utilities.scss, doing so hides that class from Tailwind’s view. By mapping it through addUtilities, Tailwind instantly auto-generates every modifier for those custom styles.
This is why hover:sq-bg-primary, dark:sq-bg-accent, and group-[.uk-open]:sq-bg-secondary work natively without additional CSS.