@mekari/pixel3-theme 0.0.1-alpha.0 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2803 -2082
- package/dist/index.mjs +2834 -2111
- package/dist/recipes/banner.d.mts +10 -0
- package/dist/recipes/banner.d.ts +10 -0
- package/dist/recipes/divider.d.mts +5 -0
- package/dist/recipes/divider.d.ts +5 -0
- package/dist/recipes/dropzone.d.mts +5 -0
- package/dist/recipes/dropzone.d.ts +5 -0
- package/dist/recipes/form-control.d.mts +5 -0
- package/dist/recipes/form-control.d.ts +5 -0
- package/dist/recipes/index.d.mts +13 -0
- package/dist/recipes/index.d.ts +13 -0
- package/dist/recipes/input-tag.d.mts +5 -0
- package/dist/recipes/input-tag.d.ts +5 -0
- package/dist/recipes/modal.d.mts +5 -0
- package/dist/recipes/modal.d.ts +5 -0
- package/dist/recipes/upload.d.mts +6 -0
- package/dist/recipes/upload.d.ts +6 -0
- package/dist/tokens/colors.d.mts +64 -0
- package/dist/tokens/colors.d.ts +64 -0
- package/dist/tokens/index.d.mts +71 -0
- package/dist/tokens/index.d.ts +71 -0
- package/dist/tokens/sizes.d.mts +7 -0
- package/dist/tokens/sizes.d.ts +7 -0
- package/package.json +5 -4
- package/src/breakpoints.ts +6 -0
- package/src/conditions.ts +22 -0
- package/src/global-css.ts +23 -0
- package/src/index.ts +26 -0
- package/src/keyframes.ts +15 -0
- package/src/recipes/accordion.ts +57 -0
- package/src/recipes/avatar.ts +179 -0
- package/src/recipes/badge.ts +166 -0
- package/src/recipes/banner.ts +143 -0
- package/src/recipes/button.ts +224 -0
- package/src/recipes/checkbox.ts +92 -0
- package/src/recipes/divider.ts +31 -0
- package/src/recipes/dropzone.ts +161 -0
- package/src/recipes/form-control.ts +40 -0
- package/src/recipes/icon.ts +31 -0
- package/src/recipes/index.ts +83 -0
- package/src/recipes/input-tag.ts +119 -0
- package/src/recipes/input.ts +204 -0
- package/src/recipes/modal.ts +108 -0
- package/src/recipes/popover.ts +82 -0
- package/src/recipes/progress.ts +76 -0
- package/src/recipes/radio.ts +103 -0
- package/src/recipes/select.ts +114 -0
- package/src/recipes/shared.ts +19 -0
- package/src/recipes/spinner.ts +25 -0
- package/src/recipes/table.ts +113 -0
- package/src/recipes/tabs.ts +204 -0
- package/src/recipes/tag.ts +105 -0
- package/src/recipes/text.ts +56 -0
- package/src/recipes/textarea.ts +60 -0
- package/src/recipes/toggle.ts +99 -0
- package/src/recipes/tooltip.ts +24 -0
- package/src/recipes/upload.ts +99 -0
- package/src/text-styles.ts +34 -0
- package/src/tokens/borders.ts +8 -0
- package/src/tokens/colors.ts +154 -0
- package/src/tokens/durations.ts +7 -0
- package/src/tokens/index.ts +28 -0
- package/src/tokens/opacity.ts +8 -0
- package/src/tokens/radii.ts +11 -0
- package/src/tokens/shadows.ts +40 -0
- package/src/tokens/sizes.ts +29 -0
- package/src/tokens/spacing.ts +21 -0
- package/src/tokens/typography.ts +45 -0
- package/src/tokens/z-index.ts +12 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const toggleSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'toggle',
|
|
5
|
+
jsx: ['MpToggle', 'mp-toggle'],
|
|
6
|
+
slots: ['root', 'control', 'label'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
display: 'inline-flex',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
gap: '3',
|
|
14
|
+
cursor: 'pointer',
|
|
15
|
+
outline: 'none',
|
|
16
|
+
'&[data-has-description=true]': {
|
|
17
|
+
alignItems: 'flex-start',
|
|
18
|
+
'& .mp-toggle__control': {
|
|
19
|
+
marginTop: '1'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
'& .mp-shared__hidden': {
|
|
23
|
+
'&:focus + .mp-toggle__control': {
|
|
24
|
+
borderColor: 'blue.400',
|
|
25
|
+
boxShadow: 'focus'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
_hover: {
|
|
29
|
+
'& .mp-toggle__control': {
|
|
30
|
+
borderColor: 'gray.400',
|
|
31
|
+
background: 'gray.400'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
_disabled: {
|
|
35
|
+
cursor: 'not-allowed',
|
|
36
|
+
'& .mp-toggle__control': {
|
|
37
|
+
borderColor: 'gray.100 !important',
|
|
38
|
+
background: 'gray.50 !important',
|
|
39
|
+
boxShadow: 'none !important',
|
|
40
|
+
|
|
41
|
+
'& div': {
|
|
42
|
+
background: 'gray.100'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
_invalid: {
|
|
47
|
+
'& .mp-toggle__control': {
|
|
48
|
+
borderColor: 'red.400',
|
|
49
|
+
background: 'red.400'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
_checked: {
|
|
53
|
+
'& .mp-toggle__control': {
|
|
54
|
+
borderColor: 'blue.400',
|
|
55
|
+
background: 'blue.400',
|
|
56
|
+
|
|
57
|
+
'& div': {
|
|
58
|
+
transform: 'translateX(var(--mp-sizes-3))'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
_hover: {
|
|
62
|
+
'& .mp-toggle__control': {
|
|
63
|
+
borderColor: 'blue.400',
|
|
64
|
+
background: 'blue.400'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
control: {
|
|
70
|
+
flex: 'none',
|
|
71
|
+
position: 'relative',
|
|
72
|
+
display: 'inline-flex',
|
|
73
|
+
alignItems: 'center',
|
|
74
|
+
justifyContent: 'flex-start',
|
|
75
|
+
width: '7',
|
|
76
|
+
height: '4',
|
|
77
|
+
borderWidth: '1px',
|
|
78
|
+
borderColor: 'gray.100',
|
|
79
|
+
borderRadius: 'lg',
|
|
80
|
+
background: 'gray.100',
|
|
81
|
+
|
|
82
|
+
'& div': {
|
|
83
|
+
transitionDuration: '250ms',
|
|
84
|
+
transitionProperty: 'transform',
|
|
85
|
+
transitionTimingFunction: 'linear',
|
|
86
|
+
transform: 'translateX(2px)',
|
|
87
|
+
width: '3',
|
|
88
|
+
height: '3',
|
|
89
|
+
background: 'white',
|
|
90
|
+
borderRadius: 'full'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
label: {
|
|
94
|
+
background: 'transparent'
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
export { toggleSlotRecipe }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const tooltipRecipe = defineRecipe({
|
|
4
|
+
className: 'tooltip',
|
|
5
|
+
jsx: ['MpTooltip', 'mp-tooltip'],
|
|
6
|
+
base: {
|
|
7
|
+
px: '2',
|
|
8
|
+
py: '1',
|
|
9
|
+
borderRadius: 'sm',
|
|
10
|
+
fontWeight: 'regular',
|
|
11
|
+
pointerEvents: 'none',
|
|
12
|
+
fontSize: 'sm',
|
|
13
|
+
shadow: 'md',
|
|
14
|
+
maxW: '300px',
|
|
15
|
+
zIndex: 'tooltip',
|
|
16
|
+
boxShadow: 'sm',
|
|
17
|
+
bg: 'overlay',
|
|
18
|
+
color: 'white',
|
|
19
|
+
whiteSpace: 'normal',
|
|
20
|
+
overflowWrap: 'break-word'
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export { tooltipRecipe }
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const uploadSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'upload',
|
|
5
|
+
jsx: ['MpUpload', 'mp-upload'],
|
|
6
|
+
slots: ['root', 'resetButton'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
width: 'full',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
gap: '3',
|
|
14
|
+
py: '1',
|
|
15
|
+
pl: '1',
|
|
16
|
+
pr: '3',
|
|
17
|
+
borderWidth: '1px',
|
|
18
|
+
borderColor: 'gray.100',
|
|
19
|
+
borderRadius: 'md',
|
|
20
|
+
backgroundColor: 'white',
|
|
21
|
+
outline: 'none',
|
|
22
|
+
transition: 'all 250ms',
|
|
23
|
+
_hover: {
|
|
24
|
+
borderColor: 'gray.400',
|
|
25
|
+
'& .mp-upload__resetButton': {
|
|
26
|
+
display: 'block'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
_focusVisible: {
|
|
30
|
+
boxShadow: 'focus',
|
|
31
|
+
borderColor: 'blue.400',
|
|
32
|
+
_hover: {
|
|
33
|
+
borderColor: 'blue.400'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
_disabled: {
|
|
37
|
+
cursor: 'not-allowed',
|
|
38
|
+
background: 'gray.50'
|
|
39
|
+
},
|
|
40
|
+
_invalid: {
|
|
41
|
+
borderColor: 'red.400',
|
|
42
|
+
_hover: {
|
|
43
|
+
borderColor: 'red.400'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
resetButton: {
|
|
48
|
+
display: 'none',
|
|
49
|
+
cursor: 'pointer',
|
|
50
|
+
position: 'absolute',
|
|
51
|
+
top: '2',
|
|
52
|
+
right: '3'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
const uploadListSlotRecipe = defineSlotRecipe({
|
|
58
|
+
className: 'upload-list',
|
|
59
|
+
jsx: ['MpUploadList', 'mp-upload-list'],
|
|
60
|
+
slots: ['root', 'titleWrapper', 'actionWrapper'],
|
|
61
|
+
base: {
|
|
62
|
+
root: {
|
|
63
|
+
position: 'relative',
|
|
64
|
+
width: 'full',
|
|
65
|
+
display: 'flex',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
justifyContent: 'start',
|
|
68
|
+
gap: '3',
|
|
69
|
+
py: '2',
|
|
70
|
+
px: '1',
|
|
71
|
+
borderRadius: 'md',
|
|
72
|
+
backgroundColor: 'white',
|
|
73
|
+
transition: 'all 250ms',
|
|
74
|
+
_hover: {
|
|
75
|
+
backgroundColor: 'background'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
titleWrapper: {
|
|
79
|
+
display: 'flex',
|
|
80
|
+
flexDirection: 'column',
|
|
81
|
+
minWidth: '1px',
|
|
82
|
+
},
|
|
83
|
+
actionWrapper: {
|
|
84
|
+
display: 'flex',
|
|
85
|
+
flexDirection: 'row',
|
|
86
|
+
gap: '0.5',
|
|
87
|
+
ml: 'auto',
|
|
88
|
+
'& > button': {
|
|
89
|
+
// Remove hover style for Button Icon
|
|
90
|
+
_hover: {
|
|
91
|
+
background: 'transparent!important',
|
|
92
|
+
borderColor: 'transparent!important'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
export { uploadSlotRecipe, uploadListSlotRecipe }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineTextStyles } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const textStyles = defineTextStyles({
|
|
4
|
+
overline: { value: { fontSize: 'xs', lineHeight: 'xs' } },
|
|
5
|
+
body: {
|
|
6
|
+
sm: { value: { fontSize: 'sm', lineHeight: '2xl' } },
|
|
7
|
+
md: { value: { fontSize: 'md', lineHeight: '3xl' } }
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
sm: { value: { fontSize: 'sm', lineHeight: 'sm' } },
|
|
11
|
+
md: { value: { fontSize: 'md', lineHeight: 'lg' } }
|
|
12
|
+
},
|
|
13
|
+
h3: {
|
|
14
|
+
value: {
|
|
15
|
+
fontSize: 'lg',
|
|
16
|
+
lineHeight: 'xl',
|
|
17
|
+
fontWeight: 'semiBold !important'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
h2: {
|
|
21
|
+
value: {
|
|
22
|
+
fontSize: 'xl',
|
|
23
|
+
lineHeight: 'md',
|
|
24
|
+
fontWeight: 'semiBold !important'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
h1: {
|
|
28
|
+
value: {
|
|
29
|
+
fontSize: '2xl',
|
|
30
|
+
lineHeight: 'sm',
|
|
31
|
+
fontWeight: 'semiBold !important'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
})
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const colors = defineTokens.colors({
|
|
4
|
+
currentcolor: {
|
|
5
|
+
value: 'currentcolor',
|
|
6
|
+
description: 'Need to add this for Icon usage'
|
|
7
|
+
},
|
|
8
|
+
dark: { value: '#232933', description: 'Default or primary text color' },
|
|
9
|
+
white: {
|
|
10
|
+
value: '#FFFFFF',
|
|
11
|
+
description: 'Background color in components such as Card, Modal, and Popover'
|
|
12
|
+
},
|
|
13
|
+
background: { value: '#F1F5F9', description: 'For use as background page' },
|
|
14
|
+
overlay: {
|
|
15
|
+
value: 'rgba(22, 26, 32, 0.8)',
|
|
16
|
+
description: 'For use as overlay'
|
|
17
|
+
},
|
|
18
|
+
brand: {
|
|
19
|
+
capital: { value: '#2F5573', description: 'Mekari Capital' },
|
|
20
|
+
esign: { value: '#00C853', description: 'Mekari e-Sign' },
|
|
21
|
+
expense: { value: '#183883', description: 'Mekari Expense' },
|
|
22
|
+
flex: { value: '#7C4DFF', description: 'Mekari Flex' },
|
|
23
|
+
jurnal: { value: '#40C3FF', description: 'Mekari Jurnal' },
|
|
24
|
+
klikpajak: { value: '#FF9100', description: 'Mekari Klikpajak' },
|
|
25
|
+
mekari: { value: '#651FFF', description: 'Mekari' },
|
|
26
|
+
qontak: { value: '#2979FF', description: 'Mekari Qontak' },
|
|
27
|
+
talenta: { value: '#F22929', description: 'Mekari Talenta' },
|
|
28
|
+
university: { value: '#448AFF', description: 'Mekari University' }
|
|
29
|
+
},
|
|
30
|
+
whiteAlpha: {
|
|
31
|
+
50: { value: 'rgba(255, 255, 255, 0.04)' },
|
|
32
|
+
100: { value: 'rgba(255, 255, 255, 0.06)' },
|
|
33
|
+
200: { value: 'rgba(255, 255, 255, 0.08)' },
|
|
34
|
+
300: { value: 'rgba(255, 255, 255, 0.16)' },
|
|
35
|
+
400: { value: 'rgba(255, 255, 255, 0.24)' },
|
|
36
|
+
500: { value: 'rgba(255, 255, 255, 0.36)' },
|
|
37
|
+
600: { value: 'rgba(255, 255, 255, 0.48)' },
|
|
38
|
+
700: { value: 'rgba(255, 255, 255, 0.64)' },
|
|
39
|
+
800: { value: 'rgba(255, 255, 255, 0.80)' },
|
|
40
|
+
900: { value: 'rgba(255, 255, 255, 0.92)' }
|
|
41
|
+
},
|
|
42
|
+
blackAplpha: {
|
|
43
|
+
50: { value: 'rgba(0, 0, 0, 0.04)' },
|
|
44
|
+
100: { value: 'rgba(0, 0, 0, 0.06)' },
|
|
45
|
+
200: { value: 'rgba(0, 0, 0, 0.08)' },
|
|
46
|
+
300: { value: 'rgba(0, 0, 0, 0.16)' },
|
|
47
|
+
400: { value: 'rgba(0, 0, 0, 0.24)' },
|
|
48
|
+
500: { value: 'rgba(0, 0, 0, 0.36)' },
|
|
49
|
+
600: { value: 'rgba(0, 0, 0, 0.48)' },
|
|
50
|
+
700: { value: 'rgba(0, 0, 0, 0.64)' },
|
|
51
|
+
800: { value: 'rgba(0, 0, 0, 0.80)' },
|
|
52
|
+
900: { value: 'rgba(0, 0, 0, 0.92)' }
|
|
53
|
+
},
|
|
54
|
+
gray: {
|
|
55
|
+
25: {
|
|
56
|
+
value: '#F8F9FB',
|
|
57
|
+
description: 'Background color in table header component'
|
|
58
|
+
},
|
|
59
|
+
50: {
|
|
60
|
+
value: '#EDF0F2',
|
|
61
|
+
description: 'Disabled background color in components such as Input and Select backgrounds'
|
|
62
|
+
},
|
|
63
|
+
100: { value: '#D0D6DD', description: 'Default stroke color or divider' },
|
|
64
|
+
400: {
|
|
65
|
+
value: '#8B95A5',
|
|
66
|
+
description:
|
|
67
|
+
'Disabled and placeholder text color, icon or in components such as hover state Input, Select and stroke in Popover'
|
|
68
|
+
},
|
|
69
|
+
600: {
|
|
70
|
+
value: '#626B79',
|
|
71
|
+
description: 'Description text color and default color for outline icon'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
blue: {
|
|
75
|
+
50: { value: '#EAECFB' },
|
|
76
|
+
100: { value: '#D5DEFF' },
|
|
77
|
+
400: { value: '#4B61DD' },
|
|
78
|
+
500: { value: '#1C44D5' },
|
|
79
|
+
700: { value: '#0031BE' }
|
|
80
|
+
},
|
|
81
|
+
red: {
|
|
82
|
+
50: { value: '#FDECEE' },
|
|
83
|
+
400: { value: '#DA473F' },
|
|
84
|
+
500: { value: '#C83E39' },
|
|
85
|
+
700: { value: '#AB3129' }
|
|
86
|
+
},
|
|
87
|
+
green: {
|
|
88
|
+
50: { value: '#E8F5EB' },
|
|
89
|
+
400: { value: '#68BE79' },
|
|
90
|
+
500: { value: '#4FB262' },
|
|
91
|
+
700: { value: '#3C914D' }
|
|
92
|
+
},
|
|
93
|
+
orange: {
|
|
94
|
+
50: { value: '#FBF3DD' },
|
|
95
|
+
400: { value: '#E0AB00' },
|
|
96
|
+
500: { value: '#DE9400' },
|
|
97
|
+
700: { value: '#DB8000' }
|
|
98
|
+
},
|
|
99
|
+
sky: {
|
|
100
|
+
100: { value: '#60A5FA' },
|
|
101
|
+
400: { value: '#3B82F6' }
|
|
102
|
+
},
|
|
103
|
+
teal: {
|
|
104
|
+
100: { value: '#2DD4BF' },
|
|
105
|
+
400: { value: '#14B8A6' }
|
|
106
|
+
},
|
|
107
|
+
violet: {
|
|
108
|
+
100: { value: '#A78BFA' },
|
|
109
|
+
400: { value: '#8B5CF6' }
|
|
110
|
+
},
|
|
111
|
+
amber: {
|
|
112
|
+
100: { value: '#FBBF24' },
|
|
113
|
+
400: { value: '#F59E0B' }
|
|
114
|
+
},
|
|
115
|
+
rose: {
|
|
116
|
+
100: { value: '#F87171' },
|
|
117
|
+
400: { value: '#EF4444' }
|
|
118
|
+
},
|
|
119
|
+
stone: {
|
|
120
|
+
100: { value: '#A1A1AA' },
|
|
121
|
+
400: { value: '#71717A' }
|
|
122
|
+
},
|
|
123
|
+
lime: {
|
|
124
|
+
100: { value: '#A3E635' },
|
|
125
|
+
400: { value: '#84CC16' }
|
|
126
|
+
},
|
|
127
|
+
pink: {
|
|
128
|
+
100: { value: '#F472B6' },
|
|
129
|
+
400: { value: '#EC4899' }
|
|
130
|
+
},
|
|
131
|
+
apricot: {
|
|
132
|
+
100: { value: '#FB923C' },
|
|
133
|
+
400: { value: '#F97316' }
|
|
134
|
+
},
|
|
135
|
+
aqua: {
|
|
136
|
+
100: { value: '#22D3EE' },
|
|
137
|
+
400: { value: '#06B6D4' }
|
|
138
|
+
},
|
|
139
|
+
leaf: {
|
|
140
|
+
100: { value: '#4ADE80' },
|
|
141
|
+
400: { value: '#22C55E' }
|
|
142
|
+
},
|
|
143
|
+
fuchsia: {
|
|
144
|
+
100: { value: '#E879F9' },
|
|
145
|
+
400: { value: '#D946EF' }
|
|
146
|
+
},
|
|
147
|
+
ice: {
|
|
148
|
+
50: { value: '#E0EEFF' },
|
|
149
|
+
100: { value: '#B4D3F2' }
|
|
150
|
+
},
|
|
151
|
+
ash: {
|
|
152
|
+
100: { value: '#E7EDF5' }
|
|
153
|
+
}
|
|
154
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev'
|
|
2
|
+
import { borders } from './borders'
|
|
3
|
+
import { colors } from './colors'
|
|
4
|
+
import { durations } from './durations'
|
|
5
|
+
import { opacity } from './opacity'
|
|
6
|
+
import { radii } from './radii'
|
|
7
|
+
import { shadows } from './shadows'
|
|
8
|
+
import { sizes } from './sizes'
|
|
9
|
+
import { spacing } from './spacing'
|
|
10
|
+
import { zIndex } from './z-index'
|
|
11
|
+
import { fonts, fontSizes, fontWeights, lineHeights, letterSpacings } from './typography'
|
|
12
|
+
|
|
13
|
+
export const tokens = defineTokens({
|
|
14
|
+
borders,
|
|
15
|
+
colors,
|
|
16
|
+
durations,
|
|
17
|
+
fonts,
|
|
18
|
+
fontSizes,
|
|
19
|
+
fontWeights,
|
|
20
|
+
lineHeights,
|
|
21
|
+
letterSpacings,
|
|
22
|
+
opacity,
|
|
23
|
+
radii,
|
|
24
|
+
shadows,
|
|
25
|
+
sizes,
|
|
26
|
+
spacing,
|
|
27
|
+
zIndex
|
|
28
|
+
})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const radii = defineTokens.radii({
|
|
4
|
+
none: { value: '0' },
|
|
5
|
+
xs: { value: '0.125rem', description: '2px' },
|
|
6
|
+
sm: { value: '0.25rem', description: '4px' },
|
|
7
|
+
md: { value: '0.375rem', description: '6px' },
|
|
8
|
+
lg: { value: '0.5rem', description: '8px' },
|
|
9
|
+
xl: { value: '0.75rem', description: '12px' },
|
|
10
|
+
full: { value: '50%' }
|
|
11
|
+
})
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const shadows = defineTokens.shadows({
|
|
4
|
+
xs: {
|
|
5
|
+
value: ['0px 0px 2px 0px rgba(0, 0, 0, 0.12)', '0px 2px 4px 0px rgba(0, 0, 0, 0.14)']
|
|
6
|
+
},
|
|
7
|
+
sm: {
|
|
8
|
+
value: ['0px 4px 6px -2px rgba(0, 0, 0, 0.05)', '0px 10px 15px -3px rgba(0, 0, 0, 0.10)']
|
|
9
|
+
},
|
|
10
|
+
md: {
|
|
11
|
+
value: ['0px 10px 10px -5px rgba(0, 0, 0, 0.04)', '0px 20px 25px -5px rgba(0, 0, 0, 0.10)']
|
|
12
|
+
},
|
|
13
|
+
lg: {
|
|
14
|
+
value: ['0px 6px 16px 0px rgba(0, 0, 0, 0.08)', '0px 9px 28px 8px rgba(0, 0, 0, 0.05)']
|
|
15
|
+
},
|
|
16
|
+
focus: {
|
|
17
|
+
value: '0 0 0 3px rgba(224, 238, 255, 1)'
|
|
18
|
+
},
|
|
19
|
+
xl: {
|
|
20
|
+
value: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)'
|
|
21
|
+
},
|
|
22
|
+
'2xl': {
|
|
23
|
+
value: '0 25px 50px -12px rgba(0, 0, 0, 0.25)'
|
|
24
|
+
},
|
|
25
|
+
outline: {
|
|
26
|
+
value: '0 0 0 3px #E0EEFF'
|
|
27
|
+
},
|
|
28
|
+
'outline-tab': {
|
|
29
|
+
value: '0 0 0 2px #E0EEFF'
|
|
30
|
+
},
|
|
31
|
+
outer: {
|
|
32
|
+
value: '0 0 0 3px rgba(224, 238, 255, 1)'
|
|
33
|
+
},
|
|
34
|
+
inner: {
|
|
35
|
+
value: 'inset 0 2px 4px 0 rgba( 0, 0, 0, 0.06)'
|
|
36
|
+
},
|
|
37
|
+
none: {
|
|
38
|
+
value: 'none'
|
|
39
|
+
}
|
|
40
|
+
})
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const sizes = defineTokens.sizes({
|
|
4
|
+
0: { value: '0', description: '0px' },
|
|
5
|
+
0.25: { value: '0.0625rem', description: '1px' },
|
|
6
|
+
0.5: { value: '0.125rem', description: '2px' },
|
|
7
|
+
1: { value: '0.25rem', description: '4px' },
|
|
8
|
+
2: { value: '0.5rem', description: '8px' },
|
|
9
|
+
2.5: { value: '0.625rem', description: '10px' },
|
|
10
|
+
3: { value: '0.75rem', description: '12px' },
|
|
11
|
+
4: { value: '1rem', description: '16px' },
|
|
12
|
+
5: { value: '1.25rem', description: '20px' },
|
|
13
|
+
6: { value: '1.5rem', description: '24px' },
|
|
14
|
+
7: { value: '1.75rem', description: '28px' },
|
|
15
|
+
7.5: { value: '1.875rem', description: '30px' },
|
|
16
|
+
8: { value: '2rem', description: '32px' },
|
|
17
|
+
9: { value: '2.25rem', description: '36px' },
|
|
18
|
+
9.5: { value: '2.375rem', description: '38px' },
|
|
19
|
+
10: { value: '2.5rem', description: '40px' },
|
|
20
|
+
11: { value: '2.75rem', description: '44px' },
|
|
21
|
+
12: { value: '3rem', description: '48px' },
|
|
22
|
+
16: { value: '4rem', description: '64px' },
|
|
23
|
+
20: { value: '5rem', description: '80px' },
|
|
24
|
+
22: { value: '5.5rem', description: '96px' },
|
|
25
|
+
56: { value: '14rem', description: '224px' },
|
|
26
|
+
65: { value: '17.5rem', description: '280px' },
|
|
27
|
+
full: { value: '100%' },
|
|
28
|
+
sm: {value: '24rem'}
|
|
29
|
+
})
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const spacing = defineTokens.spacing({
|
|
4
|
+
0: { value: '0', description: '0px' },
|
|
5
|
+
0.5: { value: '0.125rem', description: '2px' },
|
|
6
|
+
1: { value: '0.25rem', description: '4px' },
|
|
7
|
+
1.5: { value: '0.375rem', description: '6px' },
|
|
8
|
+
2: { value: '0.5rem', description: '8px' },
|
|
9
|
+
3: { value: '0.75rem', description: '12px' },
|
|
10
|
+
4: { value: '1rem', description: '16px' },
|
|
11
|
+
5: { value: '1.3rem', description: '20px' },
|
|
12
|
+
6: { value: '1.5rem', description: '24px' },
|
|
13
|
+
8: { value: '2rem', description: '32px' },
|
|
14
|
+
12: { value: '3rem', description: '48px' },
|
|
15
|
+
16: { value: '4rem', description: '64px' },
|
|
16
|
+
20: { value: '5rem', description: '80px' },
|
|
17
|
+
24: { value: '6rem', description: '96px' },
|
|
18
|
+
32: { value: '8rem', description: '128px' },
|
|
19
|
+
40: { value: '10rem', description: '160px' },
|
|
20
|
+
64: { value: '16rem', description: '256px' }
|
|
21
|
+
})
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const fonts = defineTokens.fonts({
|
|
4
|
+
body: {
|
|
5
|
+
value:
|
|
6
|
+
'"inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
7
|
+
},
|
|
8
|
+
mono: {
|
|
9
|
+
value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
export const fontSizes = defineTokens.fontSizes({
|
|
14
|
+
xs: { value: '0.625rem', description: '10px' },
|
|
15
|
+
sm: { value: '0.75rem', description: '12px' },
|
|
16
|
+
md: { value: '0.875rem', description: '14px' },
|
|
17
|
+
lg: { value: '1rem', description: '16px' },
|
|
18
|
+
xl: { value: '1.25rem', description: '20px' },
|
|
19
|
+
'2xl': { value: '1.5rem', description: '24px' }
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export const fontWeights = defineTokens.fontWeights({
|
|
23
|
+
regular: { value: '400' },
|
|
24
|
+
semiBold: { value: '600' },
|
|
25
|
+
bold: { value: '800' }
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
export const lineHeights = defineTokens.lineHeights({
|
|
29
|
+
xs: { value: 1.2, description: '12px/10px' },
|
|
30
|
+
sm: { value: 1.34, description: '16px/12px or 32px/24px' },
|
|
31
|
+
md: { value: 1.4, description: '28px/20px' },
|
|
32
|
+
lg: { value: 1.429, description: '20px/14px' },
|
|
33
|
+
xl: { value: 1.5, description: '24px/16px' },
|
|
34
|
+
'2xl': { value: 1.67, description: '20px/12px' },
|
|
35
|
+
'3xl': { value: 1.71, description: '24px/14px' }
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
export const letterSpacings = defineTokens.letterSpacings({
|
|
39
|
+
tighter: { value: '-0.05em' },
|
|
40
|
+
tight: { value: '-0.025em' },
|
|
41
|
+
normal: { value: '0' },
|
|
42
|
+
wide: { value: '0.025em' },
|
|
43
|
+
wider: { value: '0.05em' },
|
|
44
|
+
widest: { value: '0.1em' }
|
|
45
|
+
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const zIndex = defineTokens.zIndex({
|
|
4
|
+
hide: { value: -1 },
|
|
5
|
+
base: { value: 0 },
|
|
6
|
+
docked: { value: 10 },
|
|
7
|
+
sticky: { value: 1100 },
|
|
8
|
+
overlay: { value: 1300 },
|
|
9
|
+
modal: { value: 1400 },
|
|
10
|
+
popover: { value: 1500 },
|
|
11
|
+
tooltip: { value: 1800 }
|
|
12
|
+
})
|