SCSS Introduction
Tulip Theme using SCSS to make easier developing our styling CSS template. We resemble the CUBE CSS structure, inspired by web.dev of Google Chrome Web Devs.
Introducting of CUBE CSS
CUBE CSS is a CSS methodology that's orientated towards simplicity, pragmatism and consistency. CUBE stands for Composition Utility Block Exception.
SCSS file and folder structure
Our styling CSS stands with the principle of CUBE CSS methodology
src
└── scss
├── blocks
├── compositions
├── functions
├── mixins
├── pages
├── utilities
├── web-components
├── _config.scss
├── _fonts.scss
├── _reset.scss
├── _site-footer.scss
├── _site-header.scss
├── _tokens.scss (generated)
└── tulip.scss
The Sass scss
folder mostly resembles the CUBE CSS structure and is as follows:
blocks
: contained componentscompositions
: layout compositionsfunctions
: Sass functions used across the SCSS filesmixins
: Sass mixins used across the SCSS filespages
: specific styles for pages and page typesutilities
: core utilitiesweb-components
: styles for lit web components_config.scss
: core Gorko configuration_fonts.scss
:@font-face
declarations_reset.scss
: a lightweight CSS resettokens.scss
: Variable config size and colors tokens.tulip.scss
: the main SCSS file that pulls everything together and defines global CSS