-
Hi there! I just discover stitches a few days ago and it look really promising. I just wonder if you plan to add some primitive like styled-system do (e.g to build some utils components like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! Thanks for checking it out. Stitches itself won't ship with primitives. We'd like to keep the codebase/bundle size as small as possible, focusing solely on the styling solution. These primitives are highly dependant on the users config ( Primitives like const Box = styled('div')
const Flex = styled('div', {
display: 'flex'
}) But keeping them product side also gives you more control over which properties/variants you want to bake in! |
Beta Was this translation helpful? Give feedback.
Hey! Thanks for checking it out.
Stitches itself won't ship with primitives. We'd like to keep the codebase/bundle size as small as possible, focusing solely on the styling solution.
These primitives are highly dependant on the users config (
theme
,media
,utils
), so I think it's clearer if they live product-side.Primitives like
Box
andFlex
are relatively low-maintenance:But keeping them product side also gives you more control over which properties/variants you want to bake in!