Integrations

Set up Master CSS in React Router

Guide to setting up Master CSS in your React Router project.

Create a project

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

Terminal
npx create-react-router@latest my-appcd my-app

Add Master CSS

Run the installer with --mode runtime from the project root. The browser runtime generates rules for class names that appear after the build.

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

Start dev server

Run the command to start the React Router dev server.

npm run dev

Start using Master CSS

Now style your first route module using Master CSS syntax.

localhost:5173

Hello World

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

© 2026 Aoyue Design LLC.MIT License
Trademark Policy