LiveStyle.Manifest (LiveStyle v0.13.0)
View SourceManifest structure and operations for LiveStyle.
The manifest stores all CSS artifacts organized by type:
- vars: CSS custom properties
- consts: Compile-time constants (no CSS output)
- keyframes: @keyframes animations
- position_try: @position-try rules
- view_transition_classes: View transition classes
- classes: Style classes (atomic CSS)
- theme_classes: Variable override themes
Each entry is keyed by a fully-qualified name like "MyAppWeb.Tokens.color.white" for namespaced items or "MyAppWeb.Tokens.spin" for non-namespaced items.
Entry Types
Each entry type has a corresponding module with constructors and accessors:
LiveStyle.Manifest.VarEntry- CSS custom propertiesLiveStyle.Manifest.KeyframesEntry- @keyframes animationsLiveStyle.Manifest.ThemeClassEntry- Theme class variable overridesLiveStyle.Manifest.PositionTryEntry- @position-try rulesLiveStyle.Manifest.ViewTransitionClassEntry- View transition classesLiveStyle.Manifest.ClassEntry- Style classes (static and dynamic)
Summary
Types
@type class_entry() :: LiveStyle.Manifest.ClassEntry.t()
@type const_entry() :: String.t()
@type keyframes_entry() :: LiveStyle.Manifest.KeyframesEntry.t()
@type position_try_entry() :: LiveStyle.Manifest.PositionTryEntry.t()
@type t() :: %{ version: pos_integer(), vars: [{String.t(), var_entry()}], consts: [{String.t(), const_entry()}], keyframes: [{String.t(), keyframes_entry()}], position_try: [{String.t(), position_try_entry()}], view_transition_classes: [{String.t(), view_transition_class_entry()}], classes: [{String.t(), class_entry()}], theme_classes: [{String.t(), theme_class_entry()}] }
@type theme_class_entry() :: LiveStyle.Manifest.ThemeClassEntry.t()
@type var_entry() :: LiveStyle.Manifest.VarEntry.t()
@type view_transition_class_entry() :: LiveStyle.Manifest.ViewTransitionClassEntry.t()
Functions
Checks if the manifest version is current.
@spec current_version() :: pos_integer()
Returns the current manifest version.
@spec empty() :: t()