Skip to content

Commit

Permalink
add renamed utilities and mark deprecated but still supported classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcastil committed Jan 24, 2025
1 parent 465b1a7 commit 8992454
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions src/lib/default-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,23 @@ export const getDefaultConfig = () => {
theme: {
colors: [isAny],
spacing: [isLength, isArbitraryLength],
blur: ['none', '', isTshirtSize, isArbitraryValue],
blur: [
'none',
// Deprecated since Tailwind CSS v4.0.0
'',
isTshirtSize,
isArbitraryValue,
],
brightness: getNumberAndArbitrary(),
borderColor: [colors],
borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],
borderRadius: [
'none',
// Deprecated since Tailwind CSS v4.0.0
'',
'full',
isTshirtSize,
isArbitraryValue,
],
borderSpacing: getSpacingWithArbitrary(),
borderWidth: getNumberWithEmptyAndArbitrary(),
contrast: getNumberAndArbitrary(),
Expand Down Expand Up @@ -1201,7 +1214,7 @@ export const getDefaultConfig = () => {
* Outline Style
* @see https://tailwindcss.com/docs/outline-style
*/
'outline-style': [{ outline: ['', ...getLineStyles()] }],
'outline-style': [{ outline: ['', 'hidden', ...getLineStyles()] }],
/**
* Outline Offset
* @see https://tailwindcss.com/docs/outline-offset
Expand All @@ -1222,7 +1235,17 @@ export const getDefaultConfig = () => {
* Box Shadow
* @see https://tailwindcss.com/docs/box-shadow
*/
shadow: [{ shadow: ['none', isTshirtSize, isArbitraryShadow] }],
shadow: [
{
shadow: [
// Deprecated since Tailwind CSS v4.0.0
'',
'none',
isTshirtSize,
isArbitraryShadow,
],
},
],
/**
* Box Shadow Color
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
Expand Down Expand Up @@ -1320,7 +1343,17 @@ export const getDefaultConfig = () => {
* Drop Shadow
* @see https://tailwindcss.com/docs/drop-shadow
*/
'drop-shadow': [{ 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue] }],
'drop-shadow': [
{
'drop-shadow': [
// Deprecated since Tailwind CSS v4.0.0
'',
'none',
isTshirtSize,
isArbitraryValue,
],
},
],
/**
* Grayscale
* @see https://tailwindcss.com/docs/grayscale
Expand Down

0 comments on commit 8992454

Please sign in to comment.