# Some resources for TailwindCss v4

**URL:** <https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334>\
**Category:** tips & tricks\
**Tags:** tailwind\
**Created:** [January 31, 2025, 2:59am UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334 "2025-01-31T02:59:25Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![baker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/baker/32/15845_2.png) [@baker](https://discourse.gohugo.io/u/baker)\
**Post date:** [January 31, 2025, 2:59am UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/1 "2025-01-31T02:59:25Z")

</div>

I am in no hurry to use Tailwind V4 but look around anyway.

Here are some links that can give some inspiration… Those are not guides, just for getting some ideas how people do it:

> **[GitHub - odhyp/hugo-tailwindcss-starter: Starter project for Hugo Website with TailwindCSS](https://github.com/odhyp/hugo-tailwindcss-starter)**
>
> Starter project for Hugo Website with TailwindCSS

> **[GitHub - overlookart/overlookart.github.io: 博客笔记本](https://github.com/overlookart/overlookart.github.io)**
>
> 博客笔记本

> **[GitHub - bin16/hugo-theme-island: Yet another hugo theme, based on Tailwind CSS 4.0,...](https://github.com/bin16/hugo-theme-island)**
>
> Yet another hugo theme, based on Tailwind CSS 4.0, work in progress.

PS: I am not related to any of them.

---

<div class="post-metadata">

**Author:** ![willduncanphoto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/willduncanphoto/32/11840_2.png) [@willduncanphoto](https://discourse.gohugo.io/u/willduncanphoto)\
**Post date:** [January 31, 2025, 6:42pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/2 "2025-01-31T18:42:23Z")

</div>

Thanks for the links. Was just thinking about picking up tailwind now that v4 is out and it looks like it plays happily with Hugo.

---

<div class="post-metadata">

**Author:** ![odhyp](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/odhyp/32/23836_2.png) [@odhyp](https://discourse.gohugo.io/u/odhyp)\
**Post date:** [February 3, 2025, 8:18am UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/3 "2025-02-03T08:18:05Z")

</div>

Thanks a lot for sharing my project 🍻

---

<div class="post-metadata">

**Author:** ![baker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/baker/32/15845_2.png) [@baker](https://discourse.gohugo.io/u/baker)\
**Post date:** [February 7, 2025, 1:39pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/4 "2025-02-07T13:39:15Z")

</div>

Welcome.

Maybe you can do a tutorial for the minimum setup. That would be helpful.

---

<div class="post-metadata">

**Author:** ![odhyp](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/odhyp/32/23836_2.png) [@odhyp](https://discourse.gohugo.io/u/odhyp)\
**Post date:** [February 14, 2025, 3:32am UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/5 "2025-02-14T03:32:15Z")

</div>

I recently upgraded my site to v4 and wrote about the process in this [blog post](https://odhyp.com/blog/upgrading-hugo-to-tailwindcss-v4/). Hope it helps.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 14, 2025, 4:30am UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/6 "2025-02-14T04:30:57Z")

</div>

The current recommended setup is documented here:

> **[css.TailwindCSS](https://gohugo.io/functions/css/tailwindcss/)**
>
> Processes the given resource with the Tailwind CSS CLI.

---

<div class="post-metadata">

**Author:** ![andrelohmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andrelohmann/32/23961_2.png) [@andrelohmann](https://discourse.gohugo.io/u/andrelohmann)\
**Post date:** [February 23, 2025, 8:26pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/8 "2025-02-23T20:26:22Z")

</div>

I’m quite new to hugo as well as tailwind and I’m a bid confused, if the css.TailwindCSS documentation requires css.PostCSS as well to be installed and configure, as there is a reference in the required hugo.toml build.cachebusters configuration?

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 23, 2025, 8:28pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/9 "2025-02-23T20:28:59Z")

</div>

> [@andrelohmann](#):
>
> documentation requires css.PostCSS

Can you point to where it says that?

---

<div class="post-metadata">

**Author:** ![andrelohmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andrelohmann/32/23961_2.png) [@andrelohmann](https://discourse.gohugo.io/u/andrelohmann)\
**Post date:** [February 23, 2025, 8:33pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/10 "2025-02-23T20:33:20Z")

</div>

It does not say it explicitly, but when you look at the toml content, you see the reference.

> **[css.TailwindCSS](https://gohugo.io/functions/css/tailwindcss/#step-2)**
>
> Processes the given resource with the Tailwind CSS CLI.

```auto
  [[build.cachebusters]]
    source = '(postcss|tailwind)\.config\.js'
    target = 'css'

```

This documentation also is talking about using the tailwind/cli, while the original tailwind installation is referencing to tailwind/postcss.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 23, 2025, 8:34pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/11 "2025-02-23T20:34:37Z")

</div>

You _might_ be using PostCSS as well (we have no idea if you are or are not), in which case you’ll need to bust the cache.

---

<div class="post-metadata">

**Author:** ![andrelohmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andrelohmann/32/23961_2.png) [@andrelohmann](https://discourse.gohugo.io/u/andrelohmann)\
**Post date:** [February 23, 2025, 8:37pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/12 "2025-02-23T20:37:20Z")

</div>

😉 as a total newby, I don’t even understand the whole purpose of cachebusting and/or postcss in the hugo context yet.

I’m just trying to get a basic setup of hugo + tailwind to run and am confused by the tailwind documentation, the hugo documentation and all stuff that chatgpt and deepseek are telling me (as they seem to be trained only on older integrations of tailwind v3).

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 23, 2025, 8:40pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/13 "2025-02-23T20:40:37Z")

</div>

I suggest you follow the Hugo documentation.

---

<div class="post-metadata">

**Author:** ![andrelohmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andrelohmann/32/23961_2.png) [@andrelohmann](https://discourse.gohugo.io/u/andrelohmann)\
**Post date:** [February 23, 2025, 8:42pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/14 "2025-02-23T20:42:15Z")

</div>

alright, can I then just leave out the cachebuster related config?

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 23, 2025, 8:42pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/15 "2025-02-23T20:42:54Z")

</div>

NO. That’s why it is in the documentation.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [February 25, 2025, 8:43pm UTC](https://discourse.gohugo.io/t/some-resources-for-tailwindcss-v4/53334/16 "2025-02-25T20:43:29Z")

</div>

Closed on February 25, 2025, 8:43pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
