Options
All
  • Public
  • Public/Protected
  • All
Menu

variable-theming 2.0.1

Index

Type aliases

Elements

Elements: Record<string, Record<string, Value>>

Palette

Palette: Required<PaletteInput> & Record<"mainRgb" | "contrastRgb", string>

Value

Value: string | number | null | undefined | void

Functions

palettes

  • Returns a function that, taking a record of PaletteInputs, returns a record of complete Palettes.

    Parameters

    Returns create

theming

  • Generates styles as an object -styles- and as a string -css- assigning css variables to their defined values. You can then inject these for usage in your css.

    If a second object is passed, it will also generate setup styles, assigning property values for all elements with names of elements keys to their respective variable.

    Parameters

    Returns SetupOutput

  • Generates styles as an object -styles- and as a string -css- assigning css variables to their defined values. You can then inject these for usage in your css.

    If a second object is passed, it will also generate setup styles, assigning property values for all elements with names of elements keys to their respective variable.

    Parameters

    Returns Output

Generated using TypeDoc