Skip to content

Create Border Design Token ​

What It Does ​

The Create Border Design Token node constructs a border-type design token from provided inputs. It allows you to define border properties such as width, style, and color, and generates a standardized token object that can be used in a design system.

Inputs ​

NameDescriptionTypeRequired
NameThe name identifier for the tokenStringYes
ReferenceA reference to another token (used when the token references another token)StringNo*
ValueArray of border values defining width, style, and colorArrayNo*
DescriptionOptional description of what the token representsStringNo
$extensionsOptional metadata for the tokenObjectNo

*Either Reference or Value must be provided

Outputs ​

NameDescriptionType
TokenThe complete design token objectObject

How to Use It ​

  1. Drag the Create Border Design Token node into your graph.
  2. Connect a string to the "Name" input to identify your token.
  3. Either:
    • Connect an array of border values to the "Value" input, or
    • Connect a reference string to the "Reference" input if this token references another token.
  4. Optionally add a description and any extension metadata.
  5. The node will output a complete border token object that follows the Tokens Studio format.

Tips ​

  • Border tokens typically include properties like width, style (solid, dashed, etc.), and color.
  • Use this node in combination with other token creation nodes to build a complete design token system.
  • The "Reference" input allows you to create alias tokens that point to other tokens.
  • Make sure your border values follow the expected structure with width, style, and color properties.

See Also ​

  • Create Color Design Token: For creating color tokens.
  • Create Typography Design Token: For creating typography tokens.
  • Create Shadow Design Token: For creating shadow tokens.
  • Flatten Token Sets: For managing collections of tokens.

Use Cases ​

  • Button Borders: Create consistent border styles for different button states.
  • Input Field Styling: Define border tokens for form fields in various states (default, focus, error).
  • Card Components: Establish border styles for card components in a design system.
  • Dividers: Create standardized border tokens for dividers and separators.