keyframesToCss() — tailwindcss Function Reference
Architecture documentation for the keyframesToCss() function in migrate-js-config.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD a3c47427_743d_aeb5_9ea9_81bd29d83bb4["keyframesToCss()"] b2ba3368_7330_fe20_4543_9cafa8cfedc0["migrate-js-config.ts"] a3c47427_743d_aeb5_9ea9_81bd29d83bb4 -->|defined in| b2ba3368_7330_fe20_4543_9cafa8cfedc0 e26bfad3_530e_6523_7463_161205321110["migrateTheme()"] e26bfad3_530e_6523_7463_161205321110 -->|calls| a3c47427_743d_aeb5_9ea9_81bd29d83bb4 53bccebe_7dfe_9987_589d_32686d3b1037["keyframesToRules()"] a3c47427_743d_aeb5_9ea9_81bd29d83bb4 -->|calls| 53bccebe_7dfe_9987_589d_32686d3b1037 2da63033_d079_7b37_5cfb_3877674a70b9["toCss()"] a3c47427_743d_aeb5_9ea9_81bd29d83bb4 -->|calls| 2da63033_d079_7b37_5cfb_3877674a70b9 style a3c47427_743d_aeb5_9ea9_81bd29d83bb4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/config/migrate-js-config.ts lines 491–494
function keyframesToCss(keyframes: Record<string, unknown>): string {
let ast: AstNode[] = keyframesToRules({ theme: { keyframes } })
return toCss(ast).trim() + '\n'
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does keyframesToCss() do?
keyframesToCss() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/config/migrate-js-config.ts.
Where is keyframesToCss() defined?
keyframesToCss() is defined in packages/@tailwindcss-upgrade/src/codemods/config/migrate-js-config.ts at line 491.
What does keyframesToCss() call?
keyframesToCss() calls 2 function(s): keyframesToRules, toCss.
What calls keyframesToCss()?
keyframesToCss() is called by 1 function(s): migrateTheme.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free