---
title: "Discussion on \"Why CSS-in-JS?\" | Hashnode"
description: "Discussion on \"Why CSS-in-JS?\". Global and cascading nature of CSS\n\nCSS is global by design! It is that way because we want to bring consistency across the website.\n\nhtml {\n    font-family: Roboto, sans-serif;\n}\n\nBy writing the above code every text on your website has a font-famil..."
url: "https://hashnode.com/posts/why-css-in-js/62f687e269fa1793160c084d"
---

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

Discussion

# [Why CSS-in-JS?](https://aniketjha.dev/why-css-in-js?utm_source=hashnode&utm_medium=feed)

Global and cascading nature of CSS CSS is global by design! It is that way because we want to bring consistency across the website. html { font-family: Roboto, sans-serif; } By writing the above code every text on your website has a font-famil...

Aug 12, 2022 · 6 min read · aniketjha.dev  
Updated Dec 29, 2022  
Read the article

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

## 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.
