Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theme): extract design tokens to separate package #572

Merged
merged 3 commits into from
Apr 30, 2020

Conversation

connor-baer
Copy link
Member

@connor-baer connor-baer commented Apr 21, 2020

Closes #511.

Approach and changes

  • extract theme to a new package @sumup/design-tokens
  • rename theme from circuit/standard to light
  • remove theme and Theme interface exports from Circuit UI

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

@vercel
Copy link

vercel bot commented Apr 21, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sumup-oss/circuit-ui/ieheikgex
✅ Preview: https://circuit-ui-git-feature-design-tokens.sumup-oss.now.sh

@codecov
Copy link

codecov bot commented Apr 21, 2020

Codecov Report

Merging #572 into alpha will decrease coverage by 0.10%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##            alpha     #572      +/-   ##
==========================================
- Coverage   93.51%   93.41%   -0.11%     
==========================================
  Files         150      150              
  Lines        2436     2429       -7     
  Branches      692      688       -4     
==========================================
- Hits         2278     2269       -9     
- Misses        130      132       +2     
  Partials       28       28              
Impacted Files Coverage Δ
src/components/Grid/Grid.js 85.71% <ø> (ø)
src/styles/style-helpers.js 98.30% <ø> (-0.18%) ⬇️
src/components/Row/Row.js 85.71% <0.00%> (-14.29%) ⬇️
src/components/Col/utils.js 92.30% <0.00%> (-2.57%) ⬇️

.storybook/components/BorderRadius.js Show resolved Hide resolved
docs/advanced/theme.story.mdx Show resolved Hide resolved
docs/introduction/getting-started.story.mdx Show resolved Hide resolved
src/components/Grid/Grid.story.js Show resolved Hide resolved
The new package can be found at https://github.com/sumup-oss/design-tokens.

BREAKING CHANGE:
The theme has been moved to [@sumup/design-tokens](https://github.com/sumup-oss/design-tokens) which
is marked as a peer-dependency. The `iconSizes.byte` theme value has been removed. The
`grid.afterTera` theme value has been renamed to `theme.tera`.

ISSUES CLOSED: #511

feature/design-tokens
feature/design-tokens
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.0.0-alpha.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2020

🎉 This PR is included in version 2.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants