Custom Themes
Create custom themes to match your application's design.
Using CSS Variables
Override the default theme with CSS custom properties:
/* Custom purple theme */
.my-custom-theme {
--dp-primary: #8b5cf6;
--dp-primary-hover: #7c3aed;
--dp-secondary: #ec4899;
--dp-bg: #ffffff;
--dp-bg-secondary: #f9fafb;
--dp-text-primary: #111827;
--dp-text-secondary: #6b7280;
--dp-border: #e5e7eb;
--dp-border-radius: 12px;
}createWidget({
apiKey: 'your_api_key',
address: address,
type: 'reputation',
className: 'my-custom-theme'
});Complete Theme Examples
Ocean Theme
Forest Theme
Sunset Theme
Brand-Matched Themes
Polkadot Theme
Kusama Theme
Dynamic Theme Switching
JavaScript
React
Tailwind CSS Integration
Styled Components
CSS Variables Reference
--dp-primary
Primary accent color
#8b5cf6
--dp-primary-hover
Primary hover state
#7c3aed
--dp-secondary
Secondary accent
#ec4899
--dp-bg
Background color
#ffffff
--dp-bg-secondary
Secondary background
#f9fafb
--dp-bg-tertiary
Tertiary background
#f3f4f6
--dp-text-primary
Primary text color
#111827
--dp-text-secondary
Secondary text color
#6b7280
--dp-text-muted
Muted text color
#9ca3af
--dp-border
Border color
#e5e7eb
--dp-border-focus
Focus border color
#8b5cf6
--dp-border-radius
Border radius
12px
--dp-border-radius-sm
Small border radius
8px
--dp-border-radius-lg
Large border radius
16px
--dp-shadow
Box shadow
0 4px 6px...
--dp-shadow-lg
Large box shadow
0 10px 15px...
Related
Last updated
