Skip to content

How to remove the default theme applied by Chakra UI? #4926

Answered by no-yan
FC5570 asked this question in Q&A
Discussion options

You must be logged in to vote

The reason is that chakra UI has body-bg style to global in the default theme. You can override this with the following code
https://codesandbox.io/s/zeta-heading-size-issue-forked-w4xn8?file=/src/index.js

const theme = extendTheme({
  styles: {
    global: () => ({
      body: {
        bg: "",
      },
    }),
  },
});

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@Suvraneel
Comment options

@schkolne
Comment options

@tombohub
Comment options

@CalculusCoder
Comment options

@dprcold
Comment options

Answer selected by FC5570
Comment options

You must be logged in to vote
1 reply
@PabloVMartins
Comment options

Comment options

You must be logged in to vote
1 reply
@JayJ-WeCode
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet