Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/pages/docs/adding-custom-styles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ It's even possible to use the [`theme` function](/docs/functions-and-directives#
</div>
```

When using a CSS variable as an arbitrary value, wrapping your variable in `var(...)` isn't needed — just providing the actual variable name is enough:

```html
<div class="bg-[--my-color]">
<!-- ... -->
</div>
```

### Arbitrary properties

If you ever need to use a CSS property that Tailwind doesn't include a utility for out of the box, you can also use square bracket notation to write completely arbitrary CSS:
Expand Down