@reactloom/theme
v1.3.0
Published
Design tokens, light, dark and high-contrast themes, createTheme() and a scoped ThemeProvider for ReactLoom. Pure CSS custom properties, contrast-checked, works with micro-frontends.
Maintainers
Readme
@reactloom/theme
Design tokens, built-in themes (light, dark, high-contrast, system), createTheme(),
checkThemeContrast() and a scoped ThemeProvider for ReactLoom UI.
import '@reactloom/theme/theme.css';
import { ThemeProvider, createTheme } from '@reactloom/theme';
const brand = createTheme({ name: 'brand', palettes: { accent: myScale } });
<ThemeProvider theme={brand}>…</ThemeProvider>All CSS custom properties are prefixed --pl- and live in @layer pl.theme.
Theming guide and token reference: https://www.reactloom.dev/docs/theming · https://www.reactloom.dev/docs/tokens
