LiveStyle.Manifest.ThemeClassEntry (LiveStyle v0.12.0)

View Source

Entry structure for theme variable overrides.

Summary

Functions

Gets the ident from a theme entry.

Creates a new theme entry.

Gets the overrides from a theme entry.

Types

t()

@type t() :: [ident: String.t(), overrides: list()]

Functions

ident(entry)

@spec ident(t()) :: String.t()

Gets the ident from a theme entry.

new(ident, overrides)

@spec new(String.t(), list()) :: t()

Creates a new theme entry.

Parameters

  • ident - The theme CSS class name (e.g., "x1abc123")
  • overrides - List of {var_ident, value} tuples

Examples

ThemeClassEntry.new("x1abc123", [{"--x-color-primary", "darkblue"}])

overrides(entry)

@spec overrides(t()) :: list()

Gets the overrides from a theme entry.