Tokens

Token types

Complete map of all 37 SXL Studio token types: formats, export channels, aliases, and practical usage.

Overview

SXL Studio supports 37 token types:

  • 23 simple types (single value: color, number, string, boolean);
  • 14 composite types (object/array value: typography, effects, fill, composition).

All types are declared via $type and normalized to canonical keys (DTCG + SXL aliases are supported).

Group map

GroupTypes
Stylescolor, gradient, img, fill, opacity
Dimensiondimension, number, spacing, sizing
Bordersborder, borderWidth, borderRadius, strokeStyle
Typographytypography, fontFamily, fontWeight, fontStyle, fontSize, lineHeight, letterSpacing, paragraphSpacing, paragraphIndent, textCase, textDecoration
Effectsshadow, backdrop-blur, blur, glass, effects
Animationtransition, duration, cubicBezier
Othergrid, boolean, text, template, composition

Export channels

How to read:

  • Variable: exported by Export Variables.
  • Style: exported by Export Styles.
  • Internal only: used by Apply/Generate/Code workflows, not exported as a standalone Variable or Style.
$typeExport channel
colorVariable (COLOR)
opacity, dimension, number, spacing, sizing, borderWidth, borderRadius, fontSize, lineHeight, letterSpacing, paragraphSpacing, paragraphIndentVariable (FLOAT)
text, fontFamily, fontWeightVariable (STRING)
booleanVariable (BOOLEAN)
gradient, img, fillPaint Style
shadow, blur, backdrop-blur, glass, effectsEffect Style
typographyText Style
gridGrid Style
border, strokeStyle, fontStyle, textCase, textDecoration, transition, duration, cubicBezier, template, compositionInternal only

Full type map

$type$value shapeTypical usage
colorCSS color string or { r, g, b, a? }UI colors
gradientCSS gradient string, alias, or object with stopsGradient fills
imgURL string/url(...)/image objectImage fills
fillcolor/gradient/image string, object, or layers arrayMulti-layer fills
opacitynumber, %, aliasLayer opacity
dimensionnumber or unit stringGeneric dimensions
numbernumber or numeric stringGeneric numeric values
spacingnumber or unit stringgap / padding spacing
sizingnumber or unit stringwidth / height sizing
bordercomposite object (color/width/style/etc.)Full stroke contract
borderWidthnumber or unit stringStroke thickness
borderRadiusnumber or unit stringCorner radius
strokeStylestring/alias/objectDash pattern + caps + joins
shadowobject/array/aliasDrop/inner shadows
backdrop-blurnumber/unit/objectBackground blur
blurnumber/unit/objectLayer blur
glassglass-effect objectGlass effect
effectsobject/array/aliasMixed effects style
typographytypography object or aliasFull text style
fontFamilystringFont family
fontWeightnumber/stringFont weight
fontStylestringBold/italic/decoration semantic style
fontSizenumber or unit stringFont size
lineHeightnumber, %, unit string, aliasLine height
letterSpacingnumber, %, unit string, aliasLetter spacing
paragraphSpacingnumber or unit stringParagraph spacing
paragraphIndentnumber or unit stringParagraph indent
textCasestringText transform
textDecorationstringUnderline/strikethrough
transitionshorthand string, object, or aliasMotion contract
durationnumber/ms/s/aliasTiming duration
cubicBezierstring, array [x1,y1,x2,y2], aliasEasing curve
gridobject/array/aliasLayout grids
booleanboolean/string literal/aliasVisibility/flags
textstringText constants
templatetemplate definition objectStyle presets for Apply Template
compositioncomposition definition objectComponent generation

Simple vs composite

Simple types (23)

color, dimension, sizing, spacing, borderRadius, borderWidth, opacity, number, fontFamily, fontWeight, fontStyle, fontSize, lineHeight, letterSpacing, paragraphSpacing, paragraphIndent, text, boolean, duration, cubicBezier, strokeStyle, textCase, textDecoration.

Composite types (14)

typography, shadow, blur, backdrop-blur, effects, glass, gradient, fill, img, grid, border, transition, template, composition.

Default scopes (simple types)

TypeDefault scopes
colorALL_FILLS, STROKE_COLOR, EFFECT_COLOR
dimension, number, text, booleanALL_SCOPES
sizingWIDTH_HEIGHT
spacingGAP
borderRadiusCORNER_RADIUS
borderWidthSTROKE_FLOAT
opacityOPACITY
fontFamilyFONT_FAMILY
fontWeightFONT_STYLE
fontSizeFONT_SIZE
lineHeightLINE_HEIGHT
letterSpacingLETTER_SPACING
paragraphSpacingPARAGRAPH_SPACING
paragraphIndentPARAGRAPH_INDENT

For full scope behavior and filtering rules, see Scopes & Code Syntax.

$type inheritance and aliases

Group inheritance

JSON
{
  "spacing": {
    "$type": "spacing",
    "sm": { "$value": "8px" },
    "md": { "$value": "16px" }
  }
}

Common alias normalization

Raw $typeCanonical $type
stringtext
sizesizing
spacespacing
fontSizesfontSize
fontWeightsfontWeight
boxShadowshadow
backgroundBlur, backdropBlur, background-blurbackdrop-blur
layerBlurblur

Use canonical names in production token files.