artisan_starterkit overrides/replaces Bootstrap utilities colors

Created on 19 March 2025, 30 days ago

Problem/Motivation

It seems the Utility API implementations in artisan_starterkit overrides/replaces Bootstrap utilities colors (at least).
see $artisan-theme-colors and its usage in artisan_starterkit/src/scss/base/_utilities.scss
From documentation the best practice it's to merge with existing ...
So extend, customize and not override/replace
https://github.com/twbs/bootstrap/blob/main/site/content/docs/5.3/custom...

And as results, for example the colors are not rgb and opacity classes won't work.
The colors mapping are not available anymore - see https://github.com/twbs/bootstrap/blob/main/scss/_maps.scss

Steps to reproduce

Try to use .bg-primary class with .bg-opacity-10 for an element.

Proposed resolution

- Move colors definition into variables file
- Use $theme-colors: map-merge($theme-colors, $artisan-theme-colors);
- CleanUp / empty _utilities.scss ... I don't think it's needed.

Remaining tasks

User interface changes

--

API changes

--

Data model changes

--

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇷🇴Romania vasike Ramnicu Valcea

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024