menu

styled-components

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

Channels
Team

styled-components watercooler

November 16, 2017 at 9:01pm
Show previous messages

April 5, 2019 at 3:15pm

@paulie I'm on vocation right now, I will make an example demo on Sunday ok?

Edited
  • reply
  • like

@tbhesswebber I wiil try it

  • reply
  • like

April 9, 2019 at 9:00am

How can I use the sass function darken() in a styled component?

  • reply
  • like

I want to darken a button background on hover

  • reply
  • like

Check out the Polished library: https://polished.js.org/docs/#darken

  • reply
  • like

April 16, 2019 at 11:54am

Can anyone elaborate on reasons that SC might be a better option than linaria? I love SC and want to keep using it, but it seems like linaria's build-time compilation might be a reason to switch, since it supports a similar syntax...

  • reply
  • like

April 17, 2019 at 1:38pm

Hey @here, I wanted to post into an issue created right now and seems closed. Can I talk with somebody to have a conversation about the topic?

  • reply
  • like

What's up?

  • reply
  • like

It's this issue, I just was writting and I got the "It's closed" message

  • reply
  • like

In my opinion he was very clear in his answer, although it was very terse. It's better to deprecate and allow interoperability -- but that's not what happened to injectGlobal => createGlobalStyle.

  • reply
  • like

That being said, he is right. The codemod should take care of it, and it's better to update the interoperational dependencies rather than not updating them.

  • reply
  • like

Well, maybe there was no room for explanation and I was just giving one ^^

  • reply
  • like

April 18, 2019 at 9:34am

Hi, is there a way to force or warn (maybe via eslint) when styled is not imported via 'styled-components/macro'? In a create-react-app project (not ejected)

  • reply
  • like

April 20, 2019 at 11:28pm

May 12, 2019 at 8:39am

I recently gave a nice update to the styled-components-snippets. I find them still super helpful and time saving. Every second counts. Maybe it'll help you.

VSCode = https://marketplace.visualstudio.com/items?itemName=jonkwheeler.styled-components-snippets

Atom = https://atom.io/packages/styled-components-snippets

Edited
like-fill
1
  • reply
  • like

May 17, 2019 at 9:34am

hellow guys can someone help me ? i have the error below

  • reply
  • like

Cannot resolve module styled-components.

  • reply
  • like

/// @flow import styled from 'styled-components'

  • reply
  • like

Flow error or some other error?

  • reply
  • like

Which tool is throwing the error?

Edited
  • reply
  • like

the flow when i use the yarn run flow

  • reply
  • like

Try to do something like npx flow-typed install styled-components

  • reply
  • like

i have made a revert to package.json and now i am ok but i can not skip this error

  • reply
  • like

i have ignore the flow-typed but still i got it...

  • reply
  • like