Skip to content

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

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-astro integration.
  • Next.js - @master/css-next integration for the App Router, with pre-rendered and request-time pages.
  • Nuxt - @master/css-nuxt module with static, browser or Nitro response rendering.
  • SvelteKit - @master/css-svelte integration, installed with npx sv add @master/css-svelte-addon.
  • Vite - @master/css-vite plugin for Vite, React, Vue, React Router and TanStack Start.
  • Webpack - @master/css-webpack plugin 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 with npm 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-server for 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-mcp lets 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

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.