---
title: "Discussion on \"How to Write Media Queries in Sass\" | Hashnode"
description: "Discussion on \"How to Write Media Queries in Sass\". How to use mixins in Sass to dynamically inject media rules directly in your component styling blocks."
url: "https://hashnode.com/posts/how-to-write-media-queries-in-sass/62043bbeb6c216065a35c366"
---

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

Discussion

# [How to Write Media Queries in Sass](https://tararhoseyn-blog.hashnode.dev/how-to-write-media-queries-in-sass?utm_source=hashnode&utm_medium=feed)

How to use mixins in Sass to dynamically inject media rules directly in your component styling blocks.

Feb 9, 2022 · 6 min read · tararhoseyn-blog.hashnode.dev  
Updated Feb 12, 2022  
Read the article

-   [#sass](https://hashnode.com/tag/sass)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#scss](https://hashnode.com/tag/scss)
-   [#media-queries](https://hashnode.com/tag/media-queries)

## Written by

[Tara Rhoseyn](https://hashnode.com/@TaraRhoseyn)

@TaraRhoseyn · Cardiff, Wales

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

Developer & Marketer.

Developer &amp; Marketer

## Responses 2

Markdown supported · ⌘↵ to post

[Samuel James Forrest](https://hashnode.com/@samueljamesforrest)

[Feb 10, 2022](https://hashnode.com/posts/how-to-write-media-queries-in-sass/62043bbeb6c216065a35c366/comment/62054aafb6c216065a35e1a7)

Great article Tara!

I can't wait to dump out all the breakpoints I've been storing in my head 😅

[Max Kolomiets](https://hashnode.com/@r0nfy)

[Feb 10, 2022](https://hashnode.com/posts/how-to-write-media-queries-in-sass/62043bbeb6c216065a35c366/comment/6204a63c9e350308247fc727)

Awesome article. I didn't know about `@content` in SASS mixins. Now my code will look a little better, thanks.

[Tara Rhoseyn](https://hashnode.com/@TaraRhoseyn)

[Feb 10, 2022](https://hashnode.com/posts/how-to-write-media-queries-in-sass/62043bbeb6c216065a35c366/comment/6204a63c9e350308247fc727#reply-6204d85b9e350308247fcc5e)

Thanks Max, appreciate it! It's a game-changer for sure.
