SCSS Validation Quick Reference
Quick Commands
Install Dependencies
npm install
Run All Validations
npm run validate
Run Individual Validators
npm run lint:scss # Dependency validation
npm run lint:scss:style # Style linting (stylelint)
npm run lint:scss:raw-css # Raw CSS detection
npm run sass:compile # Compilation testing
What Each Validator Checks
1. Stylelint (lint:scss:style)
- ✅ Modern SCSS syntax
- ✅ Consistent color notation
- ✅ Proper selector patterns
- ✅ No duplicate selectors
- ✅ Code formatting
2. Raw CSS Detector (lint:scss:raw-css)
- ✅ No raw CSS properties (margin, padding, color, etc.)
- ✅ Only Genesis Ontological mixins allowed
- ✅ Zero raw CSS compliance
3. SCSS Compiler (sass:compile)
- ✅ All SCSS files compile without errors
- ✅ Syntax validity
- ✅ No compilation errors
4. Dependency Validator (lint:scss)
- ✅ All mixins exist in theme
- ✅ All variables are defined
- ✅ No type errors
- ⚠️ Requires theme to be checked out (CI only)
Genesis Ontological Mixins
All styling MUST use these six categories:
- genesis-environment($logic) - Layout
'distributed','focused','associative','chronological','manifest'
- genesis-entity($nature) - Visual Presence
'primary','secondary','imperative','latent','aggregate','ancestral'
- genesis-cognition($intent) - Typography
'axiom','discourse','protocol','gloss','motive','quantum'
- genesis-synapse($vector) - Interaction
'navigate','execute','inquiry','destructive','social'
- genesis-state($condition) - State
'stable','evolving','deprecated','locked','simulated'
- genesis-atmosphere($vibe) - Texture
'neutral','ethereal','void','vibrant'
Example Usage
❌ WRONG (Raw CSS):
.my-card {
padding: 2rem;
background: #1a1a2e;
border-radius: 12px;
}
✅ CORRECT (Genesis Ontological):
.my-card {
@include genesis-entity('primary');
}
CI/CD Integration
GitHub Actions workflow automatically runs on:
- Pull requests modifying SCSS files
- Pushes to main branch with SCSS changes
File: .github/workflows/validate-scss.yml
Bootstrap Status
✅ COMPLETELY REMOVED
- No npm dependencies
- No CDN links
- No SCSS imports
- No JavaScript references
Files & Documentation
.stylelintrc.json- Stylelint configurationlint-scss-mixins.js- Dependency validatorcompile-scss.js- SCSS compiler with stub mixinsdetect-raw-css.js- Raw CSS detectorSCSS_DEPENDENCY_MANAGEMENT.md- Full documentationSCSS_VALIDATION_AND_BOOTSTRAP_REMOVAL.md- Implementation summary.github/instructions/scss.instructions.md- Complete SCSS guidelines
Troubleshooting
“Undefined mixin” Error
- Check if mixin exists in theme:
ASISaga/theme.asisaga.com/_sass/ontology/ - Use only Genesis Ontological mixins
- Submit Ontological Proposition PR for new variants
“Raw CSS detected” Error
- Remove all raw CSS properties
- Use Genesis ontological mixins instead
- See
.github/instructions/scss.instructions.mdfor guidance
Compilation Errors
- Check SCSS syntax
- Verify all imports are correct
- Run
npm run sass:compilefor details
Need Help?
- Check
.github/instructions/scss.instructions.md - Review
SCSS_DEPENDENCY_MANAGEMENT.md - See
SCSS_VALIDATION_AND_BOOTSTRAP_REMOVAL.md - Consult theme repository:
ASISaga/theme.asisaga.com