@imba-themes/theme
v0.1.4
Published
Theme factory and semantic color resolution for the MUI Workbench ecosystem.
Downloads
413
Readme
@imba-themes/theme
Theme-Factory und semantische Token-Auflösung für imba-themes.
Inhalt
createWorkbenchThemeresolveSemanticColor
Installation
pnpm add @imba-themes/theme @imba-themes/design-tokensBeispiel
import { createWorkbenchTheme } from '@imba-themes/theme';
import { defaultBrandTokens, defaultSemanticTokens } from '@imba-themes/design-tokens';
const theme = createWorkbenchTheme(
'light',
defaultBrandTokens.light,
defaultSemanticTokens.light.global.background,
defaultSemanticTokens.light.global.text,
defaultSemanticTokens.light.global.borderRadius,
defaultSemanticTokens.light.components.modal.background,
defaultSemanticTokens.light.components.modal.backdrop,
defaultSemanticTokens.light.components.modal.borderRadius ??
defaultSemanticTokens.light.components.box.borderRadius ??
defaultSemanticTokens.light.global.borderRadius,
);