mui-styling

mui-styling is a skill for Claude Code from komluk/scaffolding. It costs 76 tokens per session (2,679 once invoked), scanned A, original, MIT.

Styling guidance for Material UI, a React component library, using its built-in styling tools, theme values, spacing scale, responsive layouts, and accessibility practices. A theme is a shared set of visual rules such as colors and spacing.

In plain words
What is it for?
Use it when styling Material UI components, defining theme tokens, creating responsive layouts, or reviewing interface consistency. It covers the sx prop, reusable styled components, theme overrides, spacing, colors, and responsive design.
Why use it?
It helps keep interfaces visually consistent across components and screen sizes. It also gives a clear order for choosing styling methods and avoids scattered one-off values.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: agent in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { componentStyles } from '../theme';.

Part of the scaffolding plugin — 35 skills, 9 commands, 13 agents shipped together

Good fit Use it when styling Material UI components, defining theme tokens, creating responsive layouts, or reviewing interface consistency. It covers the sx prop, reusable styled components, theme overrides, spacing, colors, and responsive design.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/komluk/scaffolding
agentmods
npx agentmods add skills/komluk/scaffolding/mui-styling

Made for: Claude Code.

Or install scaffolding, the plugin that ships this one along with the rest of its 35 skills, 9 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mui-styling

README.md
[![agentmods](https://agentmods.dev/badge/skills/komluk/scaffolding/mui-styling.svg)](https://agentmods.dev/skills/komluk/scaffolding/mui-styling)
Your own site
<a href="https://agentmods.dev/skills/komluk/scaffolding/mui-styling"><img src="https://agentmods.dev/badge/skills/komluk/scaffolding/mui-styling.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,679 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.02679
Opus 5 $0.00038 $0.01340
Sonnet 5 $0.00015 $0.00536
Haiku 4.5 $0.00008 $0.00268

Measured 7d ago against content hash 8d43de04aa5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

mui-styling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mui-styling/SKILL.md · 319 lines

How it starts

The opening of the file, as written. The whole thing — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MUI Styling Skill

Material-UI styling standards and best practices.

When to Apply

  • Creating styled components
  • Implementing responsive design
  • Theme customization
  • UI consistency review

Styling Approach Priority

Priority Approach Use When
1st sx prop Most styling needs
2nd styled() API Reusable styled components
3rd Theme overrides Global component defaults
Avoid Inline CSS / CSS files Never use in MUI projects

Spacing System

Spacing Scale

Value Pixels Usage
0.5 4px Tight spacing
1 8px Default small
2 16px Default medium
3 24px Section spacing
4 32px Large spacing

Spacing Props

Prop CSS Property
m margin
p padding
mt, mr, mb, ml margin-top/right/bottom/left
pt, pr, pb, pl padding-top/right/bottom/left
mx, my margin x/y axis
px, py padding x/y axis
gap flex/grid gap

Color System

Theme Colors

Category Values
Primary primary.main, primary.light, primary.dark, primary.contrastText
Secondary secondary.main, secondary.light, secondary.dark
Status error.main, warning.main, info.main, success.main
Grey grey.100 through grey.900
Background background.default, background.paper
Text text.primary, text.secondary, text.disabled

Color Usage Guidelines

Use Case Color
Primary actions primary.main
Secondary actions secondary.main
Error states error.main
Success feedback success.main
Backgrounds background.paper or background.default
Body text text.primary
Helper text text.secondary

Responsive Design

Breakpoints

Key Min Width Target
xs 0px Mobile phones
sm 600px Tablets portrait
md 900px Tablets landscape
lg 1200px Desktops
xl 1536px Large screens

Read the full file on GitHub · 319 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 319 lines · 76 tokens per session scan A 8d43de04aa5f

Subscribe to this mod's changes

mui-styling is a skill published in the GitHub repository komluk/scaffolding (15 stars, last pushed 1mo ago), licensed MIT. It adds 76 tokens to every session and 2,679 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

interface-craft

Raises the visual and interaction quality of an interface — layout, hierarchy, type, spacing, density, and the details that separate a considered product from a generic one. Use this when a screen works but looks unfinished or default, when a layout feels crowded or arbitrary, when a page has no clear focal point, or…

cbrock84/headcount · 79 tokens

design-system

Builds and maintains the design system a product is assembled from — tokens for color, type, spacing and elevation, component contracts, and the rules that keep them coherent as the product grows. Use this when starting a new interface, when screens have drifted apart visually, when the same component exists three…

cbrock84/headcount · 82 tokens

interface-redesign

Upgrades an existing interface to a higher standard without rebuilding it — auditing what is there, identifying what reads as generic or unfinished, and sequencing changes by impact. Use this when a product works but looks dated or default, when a redesign is being considered, when deciding whether to restyle or…

cbrock84/headcount · 77 tokens

frontend-patterns

Context enrichment for frontend UI development using shadcn/ui and Tailwind CSS. Use when building component libraries, implementing UI designs, theming, or working with accessible React components.

rsmdt/the-startup · 40 tokens

fidelity-gate

Build a UI against a frozen visual reference without drift - an inventory extracted before any code, a relics list, and a gate that MEASURES computed styles on a fixture carrying the reference's own data. Use when a mockup, design spec or screenshot is the contract.

jjanczur/tyran · 56 tokens

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", or "vs best practices".

martineserios/thebrana · 37 tokens