Markupless Documentation - v0.4.3
    Preparing search index...

    Function createTheme

    • Creates a theme by defining CSS variables on the root element. Returns a mirrored object containing the CSS variable references (var(--name)).

      Type Parameters

      Parameters

      • config: T

        The theme configuration object.

      Returns T

      An object with the same structure but values replaced by CSS variable references.

      const theme = createTheme({
      colors: { primary: "#007bff" }
      });
      // In component:
      div().style({ color: theme.colors.primary });