Skip to content

Commit

Permalink
Deprecate JS theme in favor of CSS custom properties (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jun 25, 2023
1 parent 66b18d6 commit 415c73d
Show file tree
Hide file tree
Showing 42 changed files with 2,592 additions and 860 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-bugs-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/design-tokens': minor
---

Exported all CSS custom properties as `@sumup/design-tokens/light.css`.
1 change: 0 additions & 1 deletion .changeset/flat-lamps-glow.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
'@sumup/design-tokens': major
'@sumup/circuit-ui': major
'@sumup/icons': major
---
Expand Down
1 change: 0 additions & 1 deletion .changeset/grumpy-donuts-flash.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
'@sumup/design-tokens': major
'@sumup/circuit-ui': major
'@sumup/icons': major
---
Expand Down
5 changes: 5 additions & 0 deletions .changeset/late-students-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/eslint-plugin-circuit-ui': minor
---

Added `circuit-ui/prefer-custom-properties` rule to replace the Emotion.js theme with CSS custom properties.
5 changes: 5 additions & 0 deletions .changeset/ninety-months-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/design-tokens': minor
---

Deprecated the Emotion.js theme in favor of CSS custom properties. Use the [`circuit-ui/prefer-custom-properties`](https://github.com/sumup-oss/circuit-ui/tree/main/packages/eslint-plugin-circuit-ui/prefer-custom-properties) ESLint rule to automatically migrate your code.
1 change: 0 additions & 1 deletion .changeset/red-experts-lie.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
'@sumup/design-tokens': major
'@sumup/circuit-ui': major
'@sumup/icons': major
---
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = require('@sumup/foundry/eslint')({
},
rules: {
'@sumup/circuit-ui/no-invalid-custom-properties': 'error',
'@sumup/circuit-ui/prefer-custom-properties': 'warn',
'react/no-unknown-property': ['error', { ignore: ['css'] }],
},
parserOptions: {
Expand Down
60 changes: 0 additions & 60 deletions .storybook/components/BorderRadius.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions .storybook/components/BorderWidth.tsx

This file was deleted.

121 changes: 0 additions & 121 deletions .storybook/components/ColorsTable.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions .storybook/components/IconSize.tsx

This file was deleted.

43 changes: 0 additions & 43 deletions .storybook/components/MediaQueriesTable.tsx

This file was deleted.

Loading

0 comments on commit 415c73d

Please sign in to comment.