Skip to content

Design tokens for colors other than grey #1138

Answered by SiTaggart
charleneyjh1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @charleneyjh1

As per the introduction to Design Tokens on the doc site, our tokens are named based on their use case.

For example $color-background-error is named to indicate the appropriate background color for an error, as opposed to $color-background-red which is less specific and could be used in a number of ways depending on cultural context and design language.
https://paste.twilio.design/tokens

We split colors into categories, border, backgrounds, text colors, shadows, etc. and those are the only colors available for you to use. (I'm not even 100% sure you can use the greys anymore 😨 )

This is how we scale and translate design language to implementation.

New design tokens are …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by serifluous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants