Integrations

Set up Master CSS in React

Guide to setting up Master CSS in your React project.

Create a project

If you don't have a React project, create one first.

Terminal
npm create vite@latest my-app -- --template react-tscd my-app

Add Master CSS

Run the installer from the React project root. Static is the default: it scans complete class strings and emits ordinary CSS.

Terminal
npm create @master/css@rc -- --framework react --yes

Start dev server

Run the command to start the Vite dev server.

npm run dev

Start using Master CSS

Now style your first component using Master CSS syntax.

localhost:5173

Hello World

src/App.tsx
export default function App() {  return (    <h1 className="m-2xl italic font-5xl font-heavy text-neutral">      Hello World    </h1>  )}

© 2026 Aoyue Design LLC.MIT License
Trademark Policy