The main Theme Builder class.

Implements

  • IThemeBuilder

Methods

  • Add a new design system to the theme builder.

    Parameters

    • name: string

      The name of the design system to add.

    • Optionalopts: {
          sample?: boolean;
      }

      Optional arguments. opts.sample=true if this is a sample design system.

      • Optionalsample?: boolean

    Returns Promise<DesignSystem>

    The new design system

  • Delete the design system named 'name'.

    Parameters

    • name: string

      The name of the design system to delete.

    Returns Promise<void>

  • Get an existing design system by name

    Parameters

    • name: string

      The name of the design system to return.

    Returns Promise<DesignSystem>

    The design system with the specified name, or throws an error otherwise.

  • Get a list of all design system names.

    Returns Promise<string[]>

    The list of all design system names.