This is a comprehensive documentation of everything, organized by mixins and framework entities, so you can quickly find exactly what you want to learn more about.
We offer 3 ways to explain our methodology and framework:
Quick start guide -
takes 15 minutes- The quickest way to see the way style is written in this framework, without explanation of why it is so and what are the advantages of such an approach.
takes 1 hour- A basic overview that is organized so that it can be read from start to end and so that the reader understands the fundamental principles and basic ways of using the framework.
Documentation (current document) -
takes hours- Comprehensive documentation of everything, organized by mixins and framework entities, so you can quickly find exactly what you want to learn more about.
Choose the one that fits your current needs best.
Why is CSS a pain?
Because it's global
Each declaration can affect anything in the document.
Changes come in from anywhere
Each declaration can affect anything from any line and any file.
Rules can affect unwanted targets
Each declaration can affect more than the intended target.
It can be done in infinite ways
The points above make any task doable in a millions ways.
The goals of this methodology:
develop with simplicity, clarity and definiteness
Avoid unpredictable dependencies and scattered information in many files.
maintain with confidence without side-effects
Watch out for unwanted outcomes, avoid uncertain results.
scaling project and team
Do not slow down as the project grows. Keep developers substitutable.
prevent resignation from CSS entropy
Do not let your project fall into chaos where the only solution is to start over.
SPOT CSS methodology and framework is all about architecture!
The main objective was to design rules that will unify the resulting code into a single possible form, no matter who writes it.
The solution is to have all rules for specific element in one and only SINGLE PLACE.
Hence the name SPOT CSS as the abbreviation of "Single Place of Truth".