@hydroperx/metrodesign
    Preparing search index...

    Variable ThemePresetsConst

    ThemePresets: {
        available(): { color: ThemeColor; hex: string }[];
        get(preset: ThemeColor, accent?: ThemeColor | null): Theme;
    } = ...

    Theme preset utilities.

    Type Declaration

    • available: function
      • Returns the available colors that may be used in the ThemePresets.get() method.

        Note that if you are trying to enumerate all possible theme presets, do not forget about handling the accent.

        Returns { color: ThemeColor; hex: string }[]

    • get: function