Skip to content

Commit

Permalink
feat: update theme provider (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
braianj authored Jan 6, 2025
1 parent 7ecb580 commit 467720f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 49 deletions.
11 changes: 2 additions & 9 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ import { IntlProvider } from "decentraland-gatsby/dist/plugins/intl"
import segment from "decentraland-gatsby/dist/utils/development/segment"
import env from "decentraland-gatsby/dist/utils/env"

import {
CssBaseline,
Experimental_CssVarsProvider as CssVarsProvider,
lightTheme,
} from "decentraland-ui2"
import { DclThemeProvider, lightTheme } from "decentraland-ui2"

import Categories from "./src/context/Category"
import Events from "./src/context/Event"
Expand All @@ -50,10 +46,7 @@ export const wrapRootElement = ({ element }) => (
<ProfileSettings>
<Events>
<Categories>
<CssVarsProvider theme={lightTheme}>
<CssBaseline />
{element}
</CssVarsProvider>
<DclThemeProvider theme={lightTheme}>{element}</DclThemeProvider>
</Categories>
</Events>
</ProfileSettings>
Expand Down
79 changes: 40 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"core-js": "^3.22.2",
"cssnano": "^5.0.10",
"dcl-catalyst-client": "^21.5.0",
"decentraland-gatsby": "^6.22.0",
"decentraland-gatsby": "^6.25.0",
"decentraland-ui": "^6.12.1",
"decentraland-ui2": "^0.8.4",
"es6-shim": "^0.35.6",
"express-fileupload": "^1.2.1",
"gatsby": "^4.23.0",
Expand Down

0 comments on commit 467720f

Please sign in to comment.