menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Primer

For discussing Primer, Octicons, our style guide, and design systems at GitHub 🤖🎨

Channels
Team

Theme-get and Tokens as Arrays

November 19, 2019 at 10:13pm

Theme-get and Tokens as Arrays

November 19, 2019 at 10:13pm
Pardon the broad question but I am curious if someone could expand on a few concepts I've found in Primer...
1) What was the reasoning (and perhaps advantages) behind writing your primer-colors in array format instead of with named keys?
2) themeGet is used heavily throughout primer-components -- I do not fully understand the purpose of themeGet, can you explain (or provide reading links) what themeGet does different or better than simply ThemeProvider?
No messages yet