igniteui-theming 25.0.0-beta.5 → 25.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/mcp/generators/css.js +1 -8
- package/dist/mcp/generators/sass.d.ts +1 -1
- package/dist/mcp/generators/sass.js +26 -3
- package/dist/mcp/index.js +3 -3
- package/dist/mcp/json/components/themes.json.js +1 -4
- package/dist/mcp/knowledge/component-metadata.d.ts +2 -0
- package/dist/mcp/knowledge/component-metadata.js +121 -47
- package/dist/mcp/knowledge/component-themes.d.ts +11 -0
- package/dist/mcp/knowledge/component-themes.js +34 -1
- package/dist/mcp/knowledge/docs/setup/platform.md.js +4 -0
- package/dist/mcp/knowledge/index.d.ts +2 -2
- package/dist/mcp/knowledge/index.js +3 -5
- package/dist/mcp/knowledge/platform-setup.d.ts +2 -0
- package/dist/mcp/knowledge/platforms/index.d.ts +8 -11
- package/dist/mcp/knowledge/platforms/index.js +22 -14
- package/dist/mcp/knowledge/platforms/react.d.ts +2 -2
- package/dist/mcp/knowledge/platforms/react.js +3 -3
- package/dist/mcp/knowledge/sass-api.d.ts +2 -2
- package/dist/mcp/resources/presets.d.ts +12 -0
- package/dist/mcp/resources/presets.js +44 -1
- package/dist/mcp/tools/descriptions.d.ts +8 -8
- package/dist/mcp/tools/descriptions.js +25 -7
- package/dist/mcp/tools/handlers/component-theme.js +24 -6
- package/dist/mcp/tools/handlers/component-tokens.d.ts +7 -0
- package/dist/mcp/tools/handlers/component-tokens.js +17 -3
- package/dist/mcp/tools/handlers/custom-palette.js +2 -1
- package/dist/mcp/tools/handlers/elevations.js +2 -1
- package/dist/mcp/tools/handlers/layout.js +1 -1
- package/dist/mcp/tools/handlers/palette.js +2 -3
- package/dist/mcp/tools/handlers/platform.js +247 -86
- package/dist/mcp/tools/handlers/theme.js +3 -0
- package/dist/mcp/tools/handlers/typography.js +2 -1
- package/dist/mcp/tools/schemas.d.ts +31 -31
- package/dist/mcp/utils/sass.d.ts +20 -0
- package/dist/mcp/utils/sass.js +16 -0
- package/dist/mcp/utils/types.d.ts +2 -1
- package/dist/mcp/utils/types.js +2 -1
- package/json/components/bootstrap.json +1 -1
- package/json/components/fluent.json +1 -1
- package/json/components/indigo.json +1 -1
- package/json/components/material.json +1 -1
- package/json/components/themes.json +165 -727
- package/package.json +1 -1
- package/sass/themes/components/calendar/_calendar-theme.scss +0 -15
- package/sass/themes/components/combo/_combo-theme.scss +8 -0
- package/sass/themes/components/input/_input-theme.scss +0 -32
- package/sass/themes/components/splitter/_splitter-theme.scss +19 -8
- package/sass/themes/schemas/components/dark/_splitter.scss +50 -24
- package/sass/themes/schemas/components/light/_splitter.scss +60 -5
- package/tailwind/utilities/bootstrap.css +1 -1
- package/tailwind/utilities/fluent.css +1 -1
- package/tailwind/utilities/indigo.css +1 -1
- package/tailwind/utilities/material.css +1 -1
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ The MCP server works with any MCP-compatible client. Here are setup instructions
|
|
|
152
152
|
|
|
153
153
|
```json
|
|
154
154
|
{
|
|
155
|
-
"
|
|
155
|
+
"servers": {
|
|
156
156
|
"igniteui-theming": {
|
|
157
157
|
"command": "node",
|
|
158
158
|
"args": ["/absolute/path/to/igniteui-theming/dist/mcp/index.js"]
|
|
@@ -165,10 +165,10 @@ The MCP server works with any MCP-compatible client. Here are setup instructions
|
|
|
165
165
|
|
|
166
166
|
```json
|
|
167
167
|
{
|
|
168
|
-
"
|
|
168
|
+
"servers": {
|
|
169
169
|
"igniteui-theming": {
|
|
170
170
|
"command": "npx",
|
|
171
|
-
"args": ["igniteui-theming-mcp"]
|
|
171
|
+
"args": ["-y", "igniteui-theming", "igniteui-theming-mcp"]
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -186,7 +186,7 @@ The MCP server works with any MCP-compatible client. Here are setup instructions
|
|
|
186
186
|
- **Command**: `node` (for local) or `npx` (for package)
|
|
187
187
|
- **Arguments**:
|
|
188
188
|
- Local: `/absolute/path/to/igniteui-theming/dist/mcp/index.js`
|
|
189
|
-
- Package: `igniteui-theming-mcp`
|
|
189
|
+
- Package: `igniteui-theming igniteui-theming-mcp`
|
|
190
190
|
4. Click **OK** and restart AI Assistant
|
|
191
191
|
|
|
192
192
|
</details>
|
|
@@ -219,7 +219,7 @@ Add to your configuration file:
|
|
|
219
219
|
"mcpServers": {
|
|
220
220
|
"igniteui-theming": {
|
|
221
221
|
"command": "npx",
|
|
222
|
-
"args": ["igniteui-theming-mcp"]
|
|
222
|
+
"args": ["-y", "igniteui-theming", "igniteui-theming-mcp"]
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -252,7 +252,7 @@ Create or edit `.cursor/mcp.json` in your project:
|
|
|
252
252
|
"mcpServers": {
|
|
253
253
|
"igniteui-theming": {
|
|
254
254
|
"command": "npx",
|
|
255
|
-
"args": ["igniteui-theming-mcp"]
|
|
255
|
+
"args": ["-y", "igniteui-theming", "igniteui-theming-mcp"]
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
}
|
|
@@ -78,12 +78,7 @@ function formatCssOutput(css, description) {
|
|
|
78
78
|
return header + css;
|
|
79
79
|
}
|
|
80
80
|
async function generateComponentThemeCss(options) {
|
|
81
|
-
const {
|
|
82
|
-
getComponentTheme,
|
|
83
|
-
getComponentSelector,
|
|
84
|
-
getVariablePrefix,
|
|
85
|
-
SCHEMA_PRESETS
|
|
86
|
-
} = await import("../knowledge/index.js");
|
|
81
|
+
const { getComponentTheme, getComponentSelector, SCHEMA_PRESETS } = await import("../knowledge/index.js");
|
|
87
82
|
const { toVariableName } = await import("../utils/sass.js");
|
|
88
83
|
const theme = getComponentTheme(options.component);
|
|
89
84
|
if (!theme) {
|
|
@@ -104,8 +99,6 @@ async function generateComponentThemeCss(options) {
|
|
|
104
99
|
options.platform
|
|
105
100
|
);
|
|
106
101
|
const selector = options.selector || (defaultSelectors.length > 0 ? defaultSelectors[0] : options.component);
|
|
107
|
-
const prefix = getVariablePrefix(options.platform);
|
|
108
|
-
`${prefix}-${options.component}`;
|
|
109
102
|
const sassCode = `
|
|
110
103
|
@use 'sass/themes' as *;
|
|
111
104
|
@use 'sass/themes/schemas' as *;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateElevationsInput, CreatePaletteInput, CreateThemeInput, CreateTypographyInput, DesignSystem, GeneratedCode, Platform, ThemeVariant } from '../utils/types.js';
|
|
2
2
|
export type { ElevationsCodeOptions, PaletteCodeOptions, PaletteCodeResult, TypographyCodeOptions, } from '../utils/sass.js';
|
|
3
|
-
export { generateElevationsCode, generateHeader, generatePaletteCode, generateTypographyCode, generateUseStatement, quoteFontFamily, toVariableName, } from '../utils/sass.js';
|
|
3
|
+
export { generateElevationsCode, generateHeader, generatePaletteCode, generatePresetImports, generateTypographyCode, generateUseStatement, quoteFontFamily, toVariableName, } from '../utils/sass.js';
|
|
4
4
|
/**
|
|
5
5
|
* Generate a palette definition.
|
|
6
6
|
*/
|
|
@@ -4,7 +4,7 @@ import { generateAngularThemeSass } from "../knowledge/platforms/angular.js";
|
|
|
4
4
|
import { SCHEMAS } from "../knowledge/platforms/common.js";
|
|
5
5
|
import { generateWebComponentsThemeSass } from "../knowledge/platforms/webcomponents.js";
|
|
6
6
|
import { TYPOGRAPHY_PRESETS } from "../knowledge/typography.js";
|
|
7
|
-
import { toVariableName,
|
|
7
|
+
import { generateUseStatement, toVariableName, generatePresetImports, generateHeader, quoteFontFamily } from "../utils/sass.js";
|
|
8
8
|
import { generateElevationsCode, generatePaletteCode, generateTypographyCode } from "../utils/sass.js";
|
|
9
9
|
function generatePalette(input) {
|
|
10
10
|
const variant = input.variant ?? "light";
|
|
@@ -42,8 +42,16 @@ function generateTypography(input) {
|
|
|
42
42
|
const typeScaleVar = `$${designSystem}-type-scale`;
|
|
43
43
|
const preset = TYPOGRAPHY_PRESETS[designSystem];
|
|
44
44
|
const typeface = input.fontFamily || preset.typeface;
|
|
45
|
+
const presetImports = generatePresetImports({
|
|
46
|
+
platform: input.platform,
|
|
47
|
+
includeTypography: true
|
|
48
|
+
});
|
|
49
|
+
const imports = [
|
|
50
|
+
generateUseStatement(input.platform, input.licensed),
|
|
51
|
+
...presetImports
|
|
52
|
+
].join("\n");
|
|
45
53
|
const code = `${generateHeader(`Typography setup using ${designSystem} type scale`)}
|
|
46
|
-
${
|
|
54
|
+
${imports}
|
|
47
55
|
|
|
48
56
|
// Typography setup with ${designSystem} type scale
|
|
49
57
|
@include typography(
|
|
@@ -60,8 +68,16 @@ ${generateUseStatement(input.platform, input.licensed)}
|
|
|
60
68
|
function generateElevations(input) {
|
|
61
69
|
const preset = input.designSystem ?? "material";
|
|
62
70
|
const elevationsVar = `$${preset}-elevations`;
|
|
71
|
+
const presetImports = generatePresetImports({
|
|
72
|
+
platform: input.platform,
|
|
73
|
+
includeElevations: true
|
|
74
|
+
});
|
|
75
|
+
const imports = [
|
|
76
|
+
generateUseStatement(input.platform, input.licensed),
|
|
77
|
+
...presetImports
|
|
78
|
+
].join("\n");
|
|
63
79
|
const code = `${generateHeader(`Elevations setup using ${preset} preset`)}
|
|
64
|
-
${
|
|
80
|
+
${imports}
|
|
65
81
|
|
|
66
82
|
// Elevations setup with ${preset} shadows
|
|
67
83
|
@include elevations(${elevationsVar});
|
|
@@ -165,12 +181,18 @@ function generateGenericTheme(input, designSystem, variant) {
|
|
|
165
181
|
} else {
|
|
166
182
|
paletteArgs.push(`$surface: ${variant === "dark" ? "#222222" : "white"}`);
|
|
167
183
|
}
|
|
184
|
+
const presetImports = generatePresetImports({
|
|
185
|
+
platform: input.platform,
|
|
186
|
+
includeTypography,
|
|
187
|
+
includeElevations
|
|
188
|
+
});
|
|
168
189
|
const sections = [
|
|
169
190
|
generateHeader(
|
|
170
191
|
`Complete ${variant} theme based on ${designSystem} design system`
|
|
171
192
|
),
|
|
172
193
|
'// NOTE: Specify platform ("angular" or "webcomponents") for optimized output',
|
|
173
194
|
generateUseStatement(input.platform, input.licensed),
|
|
195
|
+
...presetImports,
|
|
174
196
|
"",
|
|
175
197
|
`// ${themeName} palette`,
|
|
176
198
|
`${paletteVar}: palette(`,
|
|
@@ -263,6 +285,7 @@ export {
|
|
|
263
285
|
generateHeader,
|
|
264
286
|
generatePalette,
|
|
265
287
|
generatePaletteCode,
|
|
288
|
+
generatePresetImports,
|
|
266
289
|
generateTheme,
|
|
267
290
|
generateTypography,
|
|
268
291
|
generateTypographyCode,
|
package/dist/mcp/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { SHADE_LEVELS, ACCENT_SHADE_LEVELS, PALETTE_COLOR_GROUPS } from "./utils
|
|
|
21
21
|
function createServer() {
|
|
22
22
|
const server = new McpServer({
|
|
23
23
|
name: "igniteui-theming",
|
|
24
|
-
version: "v25.0.
|
|
24
|
+
version: "v25.0.1",
|
|
25
25
|
description: "Generate Sass theming code for Ignite UI components - create palettes, typography, elevations, and complete themes"
|
|
26
26
|
});
|
|
27
27
|
registerTools(server);
|
|
@@ -276,7 +276,7 @@ function buildReadResourceDescription() {
|
|
|
276
276
|
const groups = {
|
|
277
277
|
Platforms: [],
|
|
278
278
|
Presets: [],
|
|
279
|
-
|
|
279
|
+
Guidance: [],
|
|
280
280
|
"Layout Docs": []
|
|
281
281
|
};
|
|
282
282
|
for (const r of RESOURCE_DEFINITIONS) {
|
|
@@ -285,7 +285,7 @@ function buildReadResourceDescription() {
|
|
|
285
285
|
} else if (r.uri.includes("://presets/")) {
|
|
286
286
|
groups.Presets.push(r);
|
|
287
287
|
} else if (r.uri.includes("://guidance/")) {
|
|
288
|
-
groups
|
|
288
|
+
groups.Guidance.push(r);
|
|
289
289
|
} else if (r.uri.includes("://docs/")) {
|
|
290
290
|
groups["Layout Docs"].push(r);
|
|
291
291
|
}
|
|
@@ -28,7 +28,7 @@ const scrollbar = { "name": "scrollbar", "themeFunctionName": "scrollbar-theme",
|
|
|
28
28
|
const select = { "name": "select", "themeFunctionName": "select-theme", "description": "Select Theme", "primaryTokens": [{ "name": "toggle-button-background", "description": "The toggle button background." }], "primaryTokensSummary": "Toggle button colors cascade from toggle-button-background through focus states.", "tokens": [{ "name": "toggle-button-background", "type": "Color", "description": "The select toggle button background color. PRIMARY - derives all toggle button colors." }, { "name": "toggle-button-background-focus", "type": "Color", "description": "The select toggle button background color when the select is focused. Auto-derived from toggle-button-background (variant-dependent)." }, { "name": "toggle-button-background-disabled", "type": "Color", "description": "The select toggle button background color when the select is disabled." }, { "name": "toggle-button-foreground", "type": "Color", "description": "The select toggle button foreground color. Auto-derived from toggle-button-background." }, { "name": "toggle-button-foreground-focus", "type": "Color", "description": "The select toggle button foreground color when the select is focused. Auto-derived from toggle-button-background-focus (variant-dependent)." }, { "name": "toggle-button-foreground-disabled", "type": "Color", "description": "The select toggle button foreground color when the select is disabled." }, { "name": "toggle-button-foreground-filled", "type": "Color", "description": "The select toggle button foreground color when the select is filled. Auto-derived from toggle-button-background." }, { "name": "toggle-button-background-focus--border", "type": "Color", "description": "The select toggle button background color when the select is focused in material border variant. Auto-derived from toggle-button-background (bootstrap/indigo)." }] };
|
|
29
29
|
const slider = { "name": "slider", "themeFunctionName": "slider-theme", "description": "Slider Theme", "primaryTokens": [{ "name": "track-color", "description": "The filled track color." }, { "name": "base-track-color", "description": "The unfilled track background." }, { "name": "thumb-color", "description": "The thumb color (material)." }], "primaryTokensSummary": "Derived colors are auto-calculated for contrast.", "tokens": [{ "name": "track-color", "type": "Color", "description": "The color of the track. PRIMARY - derives hover, label, and thumb colors." }, { "name": "track-step-color", "type": "Color", "description": "The color of the track steps. Auto-derived from base-track-color." }, { "name": "track-step-size", "type": "Number", "description": "The size of the track steps." }, { "name": "track-hover-color", "type": "Color", "description": "The color of the track on hover. Auto-derived from track-color." }, { "name": "thumb-color", "type": "Color", "description": "The color of the thumb. Auto-derived from track-color (material) or set independently." }, { "name": "thumb-focus-color", "type": "Color", "description": "The focus color of the thumb. Auto-derived from thumb-border-color or thumb-color." }, { "name": "thumb-border-color", "type": "Color", "description": "The thumb border color. Auto-derived from track-color (fluent/indigo) or thumb-color (bootstrap)." }, { "name": "thumb-border-hover-color", "type": "Color", "description": "The thumb border color when hovered. Auto-derived from thumb-border-color." }, { "name": "thumb-border-focus-color", "type": "Color", "description": "The thumb border color when focused." }, { "name": "thumb-disabled-border-color", "type": "Color", "description": "The thumb border color when it's disabled. Auto-derived from thumb-border-color." }, { "name": "disabled-thumb-color", "type": "Color", "description": "The thumb color when its disabled. Auto-derived from thumb-color." }, { "name": "label-background-color", "type": "Color", "description": "The background color of the bubble label. Auto-derived from track-color or thumb-color." }, { "name": "label-text-color", "type": "Color", "description": "The text color of the bubble label. Auto-derived from label-background-color." }, { "name": "base-track-color", "type": "Color", "description": "The base background color of the track. PRIMARY for unfilled track. Auto-derived from track-color (material)." }, { "name": "base-track-hover-color", "type": "Color", "description": "The base background color of the track on hover. Auto-derived from base-track-color." }, { "name": "disabled-base-track-color", "type": "Color", "description": "The base background color of the track when is disabled. Auto-derived from base-track-color." }, { "name": "disabled-fill-track-color", "type": "Color", "description": "The base background color of the fill track when is disabled. Auto-derived from track-color." }, { "name": "tick-label-color", "type": "Color", "description": "The color of the tick label." }, { "name": "tick-color", "type": "Color", "description": "The background-color of the tick." }] };
|
|
30
30
|
const snackbar = { "name": "snackbar", "themeFunctionName": "snackbar-theme", "description": "Snackbar Theme", "primaryTokens": [{ "name": "background", "description": "The background color." }], "primaryTokensSummary": "Derived colors are auto-calculated for contrast.", "tokens": [{ "name": "background", "type": "Color", "description": "The background color used in the snackbar. PRIMARY - derives text-color, button-color." }, { "name": "text-color", "type": "Color", "description": "The text color used in the snackbar. Auto-derived from background." }, { "name": "button-color", "type": "Color", "description": "The button color used in the snackbar. Auto-derived from background." }, { "name": "shadow", "type": "box-shadow", "description": "Sets a shadow to be used for the snackbar." }, { "name": "border-radius", "type": "List", "description": "The border radius used for the snackbar component." }] };
|
|
31
|
-
const splitter = { "name": "splitter", "themeFunctionName": "splitter-theme", "description": "Splitter Theme", "primaryTokens": [{ "name": "bar-color", "description": "The bar background color." }], "primaryTokensSummary": "Derived colors are auto-calculated for contrast.", "tokens": [{ "name": "bar-color", "type": "Color", "description": "The background color of the bar. PRIMARY - derives handle, expander, focus colors." }, { "name": "handle-color", "type": "Color", "description": "The color for the bar drag handle. Auto-derived from bar-color." }, { "name": "expander-color", "type": "Color", "description": "The color for the arrow expander's. Auto-derived from bar-color." }, { "name": "border-radius", "type": "List", "description": "the border radios of the splitter bar drag handle" }, { "name": "focus-color", "type": "Color", "description": "The color used for focused splitter bar. Auto-derived from bar-color (variant-dependent)." }, { "name": "size", "type": "Number", "description": "The size of the splitter, its width for vertical and height for horizontal splitter." }] };
|
|
31
|
+
const splitter = { "name": "splitter", "themeFunctionName": "splitter-theme", "description": "Splitter Theme", "primaryTokens": [{ "name": "bar-color", "description": "The bar background color." }], "primaryTokensSummary": "Derived colors are auto-calculated for contrast.", "tokens": [{ "name": "bar-color", "type": "Color", "description": "The background color of the bar. PRIMARY - derives handle, expander, focus colors." }, { "name": "handle-color", "type": "Color", "description": "The color for the bar drag handle. Auto-derived from bar-color." }, { "name": "expander-color", "type": "Color", "description": "The color for the arrow expander's. Auto-derived from bar-color." }, { "name": "border-radius", "type": "List", "description": "the border radios of the splitter bar drag handle" }, { "name": "focus-color", "type": "Color", "description": "The color used for focused splitter bar. Auto-derived from bar-color (variant-dependent)." }, { "name": "bar-color-active", "type": "Color", "description": "The background color of the bar when pressed." }, { "name": "handle-color-active", "type": "Color", "description": "The color for the bar drag handle when pressed." }, { "name": "expander-color-active", "type": "Color", "description": "The color for the arrow expander's when pressed." }, { "name": "size", "type": "Number", "description": "The size of the splitter, its width for vertical and height for horizontal splitter." }] };
|
|
32
32
|
const stepper = { "name": "stepper", "themeFunctionName": "stepper-theme", "description": "Stepper Theme", "primaryTokens": [{ "name": "step-background", "description": "The base step background." }, { "name": "indicator-background", "description": "The step indicator background." }, { "name": "invalid-indicator-background", "description": "The invalid step indicator." }, { "name": "current-indicator-background", "description": "The current step indicator." }, { "name": "complete-indicator-background", "description": "The completed step indicator." }], "primaryTokensSummary": "Derived colors are auto-calculated for contrast.", "tokens": [{ "name": "content-foreground", "type": "Color", "description": "The foreground of the step content." }, { "name": "step-background", "type": "Color", "description": "The background of the step header. PRIMARY - derives all step states." }, { "name": "step-hover-background", "type": "Color", "description": "The background of the step header on hover. Auto-derived from step-background." }, { "name": "step-focus-background", "type": "Color", "description": "The background of the step header on focus. Auto-derived from step-background." }, { "name": "title-color", "type": "Color", "description": "The color of the step title. Auto-derived from step-background." }, { "name": "title-hover-color", "type": "Color", "description": "The color of the step title on hover. Auto-derived from step-hover-background." }, { "name": "title-focus-color", "type": "Color", "description": "The color of the step title on focus. Auto-derived from step-focus-background." }, { "name": "subtitle-color", "type": "Color", "description": "The color of the step subtitle. Auto-derived from step-background." }, { "name": "subtitle-hover-color", "type": "Color", "description": "The color of the step subtitle on hover. Auto-derived from step-hover-background." }, { "name": "subtitle-focus-color", "type": "Color", "description": "The color of the step subtitle on focus. Auto-derived from step-focus-background." }, { "name": "indicator-color", "type": "Color", "description": "The text color of the step indicator. Auto-derived from indicator-background." }, { "name": "indicator-background", "type": "Color", "description": "The background color of the step indicator. PRIMARY for indicator - derives indicator-color, indicator-outline. Auto-derived from step-background." }, { "name": "indicator-outline", "type": "Color", "description": "The outline color of the step indicator. Auto-derived from indicator-background.\n" }, { "name": "invalid-step-background", "type": "Color", "description": "The background of the invalid step header. Auto-derived from step-background." }, { "name": "invalid-step-hover-background", "type": "Color", "description": "The background of the invalid step header on hover. Auto-derived from invalid-step-background." }, { "name": "invalid-step-focus-background", "type": "Color", "description": "The background of the invalid step header on focus. Auto-derived from invalid-step-background." }, { "name": "invalid-title-color", "type": "Color", "description": "The color of the invalid step title. Auto-derived from invalid-indicator-background." }, { "name": "invalid-title-hover-color", "type": "Color", "description": "The color of the invalid step title on hover. Auto-derived from invalid-indicator-background." }, { "name": "invalid-title-focus-color", "type": "Color", "description": "The color of the invalid step title on focus. Auto-derived from invalid-indicator-background." }, { "name": "invalid-subtitle-color", "type": "Color", "description": "The color of the invalid step subtitle. Auto-derived from invalid-indicator-background." }, { "name": "invalid-subtitle-hover-color", "type": "Color", "description": "The color of the invalid step subtitle on hover. Auto-derived from invalid-indicator-background." }, { "name": "invalid-subtitle-focus-color", "type": "Color", "description": "The color of the invalid step subtitle on focus. Auto-derived from invalid-indicator-background." }, { "name": "invalid-indicator-color", "type": "Color", "description": "The color of the invalid step indicator. Auto-derived from invalid-indicator-background." }, { "name": "invalid-indicator-background", "type": "Color", "description": "The background color of the invalid step indicator. PRIMARY for invalid state." }, { "name": "invalid-indicator-outline", "type": "Color", "description": "The outline color of the invalid step indicator. Auto-derived from invalid-indicator-background.\n" }, { "name": "current-step-background", "type": "Color", "description": "The background of the current step header. Auto-derived from step-background." }, { "name": "current-step-hover-background", "type": "Color", "description": "The background of the current step header on hover. Auto-derived from current-step-background." }, { "name": "current-step-focus-background", "type": "Color", "description": "The background of the current step header on focus. Auto-derived from current-step-background." }, { "name": "current-title-color", "type": "Color", "description": "The color of the current step title. Auto-derived from current-step-background." }, { "name": "current-title-hover-color", "type": "Color", "description": "The color of the current step title on hover. Auto-derived from current-step-hover-background." }, { "name": "current-title-focus-color", "type": "Color", "description": "The color of the current step title on focus. Auto-derived from current-step-focus-background." }, { "name": "current-subtitle-color", "type": "Color", "description": "The color of the current step subtitle. Auto-derived from current-step-background." }, { "name": "current-subtitle-hover-color", "type": "Color", "description": "The color of the current step subtitle on hover. Auto-derived from current-step-hover-background." }, { "name": "current-subtitle-focus-color", "type": "Color", "description": "The color of the current step subtitle on focus. Auto-derived from current-step-focus-background." }, { "name": "current-indicator-color", "type": "Color", "description": "The color of the current step indicator. Auto-derived from current-indicator-background." }, { "name": "current-indicator-background", "type": "Color", "description": "The background color of the current step indicator. PRIMARY for current state. Auto-derived from current-step-background." }, { "name": "current-indicator-outline", "type": "Color", "description": "The outline color of the current step indicator. Auto-derived from current-indicator-background.\n" }, { "name": "complete-step-background", "type": "Color", "description": "The background of the complete step header. Auto-derived from step-background." }, { "name": "complete-step-hover-background", "type": "Color", "description": "The background of the complete step header on hover. Auto-derived from complete-step-background." }, { "name": "complete-step-focus-background", "type": "Color", "description": "The background of the complete step header on focus. Auto-derived from complete-step-background." }, { "name": "complete-title-color", "type": "Color", "description": "The color of the complete step title. Auto-derived from complete-step-background." }, { "name": "complete-title-hover-color", "type": "Color", "description": "The color of the complete step title on hover. Auto-derived from complete-step-hover-background." }, { "name": "complete-title-focus-color", "type": "Color", "description": "The color of the complete step title on focus. Auto-derived from complete-step-focus-background." }, { "name": "complete-subtitle-color", "type": "Color", "description": "The color of the complete step subtitle. Auto-derived from complete-step-background." }, { "name": "complete-subtitle-hover-color", "type": "Color", "description": "The color of the complete step subtitle on hover. Auto-derived from complete-step-hover-background." }, { "name": "complete-subtitle-focus-color", "type": "Color", "description": "The color of the complete step subtitle on focus. Auto-derived from complete-step-focus-background." }, { "name": "complete-indicator-color", "type": "Color", "description": "The color of the completed step indicator. Auto-derived from complete-indicator-background." }, { "name": "complete-indicator-background", "type": "Color", "description": "The background color of the completed step indicator. PRIMARY for complete state. Auto-derived from complete-step-background." }, { "name": "complete-indicator-outline", "type": "Color", "description": "The outline color of the completed step indicator.\n" }, { "name": "disabled-title-color", "type": "Color", "description": "The title color of the disabled step. Auto-derived from step-background." }, { "name": "disabled-subtitle-color", "type": "Color", "description": "The subtitle color of the disabled step. Auto-derived from step-background." }, { "name": "disabled-indicator-color", "type": "Color", "description": "The indicator color of the disabled step. Auto-derived from disabled-indicator-background." }, { "name": "disabled-indicator-background", "type": "Color", "description": "The indicator background of the disabled step. Auto-derived from step-background." }, { "name": "disabled-indicator-outline", "type": "Color", "description": "The indicator outline color of the disabled step. Auto-derived from disabled-indicator-background.\n" }, { "name": "step-separator-color", "type": "Color", "description": "The separator border-color of between the steps. Auto-derived from step-background or indicator-background." }, { "name": "complete-step-separator-color", "type": "Color", "description": "The separator border-color between the completed steps.\n" }, { "name": "step-separator-style", "type": "Color", "description": "The separator border-style of between the steps." }, { "name": "complete-step-separator-style", "type": "Color", "description": "The separator border-style between the completed steps.\n" }, { "name": "border-radius-indicator", "type": "List", "description": "The border-radius of the step indicator." }, { "name": "border-radius-step-header", "type": "List", "description": "The border-radius of the step header.\n" }] };
|
|
33
33
|
const tabs = { "name": "tabs", "themeFunctionName": "tabs-theme", "description": "Tabs Theme", "primaryTokens": [{ "name": "item-background", "description": "The tabs header background." }, { "name": "item-active-color", "description": "The active tab text color." }], "primaryTokensSummary": "Setting just `$item-background` will theme all tab states consistently.", "tokens": [{ "name": "item-text-color", "type": "Color", "description": "The color used for the tab text color. Auto-derived from item-background or synced with item-icon-color." }, { "name": "item-background", "type": "Color", "description": "The background color used for the tabs header. PRIMARY - derives most colors." }, { "name": "item-hover-background", "type": "Color", "description": "The background used for the tabs on hover. Auto-derived from item-background." }, { "name": "item-hover-color", "type": "Color", "description": "The text color used for the tabs on hover. Auto-derived from item-text-color or item-hover-background." }, { "name": "item-icon-color", "type": "Color", "description": "The color used for the tab icon. Auto-derived from item-background or synced with item-text-color." }, { "name": "item-active-icon-color", "type": "Color", "description": "The color used for the active tab icon. Auto-derived from item-active-color or item-active-background." }, { "name": "item-active-hover-icon-color", "type": "Color", "description": "The color used for the active tab icon on hover and focus. Auto-derived from item-active-icon-color." }, { "name": "item-hover-icon-color", "type": "Color", "description": "The color used for the tab icon on hover. Auto-derived from item-icon-color or item-hover-background." }, { "name": "item-disabled-icon-color", "type": "Color", "description": "The color used for the disabled tab icon." }, { "name": "item-active-color", "type": "Color", "description": "The color used for the active tabs text. PRIMARY for active/indicator - derives indicator-color." }, { "name": "item-active-hover-color", "type": "Color", "description": "The color used for the active tabs text on hover and focus. Auto-derived from item-active-color." }, { "name": "item-active-background", "type": "Color", "description": "The color used for the active tab background. Auto-derived from item-background." }, { "name": "item-active-hover-background", "type": "Color", "description": "The color used for the active tab background on hover and focus. Auto-derived from item-active-background." }, { "name": "item-disabled-color", "type": "Color", "description": "The color used for the disabled tabs text." }, { "name": "indicator-color", "type": "Color", "description": "The color used for the active tab indicator. Auto-derived from item-active-color." }, { "name": "button-color", "type": "Color", "description": "The color used for the button icon/text color. Auto-derived from button-background or item-text-color." }, { "name": "button-hover-color", "type": "Color", "description": "The color used for the button icon/text color on hover. Auto-derived from button-color or button-hover-background." }, { "name": "button-disabled-color", "type": "Color", "description": "The color used for the disabled button icon/text. Auto-derived from button-color." }, { "name": "button-background", "type": "Color", "description": "The color used for the button background. Auto-derived from item-background." }, { "name": "button-hover-background", "type": "Color", "description": "The color used for the button background on hover. Auto-derived from item-background or button-background." }, { "name": "border-radius", "type": "List", "description": "The border radius for the tabs." }, { "name": "border-color", "type": "Color", "description": "The border color of the tabs. Auto-derived from item-background (bootstrap)." }, { "name": "border-color--hover", "type": "Color", "description": "The border color of the tabs on hover. Auto-derived from border-color." }, { "name": "tab-ripple-color", "type": "Color", "description": "The color used for the tab ripple effect. Auto-derived from item-active-background or item-background." }, { "name": "button-ripple-color", "type": "Color", "description": "The color used for the button ripple effect. Auto-derived from button-color." }] };
|
|
34
34
|
const toast = { "name": "toast", "themeFunctionName": "toast-theme", "description": "Toast Theme", "primaryTokens": [{ "name": "background", "description": "The background color." }], "primaryTokensSummary": "Derived colors are auto-calculated for contrast.", "tokens": [{ "name": "background", "type": "Color", "description": "The background color used for the toast. PRIMARY - derives text-color, border-color." }, { "name": "text-color", "type": "Color", "description": "The text-color used for the toast. Auto-derived from background." }, { "name": "border-color", "type": "Color", "description": "The border-color used for the toast. Auto-derived from text-color." }, { "name": "border-radius", "type": "List", "description": "The border radius used for the toast component." }, { "name": "shadow", "type": "box-shadow", "description": "Sets a shadow to be used for the toast." }] };
|
|
@@ -48,7 +48,6 @@ const themesData = {
|
|
|
48
48
|
"flat-button": { "name": "flat-button", "themeFunctionName": "flat-button-theme", "description": "Flat Button Theme", "primaryTokens": [{ "name": "foreground", "description": "The text color of the button." }, { "name": "hover-background", "description": "The hover background color." }, { "name": "focus-background", "description": "The focus background color." }, { "name": "active-background", "description": "The active background color." }], "primaryTokensSummary": "For flat buttons, the foreground color is the primary token.", "tokens": [{ "name": "background", "type": "Color", "description": "The background color of the button." }, { "name": "foreground", "type": "Color", "description": "The text color of the button. PRIMARY - derives hover/focus/active backgrounds and foregrounds." }, { "name": "icon-color", "type": "Color", "description": "The icon color in the button." }, { "name": "icon-color-hover", "type": "Color", "description": "The icon color in the button on hover. Auto-derived from hover-foreground." }, { "name": "hover-background", "type": "Color", "description": "The hover background color of the button. PRIMARY - derives hover-foreground. Auto-derived from foreground." }, { "name": "hover-foreground", "type": "Color", "description": "The hover text color of the button. Auto-derived from hover-background." }, { "name": "focus-background", "type": "Color", "description": "The focus background color of the button. PRIMARY - derives focus-foreground. Auto-derived from foreground." }, { "name": "focus-foreground", "type": "Color", "description": "The focus text color of the button. Auto-derived from focus-background." }, { "name": "focus-hover-background", "type": "Color", "description": "The background color on focus hovered state. Auto-derived from foreground." }, { "name": "focus-hover-foreground", "type": "Color", "description": "The text color on focus hovered state. Auto-derived from focus-hover-background." }, { "name": "focus-visible-background", "type": "Color", "description": "The focus-visible background color. Auto-derived from focus-background or foreground." }, { "name": "focus-visible-foreground", "type": "Color", "description": "The focus-visible text color. Auto-derived from focus-visible-background." }, { "name": "active-background", "type": "Color", "description": "The active background of the button. Auto-derived from foreground." }, { "name": "active-foreground", "type": "Color", "description": "The active text color of the button. Auto-derived from active-background." }, { "name": "border-radius", "type": "List", "description": "The border radius of the button." }, { "name": "border-color", "type": "Color", "description": "The border color of the button." }, { "name": "hover-border-color", "type": "Color", "description": "The hover border color of the button." }, { "name": "focus-border-color", "type": "Color", "description": "The focus border color of the button." }, { "name": "focus-visible-border-color", "type": "Color", "description": "The focus-visible border color. Auto-derived from focus-border-color or focus-visible-foreground." }, { "name": "active-border-color", "type": "Color", "description": "The active border color of the button." }, { "name": "shadow-color", "type": "Color", "description": "The shadow color of the button. Auto-derived from focus-visible-foreground." }, { "name": "disabled-background", "type": "Color", "description": "The disabled background color of the button." }, { "name": "disabled-foreground", "type": "Color", "description": "The disabled text color of the button. Auto-derived from foreground (bootstrap/indigo)." }, { "name": "disabled-icon-color", "type": "Color", "description": "The disabled icon color of the button. Auto-derived from disabled-foreground." }, { "name": "disabled-border-color", "type": "Color", "description": "The disabled border color of the button.\n" }] },
|
|
49
49
|
"outlined-button": { "name": "outlined-button", "themeFunctionName": "outlined-button-theme", "description": "Outlined Button Theme", "primaryTokens": [{ "name": "foreground", "description": "The text color of the button." }, { "name": "hover-background", "description": "The hover background color." }, { "name": "focus-background", "description": "The focus background color." }, { "name": "active-background", "description": "The active background color." }], "primaryTokensSummary": "For outlined buttons, the foreground color is the primary token.", "tokens": [{ "name": "background", "type": "Color", "description": "The background color of the button." }, { "name": "foreground", "type": "Color", "description": "The text color of the button. PRIMARY - derives hover/focus/active backgrounds, foregrounds, and borders." }, { "name": "icon-color", "type": "Color", "description": "The icon color in the button." }, { "name": "icon-color-hover", "type": "Color", "description": "The icon color in the button on hover. Auto-derived from hover-foreground." }, { "name": "hover-background", "type": "Color", "description": "The hover background color. PRIMARY - derives hover-foreground. Auto-derived from foreground." }, { "name": "hover-foreground", "type": "Color", "description": "The hover text color. Auto-derived from hover-background." }, { "name": "focus-background", "type": "Color", "description": "The focus background color. PRIMARY - derives focus-foreground. Auto-derived from foreground." }, { "name": "focus-foreground", "type": "Color", "description": "The focus text color. Auto-derived from focus-background." }, { "name": "focus-hover-background", "type": "Color", "description": "The background color on focus hovered state. Auto-derived from foreground or hover-background." }, { "name": "focus-hover-foreground", "type": "Color", "description": "The text color on focus hovered state. Auto-derived from focus-hover-background." }, { "name": "focus-visible-background", "type": "Color", "description": "The focus-visible background color. Auto-derived from focus-background or hover-background." }, { "name": "focus-visible-foreground", "type": "Color", "description": "The focus-visible text color. Auto-derived from focus-visible-background or foreground." }, { "name": "active-background", "type": "Color", "description": "The active background of the button. Auto-derived from foreground." }, { "name": "active-foreground", "type": "Color", "description": "The active text color. Auto-derived from active-background." }, { "name": "border-radius", "type": "List", "description": "The border radius of the button." }, { "name": "border-color", "type": "Color", "description": "The border color of the button. Auto-derived from foreground." }, { "name": "hover-border-color", "type": "Color", "description": "The hover border color. Auto-derived from hover-foreground or hover-background." }, { "name": "focus-border-color", "type": "Color", "description": "The focus border color. Auto-derived from focus-foreground or focus-background." }, { "name": "focus-visible-border-color", "type": "Color", "description": "The focus-visible border color. Auto-derived from focus-border-color or focus-visible-background." }, { "name": "active-border-color", "type": "Color", "description": "The active border color. Auto-derived from active-foreground or active-background." }, { "name": "shadow-color", "type": "Color", "description": "The shadow color of the button. Auto-derived from focus-visible-foreground or focus-visible-background." }, { "name": "disabled-background", "type": "Color", "description": "The disabled background color of the button." }, { "name": "disabled-foreground", "type": "Color", "description": "The disabled text color. Auto-derived from foreground (bootstrap)." }, { "name": "disabled-icon-color", "type": "Color", "description": "The disabled icon color. Auto-derived from disabled-foreground." }, { "name": "disabled-border-color", "type": "Color", "description": "The disabled border color. Auto-derived from disabled-foreground (bootstrap).\n" }] },
|
|
50
50
|
calendar,
|
|
51
|
-
"date-picker": { "name": "date-picker", "themeFunctionName": "date-picker-theme", "description": "Date Picker Theme", "primaryTokens": [{ "name": "header-background", "description": "The main accent color." }, { "name": "content-background", "description": "The calendar body background." }], "primaryTokensSummary": "Text and icon colors are auto-calculated for contrast.", "tokens": [] },
|
|
52
51
|
card,
|
|
53
52
|
carousel,
|
|
54
53
|
chat,
|
|
@@ -76,8 +75,6 @@ const themesData = {
|
|
|
76
75
|
"file-input": { "name": "file-input", "themeFunctionName": "file-input-theme", "description": "File Input Theme", "primaryTokens": [{ "name": "file-names-background", "description": "The file names container background color." }, { "name": "file-selector-button-background", "description": "The file input selector button background color." }], "primaryTokensSummary": "Derived colors are auto-calculated for contrast.", "tokens": [{ "name": "file-names-background", "type": "Color", "description": "The file names container background color. PRIMARY - derives all file-names foreground colors." }, { "name": "file-names-background--focused", "type": "Color", "description": "The file names container background color when focused. Auto-derived from file-names-background." }, { "name": "file-names-background--filled", "type": "Color", "description": "The file names container background color when filled. Auto-derived from file-names-background." }, { "name": "file-names-background--disabled", "type": "Color", "description": "The file names container background color when disabled. Auto-derived from file-names-background." }, { "name": "file-names-foreground", "type": "Color", "description": "The file names color. Auto-derived from file-names-background." }, { "name": "file-names-foreground--focused", "type": "Color", "description": "The file names color when focused. Auto-derived from file-names-background--focused." }, { "name": "file-names-foreground--filled", "type": "Color", "description": "The file names color when filled. Auto-derived from file-names-background--filled." }, { "name": "file-names-foreground--disabled", "type": "Color", "description": "The file names color when disabled. Auto-derived from file-names-background--disabled." }, { "name": "file-selector-button-background", "type": "Color", "description": "The selector button background color. PRIMARY - derives all selector button foreground colors." }, { "name": "file-selector-button-background--focused", "type": "Color", "description": "The selector button background color when focused. Auto-derived from file-selector-button-background." }, { "name": "file-selector-button-background--filled", "type": "Color", "description": "The selector button background color when filled. Auto-derived from file-selector-button-background." }, { "name": "file-selector-button-background--disabled", "type": "Color", "description": "The selector button background color when disabled. Auto-derived from file-selector-button-background." }, { "name": "file-selector-button-foreground", "type": "Color", "description": "The selector button foreground color. Auto-derived from file-selector-button-background." }, { "name": "file-selector-button-foreground--focused", "type": "Color", "description": "The selector button foreground color when focused. Auto-derived from file-selector-button-background--focused." }, { "name": "file-selector-button-foreground--filled", "type": "Color", "description": "The selector button foreground color when filled. Auto-derived from file-selector-button-background--filled." }, { "name": "file-selector-button-foreground--disabled", "type": "Color", "description": "The selector button foreground color when disabled. Auto-derived from file-selector-button-background--disabled." }] },
|
|
77
76
|
"input-group": { "name": "input-group", "themeFunctionName": "input-group-theme", "description": "Input Group Theme", "primaryTokens": [{ "name": "box-background", "description": "Box type input background." }, { "name": "search-background", "description": "Search type input background." }, { "name": "border-color", "description": "Border color for border/fluent types." }, { "name": "idle-bottom-line-color", "description": "Bottom line color (material)." }, { "name": "focused-border-color", "description": "Focused state accent color." }], "primaryTokensSummary": "For Material variant, set `$box-background` for box type inputs.", "tokens": [{ "name": "idle-text-color", "type": "Color", "description": "The input text color in the idle state. Auto-derived from box/search-background." }, { "name": "filled-text-color", "type": "Color", "description": "The input text color in the filled state. Auto-derived from box/search-background." }, { "name": "filled-text-hover-color", "type": "Color", "description": "The input text color in the filled state on hover." }, { "name": "focused-text-color", "type": "Color", "description": "The input text color in the focused state. Auto-derived from box-background-focus or search-background." }, { "name": "disabled-text-color", "type": "Color", "description": "The input text color in the disabled state. Auto-derived from disabled background." }, { "name": "helper-text-color", "type": "Color", "description": "The helper text color." }, { "name": "text-error-color", "type": "Color", "description": "The color used for the error message." }, { "name": "icon-error-color", "type": "Color", "description": "The color used for the error icon." }, { "name": "input-prefix-color", "type": "Color", "description": "The input prefix color in the idle state. Auto-derived from box/search-background." }, { "name": "input-prefix-background", "type": "Color", "description": "The background color of an input prefix in the idle state. Synced with suffix-background." }, { "name": "input-prefix-color--filled", "type": "Color", "description": "The input prefix color in the filled state. Auto-derived from prefix-color or background." }, { "name": "input-prefix-background--filled", "type": "Color", "description": "] - The background color of an input prefix in the filled state." }, { "name": "input-prefix-color--focused", "type": "Color", "description": "The input prefix color in the focused state. Auto-derived from prefix-color--filled or background." }, { "name": "input-prefix-background--focused", "type": "Color", "description": "The background color of an input prefix in the focused state." }, { "name": "input-suffix-color", "type": "Color", "description": "The input suffix color in the idle state. Auto-derived from box/search-background. Synced with prefix-color." }, { "name": "input-suffix-background", "type": "Color", "description": "The background color of an input suffix in the idle state. Synced with prefix-background." }, { "name": "input-suffix-color--filled", "type": "Color", "description": "The input suffix color in the filled state." }, { "name": "input-suffix-background-filled", "type": "Color", "description": "The background color of an input suffix in the filled state." }, { "name": "input-suffix-color--focused", "type": "Color", "description": "The input suffix color in the focused state." }, { "name": "input-suffix-background--focused", "type": "Color", "description": "The background color of an input suffix in the focused state." }, { "name": "idle-secondary-color", "type": "Color", "description": "The label color in the idle state. Auto-derived from box-background or placeholder-color." }, { "name": "focused-secondary-color", "type": "Color", "description": "The label color in the focused state. Auto-derived from focused-bottom-line-color or focused-border-color." }, { "name": "idle-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the idle state. PRIMARY for material bottom line." }, { "name": "hover-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the hover state. Auto-derived from idle-bottom-line-color." }, { "name": "focused-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the focused state. Auto-derived from hover-bottom-line-color." }, { "name": "disabled-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the disabled state." }, { "name": "border-color", "type": "Color", "description": "The border color for input groups of type border and fluent. PRIMARY for border inputs." }, { "name": "hover-border-color", "type": "Color", "description": "The hover input border for input groups of type border and fluent. Auto-derived from border-color." }, { "name": "focused-border-color", "type": "Color", "description": "The focused input border color for input groups of type border and fluent. Auto-derived from hover-border-color." }, { "name": "disabled-border-color", "type": "Color", "description": "The disabled border color for input groups of type border and fluent." }, { "name": "box-background", "type": "Color", "description": "The background color of an input group of type box. PRIMARY for material box inputs." }, { "name": "box-background-hover", "type": "Color", "description": "The background color on hover of an input group of type box. Auto-derived from box-background." }, { "name": "box-background-focus", "type": "Color", "description": "The background color on focus of an input group of type box. Auto-derived from box-background." }, { "name": "box-disabled-background", "type": "Color", "description": "The background color of an input group of type box in the disabled state. Auto-derived from box-background." }, { "name": "border-background", "type": "Color", "description": "The background color of an input group of type border." }, { "name": "border-disabled-background", "type": "Color", "description": "The background color of an input group of type border in the disabled state." }, { "name": "search-background", "type": "Color", "description": "The background color of an input group of type search. PRIMARY for search inputs." }, { "name": "search-disabled-background", "type": "Color", "description": "The background color of an input group of type search in the disabled state. Auto-derived from search-background." }, { "name": "search-resting-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its resting state." }, { "name": "search-hover-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its hover state." }, { "name": "search-disabled-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its disabled state." }, { "name": "success-secondary-color", "type": "Color", "description": "The success color used in the valid state." }, { "name": "warning-secondary-color", "type": "Color", "description": "The warning color used in the warning state." }, { "name": "error-secondary-color", "type": "Color", "description": "The error color used in the error state." }, { "name": "box-border-radius", "type": "List", "description": "The border radius used for box input." }, { "name": "border-border-radius", "type": "List", "description": "The border radius used for border input." }, { "name": "search-border-radius", "type": "List", "description": "The border radius used for search input." }, { "name": "placeholder-color", "type": "Color", "description": "The placeholder color of an input group. Auto-derived from box/search-background." }, { "name": "hover-placeholder-color", "type": "Color", "description": "The placeholder color of an input group on hover. Auto-derived from box-background-hover or placeholder-color." }, { "name": "disabled-placeholder-color", "type": "Color", "description": "The disabled placeholder color of an input group. Auto-derived from disabled background." }] },
|
|
78
77
|
"date-time-input": { "name": "date-time-input", "themeFunctionName": "date-time-input-theme", "description": "Date Time Input Theme", "primaryTokens": [{ "name": "box-background", "description": "Box type input background." }, { "name": "search-background", "description": "Search type input background." }, { "name": "border-color", "description": "Border color for border/fluent types." }, { "name": "idle-bottom-line-color", "description": "Bottom line color (material)." }, { "name": "focused-border-color", "description": "Focused state accent color." }], "primaryTokensSummary": "For Material variant, set `$box-background` for box type inputs.", "tokens": [{ "name": "idle-text-color", "type": "Color", "description": "The input text color in the idle state. Auto-derived from box/search-background." }, { "name": "filled-text-color", "type": "Color", "description": "The input text color in the filled state. Auto-derived from box/search-background." }, { "name": "filled-text-hover-color", "type": "Color", "description": "The input text color in the filled state on hover." }, { "name": "focused-text-color", "type": "Color", "description": "The input text color in the focused state. Auto-derived from box-background-focus or search-background." }, { "name": "disabled-text-color", "type": "Color", "description": "The input text color in the disabled state. Auto-derived from disabled background." }, { "name": "helper-text-color", "type": "Color", "description": "The helper text color." }, { "name": "text-error-color", "type": "Color", "description": "The color used for the error message." }, { "name": "icon-error-color", "type": "Color", "description": "The color used for the error icon." }, { "name": "input-prefix-color", "type": "Color", "description": "The input prefix color in the idle state. Auto-derived from box/search-background." }, { "name": "input-prefix-background", "type": "Color", "description": "The background color of an input prefix in the idle state. Synced with suffix-background." }, { "name": "input-prefix-color--filled", "type": "Color", "description": "The input prefix color in the filled state. Auto-derived from prefix-color or background." }, { "name": "input-prefix-background--filled", "type": "Color", "description": "] - The background color of an input prefix in the filled state." }, { "name": "input-prefix-color--focused", "type": "Color", "description": "The input prefix color in the focused state. Auto-derived from prefix-color--filled or background." }, { "name": "input-prefix-background--focused", "type": "Color", "description": "The background color of an input prefix in the focused state." }, { "name": "input-suffix-color", "type": "Color", "description": "The input suffix color in the idle state. Auto-derived from box/search-background. Synced with prefix-color." }, { "name": "input-suffix-background", "type": "Color", "description": "The background color of an input suffix in the idle state. Synced with prefix-background." }, { "name": "input-suffix-color--filled", "type": "Color", "description": "The input suffix color in the filled state." }, { "name": "input-suffix-background-filled", "type": "Color", "description": "The background color of an input suffix in the filled state." }, { "name": "input-suffix-color--focused", "type": "Color", "description": "The input suffix color in the focused state." }, { "name": "input-suffix-background--focused", "type": "Color", "description": "The background color of an input suffix in the focused state." }, { "name": "idle-secondary-color", "type": "Color", "description": "The label color in the idle state. Auto-derived from box-background or placeholder-color." }, { "name": "focused-secondary-color", "type": "Color", "description": "The label color in the focused state. Auto-derived from focused-bottom-line-color or focused-border-color." }, { "name": "idle-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the idle state. PRIMARY for material bottom line." }, { "name": "hover-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the hover state. Auto-derived from idle-bottom-line-color." }, { "name": "focused-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the focused state. Auto-derived from hover-bottom-line-color." }, { "name": "disabled-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the disabled state." }, { "name": "border-color", "type": "Color", "description": "The border color for input groups of type border and fluent. PRIMARY for border inputs." }, { "name": "hover-border-color", "type": "Color", "description": "The hover input border for input groups of type border and fluent. Auto-derived from border-color." }, { "name": "focused-border-color", "type": "Color", "description": "The focused input border color for input groups of type border and fluent. Auto-derived from hover-border-color." }, { "name": "disabled-border-color", "type": "Color", "description": "The disabled border color for input groups of type border and fluent." }, { "name": "box-background", "type": "Color", "description": "The background color of an input group of type box. PRIMARY for material box inputs." }, { "name": "box-background-hover", "type": "Color", "description": "The background color on hover of an input group of type box. Auto-derived from box-background." }, { "name": "box-background-focus", "type": "Color", "description": "The background color on focus of an input group of type box. Auto-derived from box-background." }, { "name": "box-disabled-background", "type": "Color", "description": "The background color of an input group of type box in the disabled state. Auto-derived from box-background." }, { "name": "border-background", "type": "Color", "description": "The background color of an input group of type border." }, { "name": "border-disabled-background", "type": "Color", "description": "The background color of an input group of type border in the disabled state." }, { "name": "search-background", "type": "Color", "description": "The background color of an input group of type search. PRIMARY for search inputs." }, { "name": "search-disabled-background", "type": "Color", "description": "The background color of an input group of type search in the disabled state. Auto-derived from search-background." }, { "name": "search-resting-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its resting state." }, { "name": "search-hover-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its hover state." }, { "name": "search-disabled-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its disabled state." }, { "name": "success-secondary-color", "type": "Color", "description": "The success color used in the valid state." }, { "name": "warning-secondary-color", "type": "Color", "description": "The warning color used in the warning state." }, { "name": "error-secondary-color", "type": "Color", "description": "The error color used in the error state." }, { "name": "box-border-radius", "type": "List", "description": "The border radius used for box input." }, { "name": "border-border-radius", "type": "List", "description": "The border radius used for border input." }, { "name": "search-border-radius", "type": "List", "description": "The border radius used for search input." }, { "name": "placeholder-color", "type": "Color", "description": "The placeholder color of an input group. Auto-derived from box/search-background." }, { "name": "hover-placeholder-color", "type": "Color", "description": "The placeholder color of an input group on hover. Auto-derived from box-background-hover or placeholder-color." }, { "name": "disabled-placeholder-color", "type": "Color", "description": "The disabled placeholder color of an input group. Auto-derived from disabled background." }] },
|
|
79
|
-
"date-range-start": { "name": "date-range-start", "themeFunctionName": "date-range-start-theme", "description": "Date Range Start Theme", "primaryTokens": [{ "name": "box-background", "description": "Box type input background." }, { "name": "search-background", "description": "Search type input background." }, { "name": "border-color", "description": "Border color for border/fluent types." }, { "name": "idle-bottom-line-color", "description": "Bottom line color (material)." }, { "name": "focused-border-color", "description": "Focused state accent color." }], "primaryTokensSummary": "For Material variant, set `$box-background` for box type inputs.", "tokens": [{ "name": "idle-text-color", "type": "Color", "description": "The input text color in the idle state. Auto-derived from box/search-background." }, { "name": "filled-text-color", "type": "Color", "description": "The input text color in the filled state. Auto-derived from box/search-background." }, { "name": "filled-text-hover-color", "type": "Color", "description": "The input text color in the filled state on hover." }, { "name": "focused-text-color", "type": "Color", "description": "The input text color in the focused state. Auto-derived from box-background-focus or search-background." }, { "name": "disabled-text-color", "type": "Color", "description": "The input text color in the disabled state. Auto-derived from disabled background." }, { "name": "helper-text-color", "type": "Color", "description": "The helper text color." }, { "name": "text-error-color", "type": "Color", "description": "The color used for the error message." }, { "name": "icon-error-color", "type": "Color", "description": "The color used for the error icon." }, { "name": "input-prefix-color", "type": "Color", "description": "The input prefix color in the idle state. Auto-derived from box/search-background." }, { "name": "input-prefix-background", "type": "Color", "description": "The background color of an input prefix in the idle state. Synced with suffix-background." }, { "name": "input-prefix-color--filled", "type": "Color", "description": "The input prefix color in the filled state. Auto-derived from prefix-color or background." }, { "name": "input-prefix-background--filled", "type": "Color", "description": "] - The background color of an input prefix in the filled state." }, { "name": "input-prefix-color--focused", "type": "Color", "description": "The input prefix color in the focused state. Auto-derived from prefix-color--filled or background." }, { "name": "input-prefix-background--focused", "type": "Color", "description": "The background color of an input prefix in the focused state." }, { "name": "input-suffix-color", "type": "Color", "description": "The input suffix color in the idle state. Auto-derived from box/search-background. Synced with prefix-color." }, { "name": "input-suffix-background", "type": "Color", "description": "The background color of an input suffix in the idle state. Synced with prefix-background." }, { "name": "input-suffix-color--filled", "type": "Color", "description": "The input suffix color in the filled state." }, { "name": "input-suffix-background-filled", "type": "Color", "description": "The background color of an input suffix in the filled state." }, { "name": "input-suffix-color--focused", "type": "Color", "description": "The input suffix color in the focused state." }, { "name": "input-suffix-background--focused", "type": "Color", "description": "The background color of an input suffix in the focused state." }, { "name": "idle-secondary-color", "type": "Color", "description": "The label color in the idle state. Auto-derived from box-background or placeholder-color." }, { "name": "focused-secondary-color", "type": "Color", "description": "The label color in the focused state. Auto-derived from focused-bottom-line-color or focused-border-color." }, { "name": "idle-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the idle state. PRIMARY for material bottom line." }, { "name": "hover-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the hover state. Auto-derived from idle-bottom-line-color." }, { "name": "focused-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the focused state. Auto-derived from hover-bottom-line-color." }, { "name": "disabled-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the disabled state." }, { "name": "border-color", "type": "Color", "description": "The border color for input groups of type border and fluent. PRIMARY for border inputs." }, { "name": "hover-border-color", "type": "Color", "description": "The hover input border for input groups of type border and fluent. Auto-derived from border-color." }, { "name": "focused-border-color", "type": "Color", "description": "The focused input border color for input groups of type border and fluent. Auto-derived from hover-border-color." }, { "name": "disabled-border-color", "type": "Color", "description": "The disabled border color for input groups of type border and fluent." }, { "name": "box-background", "type": "Color", "description": "The background color of an input group of type box. PRIMARY for material box inputs." }, { "name": "box-background-hover", "type": "Color", "description": "The background color on hover of an input group of type box. Auto-derived from box-background." }, { "name": "box-background-focus", "type": "Color", "description": "The background color on focus of an input group of type box. Auto-derived from box-background." }, { "name": "box-disabled-background", "type": "Color", "description": "The background color of an input group of type box in the disabled state. Auto-derived from box-background." }, { "name": "border-background", "type": "Color", "description": "The background color of an input group of type border." }, { "name": "border-disabled-background", "type": "Color", "description": "The background color of an input group of type border in the disabled state." }, { "name": "search-background", "type": "Color", "description": "The background color of an input group of type search. PRIMARY for search inputs." }, { "name": "search-disabled-background", "type": "Color", "description": "The background color of an input group of type search in the disabled state. Auto-derived from search-background." }, { "name": "search-resting-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its resting state." }, { "name": "search-hover-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its hover state." }, { "name": "search-disabled-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its disabled state." }, { "name": "success-secondary-color", "type": "Color", "description": "The success color used in the valid state." }, { "name": "warning-secondary-color", "type": "Color", "description": "The warning color used in the warning state." }, { "name": "error-secondary-color", "type": "Color", "description": "The error color used in the error state." }, { "name": "box-border-radius", "type": "List", "description": "The border radius used for box input." }, { "name": "border-border-radius", "type": "List", "description": "The border radius used for border input." }, { "name": "search-border-radius", "type": "List", "description": "The border radius used for search input." }, { "name": "placeholder-color", "type": "Color", "description": "The placeholder color of an input group. Auto-derived from box/search-background." }, { "name": "hover-placeholder-color", "type": "Color", "description": "The placeholder color of an input group on hover. Auto-derived from box-background-hover or placeholder-color." }, { "name": "disabled-placeholder-color", "type": "Color", "description": "The disabled placeholder color of an input group. Auto-derived from disabled background." }] },
|
|
80
|
-
"date-range-end": { "name": "date-range-end", "themeFunctionName": "date-range-end-theme", "description": "Date Range End Theme", "primaryTokens": [{ "name": "box-background", "description": "Box type input background." }, { "name": "search-background", "description": "Search type input background." }, { "name": "border-color", "description": "Border color for border/fluent types." }, { "name": "idle-bottom-line-color", "description": "Bottom line color (material)." }, { "name": "focused-border-color", "description": "Focused state accent color." }], "primaryTokensSummary": "For Material variant, set `$box-background` for box type inputs.", "tokens": [{ "name": "idle-text-color", "type": "Color", "description": "The input text color in the idle state. Auto-derived from box/search-background." }, { "name": "filled-text-color", "type": "Color", "description": "The input text color in the filled state. Auto-derived from box/search-background." }, { "name": "filled-text-hover-color", "type": "Color", "description": "The input text color in the filled state on hover." }, { "name": "focused-text-color", "type": "Color", "description": "The input text color in the focused state. Auto-derived from box-background-focus or search-background." }, { "name": "disabled-text-color", "type": "Color", "description": "The input text color in the disabled state. Auto-derived from disabled background." }, { "name": "helper-text-color", "type": "Color", "description": "The helper text color." }, { "name": "text-error-color", "type": "Color", "description": "The color used for the error message." }, { "name": "icon-error-color", "type": "Color", "description": "The color used for the error icon." }, { "name": "input-prefix-color", "type": "Color", "description": "The input prefix color in the idle state. Auto-derived from box/search-background." }, { "name": "input-prefix-background", "type": "Color", "description": "The background color of an input prefix in the idle state. Synced with suffix-background." }, { "name": "input-prefix-color--filled", "type": "Color", "description": "The input prefix color in the filled state. Auto-derived from prefix-color or background." }, { "name": "input-prefix-background--filled", "type": "Color", "description": "] - The background color of an input prefix in the filled state." }, { "name": "input-prefix-color--focused", "type": "Color", "description": "The input prefix color in the focused state. Auto-derived from prefix-color--filled or background." }, { "name": "input-prefix-background--focused", "type": "Color", "description": "The background color of an input prefix in the focused state." }, { "name": "input-suffix-color", "type": "Color", "description": "The input suffix color in the idle state. Auto-derived from box/search-background. Synced with prefix-color." }, { "name": "input-suffix-background", "type": "Color", "description": "The background color of an input suffix in the idle state. Synced with prefix-background." }, { "name": "input-suffix-color--filled", "type": "Color", "description": "The input suffix color in the filled state." }, { "name": "input-suffix-background-filled", "type": "Color", "description": "The background color of an input suffix in the filled state." }, { "name": "input-suffix-color--focused", "type": "Color", "description": "The input suffix color in the focused state." }, { "name": "input-suffix-background--focused", "type": "Color", "description": "The background color of an input suffix in the focused state." }, { "name": "idle-secondary-color", "type": "Color", "description": "The label color in the idle state. Auto-derived from box-background or placeholder-color." }, { "name": "focused-secondary-color", "type": "Color", "description": "The label color in the focused state. Auto-derived from focused-bottom-line-color or focused-border-color." }, { "name": "idle-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the idle state. PRIMARY for material bottom line." }, { "name": "hover-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the hover state. Auto-derived from idle-bottom-line-color." }, { "name": "focused-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the focused state. Auto-derived from hover-bottom-line-color." }, { "name": "disabled-bottom-line-color", "type": "Color", "description": "The bottom line and border colors in the disabled state." }, { "name": "border-color", "type": "Color", "description": "The border color for input groups of type border and fluent. PRIMARY for border inputs." }, { "name": "hover-border-color", "type": "Color", "description": "The hover input border for input groups of type border and fluent. Auto-derived from border-color." }, { "name": "focused-border-color", "type": "Color", "description": "The focused input border color for input groups of type border and fluent. Auto-derived from hover-border-color." }, { "name": "disabled-border-color", "type": "Color", "description": "The disabled border color for input groups of type border and fluent." }, { "name": "box-background", "type": "Color", "description": "The background color of an input group of type box. PRIMARY for material box inputs." }, { "name": "box-background-hover", "type": "Color", "description": "The background color on hover of an input group of type box. Auto-derived from box-background." }, { "name": "box-background-focus", "type": "Color", "description": "The background color on focus of an input group of type box. Auto-derived from box-background." }, { "name": "box-disabled-background", "type": "Color", "description": "The background color of an input group of type box in the disabled state. Auto-derived from box-background." }, { "name": "border-background", "type": "Color", "description": "The background color of an input group of type border." }, { "name": "border-disabled-background", "type": "Color", "description": "The background color of an input group of type border in the disabled state." }, { "name": "search-background", "type": "Color", "description": "The background color of an input group of type search. PRIMARY for search inputs." }, { "name": "search-disabled-background", "type": "Color", "description": "The background color of an input group of type search in the disabled state. Auto-derived from search-background." }, { "name": "search-resting-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its resting state." }, { "name": "search-hover-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its hover state." }, { "name": "search-disabled-shadow", "type": "box-shadow", "description": "The shadow color of an input group of type search in its disabled state." }, { "name": "success-secondary-color", "type": "Color", "description": "The success color used in the valid state." }, { "name": "warning-secondary-color", "type": "Color", "description": "The warning color used in the warning state." }, { "name": "error-secondary-color", "type": "Color", "description": "The error color used in the error state." }, { "name": "box-border-radius", "type": "List", "description": "The border radius used for box input." }, { "name": "border-border-radius", "type": "List", "description": "The border radius used for border input." }, { "name": "search-border-radius", "type": "List", "description": "The border radius used for search input." }, { "name": "placeholder-color", "type": "Color", "description": "The placeholder color of an input group. Auto-derived from box/search-background." }, { "name": "hover-placeholder-color", "type": "Color", "description": "The placeholder color of an input group on hover. Auto-derived from box-background-hover or placeholder-color." }, { "name": "disabled-placeholder-color", "type": "Color", "description": "The disabled placeholder color of an input group. Auto-derived from disabled background." }] },
|
|
81
78
|
label,
|
|
82
79
|
list,
|
|
83
80
|
navbar,
|
|
@@ -53,6 +53,8 @@ export interface CompoundInfo {
|
|
|
53
53
|
export interface ComponentMetadata {
|
|
54
54
|
/** Platform-specific CSS selectors */
|
|
55
55
|
selectors: ComponentSelectors;
|
|
56
|
+
/** Optional theme alias for components that reuse another component theme */
|
|
57
|
+
theme?: string;
|
|
56
58
|
/** Present only for components with variant-specific themes (e.g., button) */
|
|
57
59
|
variants?: string[];
|
|
58
60
|
/** Present only for compound components */
|