Theme configuration
Each project can store a theme configuration as JSON. Fetch it server-side withfetchStoreThemeConfig:
CSS variables
The@colossal/ui-kit components and hosted checkout use CSS custom properties for theming:
Set these on your root element to apply your brand:
UI Kit
The@colossal/ui-kit package provides primitive React components styled with the CSS variables above.
Available components
Button example
primary, secondary, ghost, outline.
Classname utility
The UI kit exports acn() function that merges class names using clsx and tailwind-merge:
Custom styling
Override any component styling by targeting the CSS variables or by wrapping components with your own styles. The UI kit uses Tailwind CSS classes internally, sotailwind-merge prevents class conflicts when you add your own Tailwind classes.
Next steps
- React SDK overview. See all available components and hooks