Skip to content

Commit d209d9e

Browse files
authored
Merge pull request #535 from system-ui/next-core-mdx
v0.3
2 parents e0a3398 + 4d46545 commit d209d9e

File tree

218 files changed

+4441
-2551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+4441
-2551
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
## Unreleased
44

5+
### v0.3.0
6+
7+
- Split theme-ui package into `@theme-ui/core`, `@theme-ui/mdx`, and `@theme-ui/color-modes`
8+
- Removes `context.components` (still available through MDX context)
9+
- Adds separate `ColorModeProvider` component
10+
- Removes support for `theme.initialColorMode` - use `initialColorModeName` instead
11+
- Removes layout components (`Layout`, `Header`, `Main`, `Footer`) - use `Box` and `Flex` instead
12+
- Updates CSS custom properties implementation for color modes
13+
- When using `useColorSchemeMediaQuery` flag, it will initialize the mode to `light` when `@media (prefers-color-scheme: light)` is enabled
14+
- Global color mode styles are automatically added to the body without needing to render the `ColorMode` component
15+
- Removes `ThemeStateProvider`
16+
- Adds global typographic styles, set `useBodyStyles: false` to disable
17+
- Fix issue where `<del>` tag was incorrectly specified as `delete`
18+
- The `@theme-ui/editor` API has changed significantly. See the README.md for more information.
19+
520
- `@theme-ui/components`: on Grid component, allow custom `columns` definitions via strings #541
621
- `@theme-ui/gatsby-theme-style-guide`: add docs on shadowing #558
722
- Adds `@theme-ui/preset-polaris` #567

babel.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
module.exports = {
22
presets: ['@babel/env', '@babel/react'],
3+
env: {
4+
test: {
5+
plugins: [
6+
'@babel/plugin-transform-runtime',
7+
],
8+
},
9+
},
310
}

examples/codesandbox-starter/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "theme-ui-starter",
33
"private": "true",
4-
"version": "0.2.52",
4+
"version": "0.3.0-alpha.6",
55
"description": "A sandbox configured with Theme UI, including the `base` theme.",
66
"main": "index.html",
77
"scripts": {
@@ -11,10 +11,10 @@
1111
"dependencies": {
1212
"@emotion/core": "^10.0.17",
1313
"@mdx-js/react": "^1.4.5",
14-
"@theme-ui/presets": "^0.2.44",
14+
"@theme-ui/presets": "^0.3.0-alpha.6",
1515
"react": "^16.12.0",
1616
"react-dom": "^16.9.0",
17-
"theme-ui": "^0.2.52"
17+
"theme-ui": "^0.3.0-alpha.6"
1818
},
1919
"devDependencies": {
2020
"@babel/core": "^7.7.4",

examples/create-react-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "create-react-app-theme-ui-example",
4-
"version": "0.2.40",
4+
"version": "0.3.0-alpha.6",
55
"dependencies": {
66
"mdx.macro": "^0.2.8",
77
"react": "^16.8.6",

examples/custom-pragma/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "custom-pragma-example",
4-
"version": "0.2.52",
4+
"version": "0.3.0-alpha.6",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -17,6 +17,6 @@
1717
"gatsby-plugin-mdx": "^1.0.4",
1818
"react": "^16.8.6",
1919
"react-dom": "^16.8.6",
20-
"theme-ui": "^0.2.52"
20+
"theme-ui": "^0.3.0-alpha.6"
2121
}
2222
}

examples/dark-mode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "dark-mode-theme-ui-example",
4-
"version": "0.2.52",
4+
"version": "0.3.0-alpha.6",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -17,6 +17,6 @@
1717
"gatsby-plugin-mdx": "^1.0.4",
1818
"react": "^16.8.6",
1919
"react-dom": "^16.8.6",
20-
"theme-ui": "^0.2.52"
20+
"theme-ui": "^0.3.0-alpha.6"
2121
}
2222
}

examples/gatsby-plugin/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "gatsby-plugin-theme-ui-example",
4-
"version": "0.2.53",
4+
"version": "0.3.0-alpha.6",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -15,14 +15,14 @@
1515
"@mdx-js/react": "^1.0.16",
1616
"gatsby": "^2.6.3",
1717
"gatsby-plugin-mdx": "^1.0.4",
18-
"gatsby-plugin-theme-ui": "^0.2.53",
18+
"gatsby-plugin-theme-ui": "^0.3.0-alpha.6",
1919
"react": "^16.8.6",
2020
"react-dom": "^16.8.6",
21-
"theme-ui": "^0.2.52"
21+
"theme-ui": "^0.3.0-alpha.6"
2222
},
2323
"devDependencies": {
2424
"@testing-library/react": "^9.1.3",
25-
"husky": ">=1",
25+
"husky": ">=4.0.7",
2626
"jest": "^24.8.0",
2727
"lint-staged": "10",
2828
"react-test-renderer": "^16.8.6"

examples/gatsby/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "gatsby-theme-ui-example",
4-
"version": "0.2.52",
4+
"version": "0.3.0-alpha.6",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -17,6 +17,6 @@
1717
"gatsby-plugin-mdx": "^1.0.4",
1818
"react": "^16.8.6",
1919
"react-dom": "^16.8.6",
20-
"theme-ui": "^0.2.52"
20+
"theme-ui": "^0.3.0-alpha.6"
2121
}
2222
}

examples/next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "next-theme-ui-example",
4-
"version": "0.2.52",
4+
"version": "0.3.0-alpha.6",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -17,6 +17,6 @@
1717
"next": "^9.0.2",
1818
"react": "^16.8.6",
1919
"react-dom": "^16.8.6",
20-
"theme-ui": "^0.2.52"
20+
"theme-ui": "^0.3.0-alpha.6"
2121
}
2222
}

examples/prism/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "prism-theme-ui-example",
4-
"version": "0.2.52",
4+
"version": "0.3.0-alpha.6",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -19,6 +19,6 @@
1919
"prismjs": "^1.16.0",
2020
"react": "^16.8.6",
2121
"react-dom": "^16.8.6",
22-
"theme-ui": "^0.2.52"
22+
"theme-ui": "^0.3.0-alpha.6"
2323
}
2424
}

0 commit comments

Comments
 (0)