milligram
Milligram is an ultra-lightweight (~2kb gzipped) CSS framework that provides minimal default styling for typography, forms, buttons, grids, and tables. It aims to be a clean, low-opinion starting point rather than a full UI component library.
MITPermissive — free to use in commercial and proprietary software, with attribution.View license →
Production readiness
4/5- Actively maintainedNo commits in over a year
- No known vulnerabilitiesNo OSV advisories
- Clear, usable licenseMIT (permissive)
- Proven adoptionWidely used
- Has documentationDocumentation indexed
Our analysis
A minimalist CSS framework offering sensible base styles for common HTML elements while keeping the footprint tiny (~2kb gzipped). It styles defaults rather than supplying a library of pre-built components.
When to use milligram
Good for small projects, prototypes, landing pages, or documentation sites where you want attractive defaults without committing to a heavy framework or fighting heavy resets. Works well when you intend to layer your own custom styling on top of a clean baseline.
When not to
Not a fit for applications needing rich, ready-made components (modals, dropdowns, navbars), utility-first workflows, or a JavaScript-driven design system. Reach for Tailwind, Bulma, or Bootstrap when you need extensive components or strong theming.
Strengths
- Extremely small footprint, minimal CSS to override
- Sensible, attractive default styling out of the box
- Flexbox-based grid system
- No JavaScript dependency; easy to drop in
Trade-offs
- No interactive components — purely styling defaults
- Limited customization/theming compared to modern frameworks
- Relies on Sass/Normalize-style assumptions; sparse documentation beyond the homepage
- Effectively unmaintained, with little recent development
Maturity
A mature and stable project with over 10k stars, but development has stalled and there has been little active maintenance in recent years. Stable for basic use given its small scope, but not evolving with modern CSS practices.
A minimalist CSS framework.
Why it's awesome
Milligram provides a minimal setup of styles for a fast and clean starting point. Just it! Only 2kb gzipped! It's not about a UI framework. Specially designed for better performance and higher productivity with fewer properties to reset resulting in cleaner code. Hope you enjoy!
Download
Install with Bower
$ bower install milligram
Install with npm
$ npm install milligram
Install with Yarn
$ yarn add milligram
Table of Contents
Contributing
Want to contribute? Follow these recommendations.
License
Designed with ♥ by CJ Patoilo. Licensed under the MIT License.