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

    Class Tokens_Colour<T_ColourName, T_ExtraLevels>Internal

    Generates a complete token object for the design system.

    0.1.0-alpha

    Type Parameters

    • T_ColourName extends string
    • T_ExtraLevels extends Optional

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    tokenLevels: readonly [
        "100",
        "200",
        "300",
        "400",
        "500",
        "600",
        "700",
        "800",
        "900",
    ] = ...
    tokenLevels_extraOptions: readonly [
        "150",
        "250",
        "350",
        "450",
        "550",
        "650",
        "750",
        "850",
    ] = ...

    The value of this token.

    0.1.0-alpha

    tokenLevels: readonly [
        "100",
        "200",
        "300",
        "400",
        "500",
        "600",
        "700",
        "800",
        "900",
    ] = AbstractTokens.tokenLevels
    allNames: readonly ColourNameGeneric<T_ColourName>[]
    extraLevels: readonly T_ExtraLevels[]

    Methods

    • Internal

      A custom error handler to use with Zod schemas.

      Parameters

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

      Returns { message: string }

      0.1.0-alpha

    • Internal

      Converts this token or group to the values used when converting to scss.

      Returns {
          [K in string]: {
              [K in
                  | "100"
                  | "150"
                  | "200"
                  | "250"
                  | "300"
                  | "400"
                  | "500"
                  | "600"
                  | "700"
                  | "750"
                  | "800"
                  | "850"
                  | "900"
                  | "350"
                  | "450"
                  | "550"
                  | "650"]: ScssReturn
          }
      }

      0.1.0-alpha