Repository navigation
Conversation
Third slice of #5764, and the first one anyone will see: Bootstrap and AdminLTE's primary blue becomes the design system's indigo brand, and the page canvas and body text move to its slate neutrals. No markup changes. app/assets/tailwind/legacy/bootstrap_bridge.css is the whole change. Its rule is "swap values, keep shapes": only colours change, never size, spacing, radius, typeface or layout. All 25 screenshotted pages keep their exact dimensions. The file is temporary by design: each later slice that replaces a legacy component with the design system's own deletes that component's section, and the file leaves with Bootstrap. Sections, by concept: neutrals, links, primary buttons, selected/current state (sidebar, pills, pagination, dropdowns, select2), focus, and brand surfaces (card-primary, bg/text/border-primary, badges, progress, checked controls). Selectors are copied from the legacy rules they override, so specificity ties and the later stylesheet wins. Coverage was measured in the browser rather than guessed. Before this change, 35 distinct kinds of rendered element (69 element/property pairs) painted primary blue across the 25 pages. After, one is left on purpose: AdminLTE's `bg-blue` info-box on the admin dashboard, a categorical colour next to bg-red and bg-green, not the brand. The collision guard now exempts the bridge, the one file whose job is to target legacy classes. The typeface is deliberately not in this slice. It reflows text, so it gets its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzWYw6Gq5YdmU4MaiGnQa
This was referenced Nov 19, 2026
This branch has not been deployed
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.
Part of #5764. Stacked draft PR 3 of 4, based on PR 2. Plan:
docs/design-system-slicing-plan.mdon thedesignbranchStack (review and merge in order; each PR shows only its own diff):
Description
The first PR anyone will see. Bootstrap/AdminLTE's primary blue becomes the design system's indigo brand, and the page background and body text move to its slate neutrals. No markup changes, and nothing moves. All 25 screenshotted pages keep their exact dimensions.
The whole change is
app/assets/tailwind/legacy/bootstrap_bridge.css. Its rule is "swap values, keep shapes": only colours change, never size, spacing, radius or layout. It is temporary. Each later PR that replaces a legacy component with the design system's own deletes that component's section, and the file goes when Bootstrap does.The file is organised by concept: neutrals, links, primary buttons, selected state (sidebar, pills, pagination, dropdowns, select2), focus, and brand surfaces. Each selector is copied from the legacy rule it overrides. Specificity therefore ties, and the later stylesheet wins.
I measured coverage in the browser instead of guessing. Before this PR, 35 kinds of element rendered in primary blue across the 25 pages. After it, one is left on purpose: AdminLTE's
bg-blueinfo box on the admin dashboard. That is a categorical colour (it sits next tobg-redandbg-green), not the brand colour.The typeface is deliberately left for PR 4, because it reflows text.
Type of change
How Has This Been Tested?
bundle exec rspec spec/assets/design_system_build_spec.rb. The collision guard now exempts the bridge, the one file whose job is to target legacy classes.Screenshots
Before/after screenshots are available on request. Running the branch locally is the quickest way to see it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UCzWYw6Gq5YdmU4MaiGnQa