{
  "markdown": "<h1 align=\"center\">\n  Ignite UI Theming - from Infragistics \n</h1>\n\n[![npm version](https://badge.fury.io/js/igniteui-theming.svg)](https://badge.fury.io/js/igniteui-theming)\n\nThe Ignite UI Theming repository collects a set of Sass mixins, functions, and variables used to create themes for a variety of UI frameworks built by Infragistics. The theming package makes it super easy to create palettes, elevations and typography styles for your projects.\n\n## Repository Structure\n\nThis repository is an npm workspaces monorepo with two packages:\n\n| Package            | Name                   | Description                                                 |\n| ------------------ | ---------------------- | ----------------------------------------------------------- |\n| `packages/theming` | `igniteui-theming`     | Sass source, JSON build artifacts, published to npm         |\n| `packages/mcp`     | `igniteui-theming-mcp` | MCP server sources, built into `packages/theming/dist/mcp/` |\n\nThe `igniteui-theming` package is the only published artifact — it includes both the Sass theming library and the MCP server binary.\n\nThe MCP server is also listed in the [MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.IgniteUI/igniteui-theming`. The `server.json` at the repo root is its registry manifest, published automatically on release.\n\nCommon commands from the repo root:\n\n```bash\nnpm install    # install all workspace dependencies\nnpm run build  # build theming + MCP in dependency order\nnpm test       # run all tests across both packages\nnpm run lint   # lint all packages\n```\n\n## Palettes\n\nWe provide four predefined palettes - material, bootstrap, fluent and indigo that have all the necessary colors along with diffent variants of those colors to make it even easier picking the right one for your case. Here's what they look like:\n\n![Palettes](https://user-images.githubusercontent.com/45598235/189592212-0d58b08d-3c98-4f27-8ec3-c6f674c9942b.png)\n\nTo access any of the colors in the palettes, you can use the `color` function:\n\n```scss\nbackground: color($light-material-palette, 'primary', 500);\n```\n\nYou can take a further look on what color functions and mixins the package contains and how to use them in the [Colors Wiki Page](<https://github.com/IgniteUI/igniteui-theming/wiki/Colors-(Draft)>)\n\n## Typography\n\nAnother valuable module of our theming package is the typography, helping you have consistency all over your project. There are again four typography presets for the four themes that we provide out of the box.\n\n![Typography](https://user-images.githubusercontent.com/45598235/189596034-d8697bc1-e683-4d4a-a113-96e17fc90d4b.png)\n\nYou can set any of the typefaces by using the `typography` mixin, which accepts 2 arguments(font-family and type-scale). By default the typography is using the material typeface and type-scale.\n\n```scss\n@include typography($font-family: $material-typeface, $type-scale: $material-type-scale);\n```\n\nLearn more about the typography module in the package by checking out the [Typography Wiki Page](<https://github.com/IgniteUI/igniteui-theming/wiki/Typography-(Draft)>)\n\n## Elevations\n\nThe theming package is providing one preset of shadows that can be used to give your components a lift. They're super helpful using with buttons, cards, navigation bars, etc.\n\n![Elevations](https://user-images.githubusercontent.com/45598235/189627744-1fa47d35-6b3b-4b7a-b26e-5b46fe4311a4.png)\n\nYou can set elevations 0-24, by using the `elevation` function, which accepts the elevation level as an argument:\n\n```scss\nbox-shadow: elevation(12);\n```\n\nLearn more about elevations and their abilities in the [Elevations Wiki Page](<https://github.com/IgniteUI/igniteui-theming/wiki/Elevations-(draft)>)\n\n## Usage\n\nIn order to use the Ignite UI Theming in your application you should install the `igniteui-theming` package:\n\n```\nnpm install igniteui-theming\n```\n\nNext, you will need to **use** it in the file that you want like this:\n\n```scss\n@use '.../node_modules/igniteui-theming/' as *;\n```\n\nYou can also **use** just a fraction of the package:\n\n```scss\n@use '.../node_modules/igniteui-theming/sass/color' as *;\n```\n\nWe provide presets for **material, bootstrap, fluent and indigo** themes for the color(light and dark palettes), typography and elevations fractions. You can import them into your scss file like this:\n\n```scss\n@use '.../node_modules/igniteui-theming/sass/typography/presets' as *;\n```\n\nYou can read more about what the package contains on the [Wiki page](https://github.com/IgniteUI/igniteui-theming/wiki)\n\n## Linting and Testing\n\nTo scan the project for linting errors, run\n\n```\nnpm run lint\n```\n\nTo run the suite of tests, run\n\n```\nnpm run test\n```\n\n## Testing and Debugging\n\n### Preview Palettes\n\nRun from `packages/theming`. Pass the palette (`material`, `bootstrap`, `fluent`, `indigo`) and variant (`light` or `dark`). \n\n```bash\nnpm run preview:palette -- --palette=material --variant=light\n```\n\n---\n\n## MCP Server (AI-Assisted Theming)\n\nThe Ignite UI Theming package includes a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that enables AI assistants to generate production-ready theming code for your Ignite UI applications. This MCP server is part of the larger [AI-assisted development toolchain](https://www.infragistics.com/ai-assisted-app-development) for Ignite UI.\n\n### What is MCP?\n\nThe Model Context Protocol allows AI assistants (like Claude, GitHub Copilot, and others) to connect to external tools and data sources. The Ignite UI Theming MCP server acts as an expert theming assistant that can:\n\n- 🎨 **Generate color palettes** with automatic shade variations\n- 📝 **Create typography systems** following design standards\n- 🌓 **Build complete themes** for light and dark modes\n- 🎯 **Customize components** with design tokens\n- ✅ **Validate colors** for accessibility compliance\n\n### Quick Start\n\nMost users don't need to clone anything. The server ships inside the published `igniteui-theming` package and is listed in the [MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.IgniteUI/igniteui-theming` — clients that support registry installation can add it by that name, and everything else uses the `npx` configuration shown below.\n\nTo run it from source instead:\n\n#### 1. Clone and Build\n\nClone the repository and build:\n\n```bash\nnpm install\nnpm run build\n```\n\n#### 2. Configure Your AI Client\n\nThe MCP server works with any MCP-compatible client. Here are setup instructions for popular clients:\n\n<details>\n<summary><strong>VS Code</strong> (with MCP-compatible extensions)</summary>\n\n**For local development** - Create or edit `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"igniteui-theming\": {\n      \"command\": \"node\",\n      \"args\": [\"/absolute/path/to/igniteui-theming/packages/theming/dist/mcp/index.js\"]\n    }\n  }\n}\n```\n\n**Using published package**:\n\n```json\n{\n  \"servers\": {\n    \"igniteui-theming\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"igniteui-theming\"]\n    }\n  }\n}\n```\n\n</details>\n\n<details>\n<summary><strong>WebStorm / JetBrains IDEs</strong></summary>\n\n1. Go to **Settings → Tools → AI Assistant → MCP Servers**\n2. Click **+ Add MCP Server**\n3. Configure:\n   - **Name**: `igniteui-theming`\n   - **Command**: `node` (for local) or `npx` (for package)\n   - **Arguments**:\n     - Local: `/absolute/path/to/igniteui-theming/packages/theming/dist/mcp/index.js`\n     - Package: `-y igniteui-theming`\n4. Click **OK** and restart AI Assistant\n\n</details>\n\n<details>\n<summary><strong>Claude Desktop</strong></summary>\n\nAdd to your configuration file:\n\n**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`  \n**Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n**For local development**:\n\n```json\n{\n  \"mcpServers\": {\n    \"igniteui-theming\": {\n      \"command\": \"node\",\n      \"args\": [\"/absolute/path/to/igniteui-theming/packages/theming/dist/mcp/index.js\"]\n    }\n  }\n}\n```\n\n**Using published package**:\n\n```json\n{\n  \"mcpServers\": {\n    \"igniteui-theming\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"igniteui-theming\"]\n    }\n  }\n}\n```\n\n</details>\n\n<details>\n<summary><strong>Cursor</strong></summary>\n\nCreate or edit `.cursor/mcp.json` in your project:\n\n**For local development**:\n\n```json\n{\n  \"mcpServers\": {\n    \"igniteui-theming\": {\n      \"command\": \"node\",\n      \"args\": [\"/absolute/path/to/igniteui-theming/packages/theming/dist/mcp/index.js\"]\n    }\n  }\n}\n```\n\n**Using published package**:\n\n```json\n{\n  \"mcpServers\": {\n    \"igniteui-theming\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"igniteui-theming\"]\n    }\n  }\n}\n```\n\n</details>\n\n### What Can It Do?\n\n#### 🎨 Create Complete Themes\n\nSimply describe your theme to your AI assistant:\n\n> \"Create a Material Design dark theme for my Angular app with that takes inspiration from the Gruvbox color scheme.\"\n\nThe AI will generate production-ready Sass code with:\n\n- Color palette with all shade variations\n- Typography setup with proper type scales\n- Elevation shadows\n- Platform-specific imports and configuration\n\n#### 🌈 Generate Color Palettes\n\n> \"Generate a light theme palette using teal as primary and purple as secondary\"\n\nGet perfectly calculated color shades following design system standards.\n\n#### 📝 Setup Typography\n\n> \"Set up typography using Inter font with Material Design type scale for Web Components\"\n\nGet proper typography configuration with font families and responsive type scales.\n\n#### 🎯 Customize Components\n\n> \"What design tokens are available for the button component?\"\n>\n> \"Create a flat button theme with purple background and white text\"\n\nDiscover and customize individual component styles using design tokens.\n\n### Available Capabilities\n\nThe MCP server provides **8 tools** and **16 resources**:\n\n#### Tools (Actions)\n\n| Tool                          | Description                                                     |\n| ----------------------------- | --------------------------------------------------------------- |\n| `detect_platform`             | Auto-detect which Ignite UI platform your project uses          |\n| `create_palette`              | Generate color palette with automatic shade calculations        |\n| `create_custom_palette`       | Create palette with fine-grained control over individual shades |\n| `create_typography`           | Setup typography with font families and type scales             |\n| `create_elevations`           | Configure elevation shadows                                     |\n| `create_theme`                | Generate complete theme (palette + typography + elevations)     |\n| `get_component_design_tokens` | Discover customizable properties for components                 |\n| `create_component_theme`      | Generate component-specific theme code                          |\n\n#### Resources (Reference Data)\n\n- **Platform Information**: Configuration for Angular, Web Components, React, and Blazor\n- **Preset Libraries**: Pre-built palettes, typography, and elevation sets\n- **Color Guidance**: Best practices for color selection and usage\n- **Design System Schemas**: Material, Bootstrap, Fluent, and Indigo configurations\n\n### Supported Platforms\n\n- **Angular** - `igniteui-angular`\n- **Web Components** - `igniteui-webcomponents`\n- **React** - `igniteui-react`\n- **Blazor** - `igniteui-blazor`\n\n### Example Interactions\n\n<details>\n<summary><strong>Creating a new project theme</strong></summary>\n\n**You**: \"I'm starting a new Angular project with Ignite UI. Create a complete Material Design theme with primary blue, secondary coral, light theme, and Roboto font\"\n\n**AI**: _Uses `create_theme` tool and generates complete Sass code ready to use_\n\n</details>\n\n<details>\n<summary><strong>Adding dark mode</strong></summary>\n\n**You**: \"I need a dark mode version with the same primary blue but dark surface\"\n\n**AI**: _Uses `create_theme` with `variant: \"dark\"` and generates dark theme code_\n\n</details>\n\n<details>\n<summary><strong>Customizing components</strong></summary>\n\n**You**: \"What properties can I customize on the card component?\"\n\n**AI**: _Uses `get_component_design_tokens` to show available tokens_\n\n**You**: \"Make the card have a light gray background with subtle shadow\"\n\n**AI**: _Uses `create_component_theme` to generate component theme code_\n\n</details>\n\n### Full Documentation\n\nFor detailed documentation including:\n\n- Complete tool parameter reference\n- All prompt examples\n- Platform-specific differences\n- Troubleshooting guide\n- Development instructions\n\nSee the [MCP Server README](./packages/mcp/README.md)\n\n### Development Scripts\n\n```bash\n# Build for production (theming + MCP)\nnpm run build\n\n# Run tests\nnpm run test\n\n# Debug with MCP Inspector (from packages/mcp)\nnpm run inspect\n```\n\n---\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n",
  "bytes": 12831,
  "sha": "e4ddafc1a5e49de1aca4787a20b9cd01354a3b61b6ccb2beee09f4be1fa41b0f",
  "repo_slug": "igniteui/igniteui-theming",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_igniteui_igniteui_theming_1fc407a8/readme"
}