Skip to content

Commit 00aa868

Browse files
authored
fix: cursor tokens (#3172)
* docs: update cursor tokens section * feat(cursor): add cursor utility configuration * chore: add cursor utility configuration to changeset
1 parent 0b0f9d4 commit 00aa868

File tree

7 files changed

+24
-6
lines changed

7 files changed

+24
-6
lines changed

.changeset/four-carpets-attack.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@pandacss/preset-base': patch
3+
'@pandacss/generator': patch
4+
'@pandacss/studio': patch
5+
---
6+
7+
Add cursor utility config

packages/generator/__tests__/generate-css-fn.test.ts

+2-2
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { UtilityConfig } from '@pandacss/types'
2+
3+
export const cursor: UtilityConfig = {
4+
cursor: {
5+
className: 'cursor',
6+
values: 'cursor',
7+
group: 'System',
8+
},
9+
}

packages/preset-base/src/utilities/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { UtilityConfig } from '@pandacss/types'
22
import { background } from './background'
33
import { border } from './border'
44
import { container } from './container'
5+
import { cursor } from './cursor'
56
import { display } from './display'
67
import { divide } from './divide'
78
import { effects } from './effects'
@@ -44,4 +45,5 @@ export const utilities: UtilityConfig = Object.assign(
4445
helpers,
4546
polyfill,
4647
container,
48+
cursor,
4749
)

packages/studio/styled-system/jsx/is-valid-prop.mjs

+1-1
Large diffs are not rendered by default.

packages/studio/styled-system/types/conditions.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export interface Conditions {
146146
"_open": string
147147
/** `&:is([closed], [data-closed], [data-state="closed"])` */
148148
"_closed": string
149-
/** `&is(:fullscreen, [data-fullscreen])` */
149+
/** `&:is(:fullscreen, [data-fullscreen])` */
150150
"_fullscreen": string
151151
/** `&:is([data-loading], [aria-busy=true])` */
152152
"_loading": string

website/pages/docs/theming/tokens.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -587,14 +587,14 @@ const theme = {
587587
}
588588
```
589589

590-
### Cursors
590+
### Cursor
591591

592592
Cursor tokens define the style of the mouse pointer when it hovers over a specific element or area. These tokens represent the visual behavior of interactions, indicating actions such as clickable areas, draggable elements, or loading states. Their value is defined as a string.
593593

594594
```js
595595
const theme = {
596596
tokens: {
597-
cursors: {
597+
cursor: {
598598
click: { value: 'pointer' },
599599
disabled: { value: 'not-allowed' },
600600
// custom value

0 commit comments

Comments
 (0)