menu

styled-components

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

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Help
view-forward
# jest
view-forward
# Off Topic
view-forward
# Website
view-forward
Team
Posts
Members
Info

Typescript support for Refs

Hey Guys! Congrats on v4! Been migrating the codebase to v4 and refractoring the use of innerRef to just ref But there is an incomprehensible (may be because I'm new) type error. …

thumbsup
2
message-simple
8

Hi! Are there any active maintainers for the jest-styled-components repo?

There seem to be quite a few open issues and even pull requests (all ready to go). I've opened a bug w/ a fix here: https://github.com/styled-components/jest-styled-components/issues/344

thumbsup
0
message-simple
0

prefix or namespace classnames generated by styled-components

I need to prefix or namespace class names generated by styled-components

thumbsup
0
message-simple
0

Hi All

thumbsup
0
message-simple
0

Best practices for implementing empty space

Hello! I thought about my reasons for using empty space with styled comonents the way I do, and I wrote this article: https://blog.bam.tech/developer-news/standardising-empty-space-in-jsx-with-styled-components Do you agree? Looking forward to your feedback!

thumbsup
2
message-simple
1

Setting up a font-family with Styled Components

Hello, I'm just starting to use styled components on a project I have to deliver in 2 more weeks, I was just curious, how can I set an specific font for the component?

thumbsup
1
message-simple
12

SSR getStyles of webpack compiled component

I have an SSR code that requires a component that bundled with Webpack and babel and renders it to a string. For some reason, getStyleTags returns empty string even though the component have styles. When I try to require a component that only transpile with babel and render it…

thumbsup
1
message-simple
4

Best Styled-Components Grid System

I need to reassess the grid in our new app. Right now I'm using Reflexbox from Rebass which works well, I especially like the styled-system integration where width={[1, 1/2, 1/3]}. But requirements changed and I'm basically having to re-build the final views from scratch. I took…

thumbsup
0
message-simple
3

Is it ok to use class selector to style deeply nested component?

I need a generic way to "mark" components in the Container that is not shown on print. Is there better way to do it?

thumbsup
0
message-simple
3