Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some missing suggestions in IntelliSense #15288

Merged
merged 4 commits into from
Dec 4, 2024
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix resolution of imported CSS files in Vite SSR builds ([#15279](https://github.com/tailwindlabs/tailwindcss/issues/15279))
- Ensure other plugins can run after `@tailwindcss/postcss` ([#15273](https://github.com/tailwindlabs/tailwindcss/pull/15273))
- Rebase `url()` inside imported CSS files when using Vite with the `@tailwindcss/postcss` extension ([#15273](https://github.com/tailwindlabs/tailwindcss/pull/15273))
- Fix missing font family suggestions in IntelliSense ([#15288](https://github.com/tailwindlabs/tailwindcss/pull/15288))
- Fix missing `@container` suggestion in IntelliSense ([#15288](https://github.com/tailwindlabs/tailwindcss/pull/15288))

## [4.0.0-beta.4] - 2024-11-29

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,7 @@ exports[`getClassList 1`] = `
"-z-30",
"-z-40",
"-z-50",
"@container",
"@container-normal",
"absolute",
"accent-auto",
Expand Down Expand Up @@ -3734,6 +3735,7 @@ exports[`getClassList 1`] = `
"font-light",
"font-medium",
"font-normal",
"font-sans",
"font-semibold",
"font-stretch-100%",
"font-stretch-105%",
Expand All @@ -3754,6 +3756,7 @@ exports[`getClassList 1`] = `
"font-stretch-semi-expanded",
"font-stretch-ultra-condensed",
"font-stretch-ultra-expanded",
"font-superbold",
"font-thin",
"forced-color-adjust-auto",
"forced-color-adjust-none",
Expand Down
2 changes: 2 additions & 0 deletions packages/tailwindcss/src/intellisense.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ function loadDesignSystem() {
theme.add('--colors-red-500', 'red')
theme.add('--colors-blue-500', 'blue')
theme.add('--breakpoint-sm', '640px')
theme.add('--font-sans', 'sans-serif')
theme.add('--font-weight-superbold', '900')
theme.add('--text-xs', '0.75rem')
theme.add('--text-xs--line-height', '1rem')
theme.add('--perspective-dramatic', '100px')
Expand Down
4 changes: 2 additions & 2 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2919,7 +2919,7 @@ export function createUtilities(theme: Theme) {
suggest('font', () => [
{
values: [],
valueThemeKeys: ['--font-family'],
valueThemeKeys: ['--font'],
},
{
values: [
Expand Down Expand Up @@ -4564,7 +4564,7 @@ export function createUtilities(theme: Theme) {
{
values: ['normal'],
valueThemeKeys: [],
hasDefaultValue: false,
hasDefaultValue: true,
},
])

Expand Down