Skip to content

Do you plan to add some primitive like styled-system ? #499

Answered by peduarte
LoiKos asked this question in Help
Discussion options

You must be logged in to vote

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 and Flex are relatively low-maintenance:

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!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by LoiKos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants