$type: "string"
primitive
String Token
String tokens represent any arbitrary text value that doesn't fit into a more specific token type. The $value is any valid JSON string. String tokens are a flexible escape hatch for values like content strings, font feature settings, or custom CSS values that aren't covered by a dedicated token type.
Value Format
Any JSON string value
When to Use
Use string tokens for font feature settings, content values used in CSS ::before/::after pseudo-elements, locale-specific text, or any other text value that needs to be tokenized but doesn't map to a more specific type.
Valid Example
Valid JSON .json
{
"font-feature": {
"tabular-numbers": {
"$value": "'tnum' 1",
"$type": "string",
"$description": "CSS font-variant-numeric value for tabular figures"
}
}
} Paste the example above into the validator to test it yourself.
Open Validator