Follow-ups from the reference site's first visual test: - data-theme="dark"/"light" switches the tokens on any element (LIGHT_SELECTOR, DARK_SELECTOR as selector lists); the base layer colours a themed panel's text - inverted sections re-map primary / primary-hover / primary-text to the new primary-inverse / primary-inverse-text roles; the contrast report checks them (inherited roles resolved on the ancestor, as the cascade does) - ipal-form formClasses.ts on token utilities + buttonClass(); theme.md: one-icon ThemeSwitcher pattern (the default two-option toggle stays) Co-Authored-By: Claude Opus 5.5 <[email protected]>
12 lines
736 B
TypeScript
12 lines
736 B
TypeScript
export { COLOR_DEFAULTS, FLUID_TOKENS, INVERSE_SCOPE, IPAL_BREAKPOINTS, LEGACY_DARK_ROLES, STATIC_DEFAULTS } from './catalog.js'
|
|
export type { ColorRole, IpalTokenName } from './catalog.js'
|
|
export { contrastRatio, parseColor } from './color.js'
|
|
export { contrastReport } from './contrast.js'
|
|
export type { ContrastRow } from './contrast.js'
|
|
export { DARK_SELECTOR, defaultTokensCss, INVERSE_SELECTOR, LIGHT_SELECTOR, tokensToCss } from './css.js'
|
|
export { defineTokens, resolveColors } from './define.js'
|
|
export type { ColorInput, TokensInput } from './define.js'
|
|
export { FLUID_RANGES, FLUID_SCALE, fluidClamp } from './fluid.js'
|
|
export type { FluidRange, RemValue } from './fluid.js'
|
|
export { IPAL_TOKENS, ipalVar } from './names.js'
|