Ignite UI Theming MCP Server

v30.4.0
io.github.IgniteUI/igniteui-theming Checked 3 hours ago Published 1 day ago

Generate Sass palettes, typography, elevations, and themes for Ignite UI components.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

detect_platform Detect Target Platform

Detect the target platform by analyzing dependencies and project config files. <use_case> Use this tool FIRST before generating any theme code to ensure platform-optimized output. The detected platform determines the correct Sass module paths and syntax. Output format ("sass" vs "css") is a separate concern — see the output parameter on each generation tool. For non-Angular platforms, prefer "css" unless the project has a confirmed Sass pipeline; use your own file-reading tools or ask the user to confirm before choosing output: "sass". </use_case> <detection_signals> Uses mul…

ParameterTypeDescription
packageJsonPathstringPath to package.json file, relative to current working directory. Defaults to "./package.json".

create_palette Create Color Palette

Generate a color palette for Ignite UI themes using the palette() Sass function. <use_case> Use this tool when you have base colors and want to auto-generate a complete palette with all shade variations (50-900, A100-A700). This is the right tool for almost every palette - pass the brand colors and let the generator do the rest. </use_case> <output_formats> - "sass" (default): Generates Sass code using the palette() function. Requires Sass compilation. - "css": Generates CSS custom properties (variables) directly. Ready to use in any CSS file. Use "css" output when: - Working…

create_custom_palette Create Custom Handmade Palette

Generate a custom color palette with fine-grained control over individual shade values. ⚠️ CRITICAL RULES - READ BEFORE GENERATING SHADES: 1. MONOCHROMATIC: Each color (primary, secondary, etc.) must use ONE HUE only. All 14 shades are lighter/darker versions of the SAME color. Example: primary blue → all shades must be blue (#E3F2FD light → #0D47A1 dark). WRONG: mixing blue, green, purple in one color's shades. 2. NEVER INVERT: Chromatic colors always go 50=lightest → 900=darkest. This applies to BOTH light and dark themes. Only gray inverts for dark themes. <use_case>…

create_typography Create Typography

Set up typography for Ignite UI themes with custom font families and type scales. <use_case> Use this tool to configure fonts that match your brand identity while maintaining consistent sizing, line heights, and letter spacing based on design system conventions. </use_case> <workflow> 1. Takes font family string and optional design system preset 2. Generates Sass code using the typography() mixin 3. Applies the type scale from the selected design system 4. Optionally applies custom scale overrides </workflow> <important_notes> - Font family string should include fallbacks for…

ParameterTypeDescription
fontFamily *stringFont family string with fallbacks. Quote names with spaces. Example: '"Inter", "Helvetica Neue", sans-serif'
customScaleobjectCustom type scale overrides. Object with type style names as keys (h1, h2, body-1, button, etc.) and style objects as values containing fontSize, fontWeight, lineHeight, letterSpacing, textTransform.
designSystemstringDesign system preset: "material" (Material Design), "bootstrap" (Bootstrap), "fluent" (Microsoft Fluent), or "indigo" (Infragistics Indigo). Defaults to "material".
licensedbooleanUse licensed @infragistics package (Angular only). Set to true if using @infragistics/igniteui-angular from private ProGet registry. Defaults to false (uses open-source igniteui-angular from npm). Not…
namestringCustom variable name (without $ prefix). If omitted, auto-generates based on tool and variant (e.g., "custom-light", "my-theme").
outputstringOutput format for the generated code. "sass" — Returns Sass source using igniteui-theming functions and mixins. Requires a Sass pipeline with Dart Sass 1.97.1 or later in the consuming project. Pre…
platformstringTarget platform: "angular" for Ignite UI for Angular, "webcomponents" for Ignite UI for Web Components, "react" for Ignite UI for React, "blazor" for Ignite UI for Blazor, or "generic" for platform-ag…

create_elevations Create Elevations

Set up elevation shadows for Ignite UI themes. <use_case> Use this tool to configure box-shadow values that provide visual depth and hierarchy. Elevations follow Material Design or Indigo design specifications. </use_case> <workflow> 1. Selects elevation preset based on design system parameter 2. Generates Sass code using the elevations() mixin 3. Creates 24 elevation levels (0-24) with corresponding shadow values </workflow> <important_notes> - "material" preset: Material Design 3 shadow specifications - "indigo" preset: Infragistics Indigo shadow specifications - Elevation…

ParameterTypeDescription
designSystemstringElevation shadow preset: "material" (Material Design shadows) or "indigo" (Infragistics Indigo shadows). Defaults to "material".
licensedbooleanUse licensed @infragistics package (Angular only). Set to true if using @infragistics/igniteui-angular from private ProGet registry. Defaults to false (uses open-source igniteui-angular from npm). Not…
namestringCustom variable name (without $ prefix). If omitted, auto-generates based on tool and variant (e.g., "custom-light", "my-theme").
outputstringOutput format for the generated code. "sass" — Returns Sass source using igniteui-theming functions and mixins. Requires a Sass pipeline with Dart Sass 1.97.1 or later in the consuming project. Pre…
platformstringTarget platform: "angular" for Ignite UI for Angular, "webcomponents" for Ignite UI for Web Components, "react" for Ignite UI for React, "blazor" for Ignite UI for Blazor, or "generic" for platform-ag…

create_theme Create Complete Theme

Generate a complete, production-ready Ignite UI theme with palette, typography, and elevations. <use_case> Use this tool as the starting point for new projects. It generates everything needed for a working theme in a single operation: color palette, typography setup, elevation shadows, and the theme application mixin. </use_case> <workflow> 1. Creates color palette using palette() function 2. Sets up typography with specified font family (if includeTypography: true) 3. Applies the theme using the theme() mixin, with the elevations of the design system (if includeElevations:…

ParameterTypeDescription
primaryColor *stringPrimary brand color for the theme - used for main actions and emphasis. Valid CSS color formats: hex ("#3F51B5", "#3F51B5AA"), rgb/rgba ("rgb(63, 81, 181)", "rgb(63 81 181 / 0.5)"), hsl/hsla ("hsl(231…
secondaryColor *stringSecondary/accent color for the theme - used for highlights and selection. Valid CSS color formats: hex ("#3F51B5", "#3F51B5AA"), rgb/rgba ("rgb(63, 81, 181)", "rgb(63 81 181 / 0.5)"), hsl/hsla ("hsl(2…
surfaceColor *stringSurface/background color for the theme. Use light colors (#FAFAFA) for "light" variant, dark colors (#121212) for "dark" variant. A role that does not have enough room to move resolves to "base": on a…
designSystemstringDesign system preset: "material" (Material Design), "bootstrap" (Bootstrap), "fluent" (Microsoft Fluent), or "indigo" (Infragistics Indigo). Defaults to "material".
fontFamilystringFont family string with fallbacks. Quote names with spaces. Example: '"Inter", "Helvetica Neue", sans-serif'
generatorstringOPTIONAL - omit it. "legacy" reproduces the original multiplier-based ramps and exists only to keep an existing theme byte-identical while migrating.
includeElevationsbooleanInclude elevation shadows in the generated theme. Set to false if you want to configure elevations separately. Defaults to true.
includeTypographybooleanInclude typography setup in the generated theme. Set to false if you want to configure typography separately. Defaults to true.
licensedbooleanUse licensed @infragistics package (Angular only). Set to true if using @infragistics/igniteui-angular from private ProGet registry. Defaults to false (uses open-source igniteui-angular from npm). Not…
namestringCustom variable name (without $ prefix). If omitted, auto-generates based on tool and variant (e.g., "custom-light", "my-theme").
outputstringOutput format for the generated code. "sass" — Returns Sass source using igniteui-theming functions and mixins. Requires a Sass pipeline with Dart Sass 1.97.1 or later in the consuming project. Pre…
platformstringTarget platform: "angular" for Ignite UI for Angular, "webcomponents" for Ignite UI for Web Components, "react" for Ignite UI for React, "blazor" for Ignite UI for Blazor, or "generic" for platform-ag…
scalesOPTIONAL - omit unless asked to match another system's rhythm. Preset name ("even" | "material" | "tailwind" | "carbon"), or a map keyed by family: {"gray": "carbon"}. To match a ladder you have seen,…
variantstringTheme variant: "light" (light backgrounds, dark text) or "dark" (dark backgrounds, light text). Defaults to "light".

set_size Set Size Scale

Set global or component-specific sizing by updating --ig-size. <use_case> Use this tool for requests like: - "Make the calendar smaller" - "The buttons feel too big" - "Use the small size everywhere" </use_case> <behavior> - Sets --ig-size in the chosen scope (defaults to :root) - Accepts "small", "medium", "large" (mapped to 1, 2, 3) or numeric values - When platform is "generic", do NOT use the "component" parameter (it resolves Ignite UI component selectors). Use "scope" with a custom CSS selector instead, or omit both for :root. </behavior> <sass_notes> - Components map…

ParameterTypeDescription
size *Size value to set for --ig-size. Accepts "small" (1), "medium" (2), "large" (3), or numeric 1, 2, 3 only.
componentstringOptional component name to scope the layout change (e.g., "flat-button", "calendar", "avatar"). If omitted, the change applies globally via :root. Note: component targets Ignite UI framework selectors…
outputstringOutput format for the generated code. "sass" — Returns Sass source using igniteui-theming functions and mixins. Requires a Sass pipeline with Dart Sass 1.97.1 or later in the consuming project. Pre…
platformstringTarget platform: "angular" for Ignite UI for Angular, "webcomponents" for Ignite UI for Web Components, "react" for Ignite UI for React, "blazor" for Ignite UI for Blazor, or "generic" for platform-ag…
scopestringOptional CSS selector scope for the change (e.g., ".my-theme", ":root", "#app"). Ignored when component is provided.

set_spacing Set Spacing Scale

Set global or component-specific spacing by updating --ig-spacing. <use_case> Use this tool for requests like: - "The button feels bloated" - "Tighten the spacing on the form" - "Double the padding on cards" </use_case> <behavior> - Sets --ig-spacing in the chosen scope (defaults to :root) - Optional overrides for --ig-spacing-inline and --ig-spacing-block - 0 = no spacing, 1 = default, 2 = double (fractions allowed) - spacing is required; inline/block are optional overrides - When platform is "generic", do NOT use the "component" parameter (it resolves Ignite UI component…

ParameterTypeDescription
spacing *numberSpacing scale multiplier for --ig-spacing. 0 = none, 1 = default, 2 = double. Fractions allowed.
blocknumberBlock spacing scale multiplier for --ig-spacing-block. Overrides block spacing only.
componentstringOptional component name to scope the layout change (e.g., "flat-button", "calendar", "avatar"). If omitted, the change applies globally via :root. Note: component targets Ignite UI framework selectors…
inlinenumberInline spacing scale multiplier for --ig-spacing-inline. Overrides inline spacing only.
outputstringOutput format for the generated code. "sass" — Returns Sass source using igniteui-theming functions and mixins. Requires a Sass pipeline with Dart Sass 1.97.1 or later in the consuming project. Pre…
platformstringTarget platform: "angular" for Ignite UI for Angular, "webcomponents" for Ignite UI for Web Components, "react" for Ignite UI for React, "blazor" for Ignite UI for Blazor, or "generic" for platform-ag…
scopestringOptional CSS selector scope for the change (e.g., ".my-theme", ":root", "#app"). Ignored when component is provided.

set_roundness Set Roundness Scale

Set global or component-specific roundness by updating --ig-radius-factor. <use_case> Use this tool for requests like: - "Make the flat buttons more round" - "Square off the cards" </use_case> <behavior> - Sets --ig-radius-factor in the chosen scope (defaults to :root) - 0 = minimum radius, 1 = maximum radius, values between interpolate - When platform is "generic", do NOT use the "component" parameter (it resolves Ignite UI component selectors). Use "scope" with a custom CSS selector instead, or omit both for :root. </behavior> <sass_notes> - border-radius() responds to --ig-…

ParameterTypeDescription
radiusFactor *numberRoundness scale factor for --ig-radius-factor. 0 = minimum radius, 1 = maximum radius. Values must be between 0 and 1.
componentstringOptional component name to scope the layout change (e.g., "flat-button", "calendar", "avatar"). If omitted, the change applies globally via :root. Note: component targets Ignite UI framework selectors…
outputstringOutput format for the generated code. "sass" — Returns Sass source using igniteui-theming functions and mixins. Requires a Sass pipeline with Dart Sass 1.97.1 or later in the consuming project. Pre…
platformstringTarget platform: "angular" for Ignite UI for Angular, "webcomponents" for Ignite UI for Web Components, "react" for Ignite UI for React, "blazor" for Ignite UI for Blazor, or "generic" for platform-ag…
scopestringOptional CSS selector scope for the change (e.g., ".my-theme", ":root", "#app"). Ignored when component is provided.

get_component_design_tokens Get Component Design Tokens

Discover available design tokens (themeable properties) for an Ignite UI component. <use_case> ALWAYS call this tool FIRST before using create_component_theme. It returns the exact token names that can be customized for a component, preventing hallucination of invalid property names. NOTE: This tool returns tokens for Ignite UI framework components. It is NOT useful when the detected platform is "generic" — component theming requires a specific Ignite UI product (angular, webcomponents, react, or blazor). </use_case> <workflow> 1. Provide the component name (e.g., "button",…

ParameterTypeDescription
component *stringComponent name to get design tokens for (e.g., "button", "avatar", "grid"). Use exact names like "flat-button" for button variants. Child sub-component names like "list-item", "card-header", "accordio…

create_component_theme Create Component Theme

Generate Sass or CSS code to customize an Ignite UI component's appearance using design tokens. <use_case> Use this tool AFTER calling get_component_design_tokens to customize specific component styles. The generated code can be included in your theme file to override default component appearances. </use_case> <workflow> 1. First call get_component_design_tokens to discover available tokens 2. Choose which tokens to customize based on your design requirements 3. Specify designSystem and variant to match the global theme or the one explicitly requested (defaults to Material light)…

ParameterTypeDescription
component *stringComponent name to theme (e.g., "button", "avatar", "flat-button", "grid"). Must match a valid component from get_component_design_tokens. For button/icon-button variants, use specific names like "flat…
platform *stringTarget platform: "angular" for Ignite UI for Angular, "webcomponents" for Ignite UI for Web Components, "react" for Ignite UI for React, "blazor" for Ignite UI for Blazor, or "generic" for platform-ag…
tokens *objectObject mapping token names to values. Token names must be valid for the component (use get_component_design_tokens to discover them). Values can be CSS colors, dimensions with units, or other Sass-com…
designSystemstringDesign system preset: "material" (Material Design), "bootstrap" (Bootstrap), "fluent" (Microsoft Fluent), or "indigo" (Infragistics Indigo). Defaults to "material".
licensedbooleanUse licensed @infragistics package (Angular only). Set to true if using @infragistics/igniteui-angular from private ProGet registry. Defaults to false (uses open-source igniteui-angular from npm). Not…
namestringOptional name for the generated theme variable (without $ prefix). If omitted, auto-generates based on component name (e.g., "$custom-button-theme").
outputstringOutput format for the generated code. "sass" — Returns Sass source using igniteui-theming functions and mixins. Requires a Sass pipeline with Dart Sass 1.97.1 or later in the consuming project. Pre…
selectorstringOptional CSS selector to scope the theme. If omitted, uses the platform's default selector for the component. For child sub-components (e.g., "list-item"), the default selector is the parent component…
variantstringTheme variant: "light" (light backgrounds, dark text) or "dark" (dark backgrounds, light text). Defaults to "light".

get_color Get Palette Color

Retrieve a palette color from Ignite UI Theming as a CSS variable reference. <use_case> Use this tool when you need to reference a specific palette color in CSS or Sass code. Returns CSS variable references that work in both Sass and CSS contexts. Common scenarios: - Setting component backgrounds/foregrounds using theme colors - Creating hover/focus states with opacity variations - Ensuring text contrast against colored backgrounds </use_case> <workflow> 1. Specify the color family (primary, secondary, gray, etc.) 2. Optionally specify a shade variant (50-900, A100-A700) 3…

ParameterTypeDescription
color *string
contrastboolean
opacitynumber
variantstring

get_chart_series_colors Get Chart Series Colors

Retrieve the shared Ignite UI chart series brush palette, per-chart-type color-token guidance, and validate custom brush lists. <use_case> Use this tool when theming Ignite UI charts (category, data, doughnut, pie, funnel, shape, financial, linear/radial gauge, bullet graph) and you need the default series colors, want to know which theme tokens accept a custom color list for a given chart type, or want to sanity-check a custom brush list before using it in a $brushes: (...) override. NOT covered by this tool: sparkline (singular tokens, not a palette list) and selection/highligh…

ParameterTypeDescription
chartTypestringOptional chart type to get color-token guidance for (e.g., "category-chart", "financial-chart", "linear-gauge", "bullet-graph"). When provided, the response lists which theme tokens accept the series…
customBrushesarrayOptional array of CSS colors to validate as a custom series brush list before using them in a $brushes: (...) override. When provided, the tool checks each color is valid and flags any pair of colors…
indexintegerOptional 1-based index (1-10) to retrieve a single brush color from the palette instead of the full 10-color list.
modestringWhich series brush palette to use: "regular" (default, visually distinct colors) or "color-blind" (alternate palette for better distinguishability under common color vision deficiencies, activated via…

fit_color_scale Fit Color Scale

Derive a shade scale from an existing color ladder. <use_case> Use when shades must follow the rhythm of a ladder you already have - another design system's grays, a brand ramp, a palette from a screenshot. Pass the returned spec to create_palette or create_theme as `scales`. Never hand-write range/curve values. Not needed for the built-in presets ("even" | "material" | "tailwind" | "carbon") - name those in `scales` directly. </use_case> <important_notes> - Order the colors LIGHTEST FIRST (a 50-900 ladder already is). 3 minimum, 10 fits best. - The response reports how closel…

ParameterTypeDescription
colors *arrayThe ladder to fit, LIGHTEST FIRST (3-20 colors). Valid CSS color formats: hex ("#3F51B5", "#3F51B5AA"), rgb/rgba ("rgb(63, 81, 181)", "rgb(63 81 181 / 0.5)"), hsl/hsla ("hsl(231, 48%, 48%)", "hsl(231…
familystringPalette family the scale applies to; it keys the returned scales map. Defaults to "gray". A surface takes no scale.
namestringOptional label for the fitted scale, shown in the response and as a comment in the Sass. Does not change the scales map - use `family` for that.

read_resource Read Theming Resource

Read a theming resource by URI. Returns reference data such as platform configurations, color palette presets, typography presets, color guidance, and layout documentation. <use_case> Use this tool to load reference data before or during theme generation. Other tools reference these resources in their related_resources sections — call this tool with the listed URI to retrieve the data. Common scenarios: - Load palette presets to see available colors before creating a palette - Read color guidance to understand shade usage and semantic roles - Check platform configuration for…

ParameterTypeDescription
uri *stringURI of the theming resource to read (e.g., "theming://presets/palettes", "theming://platforms/angular"). See the available_resources list in the tool description for all valid URIs.