This repo serves as an example for a Tanstack Start project with MUI and server side dark mode.
Related blog article: Dark Mode in TanStack with MUI
Clone the repo and then in the project root run:
pnpm iFrom the project root run:
pnpm devThe server will be running on: http://localhost:3000.
-
This project was started with TanStack Start - Bare Example
-
Material UI was installed via the default installation
-
zod was installed (required for
ColorModeschema)
# Tanstack Start
npx gitpick TanStack/router/tree/main/examples/react/start-bare .
# MUI
pnpm add @mui/material @emotion/react @emotion/styled
# Zod
pnpm add zod