---
title: "Discussion on \"Extending our CSS-in-JS to support style-component syntax\" | Hashnode"
description: "Discussion on \"Extending our CSS-in-JS to support style-component syntax\". In the previous post, we made our css emotion like function and in this blog post, we are going to extend our css function to support the following style-components syntax.\nconst Button = styled('button')(\n  {\n    backgroundColor:  \"blue\",\n    color:..."
url: "https://hashnode.com/posts/extending-our-css-in-js-to-support-style-component-syntax/6305b68647cfea48d095b165"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Extending our CSS-in-JS to support style-component syntax](https://aniketjha.dev/extending-our-css-in-js-to-support-style-component-syntax?utm_source=hashnode&utm_medium=feed)

In the previous post, we made our css emotion like function and in this blog post, we are going to extend our css function to support the following style-components syntax. const Button = styled('button')( { backgroundColor: "blue", color:...

Aug 24, 2022 · 3 min read · aniketjha.dev  
Updated Dec 29, 2022  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#css-in-js](https://hashnode.com/tag/css-in-js)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Aniket Jha](https://hashnode.com/@vtechguys)

@vtechguys · Delhi, India

  
[View profile](https://hashnode.com/@vtechguys)

Late Night Coder

I’m a software ninja 🥷 who loves abstractions and spread functional programming everywhere. I've over 2 years of experience and I'm based in Delhi, India🇮🇳

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
