CSS Design System
Farga is a CSS design system that provides a collection of reusable components and patterns to help build consistent, responsive websites and applications.
This project combines SCSS preprocessing with static site generation to create a flexible and maintainable design system. The system includes various UI components like buttons, cards, badges, accordions, and more.
You'll need to install the following tools before building the project:
- SASS: A CSS preprocessor that adds features like variables, nesting, and mixins
- Python UV: A fast Python package installer and resolver
-
Install SASS globally
npm install -g sass
-
Install UV Python package manager
# Follow installation guide at: https://docs.astral.sh/uv/#installation -
Set up the Python environment and install dependencies
# Create a virtual environment uv venv # Install the template engine for static site generation uv pip install jinja2
Once everything is installed, you can build the project:
make buildThis command will process the SCSS files and generate the static site.
scss/: Contains all the source SCSS files for the design system_base.scss: Base styles and global variablesbutton.scss: Button component stylescard.scss: Card component stylesbadge.scss: Badge component stylesaccordion.scss: Accordion component stylesall.scss: Main file that imports all other SCSS files
templates/: Jinja2 templates for static site generationsite/: Output directory where the built website files are placedmain.py: Python script for static site generationMakefile: Build automation commands