Skip to content

Commit efa60f5

Browse files
Document data types for custom utilities (#2356)
Closes #2176 Closes #2310 --------- Co-authored-by: Marco Schindler <[email protected]>
1 parent 2129ab7 commit efa60f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/docs/adding-custom-styles.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ To resolve the value as a bare value, use the `--value({type})` syntax, where `{
462462

463463
This will match utilities like `tab-1` and `tab-76`.
464464

465+
Available bare value data types are: `number`, `integer`, `ratio`, and `percentage`.
466+
465467
#### Literal values
466468

467469
To support literal values, use the `--value('literal')` syntax (notice the quotes):
@@ -486,7 +488,9 @@ To support arbitrary values, use the `--value([{type}])` syntax (notice the squa
486488
}
487489
```
488490

489-
This will match utilities like `tab-[1]` and `tab-[76]`. If you want to support any data type, you can use `--value([*])`.
491+
This will match utilities like `tab-[1]` and `tab-[76]`.
492+
493+
Available arbitrary value data types are: `absolute-size`, `angle`, `bg-size`, `color`, `family-name`, `generic-name`, `image`, `integer`, `length`, `line-width`, `number`, `percentage`, `position`, `ratio`, `relative-size`, `url`, `vector`, and `*`.
490494

491495
#### Supporting theme, bare, and arbitrary values together
492496

0 commit comments

Comments
 (0)