website icon indicating copy to clipboard operation
website copied to clipboard

Add examples for styling Primitives with Styled Components

Open sidneifjr opened this issue 3 years ago • 1 comments
trafficstars

I'm using Styled Components for my personal project and I intend to enforce it as my main tool for styling, even though Stitches does have its merits. However, since the few examples available in the docs only use Stitches, I end up having to maintain both. This addition would offer better versatility for a wider range of development stacks.

sidneifjr avatar Jun 29 '22 01:06 sidneifjr

We're actually leaning towards vanilla CSS examples rather in the long term. At the moment though, I'm curious why you feel the need for styled-components examples seeing that the stitches API is pretty much the same. Is it not clear how you would go about styling things with styled-components?

benoitgrelard avatar Jun 29 '22 09:06 benoitgrelard

I'm using Styled Components for my personal project and I intend to enforce it as my main tool for styling, even though Stitches does have its merits. However, since the few examples available in the docs only use Stitches, I end up having to maintain both. This addition would offer better versatility for a wider range of development stacks.

@sidneifjr I'm using styled-components too and their syntax is similar to stitches

An example

image (1)

Then use as

image (2)

donsn avatar Mar 16 '23 08:03 donsn