360 Secure SkillHub
360 安全技能中心

material-ui-theming

面向开发者的 Material UI 主题参考,说明 createTheme、ThemeProvider、调色板、colorSchemes、CSS 主题变量和 TypeScript 模块扩充,并给出配置建议与代码片段;主要作为本地文档指导,不执行代码。

分类:开发
mui
热度 0.00
最近更新 2026-11-20 05:09:38

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add mui/material-ui/material-ui-theming
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
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 for the complete instructions and links.

TypeScript snippets: reference.md.