Repository navigation
feat(web): adopt USWDS civic design system, word-level redline diffs, and bump LTS deps - #274
Merged
Merged
Conversation
… and bump LTS deps
This was referenced Oct 6, 2026
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.
Summary
This PR modernizes the US Code Tracker website with an authoritative civic design system, statutory reading enhancements, and dependency upgrades.
1. USWDS 3.x & Civic Tech Design System
CivicBanner.astro): USWDSusa-bannerdisclosure banner clarifying independence from government agencies while explaining the verifiable House OLRC XML source and transparent Git version control.global.css): Calibrated official USWDSblue-warm-70v(#1A4480),blue-warm-80(#112F4E),state-blue(#005EA2),mint-50(#0F6E56), and warm parchment neutrals (#FAF9F6,#F0EDE8) to guarantee WCAG 2.2 AAA readability without eye glare.SummaryBox.astro): Replaces the statute metadata bar with a structuredusa-summary-boxfeaturing legal status tags (In Force,Repealed,Transferred), reading time estimates, OLRC deep links, and a 1-click clipboard citation copy button with toast feedback.BaseLayout.astro): Added active state indicators (border-l-3 border-state-blue), section counts, and polished Public Sans navigation.index.astro): 4-pillar architectural cards, tabular metric cards, and recent amendment cards.2. Legal Reading & Statutory Diff UX
DiffViewer.svelte): Intraline word-level LCS tokenization that highlights exact statutory phrasing changes with<del class="diff-del">/<ins class="diff-add">, rather than whole-paragraph line diffs.ReadingToolbar.svelte): Allows readers to toggle Serif vs. Public Sans, scale font size (17px/19px/21px), and toggle reading measure (72ch vs. 92ch) withlocalStoragepersistence.(a),(1),(A),(i).3. Dependency Modernization & Security
7.3.5(resolving XSS advisory in Astro < 7.0.4).postcss-selector-parser: 7.1.6(resolving moderate ReDoS advisory).svelte(5.57.1),turbo(2.11.7),fast-xml-parser(5.11.2),sanitize-html(2.18.0).zimport and deprecatedmarkdown.rehypePluginsoptions.pnpm auditreports 0 known vulnerabilities.pnpm test,pnpm run lint, andpnpm run typecheckpass 100%.