fix(theme): restore exact bootstrap4-dark-blue colour palette#35
Merged
Conversation
…21 preset
The previous fix added the Aura dark preset which uses zinc grays and
indigo/emerald accents — visually different from the original UI.
This restores the exact bootstrap4-dark-blue colour values extracted
directly from primeng@13.0.3/resources/themes/bootstrap4-dark-blue/theme.css:
--surface-b #20262e (page background)
--surface-a #2a323d (cards, panels, overlays)
--surface-d #3f4b5b (borders)
--text-color rgba(255,255,255,0.87)
--primary #8dd0ff (light blue for dark backgrounds)
Uses definePreset(Aura, { ... }) to map these values into PrimeNG v21's
semantic token system (surface palette, text, content, formField,
overlay, list, navigation) so all PrimeNG components use the original
dark navy-blue colour scheme.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The previous theme fix added PrimeNG v21's Aura dark preset, which uses zinc grays and indigo/emerald accents. This looks nothing like the original UI, which used PrimeNG v13's bootstrap4-dark-blue theme (dark navy-blue palette).
Fix
Used
definePreset(Aura, { ... })from@primeuix/themesto override every relevant token in PrimeNG v21's semantic colour system with the exact values extracted directly fromprimeng@13.0.3/resources/themes/bootstrap4-dark-blue/theme.css:--surface-b(page bg)#20262ecolorScheme.dark.surface.900--surface-a/e/f(cards, overlays)#2a323dcolorScheme.dark.surface.800+content.background+overlay.*--surface-d(borders)#3f4b5bcolorScheme.dark.surface.700--text-colorrgba(255,255,255,0.87)colorScheme.dark.text.color--text-color-secondaryrgba(255,255,255,0.6)colorScheme.dark.text.mutedColor--primary-color#8dd0ffsemantic.primary.300+colorScheme.dark.primary.color--primary-color-text#151515colorScheme.dark.primary.contrastColorAlso updated
styles.scss:rootvariables to match exact original values (#20262eandrgba(255,255,255,0.87)instead of the close-but-wrong estimates from the initial fix).