Appearance
Errors and warnings
Every code Tessera can report, 72 in all. Each page has the cause, an example that produces it (checked by the test suite, and the message shown is the real one) and the fix. tessera explain <code> prints the same text in the terminal.
Design tokens
- T1001: Invalid token file
- T1002: Invalid token name
- T1003: Missing token type
- T1004: Unsupported token type
- T1005: Invalid token value
- T1006: Unknown token reference
- T1007: Circular token reference
- T1008: Token reference has the wrong type
- T1009: Unsupported DTCG feature
- T1010: Theme extends the wrong base
- T1011: Theme adds a new token name
- T1012: Theme changes a token type
- T1013: Duplicate token
- T1014: Invalid theme file
- T1015: Duplicate theme
- T1016: Import skipped or adjusted something
- T1017: Cannot read the import
Styles
- T2101: Raw color in a style
- T2102: Raw value off the token scale
- T2103: Token of the wrong type for the property
- T2104: Unknown token
- T2105: Primitive token used in a component
- T2106: Invalid style syntax
- T2107: Text contrast too low
- T2108: Invalid raw() escape
- T2109: Contrast pairing cannot be checked
- T2110: raw() escape expired
- T2111: raw() escape used
- T2112: Invalid severity exemption
- T2113: Deprecated token used
- T2114: Unknown variant value in a selector
Contracts
- T3001: Contract is not valid JSON
- T3002: Unknown contract field
- T3003: Invalid contract field
- T3004: Contract name does not match the file name
- T3005: Unknown ARIA role
- T3006: Missing root part
- T3007: Duplicate value
- T3008: Unknown behavior
- T3009: Behavior requirement not met
- T3010: Contrast pairing names an undeclared part
- T3011: Declared part is not used in the template
- T3012: Missing required contract field
- T3013: Root element does not carry the root part
- T3014: Invalid rename or deprecation of a variant value
Templates and scripts
- T4001: Invalid block
- T4002: Missing template
- T4003: Template syntax error
- T4004: Template root error
- T4005: Invalid expression
- T4006: Unknown identifier in template
- T4007: Unknown component
- T4008: Unknown variant value
- T4009: Unknown slot
- T4010: Unknown event
- T4011: Directive misuse
- T4012: Signal will not unwrap
- T4013: Contract not allowed or required here
- T4015: Behavior event used without its behavior
Components and auto-imports
- T5001: Duplicate component name
- T5002: Auto-import used outside a .tess file
- T5003: Script API not imported with auto-imports off
Pages, routing and layouts
- T6001: Route conflict
- T6002: Invalid page file name
- T6003: Unknown layout
- T6004: Unknown route in a link
- T6005: Invalid <page> block
- T6006: Layout has no slot