Discord CSS variables
Discord provides hundreds of CSS variables for theming. Here are the most commonly used ones:Background colors
Text colors
Brand colors
Interactive elements
Spacing and layout
Discord class structure
Discord uses webpack-generated class names that include a hash. Always use attribute selectors:Messages
Channels and servers
Modals and popups
User interface elements
BetterDiscord-specific elements
BetterDiscord adds its own elements that you can style:Theme-specific selectors
Discord has light and dark theme classes:Advanced techniques
Using HSL for dynamic colors
Discord uses HSL with saturation factors:Backdrop filters
Create glassmorphism effects:Transitions and animations
Custom fonts
Common patterns
Rounded corners everywhere
Accent color system
Minimalist borders
Next steps
Best practices
Learn how to create optimized, maintainable themes
Getting started
Start creating your first theme