---
title: "Discussion on \"How to nest groups in TailwindCSS\" | Hashnode"
description: "Discussion on \"How to nest groups in TailwindCSS\". A simple plugin to enable nested groups in your TailwindCSS project"
url: "https://hashnode.com/posts/how-to-nest-groups-in-tailwindcss/61991e585bb9cc256fc69aa5"
---

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

Discussion

# [How to nest groups in TailwindCSS](https://linu.us/how-to-nest-groups-in-tailwindcss?utm_source=hashnode&utm_medium=feed)

A simple plugin to enable nested groups in your TailwindCSS project

Nov 20, 2021 · 3 min read · linu.us  
Updated Dec 30, 2022  
Read the article

-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#tailwind-css-tutorial](https://hashnode.com/tag/tailwind-css-tutorial)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#plugin](https://hashnode.com/tag/plugin)

## Written by

[Linus Benkner](https://hashnode.com/@EinLinuus)

@EinLinuus · Stuttgart, Germany

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

Young developer based in Germany

Hey there, I'm a young developer building software on the web. Currently building snippet.land and Tubitor.

## Responses 1

Markdown supported · ⌘↵ to post

[Graeme Fulton](https://hashnode.com/@grae)

[Dec 30, 2022](https://hashnode.com/posts/how-to-nest-groups-in-tailwindcss/61991e585bb9cc256fc69aa5/comment/63aee9ea2381e73bbf93c4a6)

Hey thanks for this. I just tried it, but the group-scope classes don't do anything for me. Same issue as the tailwind play example - looking into it!

[Graeme Fulton](https://hashnode.com/@grae)

[Dec 30, 2022](https://hashnode.com/posts/how-to-nest-groups-in-tailwindcss/61991e585bb9cc256fc69aa5/comment/63aee9ea2381e73bbf93c4a6#reply-63aeebaa359f463d43abe92b)

yay got it working by following the instructions in the npm page

this part, adding jit and the group names:

```
mode: "jit",
    // ...
    plugins: [
        require("tailwindcss-scoped-groups")({
            groups: ["one", "two"],
        }),
    ],
```

thanks for the great plugin!

[Linus Benkner](https://hashnode.com/@EinLinuus)

[Dec 30, 2022](https://hashnode.com/posts/how-to-nest-groups-in-tailwindcss/61991e585bb9cc256fc69aa5/comment/63aee9ea2381e73bbf93c4a6#reply-63aeecf52381e73bbf93c52c)

Hi, thanks for your comment! This article is now outdated as nested groups have become a core feature of Tailwind CSS. Make sure you have Tailwind CSS version 3.2 installed and you can use it: [tailwindcss.com/docs/hover-focus-and-other-states](https://tailwindcss.com/docs/hover-focus-and-other-states#differentiating-nested-groups) You can find an updated version of the playground example here: [play.tailwindcss.com/IqzVJD0rLe](https://play.tailwindcss.com/IqzVJD0rLe)

[Graeme Fulton](https://hashnode.com/@grae)

[Dec 30, 2022](https://hashnode.com/posts/how-to-nest-groups-in-tailwindcss/61991e585bb9cc256fc69aa5/comment/63aee9ea2381e73bbf93c4a6#reply-63aeef3d2381e73bbf93c591)

ooh thanks a lot! Didn't know it existed, your post was one of the first I found when searching [Linus Benkner](https://hashnode.com/@EinLinuus)
