- Design System
- Nuxt
- Bootstrap
From Bootstrap tokens to Nuxt UI: one design system for two themes
Using Bootstrap 5.3 SCSS as the single source of colors, breakpoints and grid while Nuxt UI renders the components — without utility class conflicts.
Akbar Bintang Mahendra1 minit bacaan
One source of truth
The brand color #2384ae is a single SCSS variable. Bootstrap's own tint-color and shade-color functions generate a 50–950 scale for the brand and for every semantic color.
No utility clashes
Bootstrap utilities use !important, which would override Nuxt UI classes. So only the safe parts are compiled: CSS custom properties, the grid and mixins.
Two themes, one switch
The color-mode module sets both the .dark class (Tailwind and Nuxt UI) and data-bs-theme (Bootstrap), so every layer switches together.
Accessible by default
#2384ae on white is 4.21:1, enough for large text but not for buttons. Interactive text therefore uses the 600 shade (6.0:1) in light mode and the 400 shade in dark mode. Unit tests check those ratios on every build.