@xsolla/switch-theme-customization
v0.184.0
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, pentagram (light / dark), cloud-gaming (dark), influencer-account (light / dark).
Pentagram → Legacy
Exports for PAYMENTS-27879:
import {
mapPentagramThemeToLegacy,
createResolver,
typoPrimitives,
shapePrimitives,
} from '@xsolla/switch-theme-customization';| Doc | Scope |
|-----|--------|
| src/pentagram-primitives/README.md | Typography/shape alias JSON (typo-primitives.json, shape-primitives.json) |
| src/pentagram-to-legacy/README.md | Resolver, mappers, alias tables, API |
