segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.39k stars 832 forks source link

Add themeable option to colour props for Heading component #1275

Closed kwnath closed 3 years ago

kwnath commented 3 years ago

Overview

Fixes #1242

This is likely going to be needed for other components so maybe good to think about how we do this in the future?

Testing

Create a component Heading with a theme token for the colour prop

<Heading color="blue500">Hello World</Heading>

Screenshots (if applicable)

Documentation

netlify[bot] commented 3 years ago

✔️ Deploy Preview for evergreen-storybook ready!

🔨 Explore the source changes: e7a1274a4a53bbcba58868848d759e777583518c

🔍 Inspect the deploy log: https://app.netlify.com/sites/evergreen-storybook/deploys/613b494eca19f900080ac2c6

😎 Browse the preview: https://deploy-preview-1275--evergreen-storybook.netlify.app