Skip to content Skip to sidebar Skip to footer
Showing posts with the label Styled Components

Defining A Function Inside A Template Literal

I'm using styled-components as a solution to styling for React. They've got a nice approach… Read more Defining A Function Inside A Template Literal

Styled-components: Extend Styles And Change Element Type

Imagine I have the following styles: color: black; border: 1px solid white; and I want to apply th… Read more Styled-components: Extend Styles And Change Element Type

Graphql Query Callbacks For Gatsby.js

In the Contentful CMS, I have two different content-types: BigCaseStudy and BigCaseStudySection. To… Read more Graphql Query Callbacks For Gatsby.js

Pass Props To Styled-components

I am querying data for my react site using graphql from my CMS (prismic.io) in order to produce col… Read more Pass Props To Styled-components

Mapping Through Props In Styled Components

As noted in this answer it is possible to greatly simplify the amount of code needed to check for p… Read more Mapping Through Props In Styled Components

Can't Get Jest To Work With Styled Components Which Contain Theming

The Problem I've been using Jest and Enzyme to write tests for my React components build with t… Read more Can't Get Jest To Work With Styled Components Which Contain Theming

Unit Testing Of Styled-components With Svg Imports

I am in the process of upgrading the dependencies of a React project. I upgraded styled-components … Read more Unit Testing Of Styled-components With Svg Imports

Using Ant Design Variables In Styled Components

I am using Ant Design in conjunction with Styled Components inside of a GatsbyJS site. I would lik… Read more Using Ant Design Variables In Styled Components