Closed (fixed)
Project:
Bootstrap5
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2025 at 07:15 UTC
Updated:
11 Feb 2026 at 14:09 UTC
Jump to comment: Most recent
When subtheme is enabled ck5styles.css are loaded for both bootstrap5 and subtheme.
ck5styles.css contains css variables which resets all subthemes variables and pages lose styling.
screenshots attached
- enable subtheme
- customise subtheme (ensure changes are made to css variables)
- on some pages styling flips back to default bootstrap5
make sure ck5styles are only loaded for subtheme
- fix issue
| Comment | File | Size | Author |
|---|---|---|---|
| after-only-one-style-loaded.png | 1.5 MB | jannakha | |
| before-both-styles-loaded.png | 1.71 MB | jannakha |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jannakha commentedCKEditor5 module doesn't allow library-overrides
related issue: https://www.drupal.org/project/drupal/issues/3458077
if using patch from #3458077 add to your subtheme.info.yml
Comment #4
jannakha commentedplease review/comment on the proposed solution
this will require a patch from https://www.drupal.org/node/3458077
Comment #5
erutan commentedThis seems to be working for me, I had some buttons and footer background that would occasionally be default colors. I'll comment again if it sticks, but the multistage aspect of this makes it a somewhat complex fix to implement.
Comment #6
vladimirausLooks good.
Thank you for your contribution.
Comment #7
vladimirausCommitted. Thanks.