Beer CSS is a lightweight, class-light CSS framework that implements Google's Material Design 3 (including M3 Expressive) using semantic HTML. Current stable version is 4.0.21, released regularly. It is significantly smaller (14.4 KB brotli) than other Material Design frameworks like Materialize or MUI, and is dependency-free with no build steps required. Designed to work with any JavaScript framework and works out of the box with semantic HTML tags, reducing the need for custom CSS classes. Ships TypeScript types and is fully compatible with the latest web standards.
npm install beercssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic HTML page using CDN imports for Beer CSS core and Material Icons.
Update any references from --beer-primary to --primary, etc.
Add the 'outline' attribute to <button> elements to revert to the old style.
Import 'beercss/dist/material-icons.css' or use CDN version with icon CSS.
Use semantic elements directly as children of <body> or within allowed containers.
Replace flat="true" with text="true" on button elements.
Install '@types/beercss' or update tsconfig.json to include 'node_modules/beercss/dist/types/index.d.ts'.
Replace 'import beercss from "beercss"' with 'import "beercss"'.
Use the correct path: 'beercss/dist/material-icons.css' (note: 'dist' not optional).
No dependency data recorded yet.