<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pWa0rFI8v" -->

---
title: Theming styled-components with CSS custom properties
description: With Vue, I used to write pure CSS in the old-school style tag. With React, I wanted to experience something different, so I decided to give styled-components...
canonical: https://daily.dev/posts/theming-styled-components-with-css-custom-properties-pwa0rfi8v
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Theming styled-components with CSS custom properties | daily.dev
og:description: With Vue, I used to write pure CSS in the old-school style tag. With React, I wanted to experience something different, so I decided to give styled-components...
og:url: https://daily.dev/posts/theming-styled-components-with-css-custom-properties-pwa0rfi8v
og:image: https://api.daily.dev/og/posts/pWa0rFI8v.png
og:image:alt: Theming styled-components with CSS custom properties
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Theming styled-components with CSS custom properties

**[daily.dev](https://daily.dev/sources/daily)** · 10 upvotes · 2 comments

## Summary

With Vue, I used to write pure CSS in the old-school style tag. With React, I wanted to experience something different, so I decided to give styled-components a try. It helps to keep a maintainable styling which is both easy to refactor and expand. But if you overuse their props system, your styling can become less readable and messy.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://daily.dev/posts/theming-styled-components-with-css-custom-properties>

## Community discussion

Top comments from developers on daily.dev.

**@idoshamun** · 1 upvotes

> Hey, I'm the author of this article 👋
> Feel free to ask my anything

**@hashinclude72** · 0 upvotes

> is their any performance difference between them?

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#css](https://daily.dev/tags/css)

[View this post on daily.dev](https://daily.dev/posts/theming-styled-components-with-css-custom-properties-pwa0rfi8v)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Theming styled-components with CSS custom properties","url":"https://daily.dev/posts/theming-styled-components-with-css-custom-properties-pwa0rfi8v","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/theming-styled-components-with-css-custom-properties-pwa0rfi8v"},"datePublished":"2020-08-25T12:51:48.648Z","dateModified":"2021-10-07T14:17:10.317Z","description":"With Vue, I used to write pure CSS in the old-school style tag. With React, I wanted to experience something different, so I decided to give styled-components...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b0c7e66674fa8704ba163ca755a85b8f","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b0c7e66674fa8704ba163ca755a85b8f","isAccessibleForFree":true,"articleSection":"daily.dev","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"daily.dev","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/daily2","url":"https://daily.dev/sources/daily"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/theming-styled-components-with-css-custom-properties-pwa0rfi8v","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"webdev,css"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"daily.dev","item":"https://daily.dev/sources/daily"},{"@type":"ListItem","position":3,"name":"Theming styled-components with CSS custom properties"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/theming-styled-components-with-css-custom-properties-pwa0rfi8v","comment":[{"@type":"Comment","text":"Hey, I’m the author of this article 👋\nFeel free to ask my anything","datePublished":"2020-08-25T12:53:37.405Z","url":"https://daily.dev/posts/pWa0rFI8v#c-JCNfZ5DTB","author":{"@type":"Person","name":"Ido Shamun","url":"https://daily.dev/idoshamun","image":"https://media.daily.dev/image/upload/s---xy_OAwk--/f_auto,q_auto/v1703781380/avatars/avatar_28849d86070e4c099c877ab6837c61f0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"is their any performance difference between them?","datePublished":"2021-02-26T16:00:10.051Z","url":"https://daily.dev/posts/pWa0rFI8v#c-gXb-DhxS8","author":{"@type":"Person","name":"Shubham Jaswal","url":"https://daily.dev/hashinclude72","image":"https://avatars1.githubusercontent.com/u/26489105?v=4"}}]}
```

