Skip to content

Commit a0535c4

Browse files
Fix CSS variable syntax in adding-custom-styles docs to use --spacing (#2312)
## Summary • Fix CSS variable syntax from `var(--spacing-6)` to `--spacing(6)` in custom styles documentation • Update to align with Tailwind CSS v4 variable syntax conventions ## Test plan - [ ] Verify the documentation renders correctly - [ ] Confirm the CSS variable syntax matches Tailwind v4 conventions --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
1 parent 1c5b316 commit a0535c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/adding-custom-styles.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ Traditionally these would be classes like `card`, `btn`, `badge` — that kind o
264264
@layer components {
265265
.card {
266266
background-color: var(--color-white);
267-
border-radius: var(--rounded-lg);
268-
padding: var(--spacing-6);
267+
border-radius: var(--radius-lg);
268+
padding: --spacing(6);
269269
box-shadow: var(--shadow-xl);
270270
}
271271
/* [!code highlight:2] */

0 commit comments

Comments
 (0)