Milligram is a minimalist CSS framework designed to give developers a fast and clean starting point for building websites. At only 2kb gzipped, it targets better performance and higher productivity by keeping properties to reset at a minimum, resulting in cleaner code.
Unlike full UI frameworks, Milligram does not attempt to cover every component or pattern. It suits developers who want a lightweight base without the overhead of larger alternatives like Bootstrap or Foundation.
You install Milligram via npm, Yarn, Bower, or a direct CDN link, then add the CSS Reset and the main Milligram stylesheet to your HTML head. From there, you write standard HTML elements — headings, buttons, forms, lists, grids — and Milligram's styles apply automatically without additional class wiring beyond a few optional modifiers.
Milligram suits developers who want a minimal, dependency-light CSS foundation rather than a full component library. It is not positioned as a UI framework, so teams needing pre-built modals, dropdowns, or JavaScript interactions would need to add those separately.
The entire framework compresses to only 2kb gzipped, minimizing page weight for faster load times.
All typography uses the rem unit with a base font-size of 1.6rem (16px) and Roboto font provided by Google.
Buttons come in three built-in styles: flat color default, outline (.button-outline), and clear (.button-clear).
Milligram styles unordered, ordered, and description lists with distinct spacing and marker treatments.
Milligram is available to install via Bower, npm, Yarn, or CDN link for flexible project integration.
The milligram-cli package scaffolds a new boilerplate project with milligram init and runs it via npm start.
The distributed package ships both milligram.css and milligram.min.css for development and production use respectively.
Milligram pairs with a CSS Reset stylesheet to normalize browser defaults before applying its own minimal styles.
Pricing extracted from the product website and may change. Check the source for current details.
Generate text, images, video, and audio through one OpenAI-compatible API, pay as you go with credit...
Flow makes writing quick and clear with seamless voice dictation. It is the fastest, smartest way to...
Your AI teammate for sales calls — participates live, pulls context from your tools, and executes fo...
Browse and download 500+ handcurated color palettes for design projects and creative applications
Generate proportional type and spacing scales using harmonic ratios—get Sass and JavaScript plugins ...