Tabs ยท console.warn
tabs: tab "{id}" - badgeTone returned "{value}", which is not one of {tones}. The badge is drawn untoned.
Printed by Tabs, prefixed [lattice], since 1.59.0.
Warnings reference › tabs.badgeTone.value:*
- Identifier
tabs.badgeTone.value:*- Raised by
- Tabs
- Since
- 1.59.0
What happened
The badgeTone function ran and returned a string that is not one of the theme's tone names. Returning null or undefined is the supported way to say "no tone" and is not reported; an unrecognised name is, because it is almost always a typo or a raw colour.
The fix
Return one of the tone names in the message, or null for an untoned badge. Colours come from the theme's tokens, not from the tone value.
Reference
Covered in full at the API reference.