This page walks you through installingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/toolwind/anchors/llms.txt
Use this file to discover all available pages before exploring further.
@toolwind/anchors and registering it with your Tailwind CSS setup. The package supports both the CSS-first config introduced in Tailwind v4 and the JS config used in Tailwind v3.
Install the package
Install
@toolwind/anchors as a dev dependency using your preferred package manager.The package runs a
postinstall script that applies a patch via patch-package. This only runs when your project is inside a git repository. Outside of a git repo (for example, in a CI environment with no .git directory) the step is skipped automatically and a message is logged instead.Register the plugin with Tailwind
How you register the plugin depends on which version of Tailwind CSS you are using.
- Tailwind CSS v4 (CSS config)
- Tailwind CSS v3 (JS config)
In Tailwind v4, plugins are imported directly in your CSS file using This is typically your entry CSS file — the same file where you import
@import. Add the following line to your main stylesheet:style.css
tailwindcss itself.Peer dependencies
@toolwind/anchors requires Tailwind CSS as a peer dependency:
Next steps
Quickstart
Build a tooltip using
anchor and anchored utilities.Utility index
See every utility class the plugin provides.