Closed lukasoppermann closed 1 year ago
Do we want to have marketing tokens in primer/primitives or should they live in primer/brand?
primer/brand should cover all marketing needs, so its not necessarily that the existing marketing tokens will move to primer/brand but more that primer/brand will make sure that all of their tokens and CSS covers the needs of brand outside of a React context. This item relates to: https://github.com/github/primer/issues/1366
It might be that we move these existing tokens to dotcom temporarily as a stopgap.
Syntax highlights
I like the sound of consolidating! I'm curious how related to Primer these tokens are, though. We might want to start thinking about moving dotcom specific tokens into dotcom, but I'm not sure off hand how much infrastructure these kinds of tokens need (for example, if they need custom overrides for specific themes than it would need to stay in primer/primitives)
ANSI
Paging @simurai on this one.. I don't have a lot of context here.
Base color scales
I started looking into this in dotcom, and unfortunately many base scale colors are used that don't have a corresponding functional token. I think we'll need to include them in the bundle to start (so keep it as it currently is in the old build.)
Syntax highlights Maybe we can have a generic set
syntax-light.json
and use the variables in both codemirror and prettylights?
Yes, that sounds like a good plan.
ANSI
--color-ansi
is used for the console in the GitHub theme.--color-checks-ansi
is used for the log of the Checks featureThe reason why Checks needs their own ansi colors is because the background of the log is dark in light mode.
So we had to create custom tokens for them. To not have to do that, there are these two options:
Base color scales not ship any color scale, only functional colors.
The scale colors are currently still used for some edge cases. And also to create some variables that only live on doctom. To remove the scale colors from Primitives, I guess we would have to:
@lukasoppermann should we close this?
I guess yes, we can keep this in mind anyway
Hey, I want to discuss some opportunities of cleaning up the color tokens in this issue and see what we can remove or move.
Marketing tokens
Relates to https://github.com/github/primer/issues/1366
Do we want to have marketing tokens in
primer/primitives
or should they live inprimer/brand
? If we keep them inprimer/primitives
can we move them into amarketing-light.json
file and maybe implement a common naming convention?Currently we have the following variables
Syntax highlights
@simurai mentioned that we have variables for both
prettylights
andcodemirror
. The idea would be to somehow combine this, or remove one set completely, as there are some duplications. Maybe we can have a generic setsyntax-light.json
and use the variables in both codemirror and prettylights?ANSI
We currently provide two sets of ANSI colors (that differ).
--color-ansi-[black/red/...]
and--color-checks-ansi-[black/red/...]
. Can we remove the checks set and use the default ANSI set instead?Base color scales
As discussed with @vdepizzol and @langermank we are planning to remove the
--base-color-scale-red-...
variables and not ship any color scale, only functional colors.Feedback wanted
Please mention:
/ CC: @rezrah @langermank @josepmartins @jonrohan @colebemis @tobiasahlin @simurai @vdepizzol