Design System Utilities @ 0.1.1-alpha.0
    Preparing search index...

    Class Tokens_Themes_Set_SingleMode<T_ColourName, T_ExtraColourLevels, T_Keyword_Universal, T_Keyword_Text, T_Keyword_Background, __T_ColourOption>Internal

    Generates a complete token object for the design system.

    0.1.0-alpha

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    • Internal

      Type Parameters

      • T_ColourName extends string
      • T_ExtraColourLevels extends "350" | "450" | "550" | "650"
      • T_Keyword_Universal extends string
      • T_Keyword_Text extends string
      • T_Keyword_Background extends string
      • __T_ColourOption extends
            | "transparent"
            | "unset"
            | "AccentColor"
            | "AccentColorText"
            | "ActiveText"
            | "ButtonBorder"
            | "ButtonFace"
            | "ButtonText"
            | "Canvas"
            | "CanvasText"
            | "Field"
            | "FieldText"
            | "GrayText"
            | "Highlight"
            | "HighlightText"
            | "LinkText"
            | "Mark"
            | "MarkText"
            | "SelectedItem"
            | "SelectedItemText"
            | "VisitedText"
            | (
                | "unset"
                | "AccentColor"
                | "AccentColorText"
                | "ActiveText"
                | "ButtonBorder"
                | "ButtonFace"
                | "ButtonText"
                | "Canvas"
                | "CanvasText"
                | "Field"
                | "FieldText"
                | "GrayText"
                | "Highlight"
                | "HighlightText"
                | "LinkText"
                | "Mark"
                | "MarkText"
                | "SelectedItem"
                | "SelectedItemText"
                | "VisitedText"
            )[]
            | `${string}-100`
            | `${string}-150`
            | `${string}-200`
            | `${string}-250`
            | `${string}-300`
            | `${string}-400`
            | `${string}-500`
            | `${string}-600`
            | `${string}-700`
            | `${string}-750`
            | `${string}-800`
            | `${string}-850`
            | `${string}-900`
            | `${string}-350`
            | `${string}-450`
            | `${string}-550`
            | `${string}-650` = ThemeColourOption<T_ColourName, T_ExtraColourLevels>

      Parameters

      Returns Tokens_Themes_Set_SingleMode<
          T_ColourName,
          T_ExtraColourLevels,
          T_Keyword_Universal,
          T_Keyword_Text,
          T_Keyword_Background,
          __T_ColourOption,
      >

    Properties

    tokenLevels: readonly [
        "100",
        "200",
        "300",
        "400",
        "500",
        "600",
        "700",
        "800",
        "900",
    ] = ...
    tokenLevels_extraOptions: readonly [
        "150",
        "250",
        "350",
        "450",
        "550",
        "650",
        "750",
        "850",
    ] = ...
    description: string | null
    levelsInUse: (
        | "100"
        | "150"
        | "200"
        | "250"
        | "300"
        | "400"
        | "500"
        | "600"
        | "700"
        | "750"
        | "800"
        | "850"
        | "900"
        | "350"
        | "450"
        | "550"
        | "650"
    )[]
    tokenLevels: readonly [
        "100",
        "200",
        "300",
        "400",
        "500",
        "600",
        "700",
        "800",
        "900",
    ] = AbstractTokens.tokenLevels

    Methods

    • Internal

      A custom error handler to use with Zod schemas.

      Parameters

      • ...params: [issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx]

      Returns { message: string }

      0.1.0-alpha