add shared animated focus, focus-visible, focus-within, and active-state theme primitives
apply the focus treatment consistently across text, textarea, select, date, phone, file, code, checkbox, matrix, scale, and option controls
propagate the configured form color to compound controls so custom form themes keep their expected focus color
Why
Form controls previously switched to a solid Tailwind ring immediately. This ports the smoother Justiciel interaction: the border and a subtle color-matched halo animate in and out over 200ms.
User impact
Public forms now have consistent, smoother focus and blur feedback while preserving keyboard focus visibility, error states, transparent themes, and custom form colors.
Validation
npm run lint
git diff --check
local isolated Laravel/Nuxt environment
browser verification on seeded classic and transparent public forms, including computed custom color, border, box shadow, transition duration, and focus transfer between inputs
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
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.
What changed
Why
Form controls previously switched to a solid Tailwind ring immediately. This ports the smoother Justiciel interaction: the border and a subtle color-matched halo animate in and out over 200ms.
User impact
Public forms now have consistent, smoother focus and blur feedback while preserving keyboard focus visibility, error states, transparent themes, and custom form colors.
Validation