Commit 3455f98 1 parent 8cb18ce commit 3455f98 Copy full SHA for 3455f98
File tree 5 files changed +38
-5
lines changed
5 files changed +38
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ coverage
12
12
.envrc.ps1
13
13
.publish-log.txt
14
14
.yarn-error.log
15
-
15
+ yarn-error.log
16
16
17
17
.vercel
Original file line number Diff line number Diff line change 1
1
# Migration Guides
2
2
3
+ ## v0.13
4
+
5
+ ** Moved Emotion and ` @mdx-js/react ` to peerDependencies to solve context
6
+ mismatch bugs**
7
+
8
+ You now install ` theme-ui ` umbrella package like this:
9
+
10
+ ```
11
+ npm install theme-ui @emotion/react @emotion/styled @mdx-js/react
12
+ ```
13
+
14
+ - ` @emotion/react ` is now a peer dependency of the majority of Theme UI
15
+ libraries
16
+ - ` @emotion/styled ` is now a peer dependency of ` @theme-ui/components ` ,
17
+ ` @theme-ui/mdx ` , and ` theme-ui `
18
+ - ` @mdx-js/react ` is now a peer dependency of ` @theme-ui/mdx ` and ` theme-ui `
19
+
20
+ This is a revert of change from Theme UI v0.3, and it's meant to help solve
21
+ version clashes and context mismatch bugs on user side. Connected issues:
22
+ [ #1793 ] ( https://github.com/system-ui/theme-ui/pull/1793 ) ,
23
+ [ #1531 ] ( https://github.com/system-ui/theme-ui/pull/1531 ) ,
24
+ [ #1530 ] ( https://github.com/system-ui/theme-ui/pull/1530 ) ,
25
+ [ #1388 ] ( https://github.com/system-ui/theme-ui/pull/1388 ) ,
26
+ [ #1345 ] ( https://github.com/system-ui/theme-ui/pull/1345 ) ,
27
+ [ #1130 ] ( https://github.com/system-ui/theme-ui/pull/1130 ) .
28
+
29
+ _ Disclaimer: You might still encounter this problem if other libraries install
30
+ clashing Emotion versions._
31
+
32
+ Learn more at
33
+ [ #1867 ] ( https://github.com/system-ui/theme-ui/pull/1867#issue-948084198 ) .
34
+
3
35
## v0.9
4
36
5
37
** Dropped support for legacy browsers.**
Original file line number Diff line number Diff line change 15
15
},
16
16
"dependencies" : {
17
17
"@theme-ui/css" : " 0.12.1" ,
18
- "@theme-ui/parse-props" : " 0.12.1" ,
18
+ "@theme-ui/parse-props" : " 0.12.1"
19
19
},
20
20
"peerDependencies" : {
21
21
"react" : " ^16 || ^17" ,
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ scales help you build UI rooted in constraint-based design principles.
113
113
## Getting Started
114
114
115
115
``` sh
116
- npm install theme-ui @emotion/react @mdx-js/react
116
+ npm install theme-ui @emotion/react @emotion/styled @ mdx-js/react
117
117
```
118
118
119
119
_ If you don't need color modes, components and MDX support, you can install
@@ -176,7 +176,8 @@ export default (props) => (
176
176
fontWeight: ' bold' ,
177
177
fontSize: 4 , // picks up value from `theme.fontSizes[4]`
178
178
color: ' primary' , // picks up value from `theme.colors.primary`
179
- }}>
179
+ }}
180
+ >
180
181
Hello
181
182
< / div>
182
183
)
Original file line number Diff line number Diff line change 1467
1467
dependencies:
1468
1468
"@emotion/memoize" "0.7.4"
1469
1469
1470
- "@emotion/is-prop-valid@^1.1.1":
1470
+ "@emotion/is-prop-valid@^1.1.0", "@emotion/is-prop-valid@^1.1. 1":
1471
1471
version "1.1.1"
1472
1472
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-1.1.1.tgz#cbd843d409dfaad90f9404e7c0404c55eae8c134"
1473
1473
integrity sha512-bW1Tos67CZkOURLc0OalnfxtSXQJMrAMV0jZTVGJUPSOd4qgjF3+tTD5CwJM13PHA8cltGW1WGbbvV9NpvUZPw==
You can’t perform that action at this time.
0 commit comments