Skip to main content

preset import

Import design tokens from external sources

Reference

Usage

preset import [options] 

Arguments

  • Name
    file
    Type
    required
    Description

    Path to token file (JSON, CSS, or SCSS)

Options

  • Name
    -l, --layer \<id>
    Type
    value required
    Description

    Design system layer ID (omit for base layer)

  • Name
    -y, --yes
    Type
    flag
    Description

    Skip prompts and use defaults

  • Name
    -v, --verbose
    Type
    flag
    Description

    Show detailed output

  • Name
    --prefix \<prefix>
    Type
    value required
    Description

    Prefix for token IDs

  • Name
    --skip-invalid
    Type
    flag
    Description

    Skip tokens that cannot be converted

  • Name
    --dry-run
    Type
    flag
    Description

    Preview without writing files

  • Name
    --format \<type>
    Type
    value required · default `json`
    Description

    Output format (json, ts)

  • Name
    -o, --output \<path>
    Type
    value required
    Description

    Output file path

  • Name
    -f, --from \<format>
    Type
    value required
    Description

    Source format (dtcg, knapsack, supernova, style-dictionary, figma-tokens, figma-variables, css, scss, astryx)

Source

Defined in packages/cli/src/commands/import.ts.

Was this page helpful?

Last reviewed by @jschuyler