Skip to content
Merged
Show file tree
Hide file tree
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: 4 additions & 4 deletions packages/tailwindcss/src/intellisense.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ test('Custom functional @utility', async () => {

@utility example-* {
font-size: --value(--text);
line-height: --value(--text- * --line-height);
line-height: --value(--text-* --line-height);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is better, but not really worse compared to before

line-height: --modifier(--leading, 'normal');
}

Expand All @@ -513,7 +513,7 @@ test('Custom functional @utility', async () => {
}

@utility -negative-* {
margin: --value(--tab-size- *);
margin: --value(--tab-size-*);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixed which is nice

}
`

Expand Down Expand Up @@ -585,7 +585,7 @@ test('Custom utilities sharing a root with built-in utilities should merge sugge
}

@utility font-* {
--my-font-weight: --value(--font-weight- *);
--my-font-weight: --value(--font-weight-*);
}
`

Expand Down Expand Up @@ -624,7 +624,7 @@ test('Theme keys with underscores are suggested with underscores', async () => {
}

@utility ex-* {
width: --value(--spacing- *);
width: --value(--spacing-*);
}
`

Expand Down
4 changes: 2 additions & 2 deletions packages/tailwindcss/src/utilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27897,7 +27897,7 @@ describe('custom utilities', () => {
test('resolving any arbitrary values', async () => {
let input = css`
@utility tab-* {
tab-size: --value([ *]);
tab-size: --value([*]);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also fixed, which is also nice

}

@tailwind utilities;
Expand Down Expand Up @@ -28355,7 +28355,7 @@ describe('custom utilities', () => {

@utility example-* {
font-size: --value(--text);
line-height: --value(--text- * --line-height);
line-height: --value(--text-* --line-height);
line-height: --modifier(number);
}

Expand Down
35 changes: 10 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:

catalog:
'@types/node': ^20.19.0
prettier: 3.5.0
prettier: 3.6.2
vite: ^7.0.0
lightningcss: 1.30.1
lightningcss-darwin-arm64: 1.30.1
Expand Down