Theming & Customization

Customize the appearance of DotPassport widgets.

Theme Options

All widgets support three theme modes:

Theme
Description

'light'

Light color scheme (default)

'dark'

Dark color scheme

'auto'

Follows system preference

createWidget({
  apiKey: 'your_api_key',
  address: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',
  type: 'reputation',
  theme: 'dark' // 'light' | 'dark' | 'auto'
});

CSS Variables

Widgets use CSS custom properties that you can override:

Core Colors

Layout & Styling


Dark Theme Overrides


Complete Custom Theme

Light Theme

Dark Theme

Usage


Brand-Matched Themes

Polkadot Theme

Kusama Theme


Responsive Customization


Dynamic Theme Switching

JavaScript

React


Compact Mode

Use compact: true for smaller widget displays:

Compact Mode CSS Adjustments


CSS-in-JS Integration

Styled Components

Tailwind CSS


Last updated