theme prop on BoxpressdProvider or directly through CSS variables.
Provider Theme
The simplest way to customize SDK components is through theBoxpressdProvider.
CSS Variables
All Boxpressd components use CSS variables prefixed with:Common Theme Variables
| Variable | Description |
|---|---|
--bxp-primary | Primary brand color used for buttons, highlights, and active states |
--bxp-secondary | Secondary brand color used for supporting accents |
--bxp-background | Default component background |
--bxp-foreground | Default text color |
--bxp-muted | Muted background color |
--bxp-muted-foreground | Muted text color |
--bxp-border | Border color |
--bxp-border-radius | Default border radius |
--bxp-card-background | Card background color |
--bxp-card-foreground | Card text color |
Example: Lounge Theme
Example: Dark Theme
Scoped Overrides
You can scope theme overrides to a specific area of your website.Component-Level Styling
Most SDK components also accept standard React props such asclassName.
className for layout and spacing.
Use CSS variables for colors, typography, borders, and component appearance.
Working With Tailwind CSS
If your application uses Tailwind CSS, you can still use Boxpressd CSS variables.Best Practices
Start With Global Variables
Configure your primary colors and border radius globally first.Use Scoped Overrides for Special Sections
Use section-level overrides for hero areas, dark sections, or featured content.Avoid Styling Internal Elements Directly
Prefer CSS variables and documented props over targeting internal SDK class names. Internal markup may change between releases.Troubleshooting
Theme Changes Are Not Appearing
Check that:- Your CSS is loaded after SDK styles.
- The provider wraps the component tree.
- CSS variables are defined on a parent element of the SDK component.
- The variable name is spelled correctly.
Colors Look Different Than Expected
Remember that SDK components may use hover, muted, border, or foreground variables in addition to the primary color. Update the supporting variables for a more complete theme.Dark Sections Have Low Contrast
Set both background and foreground variables when placing components on dark backgrounds.Next Steps
Now that your theme is configured, continue to:- Components Overview
- Events
- Reviews
- Maps