Gleam - v1.0.2
    Preparing search index...

    Interface CSSVariables

    get/set helpers for CSS custom properties (--name) on :root. Build via initCSSVariables.

    interface CSSVariables {
        root: HTMLElement;
        get(name: string): string;
        set(name: string, value: string): void;
    }
    Index

    Properties

    Methods

    Properties

    root: HTMLElement

    The :root element these helpers read from / write to.

    Methods

    • Read the computed value of --${name}.

      Parameters

      • name: string

      Returns string

    • Write value to --${name} on the root element's inline style.

      Parameters

      • name: string
      • value: string

      Returns void