@xsolla/switch-theme-customization
v0.209.1
Published
Theme customization engine: derives full Theme from BaseColors via colord formulas.
Readme
@xsolla/switch-theme-customization
Theme customization engine for Xsolla products. Derives a full Theme object from BaseColors using colord formulas.
Public API
import {
themeGenerator,
generateWithScheme,
themes,
themesBaseColors,
themesColorsScheme,
paystation4,
emails,
primaryPalette,
type Theme,
type BaseColors,
type Misc,
type Typography,
} from "@xsolla/switch-theme-customization";Themes included
paystation4 (light / dark / take2 / gaijin / nexters), emails (light / dark), switch, publisher, publisherV2 (light / dark), brand (light / dark), b2c (light / dark), babka (light / dark), siteBuilder, lightstream, xui (light / dark), cloud-gaming (dark), influencer-account (light / dark).
XUI → Legacy
Exports for PAYMENTS-27879:
import {
mapXuiThemeToLegacy,
createResolver,
typoPrimitives,
shapePrimitives,
} from '@xsolla/switch-theme-customization';| Doc | Scope |
|-----|--------|
| src/xui-primitives/README.md | Typography/shape alias JSON (typo-primitives.json, shape-primitives.json) |
| src/xui-to-legacy/README.md | Resolver, mappers, alias tables, API |
