-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathFlexField.css.ts
44 lines (41 loc) · 1 KB
/
FlexField.css.ts
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
import {recipe, RecipeVariants} from '@vanilla-extract/recipes';
import {createVar} from '@vanilla-extract/css';
import {themeVars} from '../../theme';
import * as variables from '../../theme/variables.css';
export const inputHeight = createVar();
export const wrapper = recipe({
base: {
height: '100%',
flex: 1,
display: 'flex',
flexDirection: 'column',
alignItems: 'stretch',
vars: {
[inputHeight]: '100%',
[variables.fontSize]: themeVars.fontSize.base,
},
},
variants: {
size: {
xs: {
vars: {
[inputHeight]: '24px',
[variables.fontSize]: themeVars.fontSize.xs,
},
},
md: {
vars: {
[inputHeight]: '32px',
[variables.fontSize]: themeVars.fontSize.sm,
},
},
lg: {
vars: {
[inputHeight]: '42px',
[variables.fontSize]: themeVars.fontSize.base,
},
},
},
},
});
export type FlexFieldVariants = RecipeVariants<typeof wrapper>;