MCPcopy Create free account
hub / github.com/master-co/css

github.com/master-co/css

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.37.7 ↗ · + Follow · compare 2 versions
501 symbols 907 edges 246 files 4 documented · 1% updated 7d agov2.0.0-rc.83 · 2026-07-06★ 1,940

Browse by type

Functions 95 Types & classes 406
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img src="https://raw.githubusercontent.com/master-co/package/document/images/logo-and-text.svg" alt="logo" width="142">






<b>CSS</b>

A Virtual CSS language with enhanced syntax. ~13KB

MIT License Latest Release Bundle Size Package Size Documentation Github Discord CI

image

On this page

Features

Let's have a quick overview of the groundbreaking features of Master CSS:

  • 🔥 A whole new CSS language instead of utilities/libraries.
  • 🔓 Write CSS properties, functions, selectors and even media queries directly in class="...".
  • 🧠 Automatically generate corresponding CSS rules based on class names.
  • 💖 With enhanced CSS syntax, you can build UIs with less code.
  • ⚡️ Directly use performant JIT in production. ~13KB
  • 🧬 An enhanced and structured CSS syntax for class names.
  • 🌈 A forerunner to syntax highlighting for class names.
  • Hybrid Rendering that allows you to pre-generate CSS from HTML on the server side, and then continue to use JIT on the client side.
  • Group Styles that allows you to extract the same selectors and media query styles and make it short.
  • Reactive Styles that allows you to style an element based on parent/sibling state.

To learn more, check out the documentation.

Why Master CSS

A brief introduction starts by giving you an understanding of markup-driven CSS.

😐 Traditional

<style>
    .home-section {
        background-color: blue;
        padding: 2rem;
        text-align: center;
    }

    .home-section:hover {
        background-color: red;
    }

    @media (min-width: 1024px) {
        .home-section {
            padding: 3rem;
        }
    }
</style>

<section class="home-section">...</section>

🤩 Now, refactor it with a whole new CSS language to make it easier. ↓ 86% code

<section class="bg:blue bg:red:hover p:32 p:48@md text:center">...</section>

To learn more, check out the Why Master CSS documentation.

Quick Start

This is a quick start guide, check out the full setup guide to integrate with your build tools and frameworks.

npm install @master/css
import '@master/css';

or use a CDN

<script src="https://cdn.master.co/css"></script>

Now, start styling HTML with Master CSS. 🎉

<h1 class="font:40 font:heavy italic m:50 text:center">Hello World</h1>

To learn more, check out the Syntax tutorial documentation.

Developer Tools

Inspiration

Some of our core concepts and designs are inspired by these giants. - Language - Master is a language, but it was originally inspired by ACSS's concept of atomic classes. - Virtual CSS - Difference algorithms, virtual models, etc. are inspired by Virtual DOM.

Related

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Class 398
Method 78
Function 17
Interface 8

Languages

TypeScript100%

Modules by API surface

src/sheet.ts23 symbols
src/style.ts10 symbols
src/styles/group.ts7 symbols
src/styles/spacing.ts4 symbols
src/styles/scroll-padding.ts4 symbols
src/styles/scroll-margin.ts4 symbols
src/styles/padding.ts4 symbols
src/styles/overflow.ts4 symbols
src/styles/margin.ts4 symbols
src/styles/border.ts4 symbols
src/styles/border-width.ts4 symbols
src/styles/border-style.ts4 symbols

Dependencies from manifests, versioned

@babel/core7.16.0 · 1×
@babel/plugin-proposal-class-properties7.16.0 · 1×
@babel/plugin-proposal-decorators7.16.0 · 1×
@babel/plugin-proposal-export-default-from7.16.0 · 1×
@babel/plugin-proposal-export-namespace-from7.16.0 · 1×
@babel/plugin-proposal-object-rest-spread7.16.0 · 1×
@babel/plugin-transform-runtime7.16.4 · 1×
@babel/preset-env7.16.4 · 1×
@babel/preset-typescript7.16.0 · 1×
@babel/runtime7.16.3 · 1×
@master/cli1.0.0-alpha.22 · 1×
@types/jest27.5.2 · 1×

For agents

$ claude mcp add css \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page