Styling Methods
You can apply styling in two ways - directly in your CSS or through component attributes.- CSS
- HTML
styles.css
Using Styling Variables in Practice
- With CSS Variables
- With customStyles property
Available Styling Variables
You can see all the available styling variables on the dedicated reference page.Theme Support
Primer Checkout supports both light and dark themes using CSS classes. The default option is light. To use a dark theme, pass aprimer-dark-theme CSS class:
Try it out
Select a preset or adjust individual tokens to see how styling variables affect the checkout appearance.This preview shows a subset of styling variables. Interactive states (hover, focus) are not displayed. See Styling Variables for a complete reference.