Skip to content

Tools config section missing on trunkrs.dev #948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MetaflameDragon opened this issue Feb 17, 2025 · 3 comments
Open

Tools config section missing on trunkrs.dev #948

MetaflameDragon opened this issue Feb 17, 2025 · 3 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed

Comments

@MetaflameDragon
Copy link

Trunk was launching an old version of Tailwind (3.3.5, I wanted 4.0.6), so I ended up diving into the source code and found a not-exactly-documented [tools] section. [tools] and tailwindcss = "4.0.6" does the trick, and there are a few more tools with version defaults as well as some other stuff.

It would be nice to add all of these to the official website's Config page.

Also, the most recent version of Tailwind seems to be a breaking change compared to 3.x and using the default settings while expecting 4.x causes errors. Updating it would be a breaking change too, but it might be worth it to clarify the current default version (as well as for the other tools) to avoid confusion & instruct how to specify the preferred version via the config.

@ctron ctron added documentation Improvements or additions to documentation help wanted Extra attention is needed good first issue Good for newcomers labels Feb 17, 2025
@chriamue
Copy link
Contributor

chriamue commented Mar 15, 2025

If you want use tailwind-extra which provides daisyui.

<html>
    <head>
        <link data-trunk rel="tailwind-css-extra" href="styles.css" />
    </head>
</html>

You can select the version v2.0.0 or higher, which provides daisyui 5.0 and tailwindcss 4.0.

The confusing is here you select in the tools tailwindcss with version you can find here https://github.com/dobicinaitis/tailwind-cli-extra

#Trunk.toml
[tools]
tailwindcss = "2.0.4"

@duke-m
Copy link
Contributor

duke-m commented May 12, 2025

let's address this after merging #987

@theo-abel
Copy link

hello, have you had the chance to advance on this ? thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants