Skip to content

Commit 07ac865

Browse files
committed
Remove legacy theme compat for corner-shape
1 parent d5708c5 commit 07ac865

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

packages/tailwindcss/src/compat/apply-config-to-theme.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ test('config values can be merged into the theme', () => {
3535
sm: '0.33rem',
3636
},
3737

38-
cornerShape: {
39-
scoop: 'superellipse(0.6)',
40-
},
41-
4238
animation: {
4339
blink: 'blink 1s linear infinite',
4440
},
@@ -97,7 +93,6 @@ test('config values can be merged into the theme', () => {
9793
expect(theme.resolve('normal', ['--shadow'])).toEqual('0 1px 3px black')
9894
expect(theme.resolve('retro', ['--aspect'])).toEqual('4 / 3')
9995
expect(theme.resolve('sm', ['--radius'])).toEqual('0.33rem')
100-
expect(theme.resolve('scoop', ['--corner-shape'])).toEqual('superellipse(0.6)')
10196
expect(theme.resolve('blink', ['--animate'])).toEqual('blink 1s linear infinite')
10297
expect(theme.resolve('red-500', ['--color'])).toEqual('red')
10398
expect(theme.resolve('sans', ['--font'])).toEqual('Inter, system-ui, sans-serif')

packages/tailwindcss/src/compat/apply-config-to-theme.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ export function keyPathToCssProperty(path: string[]) {
158158
if (path[0] === 'animation') path[0] = 'animate'
159159
if (path[0] === 'aspectRatio') path[0] = 'aspect'
160160
if (path[0] === 'borderRadius') path[0] = 'radius'
161-
if (path[0] === 'cornerShape') path[0] = 'corner-shape'
162161
if (path[0] === 'boxShadow') path[0] = 'shadow'
163162
if (path[0] === 'colors') path[0] = 'color'
164163
if (path[0] === 'containers') path[0] = 'container'

packages/tailwindcss/src/compat/config/create-compat-config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ export function createCompatConfig(cssTheme: Theme): UserConfig {
3434
...theme('radius', {}),
3535
}),
3636

37-
cornerShape: ({ theme }) => ({
38-
...theme('corner-shape', {}),
39-
}),
40-
4137
screens: ({ theme }) => ({
4238
...theme('breakpoint', {}),
4339
}),

packages/tailwindcss/src/compat/default-theme.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,6 @@ export default {
171171
'3xl': '1.5rem',
172172
full: '9999px',
173173
},
174-
cornerShape: {
175-
DEFAULT: 'round',
176-
round: 'round',
177-
square: 'square',
178-
bevel: 'bevel',
179-
scoop: 'scoop',
180-
notch: 'notch',
181-
squircle: 'squircle',
182-
},
183174
borderSpacing: ({ theme }) => theme('spacing'),
184175
borderWidth: {
185176
DEFAULT: '1px',

0 commit comments

Comments
 (0)