Skip to content

Commit 712fe7a

Browse files
committed
Remove target feature
1 parent ae8b634 commit 712fe7a

59 files changed

Lines changed: 71 additions & 55431 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

__tests__/fixtures/tailwind-output-ie11.css

Lines changed: 0 additions & 54647 deletions
This file was deleted.

__tests__/plugins/backgroundColor.test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@ import plugin from '../../src/plugins/backgroundColor'
33

44
test('defining color as a function', () => {
55
const config = {
6-
target: 'relaxed',
7-
theme: {
8-
backgroundColor: {
9-
black: ({ opacityVariable: _ }) => 'black',
10-
},
11-
},
12-
variants: {
13-
backgroundColor: [],
14-
},
15-
}
16-
17-
const { utilities } = invokePlugin(plugin(), config)
18-
19-
expect(utilities).toEqual([
20-
[
21-
{
22-
'.bg-black': {
23-
'background-color': 'black',
24-
},
25-
},
26-
[],
27-
],
28-
])
29-
})
30-
31-
test('defining color as a function in ie11 mode', () => {
32-
const config = {
33-
target: 'ie11',
346
theme: {
357
backgroundColor: {
368
black: ({ opacityVariable: _ }) => 'black',

__tests__/plugins/borderColor.test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@ import plugin from '../../src/plugins/borderColor'
33

44
test('defining color as a function', () => {
55
const config = {
6-
target: 'relaxed',
7-
theme: {
8-
borderColor: {
9-
black: ({ opacityVariable: _ }) => 'black',
10-
},
11-
},
12-
variants: {
13-
borderColor: [],
14-
},
15-
}
16-
17-
const { utilities } = invokePlugin(plugin(), config)
18-
19-
expect(utilities).toEqual([
20-
[
21-
{
22-
'.border-black': {
23-
'border-color': 'black',
24-
},
25-
},
26-
[],
27-
],
28-
])
29-
})
30-
31-
test('defining color as a function in ie11 mode', () => {
32-
const config = {
33-
target: 'ie11',
346
theme: {
357
borderColor: {
368
black: ({ opacityVariable: _ }) => 'black',

__tests__/plugins/divideColor.test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@ import plugin from '../../src/plugins/divideColor'
33

44
test('defining color as a function', () => {
55
const config = {
6-
target: 'relaxed',
7-
theme: {
8-
divideColor: {
9-
black: ({ opacityVariable: _ }) => 'black',
10-
},
11-
},
12-
variants: {
13-
divideColor: [],
14-
},
15-
}
16-
17-
const { utilities } = invokePlugin(plugin(), config)
18-
19-
expect(utilities).toEqual([
20-
[
21-
{
22-
'.divide-black > :not(template) ~ :not(template)': {
23-
'border-color': 'black',
24-
},
25-
},
26-
[],
27-
],
28-
])
29-
})
30-
31-
test('defining color as a function in ie11 mode', () => {
32-
const config = {
33-
target: 'ie11',
346
theme: {
357
divideColor: {
368
black: ({ opacityVariable: _ }) => 'black',

__tests__/plugins/divideWidth.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import plugin from '../../src/plugins/divideWidth'
33

44
test('generating divide width utilities', () => {
55
const config = {
6-
target: 'relaxed',
76
theme: {
87
divideWidth: {
98
default: '1px',

__tests__/plugins/fill.test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@ import plugin from '../../src/plugins/fill'
33

44
test('defining color as a function', () => {
55
const config = {
6-
target: 'relaxed',
7-
theme: {
8-
fill: {
9-
black: ({ opacityVariable: _ }) => 'black',
10-
},
11-
},
12-
variants: {
13-
fill: [],
14-
},
15-
}
16-
17-
const { utilities } = invokePlugin(plugin(), config)
18-
19-
expect(utilities).toEqual([
20-
[
21-
{
22-
'.fill-black': {
23-
fill: 'black',
24-
},
25-
},
26-
[],
27-
],
28-
])
29-
})
30-
31-
test('defining color as a function in ie11 mode', () => {
32-
const config = {
33-
target: 'ie11',
346
theme: {
357
fill: {
368
black: ({ opacityVariable: _ }) => 'black',

__tests__/plugins/placeholderColor.test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@ import plugin from '../../src/plugins/placeholderColor'
33

44
test('defining color as a function', () => {
55
const config = {
6-
target: 'relaxed',
7-
theme: {
8-
placeholderColor: {
9-
black: ({ opacityVariable: _ }) => 'black',
10-
},
11-
},
12-
variants: {
13-
placeholderColor: [],
14-
},
15-
}
16-
17-
const { utilities } = invokePlugin(plugin(), config)
18-
19-
expect(utilities).toEqual([
20-
[
21-
{
22-
'.placeholder-black::placeholder': {
23-
color: 'black',
24-
},
25-
},
26-
[],
27-
],
28-
])
29-
})
30-
31-
test('defining color as a function in ie11 mode', () => {
32-
const config = {
33-
target: 'ie11',
346
theme: {
357
placeholderColor: {
368
black: ({ opacityVariable: _ }) => 'black',

__tests__/plugins/space.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import plugin from '../../src/plugins/space'
33

44
test('generating space utilities', () => {
55
const config = {
6-
target: 'relaxed',
76
theme: {
87
space: {
98
'0': '0',

__tests__/plugins/stroke.test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@ import plugin from '../../src/plugins/stroke'
33

44
test('defining color as a function', () => {
55
const config = {
6-
target: 'relaxed',
7-
theme: {
8-
stroke: {
9-
black: ({ opacityVariable: _ }) => 'black',
10-
},
11-
},
12-
variants: {
13-
stroke: [],
14-
},
15-
}
16-
17-
const { utilities } = invokePlugin(plugin(), config)
18-
19-
expect(utilities).toEqual([
20-
[
21-
{
22-
'.stroke-black': {
23-
stroke: 'black',
24-
},
25-
},
26-
[],
27-
],
28-
])
29-
})
30-
31-
test('defining color as a function in ie11 mode', () => {
32-
const config = {
33-
target: 'ie11',
346
theme: {
357
stroke: {
368
black: ({ opacityVariable: _ }) => 'black',

__tests__/plugins/textColor.test.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,6 @@ import plugin from '../../src/plugins/textColor'
33

44
test('defining color as a function', () => {
55
const config = {
6-
target: 'relaxed',
7-
theme: {
8-
textColor: {
9-
black: ({ opacityVariable: _ }) => 'black',
10-
},
11-
},
12-
variants: {
13-
textColor: [],
14-
},
15-
}
16-
17-
const { utilities } = invokePlugin(plugin(), config)
18-
19-
expect(utilities).toEqual([
20-
[
21-
{
22-
'.text-black': {
23-
color: 'black',
24-
},
25-
},
26-
[],
27-
],
28-
])
29-
})
30-
31-
test('defining color as a function in ie11 mode', () => {
32-
const config = {
33-
target: 'ie11',
346
theme: {
357
textColor: {
368
black: ({ opacityVariable: _ }) => 'black',

0 commit comments

Comments
 (0)