Skip to content

Commit

Permalink
Add suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Nov 13, 2024
1 parent 7adcd6a commit 5b6560d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

exports[`getClassList 1`] = `
[
"-bg-conic-0",
"-bg-conic-120",
"-bg-conic-150",
"-bg-conic-180",
"-bg-conic-210",
"-bg-conic-240",
"-bg-conic-270",
"-bg-conic-30",
"-bg-conic-300",
"-bg-conic-330",
"-bg-conic-60",
"-bg-conic-90",
"-bg-linear-0",
"-bg-linear-120",
"-bg-linear-150",
Expand Down Expand Up @@ -1611,6 +1623,19 @@ exports[`getClassList 1`] = `
"bg-clip-content",
"bg-clip-padding",
"bg-clip-text",
"bg-conic",
"bg-conic-0",
"bg-conic-120",
"bg-conic-150",
"bg-conic-180",
"bg-conic-210",
"bg-conic-240",
"bg-conic-270",
"bg-conic-30",
"bg-conic-300",
"bg-conic-330",
"bg-conic-60",
"bg-conic-90",
"bg-contain",
"bg-cover",
"bg-current",
Expand Down
10 changes: 10 additions & 0 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2405,6 +2405,16 @@ export function createUtilities(theme: Theme) {

utilities.functional('-bg-conic', handleBgConic({ negative: true }))
utilities.functional('bg-conic', handleBgConic({ negative: false }))

suggest('bg-conic', () => [
{
hasDefaultValue: true,
},
{
values: ['0', '30', '60', '90', '120', '150', '180', '210', '240', '270', '300', '330'],
supportsNegative: true,
},
])
}

utilities.functional('bg-radial', (candidate) => {
Expand Down

0 comments on commit 5b6560d

Please sign in to comment.