Architecture
The styling system is organized into a modular architecture:Directory Structure
-
abstracts/ - Variables, mixins, functions, and utilities
variables/- All SCSS variables organized by component_mixins.scss- Reusable style mixins_utilities.scss- Utility class configurations_maps.scss- SCSS maps for theme generation
-
root/ - CSS custom properties (CSS variables)
_root.scss- Generates all CSS variables from SCSS tokens
-
base/ - Base component overrides for Bootstrap components
- Button, form, typography, and other component styles
-
components/ - Custom Dynamic UI components
_d-datepicker.scss,_d-stepper-desktop.scss, etc.
-
helpers/ - Utility classes and helper styles
_text-truncate.scss,_overlay.scss, etc.
CSS Variable System
Dynamic UI generates CSS custom properties from SCSS variables, allowing runtime theming and customization:Variable Prefix
All CSS variables use thebs- prefix by default:
Bootstrap Integration
Dynamic UI extends Bootstrap 5’s theming system:- Overrides Bootstrap variables before import
- Extends Bootstrap’s utility API
- Uses Bootstrap’s Sass functions and mixins
- Generates additional utility classes
Color System
Dynamic UI implements a comprehensive color palette:Gray Scale
11 gray shades from 25 to 900:Theme Colors
Semantic color system:Color Palettes
Each theme color has an 11-shade palette (25-900):Spacing Scale
Extended spacing system from 0 to 30:Typography System
Font Family
Font Sizes
Heading sizes (H1-H6):Font Weights
Component Styling
Buttons
Border Radius
Dark Mode Support
Dynamic UI includes built-in dark mode support:Import Strategies
Dynamic UI provides three import options:-
Full import - All styles including CSS variables:
-
Root only - Just CSS custom properties:
-
Non-root - Styles without CSS variables:
Next Steps
Customization
Learn how to customize the theme and override variables
SCSS Variables
Complete reference of all SCSS variables
CSS Utilities
Explore utility classes for rapid development