docs: rewrite add-animation for the CSS-first theme - #897
Open
gabriel-lisboa-azion wants to merge 1 commit into
Open
docs: rewrite add-animation for the CSS-first theme#897gabriel-lisboa-azion wants to merge 1 commit into
gabriel-lisboa-azion wants to merge 1 commit into
Conversation
The steps still described the deleted v3 plugin (semantic/animations.js, addUtilities/addComponents, the camelCase keyframe object form). An animation is now two edits under primitives/animations/ — the shorthand in animate.js, which is what makes animate-<name> a utility at all, and the CSS-string keyframes in keyframes.js, which Tailwind v4 does NOT generate — compiled by build:tokens, which must run before catalog:build or nothing renders. Also records the three things the two new arrivals taught: a per-instance value rides a var() with a token default inside the keyframe, a stagger rides a var() delay with backwards fill, and fill is a decision — forwards leaves a translate that makes the element a containing block for any fixed descendant.
gabriel-lisboa-azion
added a commit
that referenced
this pull request
Aug 14, 2026
The design-system half of this branch's working tree, committed here so the main-based branches it was split onto (#891-#897) can be merged back in: the popover inner-scroll fix, the toast-item and progress-bar corrections, the two arrival animations, and the create-surface / errors / navigation skills.
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
semantic/animations.js,addUtilities/addComponents, and the camelCase keyframe object form. Adding an animation is now two edits in two files underpackages/theme/src/tokens/primitives/animations/— the shorthand inanimate.js(what makesanimate-<name>a utility at all) and CSS-declaration-string keyframes inkeyframes.js(which Tailwind v4 registers but does not generate).build:tokensbeforecatalog:build: the catalog reads the token source, but nothing renders untildist/v4/globals.csscarries the utility and its@keyframes.var()with a token default inside the keyframe; a stagger rides avar()delay in the shorthand (backwardsis load-bearing); and fill is a decision —forwardsleaves atranslatethat makes the element a containing block for anyposition: fixeddescendant.animate-page-enter,animate-content-enter) are catalogued, so the "size/direction animations are per-component" carve-out is not a reason to hand-roll one.How to test
node packages/webkit/scripts/check-authoring-docs.mjs→0 new.animate.js+keyframes.js,pnpm --filter @aziontech/theme build:tokensemits both the--animate-*entry and the@keyframesblock, andcatalog:buildthen lists it intokens.animations.Notes
.claude/rules/git-workflow.md(shared.claude/skills/*docs do not travel with code).packages/webkit/**) and unformatted onmain, so a reformat would bury the change in churn.