org.designtxt.defs
Shared type definitions for Design Tokens, based on DTCG 2025.10 stable specification. Defines scalar value types (color, dimension, duration, etc.) and composite value types (border, shadow, typography, etc.) used by token and resolver records.
Details · defs
| Kind | defs |
|---|---|
| Authority | designtxt.org |
| Indexed |
#borderValue
objectA composite border value combining width, line style, and color.
#colorStop
objectA single gradient color stop. Position is a string-encoded float.
#colorValue
objectA color value expressed in a specific color space with optional alpha and hex fallback. Float components are stored as strings because the atproto data model does not support floating-point numbers.
Properties
alpha
stringOpacity as a string-encoded float between '0' and '1'. Assumed '1' if omitted.
maxLength: 64
The color space identifier.
maxLength: 16knownValues: srgb | srgb-linear | hsl | hwb | lab | lch | oklab | oklch | display-p3 | a98-rgb | prophoto-rgb | rec2020 | xyz-d65 | xyz-d50
Color component values (positional, depending on colorSpace). Each element is a string-encoded float (e.g. '0.4', '1.0') or the string 'none'.
maxLength: 64
hex
string6-digit CSS hex fallback (e.g. #ff00ff).
maxLength: 7maxGraphemes: 7
#cubicBezierValue
arrayA cubic Bezier curve defined by exactly 4 control-point string-encoded floats (x1, y1, x2, y2).
Items
cubicBezierValue
arraymaxLength: 64
#dimensionValue
objectA dimension with a numeric value and CSS-compatible unit. The value is a string-encoded float because atproto does not support floating-point numbers.
#durationValue
objectA duration with a numeric value and time unit. The value is a string-encoded float because atproto does not support floating-point numbers.
#fontFamilyValue
stringA font family name or comma-separated fallback string.
maxLength: 512
#fontWeightKeyword
stringmaxLength: 16knownValues: thin | hairline | extraLight | ultraLight | light | normal | regular | book | medium | semiBold | demiBold | bold | extraBold | ultraBold | black | heavy | extraBlack | ultraBlack
#fontWeightNumber
integerminimum: 1maximum: 1000
#gradientValue
objectA composite gradient value with type and color stops.
Properties
angles
arrayAngle values in degrees as string-encoded floats.
maxLength: 64
colorStops
arrayColor stops defining the gradient.
type
stringGradient type.
maxLength: 8knownValues: linear | radial | conic
#numberValue
stringA numeric value encoded as a string (e.g. '42', '3.14159'). Encoded as string because atproto does not support floating-point numbers and cannot distinguish integer from float at the type level.
maxLength: 128
#shadowValue
objectA composite shadow value (drop shadow / box-shadow) with color, offsets, blur, spread.
#strokeStyleValue
objectStroke style properties (dash array, line cap/join, miter limit). Corresponds to DTCG 'strokeStyle' composite type. Dash lengths and miter limit are string-encoded floats.
Properties
dashArray
arrayDash and gap lengths as string-encoded floats.
maxLength: 64
lineCap
stringShape at the end of open subpaths.
maxLength: 8knownValues: round | butt | square
lineJoin
stringShape at the corners of paths.
maxLength: 8knownValues: miter | bevel | round
miterLimit
stringMaximum miter length when lineJoin is 'miter', as a string-encoded float.
maxLength: 64
#transitionValue
objectA composite transition value with duration, delay, and timing function.
#typographyValue
objectA composite typography value aggregating font family, weight, size, line metrics, and text transforms. Numeric values are string-encoded floats to accommodate the atproto data model.
Properties
fontFamily
arrayOrdered list of font family names (primary and fallbacks).
maxLength: 256
fontSize
refFont size.
fontWeight
unionFont weight.
Letter spacing.
lineHeight
stringLine height as a string-encoded unitless multiplier (e.g. '1.5', '1.2').
maxLength: 64
Paragraph indent.
Paragraph spacing.
textCase
stringText case transformation.
maxLength: 12knownValues: uppercase | lowercase | capitalize | none
textDecoration
stringText decoration.
maxLength: 12knownValues: underline | overline | line-through | none