Vanilla CSS Design System

0

Purely Vanilla: A Minimalist CSS Design System (no SCSS or JavaScript)

Productivity

design-tokens
html5
design-systems
css3

šŸŽØ Vanilla CSS Design System

License: MIT CSS: 100% Maintenance Contributions Welcome Website Status

A lightweight, modular, and highly customizable design system built with vanilla CSS. Perfect for creating consistent and responsive web applications.


šŸŒŸ Features

  • āœ… Lightweight: No unnecessary dependencies, just pure CSS.
  • šŸ“¦ Modular: Easily include only what you need.
  • šŸŽØ Customizable: Designed with CSS variables for easy theming.
  • šŸ“ Responsive: Built with mobile-first principles.
  • āœØ Accessible: Follows accessibility standards and best practices.

šŸ“š Documentation

Explore the full documentation and examples here: āž”ļø Design System Documentation


šŸš€ Quick Start

  1. Clone the repository:

    git clone https://github.com/pattespatte/vanilla-css-design-system.git
    
  2. Install dependencies (optional):

    npm install
    
  3. Include the generated CSS in your project:

    <link rel="stylesheet" href="styles/vanilla-combined.min.css">
    

Build CSS

Combine, purge, and minify CSS:

npm run build:css

Convert Between Formats

CSS ā†” Tokens:

npm run css2tokens
npm run tokens2css

Watch for Changes

Automatically rebuild and convert files on changes:

npm run watch

Lint CSS

Check and fix CSS styles:

npm run lint:css
npm run lint:css:fix

Scripts Overview

ScriptDescription
build:cssCombine, purge, and minify CSS.
css2tokensConvert CSS to design tokens.
tokens2cssConvert design tokens to CSS.
watchWatch for changes and rebuild/convert files.
lint:cssLint CSS files.
lint:css:fixLint and fix CSS files.

CDN Link

https://rawcdn.githack.com/pattespatte/vanilla-css-design-system/refs/tags/v1.0.2/styles/vanilla-combined.min.css


šŸ“‚ Folder Structure

vanilla-css-design-system/
ā”œā”€ā”€ styles/             # CSS files (variables, components, utilities, etc.)
ā”œā”€ā”€ scripts/            # Helper scripts for combining, purging, and converting CSS
ā”œā”€ā”€ examples/           # Demo examples showcasing the design system
ā”œā”€ā”€ tokens/             # Design tokens for easy customization
ā”œā”€ā”€ README.md           # Project documentation
ā””ā”€ā”€ package.json        # Project dependencies and scripts

šŸ› ļø Tools & Technologies

  • CSS: Vanilla CSS with a modular architecture.
  • Stylelint: Linting for consistent coding standards.
  • PurgeCSS: Removes unused CSS for optimized builds.
  • CleanCSS: Minifies the CSS for production.
  • Nodemon: Watches for changes and automates tasks.

šŸ‘€ Examples

Check out examples showcasing the design system in action: āž”ļø View Examples


šŸ“ License

This project is licensed under the MIT License. See the LICENSE file for details.


šŸ“¬ Contact & Contributions

  • šŸ‘¤ Author: pattespatte
  • šŸ’¬ Feedback: Found an issue or have a suggestion? Open an issue or submit a pull request.
  • āž”ļø Contribute

ā¤ļø Support

If you find this project helpful, please consider giving it a ā­ on GitHub!