igniteui-theming
Version:
A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.
175 lines (174 loc) • 5.01 kB
TypeScript
/**
* Resource handlers for preset data.
* Provides access to palette, typography, elevation presets, and platform information.
*/
/**
* Resource URI scheme.
*/
export declare const RESOURCE_SCHEME = "theming";
/**
* Available resource URIs.
*/
export declare const RESOURCE_URIS: {
readonly PLATFORMS: "theming://platforms";
readonly PLATFORM_ANGULAR: "theming://platforms/angular";
readonly PLATFORM_WEBCOMPONENTS: "theming://platforms/webcomponents";
readonly PLATFORM_REACT: "theming://platforms/react";
readonly PLATFORM_BLAZOR: "theming://platforms/blazor";
readonly PLATFORM_GENERIC: "theming://platforms/generic";
readonly PALETTES: "theming://presets/palettes";
readonly PALETTES_LIGHT: "theming://presets/palettes/light";
readonly PALETTES_DARK: "theming://presets/palettes/dark";
readonly TYPOGRAPHY: "theming://presets/typography";
readonly ELEVATIONS: "theming://presets/elevations";
readonly GUIDANCE_PLATFORM_SETUP: "theming://guidance/platform-setup";
readonly GUIDANCE_COLORS: "theming://guidance/colors";
readonly GUIDANCE_COLORS_RULES: "theming://guidance/colors/rules";
readonly GUIDANCE_COLORS_USAGE: "theming://guidance/colors/usage";
readonly GUIDANCE_COLORS_ROLES: "theming://guidance/colors/roles";
readonly GUIDANCE_COLORS_STATES: "theming://guidance/colors/states";
readonly GUIDANCE_COLORS_THEMES: "theming://guidance/colors/themes";
readonly DOCS_LAYOUT_OVERVIEW: "theming://docs/spacing-and-sizing";
readonly DOCS_FUNCTION_PAD: "theming://docs/functions/pad";
readonly DOCS_FUNCTION_SIZABLE: "theming://docs/functions/sizable";
readonly DOCS_FUNCTION_BORDER_RADIUS: "theming://docs/functions/border-radius";
readonly DOCS_MIXIN_SPACING: "theming://docs/mixins/spacing";
readonly DOCS_MIXIN_SIZING: "theming://docs/mixins/sizing";
readonly DOCS_MIXIN_SIZABLE: "theming://docs/mixins/sizable";
};
/**
* Resource definitions for MCP server.
*/
export declare const RESOURCE_DEFINITIONS: ({
uri: "theming://platforms";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://platforms/angular";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://platforms/webcomponents";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://platforms/react";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://platforms/blazor";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://platforms/generic";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://presets/palettes";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://presets/palettes/light";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://presets/palettes/dark";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://presets/typography";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://presets/elevations";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://guidance/platform-setup";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://guidance/colors";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://guidance/colors/rules";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://guidance/colors/usage";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://guidance/colors/roles";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://guidance/colors/states";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://guidance/colors/themes";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://docs/spacing-and-sizing";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://docs/functions/pad";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://docs/functions/sizable";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://docs/functions/border-radius";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://docs/mixins/spacing";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://docs/mixins/sizing";
name: string;
description: string;
mimeType: string;
} | {
uri: "theming://docs/mixins/sizable";
name: string;
description: string;
mimeType: string;
})[];
/**
* Get resource content by URI.
*/
export declare function getResourceContent(uri: string): {
content: string;
mimeType: string;
} | null;