@mailstep/design-system 0.0.0

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.
Files changed (51) hide show
  1. package/.eslintrc.cjs +16 -0
  2. package/.storybook/main.ts +17 -0
  3. package/.storybook/preview.ts +20 -0
  4. package/.storybook/withRouter.tsx +12 -0
  5. package/.storybook/withTheme.tsx +23 -0
  6. package/README.md +0 -0
  7. package/package.json +52 -0
  8. package/public/vite.svg +1 -0
  9. package/src/packages/ui/Elements/Button/Button.d.ts +4 -0
  10. package/src/packages/ui/Elements/Button/Button.tsx +42 -0
  11. package/src/packages/ui/Elements/Button/index.d.ts +6 -0
  12. package/src/packages/ui/Elements/Button/index.ts +5 -0
  13. package/src/packages/ui/Elements/Button/stories/Button.stories.ts +84 -0
  14. package/src/packages/ui/Elements/Button/styles.ts +289 -0
  15. package/src/packages/ui/Elements/Button/types.ts +31 -0
  16. package/src/packages/ui/Elements/Icon/BadgeIcon.tsx +45 -0
  17. package/src/packages/ui/Elements/Icon/Icon.tsx +288 -0
  18. package/src/packages/ui/Elements/Icon/icons/FlagCZ.tsx +10 -0
  19. package/src/packages/ui/Elements/Icon/icons/FlagUSA.tsx +27 -0
  20. package/src/packages/ui/Elements/Icon/icons/index.ts +2 -0
  21. package/src/packages/ui/Elements/Icon/index.d.ts +9 -0
  22. package/src/packages/ui/Elements/Icon/index.ts +6 -0
  23. package/src/packages/ui/Elements/Icon/stories/BadgeIcon.stories.tsx +27 -0
  24. package/src/packages/ui/Elements/Icon/stories/Icon.stories.tsx +60 -0
  25. package/src/packages/ui/Elements/Icon/types.ts +26 -0
  26. package/src/packages/ui/Elements/Spinner/README.md +9 -0
  27. package/src/packages/ui/Elements/Spinner/Spinner.tsx +36 -0
  28. package/src/packages/ui/Elements/Spinner/index.d.ts +5 -0
  29. package/src/packages/ui/Elements/Spinner/index.ts +3 -0
  30. package/src/packages/ui/Elements/Spinner/stories/Spinner.stories.ts +70 -0
  31. package/src/packages/ui/Elements/Spinner/styles.ts +38 -0
  32. package/src/packages/ui/Elements/Spinner/types.ts +8 -0
  33. package/src/packages/ui/Elements/Spinner/yarn.lock +4 -0
  34. package/src/packages/ui/ThemeProvider/README.md +0 -0
  35. package/src/packages/ui/ThemeProvider/ThemeProvider.d.ts +3 -0
  36. package/src/packages/ui/ThemeProvider/ThemeProvider.tsx +14 -0
  37. package/src/packages/ui/ThemeProvider/index.d.ts +8 -0
  38. package/src/packages/ui/ThemeProvider/index.ts +6 -0
  39. package/src/packages/ui/ThemeProvider/themes/default.ts +144 -0
  40. package/src/packages/ui/ThemeProvider/themes/index.ts +11 -0
  41. package/src/packages/ui/ThemeProvider/themes/light.ts +10 -0
  42. package/src/packages/ui/ThemeProvider/themes/mailwise.ts +215 -0
  43. package/src/packages/ui/ThemeProvider/types.ts +54 -0
  44. package/src/packages/ui/ThemeProvider/yarn.lock +4 -0
  45. package/src/stories/themes/default.ts +144 -0
  46. package/src/stories/themes/index.ts +11 -0
  47. package/src/stories/themes/light.ts +10 -0
  48. package/src/stories/themes/mailwise.ts +215 -0
  49. package/tsconfig.json +25 -0
  50. package/tsconfig.node.json +10 -0
  51. package/vite.config.ts +7 -0
@@ -0,0 +1,14 @@
1
+ import { ThemeProvider, Preflight } from '@xstyled/styled-components'
2
+ import themes from './themes'
3
+ import { Props } from './types'
4
+
5
+ const MailstepThemeProvider = ({ children, theme = 'default', preflight = true }: Props) => {
6
+ return (
7
+ <ThemeProvider theme={themes[theme]}>
8
+ {preflight && <Preflight />}
9
+ {children}
10
+ </ThemeProvider>
11
+ )
12
+ }
13
+
14
+ export default MailstepThemeProvider
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react'
2
+ import { Props, Color, Theme, Themes } from './types'
3
+
4
+ declare const ThemeProvider: FC<Props>
5
+ declare const themes: Themes
6
+
7
+ export { Color, Theme, Themes, themes }
8
+ export default ThemeProvider
@@ -0,0 +1,6 @@
1
+ import ThemeProvider from './ThemeProvider'
2
+ import themes from './themes'
3
+
4
+ export * from './types'
5
+ export { themes }
6
+ export default ThemeProvider
@@ -0,0 +1,144 @@
1
+ const defaultTheme = {
2
+ breakpoints: ['0'],
3
+ colors: {
4
+ white: '#FFFFFF',
5
+ bgLightGray: '#FAFBFC',
6
+ bgLightGray1: '#F1F5F9',
7
+ lightGray1: '#F5F7FA',
8
+ lightGray2: '#EFF3F8',
9
+ lightGray3: '#D4D8DE',
10
+ lightGray4: '#B9BFC9',
11
+ lightGray5: '#A3B3C1',
12
+ lightGray6: '#D2D8DF',
13
+ lightGray7: '#E7EBEF',
14
+ neutral20: '#F1F5F9',
15
+ neutral300: '#5E6C84',
16
+ gray: '#8594A5',
17
+ gray1: '#7A90A1',
18
+ gray2: '#9AA1A7',
19
+ gray3: '#5F6C76',
20
+ gray4: '#455665',
21
+ gray5: '#647483',
22
+ blue1: '#2C4052',
23
+ blue2: '#22394E',
24
+ blue3: '#162C3F',
25
+ blue4: '#0C1F2F',
26
+ textPrimary: '#091E42',
27
+ textTertiary: '#7A869A',
28
+ typoPrimary: '#22394E',
29
+ blue10: '#F3F9FF',
30
+ blue20: '#DCEFFF',
31
+ blue60: '#0065FF',
32
+ blue70: '#0052CC',
33
+ blue80: '#0747A6',
34
+ blue90: '#1d3557',
35
+ teal20: '#E6FCFF',
36
+ teal40: '#a8dadc',
37
+ teal50: '#1aa1a7',
38
+ teal60: '#00B1D0',
39
+ teal70: '#1aa1da',
40
+ teal80: '#06718C',
41
+ teal90: '#035361',
42
+ green10: '#F2FFF5',
43
+ green20: '#DEFBE6',
44
+ green30: '#b8ecb8',
45
+ green50: '#81dd91',
46
+ green60: '#00A445',
47
+ green70: '#06d6a0',
48
+ green80: '#0E6027',
49
+ green90: '#067164',
50
+ green: '#13CE62',
51
+ successColor: '#24A148',
52
+ darkGreen: '#00A445',
53
+ orange20: '#FFF3E0',
54
+ orange30: '#FFE6CC',
55
+ orange50: '#ff9f43',
56
+ orange60: '#FF9800',
57
+ orange80: '#9E4800',
58
+ yellow10: '#FFFDE8',
59
+ yellow20: '#FFF9C4',
60
+ yellow60: '#FFE600',
61
+ yellow70: '#FFD702',
62
+ yellow1: '#FFD702',
63
+ yellow2: '#F2E871',
64
+ red10: '#FFF6F4',
65
+ red20: '#FFEBE6',
66
+ red30: '#fec1cb',
67
+ red50: '#ff7c7b',
68
+ red1: '#DB2B19',
69
+ red2: '#E94324',
70
+ red3: '#991E12',
71
+ red60: '#DB2B19',
72
+ red80: '#B71C1C',
73
+ dangerColor: '#E32C1E',
74
+ purple20: '#F0EDFF',
75
+ purple40: '#0072A0',
76
+ purple50: '#4573B3',
77
+ purple60: '#6554C0',
78
+ purple80: '#403294',
79
+ purple90: '#03235f',
80
+ magenta20: '#FCF1F7',
81
+ magenta60: '#EE5396',
82
+ magenta80: '#9F1853',
83
+ magenta90: '#872e8b',
84
+ },
85
+ fonts: {
86
+ primary: 'Inter, sans-serif',
87
+ heading: 'Inter, sans-serif',
88
+ },
89
+ fontLinks: ['https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'],
90
+ fontSizes: ['10px', '12px', '14px', '16px', '18px', '21px', '24px', '32px'],
91
+ lineHeights: [1.7],
92
+ fontWeights: {
93
+ default: null,
94
+ normal: 400,
95
+ medium: 500,
96
+ semiBold: 600,
97
+ bold: 700,
98
+ },
99
+ letterSpacings: {
100
+ default: null,
101
+ sm: '2px',
102
+ md: '4px',
103
+ lg: '8px',
104
+ },
105
+ borders: {
106
+ slim: '1px solid',
107
+ mediumSlim: '2px solid',
108
+ medium: '3px solid',
109
+ mediumThick: '6px solid',
110
+ thick: '10px solid',
111
+ },
112
+ // ...........................
113
+ radii: {
114
+ sm: '2px',
115
+ md: '4px',
116
+ ml: '6px',
117
+ lg: '8px',
118
+ xl: '16px',
119
+ },
120
+ shadows: {
121
+ boxShadow: '0px 5px 60px rgba(0, 0, 0, 0.1)',
122
+ dropShadow: '0px 5px 40px rgba(0, 0, 0, 0.1)',
123
+ inputFocusBoxShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
124
+ dropdownMenuShadow: '0 5px 25px rgba(0, 0, 0, 0.1)',
125
+ tooltipBoxShadow: '0px 2px 20px rgba(0, 0, 0, 0.1)',
126
+ cardShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
127
+ smooth: '0px 4px 25px 0px #0000001a',
128
+ // redesign:
129
+ dialogShadow: '1px 4px 7px rgba(0, 0, 0, 0.4)',
130
+ tooltipShadow: '0px 1px 4px 0 #B1B8C3', // color is grayIII
131
+ headerShadow: '1px 2px 3px #00000029',
132
+ headerShadowB: '1px 1px 3px #00000029',
133
+ headerShadowNotifications: '1px 1px 2px #00000029',
134
+ cornerDialogShadow: '1px 1px 3px 1px #00000029',
135
+ },
136
+ space: [0, 4, 8, 16, 24, 48, 96, 144, 192, 240], // same as xstyled default
137
+ transitions: {
138
+ simpleLong: 'all 2s',
139
+ inputTransition: 'border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out',
140
+ },
141
+ zIndices: [0, 1, 2, 3, 5, 30, 40, 100, 200, 300, 9999],
142
+ }
143
+
144
+ export default defaultTheme
@@ -0,0 +1,11 @@
1
+ import defaultTheme from './default'
2
+ import light from './light'
3
+ import mailwise from './mailwise'
4
+
5
+ const themes = {
6
+ default: defaultTheme,
7
+ light: light,
8
+ mailwise: mailwise
9
+ }
10
+
11
+ export default themes
@@ -0,0 +1,10 @@
1
+ import { Theme } from "../types";
2
+
3
+ const lightTheme: Theme = {
4
+ colors: {
5
+ primary: "#219615",
6
+ warning: "purple",
7
+ },
8
+ };
9
+
10
+ export default lightTheme;
@@ -0,0 +1,215 @@
1
+ const defaultTheme = {
2
+ screens: {
3
+ // same as xstyled default
4
+ _: 0,
5
+ xs: 479,
6
+ sm: 721,
7
+ md: 768,
8
+ lg: 1024,
9
+ xl: 1280,
10
+ '2xl': 1536,
11
+ },
12
+ colors: {
13
+ white: '#fff',
14
+ bgLightGray: '#FAFBFC',
15
+ bgLightGray1: '#F1F5F9',
16
+ lightGray1: '#F5F7FA',
17
+ lightGray2: '#EFF3F8',
18
+ lightGray3: '#D4D8DE',
19
+ lightGray4: '#B9BFC9',
20
+ lightGray5: '#A3B3C1',
21
+ lightGray6: '#D2D8DF',
22
+ lightGray7: '#E7EBEF',
23
+ neutral20: '#F1F5F9',
24
+ gray: '#8594A5',
25
+ gray1: '#7A90A1',
26
+ gray2: '#9AA1A7',
27
+ gray3: '#5F6C76',
28
+ gray4: '#455665',
29
+ gray5: '#647483',
30
+ neutral300: '#5E6C84',
31
+ blue1: '#2C4052',
32
+ blue2: '#22394E',
33
+ blue3: '#162C3F',
34
+ blue4: '#0C1F2F',
35
+ textPrimary: '#091E42',
36
+ typoPrimary: '#22394E',
37
+ blue10: '#F3F9FF',
38
+ blue20: '#dcf2ff',
39
+ blue60: '#0065FF',
40
+ blue70: '#0052CC',
41
+ blue80: '#0747A6',
42
+ blue90: '#1d3557',
43
+ teal20: '#E6FCFF',
44
+ teal40: '#a8dadc',
45
+ teal50: '#1aa1a7',
46
+ teal60: '#00B1D0',
47
+ teal70: '#1aa1da',
48
+ teal80: '#06718C',
49
+ teal90: '#035361',
50
+ green10: '#F2FFF5',
51
+ green20: '#DEFBE6',
52
+ green30: '#b8ecb8',
53
+ green50: '#81dd91',
54
+ green60: '#00A445',
55
+ green70: '#06d6a0',
56
+ green80: '#0E6027',
57
+ green90: '#067164',
58
+ green: '#13CE62',
59
+ successColor: '#24A148',
60
+ darkGreen: '#00A445',
61
+ orange20: '#FFF3E0',
62
+ orange30: '#FFE6CC',
63
+ orange50: '#ff9f43',
64
+ orange60: '#FF9800',
65
+ orange80: '#9E4800',
66
+ yellow10: '#FFFDE8',
67
+ yellow20: '#FFF9C4',
68
+ yellow60: '#FFE600',
69
+ yellow70: '#FFD702',
70
+ yellow1: '#FFD702',
71
+ yellow2: '#F2E871',
72
+ red10: '#FFF6F4',
73
+ red20: '#FFEBE6',
74
+ red30: '#fec1cb',
75
+ red50: '#ff7c7b',
76
+ red1: '#DB2B19',
77
+ red2: '#E94324',
78
+ red3: '#991E12',
79
+ red60: '#DB2B19',
80
+ red80: '#B71C1C',
81
+ dangerColor: '#E32C1E',
82
+ purple20: '#F0EDFF',
83
+ purple40: '#0072A0',
84
+ purple50: '#4573B3',
85
+ purple60: '#6554C0',
86
+ purple80: '#403294',
87
+ purple90: '#03235f',
88
+ magenta20: '#FCF1F7',
89
+ magenta60: '#EE5396',
90
+ magenta80: '#9F1853',
91
+ magenta90: '#872e8b',
92
+ primary: '#626262',
93
+ black: '#333333',
94
+ error: '#ea5455',
95
+ secondary: '#E15B63',
96
+ },
97
+ fonts: {
98
+ primary: 'Inter, sans-serif',
99
+ heading: 'Inter, sans-serif',
100
+ },
101
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
102
+ // @ts-ignore
103
+ fontSizes: ['0rem', '0.87rem', '1rem', '1.25rem', '1.5rem', '1.8rem', '2.0rem', '2.4rem', '2.8rem', '3.5rem', '4rem'],
104
+ // @ts-ignore
105
+ lineHeights: {
106
+ none: 1.2,
107
+ tight: 1.2,
108
+ snug: 1.2,
109
+ normal: 1.2,
110
+ relaxed: 1.2,
111
+ loose: 1.2,
112
+ 3: '1.2',
113
+ 4: '1.2',
114
+ 5: '1.2',
115
+ 6: '1.2',
116
+ 7: '1.2',
117
+ 8: '1.2',
118
+ 9: '1.2',
119
+ 10: '1.2',
120
+ },
121
+ fontWeights: {
122
+ normal: 400,
123
+ medium: 500,
124
+ semiBold: 600,
125
+ bold: 700,
126
+ },
127
+ letterSpacings: {
128
+ tighter: '2',
129
+ tight: '2',
130
+ normal: '4',
131
+ wide: '8',
132
+ wider: '8',
133
+ widest: '8',
134
+ },
135
+ borders: {
136
+ slim: '1px solid',
137
+ mediumSlim: '2px solid',
138
+ medium: '3px solid',
139
+ mediumThick: '6px solid',
140
+ thick: '10px solid',
141
+ },
142
+ radii: {
143
+ none: '2px',
144
+ sm: '5px',
145
+ default: '10px',
146
+ md: '20px',
147
+ lg: '20px',
148
+ xl: '20px',
149
+ '2xl': '20px',
150
+ '3xl': '20px',
151
+ full: '20px',
152
+ },
153
+ shadows: {
154
+ boxShadow: '0px 5px 60px rgba(0, 0, 0, 0.1)',
155
+ dropShadow: '0px 5px 40px rgba(0, 0, 0, 0.1)',
156
+ inputFocusBoxShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
157
+ dropdownMenuShadow: '0 5px 25px rgba(0, 0, 0, 0.1)',
158
+ tooltipBoxShadow: '0px 2px 20px rgba(0, 0, 0, 0.1)',
159
+ cardShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
160
+ smooth: '0px 4px 25px 0px #0000001a',
161
+ // redesign:
162
+ dialogShadow: '1px 4px 7px rgba(0, 0, 0, 0.4)',
163
+ tooltipShadow: '0px 1px 4px 0 #B1B8C3', // color is grayIII
164
+ headerShadow: '1px 2px 3px #00000029',
165
+ headerShadowB: '1px 1px 3px #00000029',
166
+ headerShadowNotifications: '1px 1px 2px #00000029',
167
+ cornerDialogShadow: '1px 1px 3px 1px #00000029',
168
+ },
169
+ space: {
170
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
171
+ // @ts-ignore
172
+ px: '1px',
173
+ 0: '0',
174
+ 0.5: '0.125rem',
175
+ 1: '0.25rem',
176
+ 1.5: '0.375rem',
177
+ 2: '0.5rem',
178
+ 2.5: '0.625rem',
179
+ 3: '0.75rem',
180
+ 3.5: '0.875rem',
181
+ 4: '1rem',
182
+ 5: '1.25rem',
183
+ 6: '1.5rem',
184
+ 7: '1.75rem',
185
+ 8: '2rem',
186
+ 9: '2.25rem',
187
+ 10: '2.5rem',
188
+ 11: '2.75rem',
189
+ 12: '3rem',
190
+ 14: '3.5rem',
191
+ 16: '4rem',
192
+ 20: '5rem',
193
+ 24: '6rem',
194
+ 28: '7rem',
195
+ 32: '8rem',
196
+ 36: '9rem',
197
+ 40: '10rem',
198
+ 44: '11rem',
199
+ 48: '12rem',
200
+ 52: '13rem',
201
+ 56: '14rem',
202
+ 60: '15rem',
203
+ 64: '16rem',
204
+ 72: '18rem',
205
+ 80: '20rem',
206
+ 96: '24rem',
207
+ },
208
+ transitions: {
209
+ simpleLong: 'all 2s',
210
+ inputTransition: 'border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out',
211
+ },
212
+ zIndices: [0, 1, 2, 3, 5, 30, 40, 100, 200, 300, 9999],
213
+ }
214
+
215
+ export default defaultTheme
@@ -0,0 +1,54 @@
1
+ import React from 'react'
2
+
3
+ export type Color = {
4
+ [key: string]: string
5
+ }
6
+
7
+ export type Theme = {
8
+ breakpoints?: {
9
+ xs: number
10
+ sm: number
11
+ md: number
12
+ lg: number
13
+ xl: number
14
+ }
15
+ colors?: {
16
+ [key: string]: string | Color
17
+ }
18
+ fonts?: {
19
+ [key: string]: string
20
+ }
21
+ fontLinks?: string[]
22
+ fontSizes?: string[]
23
+ fontWeights?: {
24
+ [key: string]: number | null
25
+ }
26
+ letterSpacings?: {
27
+ [key: string]: string | null
28
+ }
29
+ borders?: {
30
+ [key: string]: string
31
+ }
32
+ radii?: {
33
+ [key: string]: string
34
+ }
35
+ shadows?: {
36
+ [key: string]: string
37
+ }
38
+ spaces?: number[]
39
+ lineHeights?: number[]
40
+ transitions?: {
41
+ [key: string]: string
42
+ }
43
+ zIndices?: number[]
44
+ }
45
+
46
+ export type Themes = {
47
+ [key: string]: Theme
48
+ }
49
+
50
+ export interface Props {
51
+ children: React.ReactNode
52
+ theme: 'default' | 'light' | 'mailwise'
53
+ preflight?: boolean
54
+ }
@@ -0,0 +1,4 @@
1
+ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ # yarn lockfile v1
3
+
4
+
@@ -0,0 +1,144 @@
1
+ const defaultTheme = {
2
+ breakpoints: ['0'],
3
+ colors: {
4
+ white: '#FFFFFF',
5
+ bgLightGray: '#FAFBFC',
6
+ bgLightGray1: '#F1F5F9',
7
+ lightGray1: '#F5F7FA',
8
+ lightGray2: '#EFF3F8',
9
+ lightGray3: '#D4D8DE',
10
+ lightGray4: '#B9BFC9',
11
+ lightGray5: '#A3B3C1',
12
+ lightGray6: '#D2D8DF',
13
+ lightGray7: '#E7EBEF',
14
+ neutral20: '#F1F5F9',
15
+ neutral300: '#5E6C84',
16
+ gray: '#8594A5',
17
+ gray1: '#7A90A1',
18
+ gray2: '#9AA1A7',
19
+ gray3: '#5F6C76',
20
+ gray4: '#455665',
21
+ gray5: '#647483',
22
+ blue1: '#2C4052',
23
+ blue2: '#22394E',
24
+ blue3: '#162C3F',
25
+ blue4: '#0C1F2F',
26
+ textPrimary: '#091E42',
27
+ textTertiary: '#7A869A',
28
+ typoPrimary: '#22394E',
29
+ blue10: '#F3F9FF',
30
+ blue20: '#DCEFFF',
31
+ blue60: '#0065FF',
32
+ blue70: '#0052CC',
33
+ blue80: '#0747A6',
34
+ blue90: '#1d3557',
35
+ teal20: '#E6FCFF',
36
+ teal40: '#a8dadc',
37
+ teal50: '#1aa1a7',
38
+ teal60: '#00B1D0',
39
+ teal70: '#1aa1da',
40
+ teal80: '#06718C',
41
+ teal90: '#035361',
42
+ green10: '#F2FFF5',
43
+ green20: '#DEFBE6',
44
+ green30: '#b8ecb8',
45
+ green50: '#81dd91',
46
+ green60: '#00A445',
47
+ green70: '#06d6a0',
48
+ green80: '#0E6027',
49
+ green90: '#067164',
50
+ green: '#13CE62',
51
+ successColor: '#24A148',
52
+ darkGreen: '#00A445',
53
+ orange20: '#FFF3E0',
54
+ orange30: '#FFE6CC',
55
+ orange50: '#ff9f43',
56
+ orange60: '#FF9800',
57
+ orange80: '#9E4800',
58
+ yellow10: '#FFFDE8',
59
+ yellow20: '#FFF9C4',
60
+ yellow60: '#FFE600',
61
+ yellow70: '#FFD702',
62
+ yellow1: '#FFD702',
63
+ yellow2: '#F2E871',
64
+ red10: '#FFF6F4',
65
+ red20: '#FFEBE6',
66
+ red30: '#fec1cb',
67
+ red50: '#ff7c7b',
68
+ red1: '#DB2B19',
69
+ red2: '#E94324',
70
+ red3: '#991E12',
71
+ red60: '#DB2B19',
72
+ red80: '#B71C1C',
73
+ dangerColor: '#E32C1E',
74
+ purple20: '#F0EDFF',
75
+ purple40: '#0072A0',
76
+ purple50: '#4573B3',
77
+ purple60: '#6554C0',
78
+ purple80: '#403294',
79
+ purple90: '#03235f',
80
+ magenta20: '#FCF1F7',
81
+ magenta60: '#EE5396',
82
+ magenta80: '#9F1853',
83
+ magenta90: '#872e8b',
84
+ },
85
+ fonts: {
86
+ primary: 'Inter, sans-serif',
87
+ heading: 'Inter, sans-serif',
88
+ },
89
+ fontLinks: ['https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'],
90
+ fontSizes: ['10px', '12px', '14px', '16px', '18px', '21px', '24px', '32px'],
91
+ lineHeights: [1.7],
92
+ fontWeights: {
93
+ default: null,
94
+ normal: 400,
95
+ medium: 500,
96
+ semiBold: 600,
97
+ bold: 700,
98
+ },
99
+ letterSpacings: {
100
+ default: null,
101
+ sm: '2px',
102
+ md: '4px',
103
+ lg: '8px',
104
+ },
105
+ borders: {
106
+ slim: '1px solid',
107
+ mediumSlim: '2px solid',
108
+ medium: '3px solid',
109
+ mediumThick: '6px solid',
110
+ thick: '10px solid',
111
+ },
112
+ // ...........................
113
+ radii: {
114
+ sm: '2px',
115
+ md: '4px',
116
+ ml: '6px',
117
+ lg: '8px',
118
+ xl: '16px',
119
+ },
120
+ shadows: {
121
+ boxShadow: '0px 5px 60px rgba(0, 0, 0, 0.1)',
122
+ dropShadow: '0px 5px 40px rgba(0, 0, 0, 0.1)',
123
+ inputFocusBoxShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
124
+ dropdownMenuShadow: '0 5px 25px rgba(0, 0, 0, 0.1)',
125
+ tooltipBoxShadow: '0px 2px 20px rgba(0, 0, 0, 0.1)',
126
+ cardShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
127
+ smooth: '0px 4px 25px 0px #0000001a',
128
+ // redesign:
129
+ dialogShadow: '1px 4px 7px rgba(0, 0, 0, 0.4)',
130
+ tooltipShadow: '0px 1px 4px 0 #B1B8C3', // color is grayIII
131
+ headerShadow: '1px 2px 3px #00000029',
132
+ headerShadowB: '1px 1px 3px #00000029',
133
+ headerShadowNotifications: '1px 1px 2px #00000029',
134
+ cornerDialogShadow: '1px 1px 3px 1px #00000029',
135
+ },
136
+ space: [0, 4, 8, 16, 24, 48, 96, 144, 192, 240], // same as xstyled default
137
+ transitions: {
138
+ simpleLong: 'all 2s',
139
+ inputTransition: 'border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out',
140
+ },
141
+ zIndices: [0, 1, 2, 3, 5, 30, 40, 100, 200, 300, 9999],
142
+ }
143
+
144
+ export default defaultTheme
@@ -0,0 +1,11 @@
1
+ import defaultTheme from './default'
2
+ import light from './light'
3
+ import mailwise from './mailwise'
4
+
5
+ const themes = {
6
+ default: defaultTheme,
7
+ light: light,
8
+ mailwise: mailwise
9
+ }
10
+
11
+ export default themes
@@ -0,0 +1,10 @@
1
+ import { Theme } from "../types";
2
+
3
+ const lightTheme: Theme = {
4
+ colors: {
5
+ primary: "#219615",
6
+ warning: "purple",
7
+ },
8
+ };
9
+
10
+ export default lightTheme;