Skip to main content

material-ui-theming

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.

来源信息

仓库
mui/material-ui
最近来源活动
2026年6月29日 09:31
检测到的 SKILL.md 语言
英语
星标
99,285
Forks
32,498

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
5 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
material-ui-theming
description
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.
license
MIT
metadata
{"author":"mui","version":"1.0.0"}
# 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](./AGENTS.md) for the complete instructions and links. TypeScript snippets: [reference.md](./reference.md).
在 GitHub 查看