Skip to content

Commit 7cd61fe

Browse files
committed
Refactor
1 parent 2e6f797 commit 7cd61fe

File tree

3 files changed

+55
-4
lines changed

3 files changed

+55
-4
lines changed

tests/util/defaults.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import { css } from "./strings"
2+
3+
export const defaults = css`
4+
*,
5+
::before,
6+
::after {
7+
--tw-translate-x: 0;
8+
--tw-translate-y: 0;
9+
--tw-rotate: 0;
10+
--tw-skew-x: 0;
11+
--tw-skew-y: 0;
12+
--tw-scale-x: 1;
13+
--tw-scale-y: 1;
14+
--tw-pan-x: ;
15+
--tw-pan-y: ;
16+
--tw-pinch-zoom: ;
17+
--tw-scroll-snap-strictness: proximity;
18+
border-color: #e5e7eb;
19+
--tw-ordinal: ;
20+
--tw-slashed-zero: ;
21+
--tw-numeric-figure: ;
22+
--tw-numeric-spacing: ;
23+
--tw-numeric-fraction: ;
24+
--tw-ring-inset: ;
25+
--tw-ring-offset-width: 0px;
26+
--tw-ring-offset-color: #fff;
27+
--tw-ring-color: rgb(59 130 246 / 0.5);
28+
--tw-ring-offset-shadow: 0 0 #0000;
29+
--tw-ring-shadow: 0 0 #0000;
30+
--tw-shadow: 0 0 #0000;
31+
--tw-shadow-colored: 0 0 #0000;
32+
--tw-blur: ;
33+
--tw-brightness: ;
34+
--tw-contrast: ;
35+
--tw-grayscale: ;
36+
--tw-hue-rotate: ;
37+
--tw-invert: ;
38+
--tw-saturate: ;
39+
--tw-sepia: ;
40+
--tw-drop-shadow: ;
41+
--tw-backdrop-blur: ;
42+
--tw-backdrop-brightness: ;
43+
--tw-backdrop-contrast: ;
44+
--tw-backdrop-grayscale: ;
45+
--tw-backdrop-hue-rotate: ;
46+
--tw-backdrop-invert: ;
47+
--tw-backdrop-opacity: ;
48+
--tw-backdrop-saturate: ;
49+
--tw-backdrop-sepia: ;
50+
}
51+
`

tests/util/run.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import path from 'path'
22
import postcss from 'postcss'
33
import tailwind from '../../src'
44
import { DEFAULTS_LAYER } from '../../src/lib/expandTailwindAtRules'
5+
export * from "./strings"
56

67
export function run(input, config, plugin = tailwind) {
78
let { currentTestName } = expect.getState()
@@ -14,7 +15,3 @@ export function run(input, config, plugin = tailwind) {
1415
from: `${path.resolve(__filename)}?test=${currentTestName}`,
1516
})
1617
}
17-
18-
export let css = String.raw
19-
export let html = String.raw
20-
export let javascript = String.raw

tests/util/strings.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export let css = String.raw
2+
export let html = String.raw
3+
export let javascript = String.raw

0 commit comments

Comments
 (0)