Overview
By default, Bulma includes both light and dark mode themes. If your project only uses light mode, you can use the no-dark-mode version to reduce your CSS bundle size.File Structure
The no-dark-mode version is available as:- All utilities
- Base styles
- All elements
- Form components
- All components
- Grid system
- Layout styles
- Skeleton styles
- Helper classes
- Only the light theme (no dark mode)
How It Works
Instead of importing both light and dark themes, the no-dark-mode version only imports the light theme:Installation
You can use this version by importing it directly in your SCSS file:Benefits
Smaller File Size
By excluding dark mode styles, you reduce the overall CSS bundle size, leading to faster load times.
Light Mode Only
Perfect for applications that only need light mode styling without the overhead of dark mode CSS.
When to Use
Consider using the no-dark-mode version when:- Your application only supports light mode
- You want to minimize CSS file size
- You’re building a project where dark mode is not a requirement
- Performance and bundle size are critical concerns
Comparison
| Feature | Standard Bulma | No Dark Mode |
|---|---|---|
| Light theme | ✓ | ✓ |
| Dark theme | ✓ | ✗ |
| Helper classes | ✓ | ✓ |
| All components | ✓ | ✓ |
| File size | Larger | Smaller |
