Master CSS is a markup-driven CSS language where class names and design tokens in HTML drive generated styles. One project manifest scopes CSS per page and keeps classes consistent in editor, build, and AI tooling
Overview
Master CSS is a markup-driven CSS orchestration language aimed at developers and AI agents. You style in markup with class names and shared design tokens; a project manifest drives which CSS each page needs and validates classes the same way in the editor, the build pipeline, and agent workflows.
Tokens for color, spacing, radius, and typography are defined once in @theme, and utilities, components, and light or dark modes read from those values without swapping class names. Utilities sit in CSS layers so markup classes win over components without !important, and layouts can combine grid spans, responsive rules, animation, and view transitions beside the elements they affect.
Rendering can follow static, prerendered, or runtime paths: scan class names in source, write matching rules to a stylesheet, or generate rules in the browser via a runtime. Editor and language-service features include manifest-aware completions, hover inspection of generated CSS, focused highlighting in class strings, and color tooling tied to tokens and pickers.
Linting and fixing run through ESLint rules, a CLI, and an MCP server for AI agents, covering invalid or conflicting classes, ordering, strict vocabulary, and previewed fixes before apply. An optional MCP package exposes tools to inspect classes, trace CSS, audit setup, lint content, and suggest migrations using workspace manifest and entry resources.
Key features
- Central @theme design tokens
- Per-page CSS from a project manifest
- Static, prerender, and runtime rendering paths
- Native CSS layers for utilities
- Light and dark modes via token values
- Editor completions and hover CSS inspection
- ESLint rules and CLI linting
- MCP server tools for AI agents
Use cases
- Utility-first styling in markup
- Consistent tokens across modes
- Linting Master CSS classes in CI
- AI-assisted class and token edits
- Reducing unused CSS per page