# Chameleon > Chameleon is a library of 46 web components built to Material 3 Expressive, themed from a single seed color, with typed React components (`Cr*`) and Blazor components (`Cb*`) that render the same elements. Angular, Vue and Svelte are coming soon and not yet released. These pages are the guides and the API of Chameleon 27.0.0-preview.2, the most recent release. For any other release's API, ask the docs MCP server at https://chameleonui.io/mcp, giving the release as `version`. A script that runs as the page loads awaits `customElements.whenDefined()` before reading a component's properties or calling its methods; until then they are undefined. ## What sets Chameleon apart - One seed color generates the whole color theme, light and dark. Chameleon computes every Material `on-` color against its own background, so text stays legible at standard, medium and high contrast. The color math runs in WebAssembly, which is why its Content-Security-Policy needs `'wasm-unsafe-eval'`. [Source](https://chameleonui.io/utilities/theming#color) - The components follow Material 3 Expressive, and the theme generator uses the Material Expressive color specification by default. [Source](https://chameleonui.io/utilities/theming#color) - React apps use typed React components, `CrButton`, `CrTextField` and the rest, and Blazor apps use Razor components, `CbButton`, `CbTextField` and the rest. Both render the same `cw-*` elements as the web components. [Source](https://chameleonui.io/get-started/installation#react) - Inputs follow the locale: a number field writes `1.234,5` in `de-DE`, `1,234.5` in `en-US` and `12,34,567` in `en-IN`, and the built-in text, such as a dialog's close button, is translated. [Source](https://chameleonui.io/utilities/locale) - Chameleon runs under a strict Content-Security-Policy with no `'unsafe-inline'` and no `'unsafe-eval'`, works with Trusted Types, and loads nothing from another origin. [Source](https://chameleonui.io/get-started/security) ## Capabilities From the product facts, each with the page that shows it. - Every component runs under a Content Security Policy with no 'unsafe-inline' and no 'unsafe-eval' in any directive. The minimum policy is default-src 'none'; script-src 'self' 'wasm-unsafe-eval' blob:; worker-src blob:; style-src-elem 'self'; style-src-attr 'none'; img-src data:; base-uri 'none'; form-action 'self'; frame-ancestors 'none'. 'wasm-unsafe-eval' is needed only by the color utilities, and blob: only by scripts and workers Chameleon creates from its own bundle. This holds in Chromium, Firefox and WebKit browsers. [Source](https://chameleonui.io/get-started/security) - Chameleon draws superellipse corners in Chrome, Edge, Firefox and Safari without relying on CSS corner-shape. In forced-colors mode, cards use plain rounded corners. Corner shape is the theme token --ct-sys-corner-shape (round by default; also square, squircle, bevel, scoop, notch or superellipse(n)), and components that draw their own corners also have a corner-shape token of their own, such as --ct-button-corner-shape or --ct-card-corner-shape. [Source](https://chameleonui.io/utilities/theming#shape) - The React and Blazor components render the same cw-* elements as the web components, with the same properties and events, so one page can mix frameworks under one theme. Each adds its framework's idioms, such as @bind-Value on Blazor input components. Toasts are raised through a service (IChameleonToastService in Blazor, showToast in React) rather than placed as an element, and the React components need React 19. [Source](https://chameleonui.io/get-started/installation#multiple-frameworks) - One call turns one seed color into a stylesheet of every color role for light and dark. generateThemeSheet can add a higher-contrast variant to the same stylesheet, and generateDynamicThemeFromHex returns the values at standard, medium and high contrast. [Source](https://chameleonui.io/utilities/color-utilities#schemes-and-themes) - A theme stylesheet built by generateThemeSheet with two contrast levels switches to the higher one when the user asks for more contrast (prefers-contrast: more). It is opt-in: a stylesheet with one level has no higher-contrast variant. [Source](https://chameleonui.io/utilities/color-utilities#themesheetoptions) - A generated theme follows the user's light or dark setting through CSS light-dark(), with plain light values and a prefers-color-scheme: dark block for browsers that lack it. The fallback is on by default and can be turned off. [Source](https://chameleonui.io/utilities/theming#color) - The color utilities run in a Node or Deno build script, imported from @materia-technologies-inc/chameleon-build-utilities/color (it needs a license token), so a script can write a finished theme stylesheet at build time. In the browser, import them from @materia-technologies-inc/chameleon-components-web to generate a theme live from a chosen color or an image. [Source](https://chameleonui.io/utilities/color-utilities#build-time-or-run-time) - The color utilities are built on Google's Material Color Utilities 0.4.0 and, for the same inputs, give the color roles Material defines the same values. They add information, success and warning roles, hover and pressed text roles that keep text at 4.5:1 under a control's hover and pressed overlay, the Chord variant, APCA contrast and the contrast solvers solveRole, solveLadder and solveStatePair. By default they use the Expressive variant and the 2025 specification. [Source](https://chameleonui.io/utilities/color-utilities#built-on-material-color-utilities) - Under prefers-reduced-motion: reduce, script-driven animations finish at once, dialogs, menus, popovers and skeletons don't animate, and component stylesheets drop their transitions; pressed, hovered and focused states still show. [Source](https://chameleonui.io/get-started/accessibility#what-every-component-does) - Text, search, email, telephone and number fields pace their input event, and sliders, range sliders, dials and continuous dials pace their change event, with a mode: immediate, debounced, throttled or adaptive. Sliders, dials and the navigation bar also offer interaction-ended, which fires once when the drag or scroll ends. The navigation bar paces its scroll-progress event with the same modes and throttles it by default. In adaptive mode a component sends the newest value no faster than the app's async work answers, and slows down when that work fails or struggles; it can be capped to a share of the work's time. [Source](https://chameleonui.io/get-started/event-pacing) - Chameleon's components make no network request of their own: no fetch, XHR, WebSocket or beacon, and no font, icon or script from any origin. Images appear only where the app supplies the URL. In the browser, licensing works offline and never contacts Chameleon. [Source](https://chameleonui.io/get-started/security) - With Chameleon's stylesheet linked in the page head, before any script, the components it sizes appear at their final size while the library loads, so they don't move the page as they render. Chameleon aims for no layout shift across as many components as it can. [Source](https://chameleonui.io/get-started/installation#link-the-stylesheet-in-the-head) ## Every page as Markdown Every page on chameleonui.io has a Markdown version: add `.md` to its URL, as in https://chameleonui.io/get-started/ai-agents.md, or request the page with `Accept: text/markdown`. Every link below is to a page's Markdown version, and https://chameleonui.io/llms-full.txt is every page in one file. ## Docs MCP server A Model Context Protocol server at https://chameleonui.io/mcp, open to everyone with no key and no sign-in, answers from these pages and the published API. It has 9 read-only tools: - `check_code`: checks your code against the real API for your framework before you answer. It reads the snippet without running it, checks every element or component, attribute or parameter, property, event, method and enum value, and returns each name that isn't in the API with the fix. It also flags Razor and React mistakes the API can't show, such as a hook used without its import. - `docs_get`: a component's API for one framework: properties with types and defaults, events, methods, slots, Blazor bindings and styling tokens, with the page's usage guidance. `section` narrows the answer to one part or one member, `task` puts the guidance and demo code most relevant to your job first, and `filter` narrows the tokens. - `list_components`: every documented component, with its custom element tag, React and Blazor names, a one-line summary and its page. - `docs_search`: ranked search across every page, section by section, with a snippet and the section's URL. - `get_example`: the demo code on a component's page for one framework, exactly as the page's live editor shows it. - `get_product_facts`: measured, dated facts for evaluating Chameleon: who it is for and not for, what it does not offer yet, the release, capabilities each with its source page, what each component lets you vary, and the dated roadmap. The same JSON is the resource `chameleon://product-facts`. - `generate_theme`: a color theme from one seed color, computed by Chameleon's own color utilities: every `--ct-sys-color-*` token's light and dark value, and the stylesheet `generateThemeCssFromHex` builds. `variant` and `contrast` take the values the theming page describes. - `check_contrast`: the WCAG 2 contrast ratio of two colors, hex values or tokens such as `on-primary`, with the AA and AAA verdicts for normal and large text, in light and dark for a token, and whether Chameleon computes the pair to be legible. - `nearest_tokens`: maps up to 32 raw colors to the nearest color tokens of a theme, light and dark, each with its CIEDE2000 distance, for converting hard-coded colors to tokens. `docs_search`, `docs_get`, `get_example` and `check_code` answer for the framework you choose with `framework`: `web` (the `cw-*` elements), `react` (the `Cr*` components) or `blazor` (the `Cb*` components). `list_components` takes `framework` too, to list only that framework's names. Every tool takes an optional `version`, the Chameleon release to answer from, such as `27.1`. A patch number is dropped, so `27.1.3` is answered from 27.1, and `27` means the newest 27 minor. A preview must match its full version. Leave `version` out for the most recent release, the highest version, previews included. An unknown version is an error that lists the available ones, and an answer for an older release links that release's Markdown pages under https://chameleonui.io/releases/. Every answer is at most 19,000 characters. A longer answer comes in pages: the answer carries `nextCursor`, and passing it back as `cursor` returns the next page. The product facts are also published as a file: https://chameleonui.io/product-facts.json How to connect an agent: https://chameleonui.io/get-started/ai-agents ## Components - [Components - Chameleon](https://chameleonui.io/components/gallery.md): Browse Chameleon's components by category, and open a component's documentation. Sections: Actions · Forms & inputs · Dials & sliders · Chips · Data · Navigation · Surfaces · Feedback · Primitives - [Button - Chameleon](https://chameleonui.io/components/actions/button.md): The Chameleon button starts an action or follows a link, and its five Material 3 Expressive variants set how much attention each action draws. Sections: Overview · Examples · API · Styling · Accessibility - [Icon button - Chameleon](https://chameleonui.io/components/actions/icon-button.md): The icon button runs an action shown by one icon alone, and its four variants set how much attention each action draws, with a badge and tooltip built in. Sections: Overview · Examples · API · Styling · Accessibility - [Floating action button - Chameleon](https://chameleonui.io/components/actions/fab.md): A floating action button gives a screen's most important action a prominent place above the content, with an optional label that names it in words. Sections: Overview · Examples · API · Styling · Accessibility - [FAB menu - Chameleon](https://chameleonui.io/components/actions/fab-menu.md): Opens a short set of related actions from a floating action button, in three color variants, with arrow-key navigation built in. Sections: Overview · Examples · API · Styling · Accessibility - [Toggle button - Chameleon](https://chameleonui.io/components/actions/toggle-button.md): The toggle button is a labeled button for a setting that stays on until switched off, with a selected icon and label, a badge, and a tooltip. Sections: Overview · Examples · API · Styling · Accessibility - [Toggle icon button - Chameleon](https://chameleonui.io/components/actions/toggle-icon-button.md): A toggle icon button switches a setting between two states with one icon, swapping to a selected icon so the change reads without a label. Sections: Overview · Examples · API · Styling · Accessibility - [Dial - Chameleon](https://chameleonui.io/components/dials/dial.md): A dial sets one value by turning a knob between two stops, snapping to its steps under a drag or the arrow keys, with angles that set how far it turns. Sections: Overview · Examples · API · Styling · Accessibility - [Slider - Chameleon](https://chameleonui.io/components/dials/slider.md): A slider selects one value by dragging a handle along a horizontal or vertical track, and its change mode sets when each move is reported. Sections: Overview · Examples · API · Styling · Accessibility - [Range slider - Chameleon](https://chameleonui.io/components/dials/range-slider.md): A range slider selects a low and a high value on one track with two handles that never cross, and a change mode that sets when the new range is reported. Sections: Overview · Examples · API · Styling · Accessibility - [Continuous dial - Chameleon](https://chameleonui.io/components/dials/continuous-dial.md): A knob with no stops that adds up every turn in either direction, so a jog wheel or fine-tuning control can report its total rotation. Sections: Overview · Examples · API · Styling · Accessibility - [Text field - Chameleon](https://chameleonui.io/components/forms/text-field.md): A text field takes one line of free text for a form, in the filled, outlined, or text variant, with built-in input pacing for lookups as the user types. Sections: Overview · Examples · API · Styling · Accessibility - [Text area - Chameleon](https://chameleonui.io/components/forms/text-area.md): A text area takes several lines of free text and can grow with what the reader types, up to a row limit, with its counter read by screen readers. Sections: Overview · Examples · API · Styling · Accessibility - [Email field - Chameleon](https://chameleonui.io/components/forms/email-field.md): A form field for an email address that checks the format when the form validates, offers the email keyboard on phones, and can take several addresses. Sections: Overview · Examples · API · Styling · Accessibility - [Password field - Chameleon](https://chameleonui.io/components/forms/password-field.md): A password field masks each character as it is typed, with an autocomplete hint that lets a browser's password manager fill or suggest one. Sections: Overview · Examples · API · Styling · Accessibility - [Number field - Chameleon](https://chameleonui.io/components/forms/number-field.md): The number field lets people type an exact quantity, price, or percentage in their own locale format while the form receives the plain number. Sections: Overview · Examples · API · Styling · Accessibility - [Phone number field - Chameleon](https://chameleonui.io/components/forms/tel-field.md): A phone number field that opens the dial pad on a phone and flags a number written with spaces, a plus sign, or dashes unless a pattern allows it. Sections: Overview · Examples · API · Styling · Accessibility - [Search field - Chameleon](https://chameleonui.io/components/forms/search-field.md): A search field lets people type a query and signals each change as they type, or once they pause, so a search runs once instead of on every keystroke. Sections: Overview · Examples · API · Styling · Accessibility - [Checkbox - Chameleon](https://chameleonui.io/components/forms/checkbox.md): The checkbox lets users select any number of options or confirm one item, with an indeterminate state for partial groups and a badge built in. Sections: Overview · Examples · API · Styling · Accessibility - [Switch - Chameleon](https://chameleonui.io/components/forms/switch.md): A switch turns one setting on or off and applies the change the moment it flips, with an optional check or cross on the handle to mark the state. Sections: Overview · Examples · API · Styling · Accessibility - [Select - Chameleon](https://chameleonui.io/components/forms/select.md): A select lets people pick exactly one option from a list that stays closed until they open it, and a form collects the choice. Sections: Overview · Examples · API · Styling · Accessibility - [Radio buttons - Chameleon](https://chameleonui.io/components/forms/radio-buttons.md): Radio buttons pick exactly one option from a short list, grouped under one shared name in a column or a row, so a form submits a single choice. Sections: Overview · Examples · API · Styling · Accessibility - [Dialog - Chameleon](https://chameleonui.io/components/surfaces/dialog.md): A dialog asks a question the reader must answer before going on, in a basic or a full-screen variant, and reports which button closed it. Sections: Overview · Examples · API · Styling · Accessibility - [Popover - Chameleon](https://chameleonui.io/components/surfaces/popover.md): A popover shows extra content on a temporary surface opened from a control, with four animations and an open action of click or hover and focus. Sections: Overview · Examples · API · Styling · Accessibility - [Card - Chameleon](https://chameleonui.io/components/surfaces/card.md): A card groups content about one subject on a single surface, in an elevated, filled, or outlined variant, with an optional built-in badge. Sections: Overview · Examples · API · Styling · Accessibility - [Action card - Chameleon](https://chameleonui.io/components/surfaces/action-card.md): An action card makes a whole card one click target that opens a link or runs an action, in elevated, filled, or outlined variants, with a badge built in. Sections: Overview · Examples · API · Styling · Accessibility - [Assist chip - Chameleon](https://chameleonui.io/components/chips/assist-chip.md): An assist chip offers a compact action or link related to the current context, with an outlined or elevated look and a built-in badge. Sections: Overview · Examples · API · Styling · Accessibility - [Suggestion chip - Chameleon](https://chameleonui.io/components/chips/suggestion-chip.md): A suggestion chip offers a reply, question, or next step that acts on click, in outlined or elevated variants, with a built-in badge. Sections: Overview · Examples · API · Styling · Accessibility - [Filter chip - Chameleon](https://chameleonui.io/components/chips/filter-chip.md): A filter chip toggles one filter on or off with a check mark, and an optional trailing button removes the chip from the page. Sections: Overview · Examples · API · Styling · Accessibility - [Input chip - Chameleon](https://chameleonui.io/components/chips/input-chip.md): The Chameleon input chip shows one item a reader entered, such as a recipient or a tag, with a built-in remove button and a label that can open a link. Sections: Overview · Examples · API · Styling · Accessibility - [List - Chameleon](https://chameleonui.io/components/data/list.md): A list shows items in one scannable column, such as contacts or settings, and sets its row height with density to fit more on screen. Sections: Overview · Examples · API · Styling · Accessibility - [Data table - Chameleon](https://chameleonui.io/components/data/data-table.md): A data table shows read-only rows and columns, with sortable column headers and rows that restack into labeled blocks on narrow screens. Sections: Overview · Examples · API · Styling · Accessibility - [Data grid - Chameleon](https://chameleonui.io/components/data/data-grid.md): A data grid has sortable columns, single selection, and arrow-key navigation, and it stays fast with thousands of rows on screen. Sections: Overview · Examples · API · Styling · Accessibility - [Paginator - Chameleon](https://chameleonui.io/components/data/paginator.md): A paginator moves through paged data with first, previous, next, and last buttons, shows the current range, and fires an event on every page change. Sections: Overview · Examples · API · Accessibility - [Menu - Chameleon](https://chameleonui.io/components/navigation/menu.md): A menu opens a short list of commands from a button, moves focus by arrow keys and typed letters, and closes once an item is chosen. Sections: Overview · Examples · API · Styling · Accessibility - [Navigation - Chameleon](https://chameleonui.io/components/navigation/navigation.md): Navigation is a set of selectable destinations shown as a rail, drawer, or bar, with the page choosing the form for each window size in CSS. Sections: Overview · Examples · API · Styling · Accessibility - [Tabs - Chameleon](https://chameleonui.io/components/navigation/tabs.md): Tabs switch between views of one content area, and primary and secondary styles set how much hierarchy a reader sees, with panels left to the page. Sections: Overview · Examples · API · Styling · Accessibility - [Badge - Chameleon](https://chameleonui.io/components/primitives/badge.md): Status marker that shows a count, a short label, or a dot, floats at an element's corner, and fades out and back in on demand. Sections: Overview · Examples · API · Styling · Accessibility - [Icon - Chameleon](https://chameleonui.io/components/primitives/icon.md): Displays a Material Symbols icon from its name or an SVG, hidden from screen readers by default, with optional mirroring in right-to-left layouts. Sections: Overview · Examples · API · Styling · Accessibility - [Divider - Chameleon](https://chameleonui.io/components/primitives/divider.md): A thin line that separates content in lists and containers, running full width or indented at the start, the end, or both. Sections: Overview · Examples · API · Styling · Accessibility - [Scroll region - Chameleon](https://chameleonui.io/components/primitives/scroll-region.md): A scroll region keeps headers and footers pinned around scrolling content and draws a divider or shadow at each edge the content has scrolled past. Sections: Overview · Examples · API · Styling · Accessibility - [Skeleton - Chameleon](https://chameleonui.io/components/feedback/skeleton.md): Skeleton shows a gray placeholder shaped like content that is still loading, as a line of text or a block, so the layout does not jump. Sections: Overview · Examples · API · Styling · Accessibility - [Plain tooltip - Chameleon](https://chameleonui.io/components/feedback/plain-tooltip.md): A plain tooltip shows a short text hint beside an element on hover or keyboard focus, and a screen reader reads the hint as that element's description. Sections: Overview · Examples · API · Styling · Accessibility - [Rich tooltip - Chameleon](https://chameleonui.io/components/feedback/rich-tooltip.md): A rich tooltip shows a heading, longer text and an action beside its anchor, opening on hover or focus, or on a click when persistent. Sections: Overview · Examples · API · Styling · Accessibility - [Linear progress indicator - Chameleon](https://chameleonui.io/components/feedback/linear-progress.md): A linear progress indicator shows how far a task has got along a horizontal bar, or loops when the length of the wait is unknown. Sections: Overview · Examples · API · Styling · Accessibility - [Circular progress indicator - Chameleon](https://chameleonui.io/components/feedback/circular-progress.md): A circular progress indicator shows how far a task has got, or that it is still running, in a compact arc that fills to a value or loops. Sections: Overview · Examples · API · Styling · Accessibility ## Get started - [Installation - Chameleon](https://chameleonui.io/get-started/installation.md): Install Chameleon for web components, React or Blazor, or for several frameworks in one app. - [Links and routers - Chameleon](https://chameleonui.io/get-started/links-and-routers.md): Make Chameleon's link components navigate through your router: React Router, Next.js, TanStack Router, Blazor's NavigationManager, or the Navigation API. - [Hidden content renders when first shown - Chameleon](https://chameleonui.io/get-started/hidden-content.md): Components inside a closed menu, popover, dialog, tooltip, hidden navigation or an element with the hidden attribute render when first shown; await the component's own updateComplete, not its container's, to reach them sooner. - [Security - Chameleon](https://chameleonui.io/get-started/security.md): Run Chameleon under a strict Content-Security-Policy with no 'unsafe-inline' and no 'unsafe-eval', with Subresource Integrity and Trusted Types enforced. - [Accessibility - Chameleon](https://chameleonui.io/get-started/accessibility.md): What Chameleon's WCAG 2.2 AA target covers, how it is tested in three browser engines, what your app is responsible for, and how to report a problem. - [Event pacing - Chameleon](https://chameleonui.io/get-started/event-pacing.md): Debounce, throttle or adaptively pace the events of Chameleon's fields, sliders, dials and navigation bar, so a search or server request runs only as often as it can keep up. - [AI agent support - Chameleon](https://chameleonui.io/get-started/ai-agents.md): How Chameleon serves its documentation to AI agents: llms.txt, markdown mirrors, and an MCP server. ## Utilities - [Theming - Chameleon](https://chameleonui.io/utilities/theming.md): Theme Chameleon from a single seed color: variants, contrast, light and dark, all worked out for you. - [App configuration - Chameleon](https://chameleonui.io/utilities/app-configuration.md): Set app-wide defaults for every Chameleon component: logging, on-screen keyboards, toasts, and off-screen rendering. - [Style configuration - Chameleon](https://chameleonui.io/utilities/style-configuration.md): Set your app's default look in one place: field and button variants, list density, and whether touch targets take up layout space, for every component you don't set by hand. - [Locale - Chameleon](https://chameleonui.io/utilities/locale.md): What locale changes in Chameleon's components, from a number field's separators to a dialog's Close label, how to set it for your app or one component, and which languages the built-in text comes in. - [Toast - Chameleon](https://chameleonui.io/utilities/toast.md): Show a short message about something that just happened with one call to showToast, and set where toasts appear, how long they stay, and how they look. - [Color utilities - Chameleon](https://chameleonui.io/utilities/color-utilities.md): Chameleon's full color API: HCT conversion, contrast, tonal palettes, schemes, and image quantization, in the browser and in build scripts. ## Blog - [What's in Preview 2 - Chameleon](https://chameleonui.io/blog-entries/2026-11-11-0-whats-in-preview-2.md): Chameleon 27.0.0-preview.2 holds WCAG 2.2 AA contrast in every state of every component, fixes the issues from a full accessibility audit, and has 11 breaking changes to act on. - [Introducing Chameleon - Chameleon](https://chameleonui.io/blog-entries/2026-10-20-0-introducing-chameleon.md): Chameleon UI - a new Material 3 Expressive web components library for Web/JS, React & Blazor. Angular, Vue & Svelte are coming soon. ## Overview - [Chameleon](https://chameleonui.io/home.md): 46 Material 3 Expressive web components, with React and Blazor wrappers. Themes from one color, and corner shapes in every browser. - [Why Chameleon - Chameleon](https://chameleonui.io/why-chameleon.md): Chameleon for enterprise teams: locale-aware inputs, server data, input pacing, accessibility, what a shipped app never does, and framework wrappers. Talk to us. - [Pricing - Chameleon](https://chameleonui.io/store.md): Per-seat pricing for the Chameleon Material 3 component library, with automatic volume rates. Community is free, permanently. - [Blog - Chameleon](https://chameleonui.io/blog.md): News and engineering notes from the Chameleon team. - [Support - Chameleon](https://chameleonui.io/support.md): Get help with Chameleon: issues, questions, and how to reach the team. - [Changelog - Chameleon](https://chameleonui.io/reference/changelog.md): What changed in each release of Chameleon: breaking changes, new features, fixes and deprecations, by framework. - [Console messages - Chameleon](https://chameleonui.io/reference/console-messages.md): What each message a Chameleon component writes to the browser console means, component by component. - [Unlicensed components - Chameleon](https://chameleonui.io/licensing/unlicensed.md): Why a Chameleon component shows an UNLICENSED watermark, when the watermark appears and what it disables, and how to remove it.