Master CSS¶
A virtual CSS language with enhanced syntax.
Source
41 resources imported from master-co/awesome-master-css, dedicated to the public domain (CC0 / Unlicense). Thanks to its maintainers and contributors. Part of the KEEBOX Library · Category: Front-End Development.
Official Resources¶
- Website - Homepage and documentation.
- Repository - Source code of the language, compiler, integrations and tooling.
- Releases - Version history and release notes.
@master/css- The core package on npm.- Master CSS 2.0 Film - Launch film for Master CSS 2.0.
Learning¶
- Introduction - What Master CSS is and how it works.
- Installation - Add Master CSS to a new or existing project.
- Syntax Tutorial - Read and write Master CSS classes step by step.
- Reference - Every utility, token, directive and selector the preset supports.
- Migration - Move from Tailwind CSS, Bootstrap, Sass, CSS-in-JS, Material UI, shadcn/ui or plain CSS one route at a time.
- Benchmarks - How much delivered CSS a page uses, generated CSS compared for the same UI, and build and runtime costs.
llms.txt- The documentation as plain text for language models.
Framework Integrations¶
- Astro -
@master/css-astrointegration. - Next.js -
@master/css-nextintegration for the App Router, with pre-rendered and request-time pages. - Nuxt -
@master/css-nuxtmodule with static, browser or Nitro response rendering. - SvelteKit -
@master/css-svelteintegration, installed withnpx sv add @master/css-svelte-addon. - Vite -
@master/css-viteplugin for Vite, React, Vue, React Router and TanStack Start. - Webpack -
@master/css-webpackplugin for Webpack, Rspack and Rsbuild. - Angular - CLI-generated CSS, or the optional browser runtime.
- Lit - Style shadow roots with static CSS or a runtime that follows the component lifecycle.
- Storybook - Load application styles into the Storybook preview with the Vite builder.
- Server-Rendered Apps - Build with Vite and load the CSS from PHP, Laravel, Rails, WordPress, Shopify, ASP.NET Core, Blazor or Express templates.
Tools¶
create-css- Add Master CSS to an existing project withnpm create @master/css.@master/css-cli- Scan sources and generate static CSS from the command line.@master/css-runtime- Generate CSS in the browser as classes appear.@master/css-server- Render the CSS for server-generated HTML.- ESLint Plugin - Sort classes and report invalid, non-canonical or conflicting classes with
@master/eslint-plugin-css.
Editor Support¶
- Visual Studio Code - Official extension with completion, hover previews, syntax highlighting, color tools and diagnostics.
- Language Server -
@master/css-language-serverfor editors that speak the Language Server Protocol. - Language Service Guide - Set up and tune editor support for your project.
AI Coding¶
- AI Coding Guide - Work with coding agents and verify what they change.
- MCP Server -
@master/css-mcplets agents inspect classes, render CSS, lint, preview fixes and read design system contracts. - Agent Skill - Teach coding agents Master CSS with
npx skills add master-co/css --skill master-css.
Examples¶
- Starter Projects - Minimal setups for Angular, Astro, Laravel, Lit, Next.js, Nuxt, React, Svelte, Vite, Webpack, the CDN and more.
Articles¶
- Master CSS 2.0 - Expressive classes, CSS-defined tokens, and tools that understand your design system.
- Master CSS with Next.js: When to Use Progressive Rendering - Pre-rendered HTML, later classes in the browser, and the boundary for dynamic SSR.
- Master CSS with Vite: Choose When to Generate CSS - Follow one app through source scanning, emitted HTML and the connected DOM.
Community¶
- GitHub Discussions - Ask questions, discuss ideas and share your work. English and Chinese are welcome.
- GitHub Issues - Report reproducible bugs.
- Discord - Chat with the community.
- X - News and announcements.