-
-
Notifications
You must be signed in to change notification settings - Fork 184
/
Copy path!imports.js
73 lines (60 loc) · 1.2 KB
/
!imports.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import tw, { theme, styled, css, GlobalStyles } from './macro'
const twPropertyTest = <div tw="text-purple-500" />
const twFunctionTest = tw.div`text-purple-500`
const cssFunctionTest = (
<div
css={css`
${tw`text-purple-500`}
background-color: purple;
`}
/>
)
const styledFunctionTest = styled.div`
${css`
${tw`text-purple-500`}
background-color: purple;
`}
`
const themeObjectPurple = (
<input css={css({ color: theme`colors.purple.500` })} />
)
const themeStringFont = (
<input
css={css`
font-family: ${theme`fontFamily.sans`};
`}
/>
)
const themeFirstFromArray = (
<input
css={css`
outline: ${theme`outline.black`};
`}
/>
)
const themeFontNoLineheight = (
<input
css={css`
outline: ${theme`fontSize.sm`};
`}
/>
)
const colorsRed = Object.values(theme`colors.red`)
const themeFunctionObjectPurple = (
<input css={css({ color: theme('colors.black') })} />
)
const themeFunctionStringHeight = (
<input
css={css`
height: ${theme('height.24')};
`}
/>
)
const themeSquareBrackets = (
<input
css={css`
height: ${theme('spacing[2.5]')};
`}
/>
)
const GlobalStylesTest = () => <GlobalStyles />