Material UI theming and design tokens
Agent skill for theme creation, design tokens, light/dark, and CSS theme variables. SKILL.md is the entry; AGENTS.md is the full guide.
When to apply
createTheme, ThemeProvider, useTheme, CssBaseline
colorSchemes, useColorScheme, storage / SSR behavior
cssVariables: true, theme.vars, applyStyles('dark', …)
- Custom theme keys and TypeScript module augmentation
Sections in AGENTS.md
| Area |
Topics |
| Core setup |
Imports, provider placement, useTheme |
| Token map |
palette, typography, spacing, shape, breakpoints, components, … |
| Palette |
main / derived colors, @mui/material/colors, mode |
| Color schemes |
vs palette-only, hydration, ThemeProvider props |
| CSS variables |
cssVariables, reserved vars, flicker avoidance |
| Composition |
Multi-step createTheme, deepmerge, nesting providers |
| Custom tokens |
Augmenting Theme / ThemeOptions |
Full guide
Read AGENTS.md for the complete instructions and links.
TypeScript snippets: reference.md.
1---
2name: material-ui-theming
3description: Guides Material UI theming and design tokens (createTheme, ThemeProvider, palette, colorSchemes, cssVariables, theme.vars, dark mode, TypeScript augmentation). Use when building or extending a theme, toggling light/dark, or aligning tokens across an app.
4license: MIT
5metadata:
6 source: https://skillmd.com/skills/mui/material-ui-theming
7 author: mui
8 version: '1.0.0'
9---
10
11# Material UI theming and design tokens
12
13Agent skill for theme creation, design tokens, light/dark, and CSS theme variables. SKILL.md is the entry; AGENTS.md is the full guide.
14
15## When to apply
16
17- `createTheme`, `ThemeProvider`, `useTheme`, `CssBaseline`
18- `colorSchemes`, `useColorScheme`, storage / SSR behavior
19- `cssVariables: true`, `theme.vars`, `applyStyles('dark', …)`
20- Custom theme keys and TypeScript module augmentation
21
22## Sections in AGENTS.md
23
24| Area | Topics |
25| :------------ | :-------------------------------------------------------------- |
26| Core setup | Imports, provider placement, `useTheme` |
27| Token map | palette, typography, spacing, shape, breakpoints, components, … |
28| Palette | `main` / derived colors, `@mui/material/colors`, `mode` |
29| Color schemes | vs palette-only, hydration, `ThemeProvider` props |
30| CSS variables | `cssVariables`, reserved `vars`, flicker avoidance |
31| Composition | Multi-step `createTheme`, `deepmerge`, nesting providers |
32| Custom tokens | Augmenting `Theme` / `ThemeOptions` |
33
34## Full guide
35
36Read [AGENTS.md](./AGENTS.md) for the complete instructions and links.
37
38TypeScript snippets: [reference.md](./reference.md).