Const
The theme is a flattened tokens object with values appropriate for web environments (i.e. CSS properties & CSS Variables).
It DOES NOT include the namespace (--cdp-web-) in the keys.
--cdp-web-
const theme: Partial<Theme> = { "colors-bg-primary": "#0052ff", "colors-cta-primary-bg-default": "var(--cdp-web-colors-bg-primary)", "font-size-base": "16px",}; Copy
const theme: Partial<Theme> = { "colors-bg-primary": "#0052ff", "colors-cta-primary-bg-default": "var(--cdp-web-colors-bg-primary)", "font-size-base": "16px",};
The theme is a flattened tokens object with values appropriate for web environments (i.e. CSS properties & CSS Variables).
It DOES NOT include the namespace (
--cdp-web-
) in the keys.