-
Hi! I was wondering if Theme UI has an option that doesn't require React? Emotion has |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Getting The layers of Theme UI libraries look more or less like this:
If you're interested in zero-runtime / low-JavaScript solutions, you should be able to use |
Beta Was this translation helpful? Give feedback.
Getting
jsx
pragma working with Preact should be possible, but if you're not using React-like library or you want to whip up your ownsx
prop@theme-ui/css
should give you everything you need.The layers of Theme UI libraries look more or less like this:
@theme-ui/css
contains all "core logic".@theme-ui/core
introducesjsx
function for React and a simple ThemeProvider.uses
@theme-ui/color-modesand
@mdx-js/react` to add color modes and styling MDXtheme-ui
reexports everything you need from aforementioned libraries and@theme-ui/components
for a batteries-included experience.If you're interested in zero-runtime / low-JavaScript solutions, you should be able to use