Skip to content

Commit 6102a87

Browse files
committed
docs(design-system): mention Tailwind CSS v4 cursor change on buttons
1 parent e6ea707 commit 6102a87

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/content/docs/1.getting-started/5.theme/1.design-system.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ Tailwind CSS uses a CSS-first configuration, letting you define your design toke
2121
Check the Tailwind CSS documentation for all available theme variable customization options.
2222
::
2323

24+
::tip
25+
Tailwind CSS v4 changed its [Preflight](https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor) so that buttons use `cursor: default` instead of `cursor: pointer` to match browser defaults. If you'd like to restore the pointer cursor globally, add these base styles to your CSS:
26+
27+
```css [app/assets/css/main.css]
28+
@layer base {
29+
button:not(:disabled),
30+
[role="button"]:not(:disabled) {
31+
cursor: pointer;
32+
}
33+
}
34+
```
35+
36+
::
37+
2438
### Fonts
2539

2640
Use the `--font-*` theme variables to [customize the font family utilities](https://tailwindcss.com/docs/font-family#customizing-your-theme) in your project.

0 commit comments

Comments
 (0)