Documentation Index
Fetch the complete documentation index at: https://docs.colossal.sh/llms.txt
Use this file to discover all available pages before exploring further.
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:
| Variable | Purpose |
|---|---|
--color-theme-primary | Primary brand color (buttons, links) |
--color-theme-primary-fg | Text color on primary backgrounds |
--color-theme-fg | Default text color |
--color-theme-border | Border color |
UI Kit
The@colossal/ui-kit package provides primitive React components styled with the CSS variables above.
Available components
| Component | Description |
|---|---|
Button | Primary, secondary, ghost, and outline variants. Sizes: sm, md, lg. Supports loading and disabled states. |
Input | Text input with consistent styling |
Checkbox | Checkbox input |
Select | Dropdown select |
Accordion | Expandable content sections |
Price | Price display component |
QuantitySelector | Quantity picker with increment/decrement |
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