fix: migrate static UI to Tailwind v4#301
Open
JackSpiece wants to merge 1 commit into
Open
Conversation
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
Closes #119.
This migrates the current static Vue UI from the old Tailwind CDN script to the Tailwind v4 browser build. It also updates the old opacity utility pattern to v4 slash opacity classes and moves the custom theme from
tailwind.configinto atype="text/tailwindcss"@themeblock, which the v4 browser build compiles directly.I kept the patch scoped to the current static UI files on
main, without touching the oldui/paths from earlier attempts.Validation
python -m py_compile agentic_security/routes/static.pygit diff --checkbg-opacity,border-opacity,text-opacity,placeholder-opacity,divide-opacity,ring-opacity,tailwind.config,cdn.tailwindcss.com, and broken/NNopacity fragmentshttps://cdn.jsdelivr.net/npm/@tailwindcss/browser@4resolves with HTTP 200 and currently serves@tailwindcss/browser@4.3.0head.htmltheme block to verify generated selectors forbg-dark-bg,text-dark-text,font-technopollas,rounded-lg, slash-opacity colors, and hover slash-opacity colors