SASS Theme Development Guide

This guide covers how to develop FearlessCMS themes that use SASS (Syntactically Awesome Style Sheets) for CSS preprocessing. This is useful for complex themes that benefit from SASS features like variables, mixins, and nested rules.

When to Use SASS

Consider using SASS for your theme if you need:

Deployment

1. Build for Production

bash

Compile with compressed output

sass assets/sass/main.scss:assets/style.css --style compressed

Or use npm script

npm run sass:build

2. Include in Theme Package

Make sure to include the compiled style.css file in your theme package, not the SASS source files.

3. Documentation

Include SASS setup instructions in your theme's README.md for developers who want to modify the theme.

This approach gives you the power of SASS while maintaining compatibility with FearlessCMS's simple theme system.