menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

styled-components

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress!

Channels
Team
Posts
Members
Info

GlobalStyle is it possible to extend when importing?

is it possible to import a GlobalStyle from another library which has been created using createGlobalStyle and extend with some more styles? cont { GlobalStyle } from "another-library"; const ExtendGlobal = styled(GlobalStyle)select { background-color: #f60; }

message-simple
0

How to type props in functional notation

How to type props in functional notation styled

message-simple
1

Next release when?

Hi, I'm using a tool where the version of styled-components is locked on v5.1.1 since after that the SSR broke (#3374), but for our use-case with their tool we render components in an iframe and the issue with that only got fixed in 5.2+ (style tag renders in the parent…

message-simple
0

Creating Dynamic Component for more than one SVG

I have multiple SVG Component files created with SVGR I would like to define them using similar CSS codes. Can I use this in the form of <Icon({SvgRectangle}) /> or <Icon({SvgCircle}) /> etc..

message-simple
0

Any chance to look at my question?

https://stackoverflow.com/questions/68364093/styled-components-extends-props Thnx

message-simple
1

Hello everyone, how can i configure styled component for Flow js

I can't seem to read theme from props ex: const Container = styled.Viewwidth: ${(props) => props.theme.} //This does not auto complete;

message-simple
0

Next.js / styled components - @media breakpoint - change image content

Hi! I have following piece of code, which runs in dev mode (npm run dev), but bugs out, when published live (npm run build + export [nextjs static site]): [code] import styled from "styled-components"; …

message-simple
0

How to use styled-components in a hybrid SSR and SSG

Hi, The styled-components docu outlines that if you want to use styled-components for SSR, you need to include ServerStyleSheet in a getInitialProps function in the custom Document file. To use getInitialProps will similar to getServerSideProps trigger the page to be SSR. But…

message-simple
0

Touched an angel beauty salon in Union City

Always Googling “cheap beauty salons in Stockbridge”? Did you feel a bit embarrassed afterwards? There is no shame here, this is very understandable, especially if you want to lower your cost of living and save for something special. With fixed costs like rent and home insurance…

message-simple
0

Improve jest-styled-components

I would like to add some new features for jest-styled-components but couldn't get any feedback - does anyone know the maintainer for that repo? https://github.com/styled-components/jest-styled-components/pull/375

message-simple
0