Skip to content
Discussion options

You must be logged in to vote

Thanks for the question!

Short answer:

  • Yes, you can use React Zero UI Core in a project that uses styled-components.
  • No, there is not first class styled-components integration in the build pipeline yet.

How React Zero UI Core works

React Zero UI Core has two layers:

  1. State layer (styling agnostic)

    • Hooks like useUI and the provider only manage UI state.
    • They flip data-* attributes on body or a scoped element, for example:
      • data-theme="dark"
      • data-sidebar="open"
    • This part does not care whether you use Tailwind, styled-components, CSS modules, or anything else.
  2. Build time styling layer (Tailwind specific)

    • The AST resolver scans your code for useUI usage and Tailwind class tokens.
    • T…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Austin1serb
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