Commit c9eecb2
refactor: remove duplicate TailwindCSS utility definitions from utilities.css (#1089)
* Initial plan
* Remove duplicate TailwindCSS utility definitions from utilities.css
Enable TailwindCSS v4 PostCSS integration via postcss.config.mjs and
@import "tailwindcss" in index.css. Remove ~377 lines of duplicate
utility class definitions (flexbox, spacing, typography, grid, borders,
shadows, sizing, overflow, aspect-ratio) that TailwindCSS now provides.
Retain all custom project utilities (widget-content, cyber-border,
neon-text, animations, security level colors), dark mode overrides,
and CSS custom property mappings. Consolidate identical-value dark
mode overrides for reduced line count.
File size: 946 → 569 lines (39.9% reduction, under 570 target)
Agent-Logs-Url: https://github.com/Hack23/cia-compliance-manager/sessions/3fbb994f-8e6c-4e18-9c3f-40a285944735
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
* Add clarifying comments for consolidated dark mode overrides
Address code review feedback: add comments explaining why different
gray levels share dark mode values and why both light/dark selectors
are needed for CSS custom property overrides.
Agent-Logs-Url: https://github.com/Hack23/cia-compliance-manager/sessions/3fbb994f-8e6c-4e18-9c3f-40a285944735
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
* Remove conflicting gap-sm/md/lg definitions from utilities.css
These custom gap values (0.5rem/0.75rem/1rem) didn't match the design
token spacing scale (sm=6px, md=8px, lg=16px). Now that Tailwind is
enabled, it generates gap-sm/md/lg from the configured spacing scale
in tailwind.config.ts, ensuring consistency with design tokens.
Agent-Logs-Url: https://github.com/Hack23/cia-compliance-manager/sessions/859235d8-cd6e-46c2-bf71-f0e7c5007197
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>1 parent 37a63ec commit c9eecb2
3 files changed
Lines changed: 39 additions & 419 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
0 commit comments