/mantine:mantine-themingfrom mantine
Creates or applies Mantine themes from themes.mantine.dev presets, theme editor links, color palettes, typography, and shadows. Handles theme objects, CSS variables, component styles, fonts, and brand-color palettes.
Ships in mantine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Written for Mantine 10.x. A theme from themes.mantine.dev is a createTheme object, an optional
cssVariablesResolver, an optional theme.module.css with component styles, and font tags. This
skill gets those files from the user's link, or builds them from a description, and wires them
into the app.
9.x: exported themes do not apply as is. They use surfaces, disabledOpacity and
overlayStack in the theme and the --mantine-color-surface-*, --mantine-color-border*,
--mantine-color-text-muted and --mantine-color-hover variables, which are new in 10.x. Tell
the user and offer to upgrade every @mantine/* package to 10.x first; do not strip the 10.x
parts silently.
No Mantine in the app: tell the user. Set Mantine up (https://mantine.dev/getting-started/) only when they ask, then continue.
The scripts are in ${CLAUDE_SKILL_DIR}/scripts/, where ${CLAUDE_SKILL_DIR} is this skill's
folder, the folder this SKILL.md was loaded from (the reference files write it as
<skill folder>). Run them from the project directory, not from the skill folder.
https://themes.mantine.dev/?preset=<id>&... is the theme editor. Without preset, the
preset is generic (the default Mantine theme).https://themes.mantine.dev/<id>/?... is the preset page. It accepts the same query parameters
as the editor, so /<id>/?primary=teal and /?preset=<id>&primary=teal are the same theme./colors-generator/?... is a single palette, not a theme: follow
Color workflow./typography/?... is typography only (fonts, sizes, line heights, weights, headings), starting
from Mantine defaults: see Typography and shadows links./shadows-generator/?... is theme.shadows only: see
Typography and shadows links.For a theme editor or preset link, use the first source that is available:
<id>-theme.zip from Download zip, or theme.ts pasted from the editor. These are exact.https://themes.mantine.dev/?preset=<id>&<the user's query> and switch to the Code tab.
It shows up to four files: theme.ts; theme.module.css (presets with component styles,
while Include preset component styles is on, the default); App.tsx; index.html (font
tags, only when the theme sets fonts). Read every file tab, or use Download zip. Do not
change anything in the editor: the code reflects the URL.https://raw.githubusercontent.com/mantinedev/mantine/master/apps/themes.mantine.dev/src/presets/<id>/theme.ts
and theme.module.css next to it (generic has no CSS file and no resolver). It exports
theme and cssVariablesResolver like the editor does, with three differences: the resolver
is a function that reads the theme (keep it); some presets import shouldUseBrandHover from
../brand-hover (fetch .../src/presets/brand-hover.ts, save it next to theme.ts and fix
the import); there is no index.html, so load the fonts named in fontFamily,
fontFamilyMonospace and headings.fontFamily yourself.
When the link has tweaks, apply them on top the way the editor does: build an override object
from the link (URL parameters; palettes and gray and dark ramps
from scripts/generate-palette.mjs --url, shadows from scripts/generate-shadows.mjs --url)
and export mergeThemeOverrides(presetTheme, overrides) from @mantine/core as theme.
Scaled sizes are computed from the preset's values. The source resolver then computes its
variables from the final theme, like the editor.App.tsx in the export is a usage sample, not a file to copy over the app's own root.
When the user describes the look instead of sharing a link, decide the values and write
theme.ts yourself. A link is not required.
generic for a plain Mantine theme with only
the values you set. A preset brings tuned neutrals, CSS variables for both color schemes and
component styles; changing its fonts and primary color keeps those. Tell the user which base
you picked and why.colors and primary, gray and dark, font,
headings-font, weights, spacing, radius, font-size, default-radius, shadows. The link
https://themes.mantine.dev/?preset=<id>&<parameters> is the spec the scripts read and a
preview the user can open and tweak. Offer it; do not wait for it.node ${CLAUDE_SKILL_DIR}/scripts/generate-palette.mjs --url '<link>' for
palettes, primary shade and gray and dark ramps;
node ${CLAUDE_SKILL_DIR}/scripts/generate-shadows.mjs --url '<link>' (or --preset <name>)
for shadows. Fonts, weights and sizes by hand, as described in
URL parameters.mergeThemeOverrides. With generic, write createTheme({...}) with the
values only. Then apply it as in step 4 and verify as in step 7.primaryShade.light in the preset source, 6 for generic) with the generator's shade
option: colors=brand:%23<hex>:6.97.40.10.55.0. primaryShade is global: it picks the filled,
outline and text shade of every color, so blue badges, red errors and green icons follow it. A
custom color without a pinned shade lands wherever the generator puts it, and a dark brand
color (brown, navy) lands on shade 8-9, which darkens every color of the light scheme. For a
dark brand color also lower darkest so the shades under it still step down; the palette
script warns when a custom primary color lands outside shades 5-7 and prints the entry to use.
Keep the preset's primaryShade.dark (shade-dark) and check the brand on dark surfaces: a
dark brand color needs a lighter dark-scheme shade (4-5) or a separate dark scheme value
(colors=brand:%23<hex>:6.97.25.10.55.0:a.97.40.10.55.0:%23<lighter hex>). Halcyon and Clerk
are monochrome on purpose (shade 9 in light, 0-1 in dark): keep that for them. A link from the
user is reproduced as it is; when its primary color lands outside 5-7, tell them and offer the
pinned entry.Popover, Menu,
Combobox, Select) use --mantine-color-surface-page, and default buttons and action icons
use --mantine-color-default, which Mantine sets to the white panel color. Some presets paint
them gray for their demo pages: Hearth, Night Shift and Tidewrack set surfaces.light.page to a
gray; Hearth sets the light --mantine-color-default to gray-0 in its resolver; Hearth and
Night Shift give the .dropdown class in theme.module.css a --mantine-color-default or
--mantine-color-surface-panel-2 background. In an app, remove the gray page surface and the
light --mantine-color-default override (keep the preset's panel, sunken, muted and hover
colors), and give the preset's dropdown class background-color: var(--mantine-color-surface-page). Dark scheme surfaces stay as the preset sets them. App CSS
never paints the page, the main area, a dropdown or a default button gray either.gray=warm&dark=warm for red,
orange, brown, olive and yellow brands, cold or default for blue, teal and violet. A base
color (gray=%23<hex>) tints the ramp with that color's hue and chroma, like Riverline's green
grays; keep it close to gray or the neutrals read as a color. A tinted dark (navy, deep teal)
gives the dark scheme its own character.spacing and font-size at 90-95. Content and marketing:
100-115. Radius: xs or sm with radius below 100 for editorial and technical looks, md
for neutral apps, radius at 150 or more for friendly consumer products.subtle or crisp for tools, soft or floating for marketing, tinted for
playful brands; flat designs keep strength low and rely on borders.Version. Check @mantine/core in package.json: the export needs 10.x (see the 9.x note).
Files. Save theme.ts (and theme.module.css) where the project keeps its theme, next to
the component that renders MantineProvider if there is no such place. Keep the
./theme.module.css import path valid.
One provider. Pass theme and, when exported, cssVariablesResolver to the existing
MantineProvider. Do not add a second provider. Keep its other props (defaultColorScheme,
colorSchemeManager, ...). @mantine/core/styles.css stays imported once, before the app's
own styles.
Existing theme. The new theme decides the look: colors, fonts, sizes, radius, shadows,
surfaces, component styles. A value the new theme does not set means the Mantine default, so
remove the old overrides of these. From the old theme keep only what the app relies on: extra
colors referenced in code (color="success"), component defaultProps that change behavior,
other. Merge them on top with mergeThemeOverrides(theme, { colors: { success: successColor } })
from @mantine/core (later arguments win) and tell the user what was kept and what was
replaced.
When the old and new theme both set components.<Name>, merge by hand: the preset's
classNames and vars plus the app's defaultProps.
Existing resolver. MantineProvider takes one cssVariablesResolver. Combine them, the
preset last so its values win and the app keeps only the variables the preset does not set:
const resolver: CSSVariablesResolver = (theme) => {
const app = appResolver(theme);
const preset = cssVariablesResolver(theme);
return {
variables: { ...app.variables, ...preset.variables },
light: { ...app.light, ...preset.light },
dark: { ...app.dark, ...preset.dark },
};
};
Other packages. Some presets style components from other packages in theme.ts (for
example @mantine/dates or @mantine/code-highlight). If the app uses those components,
install the package (same version as @mantine/core) and import its styles.css after the
core styles. If it does not, remove those components entries and their imports.
PostCSS. theme.module.css uses postcss-preset-mantine (@mixin hover, @mixin dark,
light-dark()). Set it up if the project does not have it
(https://mantine.dev/styles/postcss-preset/). Presets are written with autoRem: true; without
it px values in the CSS module do not follow theme.scale.
Fonts. Put the tags from index.html into the document <head> and keep the font stacks
in theme.ts as they are. With a font loader that renames families (next/font/google in
Next.js), load the same families and weights and replace the family name in the theme with the
loader's value (inter.style.fontFamily, or var(--font-inter) with the variable option on
the root element); the literal 'Inter' from the export does not match the loaded font. Remove
font imports and tags the new theme no longer uses.
Hardcoded values in the app. The theme changes page, card, input and border colors through
semantic variables, and fonts, radius and shadows through theme values. App CSS and props that
hardcode them do not follow the theme: hex values, fixed shades for surfaces
(var(--mantine-color-gray-0), var(--mantine-color-dark-7), white), color="blue" on
elements that should use the primary color, font families, radius and shadow values. Find them,
list them for the user and ask whether to replace them with theme values; recommend replacing.
Replace what the user approves with the role it stands for (--mantine-color-body,
--mantine-color-surface-panel, --mantine-color-border, --mantine-color-text,
--mantine-color-dimmed, the primary color, --mantine-radius-*, --mantine-shadow-*), without
changing layout or behavior. Token list: https://mantine.dev/theming/colors/.
/typography/?...): replace only the typography part of the app's theme:
fontFamily, fontFamilyMonospace, fontSmoothing, fontWeights, fontSizes,
lineHeights, headings. Values the link omits are Mantine defaults, so remove old overrides
of these keys. Keep colors, radius, spacing, shadows and components unchanged. On a preset
theme this replaces the preset's typography; say so. Files: the prompt from Copy prompt or
the page's code, or build them from the link by hand
(Typography editor). Load the fonts as in step 4./shadows-generator/?...):
node ${CLAUDE_SKILL_DIR}/scripts/generate-shadows.mjs --url '<link>' prints theme.shadows; set it in the theme. Some preset resolvers set
--mantine-shadow-* in the dark color scheme (Slate does); those win over theme.shadows, so
remove them when the new shadows should apply in both schemes.theme.ts. Generate palettes, ramps and shadows with the scripts
(Color workflow, URL parameters), never by
hand.--mantine-color-<name>-filled-hover) and map roles to its shades (--mantine-color-error,
focus ring, anchors). After changing primaryColor or a palette, search theme.ts and
theme.module.css for the old color name and update each match that should follow.The ZIP contains the theme only, not the preset page. When the user also wants layouts like the preset (hero, cards, navigation, timetable):
.tsx and .module.css files in
https://github.com/mantinedev/mantine/tree/master/apps/themes.mantine.dev/src/presets/<id>
(the on GitHub link in the Code tab).mod+J toggles the scheme on preset pages): page background, cards, inputs, buttons,
headings, borders.primaryShade.light of their own palette; if they look
darker or muddier than Mantine's defaults, the primary shade is above 7 (see
Design choices).Select and a Menu), white default buttons and action icons, no gray regions.scripts/check.mjs) and its review pass (references/review.md).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mantinedev/skills --plugin mantine9 skills in this plugin
/mantine-calendarBuild custom calendars and date pickers with @mantine/dates: per-day content and states, your own selection rules, custom periods and display-only calendars. Use this skill when: (1) a calendar shows data per day (prices, free slots, event dots, activity heatmap), (2) days are unavailable with a reason, or a range must not cross booked days, (3) the selection is not a plain date, dates or range (stays, fixed-length periods, fiscal quarters, week or custom-period pickers), (4) a calendar sits next to time slots, presets or a toolbar, or (5) any task involving Calendar, useCalendar, getDayProps, renderDay, excludeDate, getMonthControlProps, Month, Day, CalendarHeader or PickerControl.
/mantine-comboboxBuild custom dropdown/select/autocomplete/multiselect components using Mantine's Combobox primitives. Use this skill when: (1) creating a new custom select-like component with Combobox primitives, (2) building a searchable dropdown, (3) implementing a multi-select or tags input variant, (4) customizing option rendering, (5) adding custom filtering logic, or (6) any task involving useCombobox, Combobox.Target, Combobox.Option, or Combobox.Dropdown.
/mantine-custom-componentsBuild custom components that integrate with Mantine's theming, Styles API, and core features. Use this skill when: (1) creating a new component using factory(), polymorphicFactory(), or genericFactory(), (2) adding Styles API support (classNames, styles, vars, unstyled), (3) implementing CSS variables via createVarsResolver, (4) building compound components with sub-components and shared context, (5) registering a component with MantineProvider via Component.extend(), or (6) any task involving Factory, useProps, useStyles, BoxProps, StylesApiProps, or ElementProps in @mantine/core.
/mantine-data-gridBuild data tables with `@mantine/data-grid` (DataGrid on TanStack Table v9). Use this skill when: (1) building an admin list, orders table or any table with sorting, filtering or pagination, (2) connecting a grid to an API with server-side sorting, filtering and pagination, (3) adding row selection with bulk actions, row actions or inline cell/row editing, (4) rendering grouped rows, tree data, pinned or resizable columns, or 10k+ rows with virtualization, (5) adding a toolbar, filter controls, export or a custom footer to a grid, or (6) any task involving `DataGrid`, `useDataGrid`, `DataGridColumnDef` or `@tanstack/react-table` inside a Mantine app.
/mantine-formBuild forms using @mantine/form. Use this skill when: (1) setting up a form with useForm, (2) adding validation rules, schema validation (zod, valibot, arktype) or async validation, (3) working with nested object or array fields, (4) reading values, dirty or touched state during render (useWatchValue, useDirty, useTouched), (5) splitting a form into components or reusing field components across forms (createFormContext, getField), (6) building custom inputs that work with getInputProps (useFormField), (7) using the standalone useField hook, or (8) any task involving useForm, getInputProps, onSubmit, insertListItem, or form validation.
/mantine-scheduleBuild calendar and scheduling interfaces with @mantine/schedule. Use this skill when: (1) adding a day, week, month, year or agenda calendar (Schedule, DayView, WeekView, MonthView, YearView, AgendaView, MobileMonthView), (2) building a booking page, team rota, room planner or any view with people, rooms or machines as rows (ResourcesSchedule, ResourcesDayView, ResourcesWeekView, ResourcesMonthView), (3) creating events by clicking or drag-selecting slots, (4) moving or resizing events with drag and drop and rejecting invalid placements, (5) recurring events (rrule, exceptions, single-occurrence edits), (6) business hours, blocked time or other background events, (7) custom event rendering, or (8) any task involving ScheduleEventData, onEventDrop, onSlotDragEnd or onTimeSlotClick.
Other plugins' skills for the same job