Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

💡 Should tokens be prefixed by alias #889

@fraincs

Description

Problem to solve

Orbit tokens are prefixed with alias when they refer to another token. While looking at others 99% of them don't use alias for token names. Tokens names if explicit enough shouldn't need alias in their name as bg-accent intent is clear enough. Alias pollutes autocompletion too

image

Here's an example of other system token naming convention :

image

Idea

Remove alias in token names, documentation should be enough to expose tokens that should be used. If this becomes a problem a linter could be added in order to help with the usage of tokens.

Doing this would require some restructuration of token naming e.g. text color tokens don't have text-color in their name this could lead to weird token names default is not a good token name text-color-default is much better.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions