Skip to content

Using Charka-ui and Panda CSS dark mode #2868

Answered by segunadebayo
cjazinski asked this question in Q&A
Discussion options

You must be logged in to vote

You can configure the dark mode condition to match that of Chakra's

import { defineConfig } from "@pandacss/dev";

export const config = defineConfig({
  theme: { extend: {} },
  conditions: {
    extend: {
      "dark": "[data-theme=dark] &",
    }
  },
});

Here's a playground link: https://play.panda-css.com/CPK0Eqa-IR

Replies: 1 comment

Comment options

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