ctms-common-components 1.0.1
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/.babelrc +3 -0
- package/.czrc +3 -0
- package/.github/CODEOWNERS +1 -0
- package/.github/workflows/cd.yml +38 -0
- package/.github/workflows/ci.yml +29 -0
- package/.storybook/main.js +22 -0
- package/.storybook/preview.js +14 -0
- package/CHANGELOG.md +11 -0
- package/README.md +1 -0
- package/dist/index.js.LICENSE.txt +50 -0
- package/package.json +58 -0
- package/public/fonts/lato-latin.woff2 +0 -0
- package/public/index.html +17 -0
- package/src/assets/components/index.css +3 -0
- package/src/assets/components/index.jsx +607 -0
- package/src/assets/pngs/background-logo.png +0 -0
- package/src/assets/pngs/logo.png +0 -0
- package/src/assets/styles/tailwind.css +3 -0
- package/src/assets/svgs/edit-icon.svg +12 -0
- package/src/assets/svgs/overflow-icon.svg +20 -0
- package/src/assets/svgs/tick-mark.svg +3 -0
- package/src/components/Button.jsx +50 -0
- package/src/components/Pagination/PaginationStyles.js +49 -0
- package/src/components/Pagination/index.jsx +85 -0
- package/src/components/PoojaCard/index.jsx +216 -0
- package/src/components/StatusCard/index.jsx +102 -0
- package/src/components/TokenCard/index.jsx +205 -0
- package/src/components/button.css +50 -0
- package/src/components/custom-Table/AdvancedTableBody.jsx +186 -0
- package/src/components/custom-Table/AdvancedTableHead.jsx +315 -0
- package/src/components/custom-Table/EllipsisCell.jsx +137 -0
- package/src/components/custom-Table/Loader.jsx +24 -0
- package/src/components/custom-Table/index.jsx +340 -0
- package/src/components/index.js +7 -0
- package/src/components/more-actions/MenuStyles.js +54 -0
- package/src/components/more-actions/index.jsx +50 -0
- package/src/index.jsx +11 -0
- package/src/lib.js +133 -0
- package/src/stories/AdvancedTable.stories.jsx +108 -0
- package/src/stories/Button.stories.js +45 -0
- package/src/stories/PoojaCard.stories.jsx +108 -0
- package/src/stories/StatusCard.stories.jsx +51 -0
- package/src/stories/TokenCard.stories.jsx +75 -0
- package/src/theme/README.md +23 -0
- package/src/theme/components/button.js +42 -0
- package/src/theme/components/checkbox.js +20 -0
- package/src/theme/components/index.js +27 -0
- package/src/theme/foundations/blur.js +12 -0
- package/src/theme/foundations/borders.js +9 -0
- package/src/theme/foundations/breakpoints.js +10 -0
- package/src/theme/foundations/colors.js +196 -0
- package/src/theme/foundations/index.js +27 -0
- package/src/theme/foundations/radius.js +13 -0
- package/src/theme/foundations/shadows.js +16 -0
- package/src/theme/foundations/sizes.js +60 -0
- package/src/theme/foundations/spacing.js +37 -0
- package/src/theme/foundations/transition.js +25 -0
- package/src/theme/foundations/typography.js +55 -0
- package/src/theme/foundations/z-index.js +17 -0
- package/src/theme/index.js +20 -0
- package/webpack.config.js +34 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Button } from '../components/Button';
|
|
2
|
+
|
|
3
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Button',
|
|
6
|
+
component: Button,
|
|
7
|
+
parameters: {
|
|
8
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
|
|
9
|
+
layout: 'centered'
|
|
10
|
+
},
|
|
11
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
|
14
|
+
argTypes: {
|
|
15
|
+
backgroundColor: { control: 'color' }
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
20
|
+
export const Primary = {
|
|
21
|
+
args: {
|
|
22
|
+
primary: true,
|
|
23
|
+
label: 'Button'
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const Secondary = {
|
|
28
|
+
args: {
|
|
29
|
+
label: 'Button'
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const Large = {
|
|
34
|
+
args: {
|
|
35
|
+
size: 'large',
|
|
36
|
+
label: 'Button'
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const Small = {
|
|
41
|
+
args: {
|
|
42
|
+
size: 'small',
|
|
43
|
+
label: 'Button'
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PoojaCard from '../components/PoojaCard';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/PoojaCard',
|
|
6
|
+
component: PoojaCard,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: 'centered'
|
|
9
|
+
},
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {
|
|
12
|
+
variant: {
|
|
13
|
+
control: 'select',
|
|
14
|
+
options: ['saffron', 'maroon', 'navy']
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
control: 'select',
|
|
18
|
+
options: ['small', 'medium', 'large']
|
|
19
|
+
},
|
|
20
|
+
showButton: {
|
|
21
|
+
control: 'boolean'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const Default = {
|
|
27
|
+
args: {
|
|
28
|
+
title: 'Card Title',
|
|
29
|
+
subtitle: 'Subtitle Text',
|
|
30
|
+
duration: '30 min',
|
|
31
|
+
priest: 'Person Name',
|
|
32
|
+
amount: 500,
|
|
33
|
+
slots: 8,
|
|
34
|
+
variant: 'maroon',
|
|
35
|
+
size: 'medium',
|
|
36
|
+
badge: 'Popular',
|
|
37
|
+
buttonText: 'Book Now',
|
|
38
|
+
showButton: true,
|
|
39
|
+
image: 'https://cdn-icons-png.flaticon.com/512/4359/4359963.png'
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const Small = {
|
|
44
|
+
args: {
|
|
45
|
+
title: 'Card Title',
|
|
46
|
+
subtitle: 'Subtitle Text',
|
|
47
|
+
duration: '15 min',
|
|
48
|
+
priest: 'User',
|
|
49
|
+
amount: 250,
|
|
50
|
+
slots: 5,
|
|
51
|
+
variant: 'saffron',
|
|
52
|
+
size: 'small',
|
|
53
|
+
badge: 'New',
|
|
54
|
+
buttonText: 'View',
|
|
55
|
+
showButton: true,
|
|
56
|
+
image: 'https://cdn-icons-png.flaticon.com/512/4359/4359963.png'
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const Large = {
|
|
61
|
+
args: {
|
|
62
|
+
title: 'Card Title',
|
|
63
|
+
subtitle: 'Subtitle Text',
|
|
64
|
+
duration: '45 min',
|
|
65
|
+
priest: 'Member',
|
|
66
|
+
amount: 1500,
|
|
67
|
+
slots: 12,
|
|
68
|
+
variant: 'navy',
|
|
69
|
+
size: 'large',
|
|
70
|
+
badge: 'Featured',
|
|
71
|
+
buttonText: 'Reserve',
|
|
72
|
+
showButton: true,
|
|
73
|
+
image: 'https://cdn-icons-png.flaticon.com/512/4359/4359963.png'
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const WithoutButton = {
|
|
78
|
+
args: {
|
|
79
|
+
title: 'Card Title',
|
|
80
|
+
subtitle: 'Subtitle Text',
|
|
81
|
+
duration: '20 min',
|
|
82
|
+
priest: 'Admin',
|
|
83
|
+
amount: 700,
|
|
84
|
+
slots: 3,
|
|
85
|
+
variant: 'maroon',
|
|
86
|
+
size: 'medium',
|
|
87
|
+
badge: 'Limited',
|
|
88
|
+
showButton: false,
|
|
89
|
+
image: 'https://cdn-icons-png.flaticon.com/512/4359/4359963.png'
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export const Playground = {
|
|
94
|
+
args: {
|
|
95
|
+
title: 'Dynamic Title',
|
|
96
|
+
subtitle: 'Dynamic Subtitle',
|
|
97
|
+
duration: '60 min',
|
|
98
|
+
priest: 'Custom User',
|
|
99
|
+
amount: 999,
|
|
100
|
+
slots: 10,
|
|
101
|
+
variant: 'saffron',
|
|
102
|
+
size: 'medium',
|
|
103
|
+
badge: 'Trending',
|
|
104
|
+
buttonText: 'Continue',
|
|
105
|
+
showButton: true,
|
|
106
|
+
image: 'https://cdn-icons-png.flaticon.com/512/4359/4359963.png'
|
|
107
|
+
}
|
|
108
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import StatusCard from '../components//StatusCard';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/StatusCard',
|
|
6
|
+
component: StatusCard,
|
|
7
|
+
argTypes: {
|
|
8
|
+
color: {
|
|
9
|
+
control: 'select',
|
|
10
|
+
options: ['maroon', 'saffron', 'navy']
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
control: 'select',
|
|
14
|
+
options: ['small', 'medium', 'large']
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const Template = (args) => <StatusCard {...args} />;
|
|
20
|
+
|
|
21
|
+
export const MaroonSmall = Template.bind({});
|
|
22
|
+
MaroonSmall.args = {
|
|
23
|
+
code: 'A-044',
|
|
24
|
+
label: 'Current',
|
|
25
|
+
color: 'maroon',
|
|
26
|
+
size: 'small'
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const SaffronMedium = Template.bind({});
|
|
30
|
+
SaffronMedium.args = {
|
|
31
|
+
code: 'B-210',
|
|
32
|
+
label: 'Pending',
|
|
33
|
+
color: 'saffron',
|
|
34
|
+
size: 'medium'
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const NavyLarge = Template.bind({});
|
|
38
|
+
NavyLarge.args = {
|
|
39
|
+
code: 'C-999',
|
|
40
|
+
label: 'Completed',
|
|
41
|
+
color: 'navy',
|
|
42
|
+
size: 'large'
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const Playground = Template.bind({});
|
|
46
|
+
Playground.args = {
|
|
47
|
+
code: 'D-101',
|
|
48
|
+
label: 'Active',
|
|
49
|
+
color: 'maroon',
|
|
50
|
+
size: 'medium'
|
|
51
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import TokenCard from '../components/TokenCard';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/TokenCard',
|
|
5
|
+
component: TokenCard,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'centered'
|
|
8
|
+
},
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
argTypes: {
|
|
11
|
+
variant: {
|
|
12
|
+
control: 'select',
|
|
13
|
+
options: ['saffron', 'maroon', 'cream', 'navy', 'teal']
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
control: 'select',
|
|
17
|
+
options: ['small', 'medium', 'large']
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const Maroon = {
|
|
23
|
+
args: {
|
|
24
|
+
token: 'A-045',
|
|
25
|
+
status: 'Waiting',
|
|
26
|
+
waitingCount: 12,
|
|
27
|
+
estimatedTime: '18 min',
|
|
28
|
+
variant: 'maroon',
|
|
29
|
+
size: 'medium'
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const Saffron = {
|
|
34
|
+
args: {
|
|
35
|
+
token: 'B-102',
|
|
36
|
+
status: 'Active',
|
|
37
|
+
waitingCount: 4,
|
|
38
|
+
estimatedTime: '5 min',
|
|
39
|
+
variant: 'saffron',
|
|
40
|
+
size: 'medium'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const Cream = {
|
|
45
|
+
args: {
|
|
46
|
+
token: 'C-301',
|
|
47
|
+
status: 'Pending',
|
|
48
|
+
waitingCount: 8,
|
|
49
|
+
estimatedTime: '10 min',
|
|
50
|
+
variant: 'cream',
|
|
51
|
+
size: 'medium'
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const Navy = {
|
|
56
|
+
args: {
|
|
57
|
+
token: 'D-777',
|
|
58
|
+
status: 'Processing',
|
|
59
|
+
waitingCount: 20,
|
|
60
|
+
estimatedTime: '30 min',
|
|
61
|
+
variant: 'navy',
|
|
62
|
+
size: 'medium'
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const Teal = {
|
|
67
|
+
args: {
|
|
68
|
+
token: 'E-555',
|
|
69
|
+
status: 'Confirmed',
|
|
70
|
+
waitingCount: 2,
|
|
71
|
+
estimatedTime: '2 min',
|
|
72
|
+
variant: 'teal',
|
|
73
|
+
size: 'medium'
|
|
74
|
+
}
|
|
75
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Chakra UI Theme
|
|
2
|
+
|
|
3
|
+
This is a Chakra UI theme generated with [Hypertheme Editor](https://hyperthe.me).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
Put the entire directory inside the `src/` folder of your project.
|
|
7
|
+
|
|
8
|
+
Use it in inside your ChakraProvider
|
|
9
|
+
```tsx
|
|
10
|
+
import * as React from 'react'
|
|
11
|
+
import { ChakraProvider } from '@chakra-ui/react'
|
|
12
|
+
import theme from './theme'
|
|
13
|
+
|
|
14
|
+
function App() {
|
|
15
|
+
return (
|
|
16
|
+
<ChakraProvider theme={theme}>
|
|
17
|
+
...rest of code
|
|
18
|
+
</ChakraProvider>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default App
|
|
23
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import colors from '../foundations/colors';
|
|
2
|
+
|
|
3
|
+
const commonButtonStyle = {
|
|
4
|
+
bg: 'secondary.500',
|
|
5
|
+
color: 'white',
|
|
6
|
+
borderRadius: '8px',
|
|
7
|
+
padding: '12px 40px',
|
|
8
|
+
height: 'max-content',
|
|
9
|
+
border: `1px solid ${colors.secondary[500]}`,
|
|
10
|
+
boxShadow: `0px 9px 21px -14px ${colors.gray[300]}`
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
baseStyle: {
|
|
15
|
+
fontSize: '16px'
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
secondary: {
|
|
19
|
+
...commonButtonStyle
|
|
20
|
+
},
|
|
21
|
+
secondary_outline: {
|
|
22
|
+
...commonButtonStyle,
|
|
23
|
+
bg: 'white',
|
|
24
|
+
color: 'secondary.500',
|
|
25
|
+
_hover: 'secondary.500',
|
|
26
|
+
_active: 'secondary.500'
|
|
27
|
+
},
|
|
28
|
+
primary: {
|
|
29
|
+
...commonButtonStyle,
|
|
30
|
+
bg: 'primary.500',
|
|
31
|
+
border: `1px solid ${colors.primary[300]}`
|
|
32
|
+
},
|
|
33
|
+
primary_outline: {
|
|
34
|
+
...commonButtonStyle,
|
|
35
|
+
bg: 'white',
|
|
36
|
+
color: 'primary.500',
|
|
37
|
+
_hover: 'primary.500',
|
|
38
|
+
_active: 'primary.500',
|
|
39
|
+
border: `1px solid ${colors.primary[300]}`
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const component = {
|
|
2
|
+
baseStyle: {
|
|
3
|
+
control: {
|
|
4
|
+
borderColor: 'secondary.500',
|
|
5
|
+
_checked: {
|
|
6
|
+
bg: 'secondary.500',
|
|
7
|
+
borderColor: 'secondary.500',
|
|
8
|
+
_hover: {
|
|
9
|
+
bg: 'secondary.500',
|
|
10
|
+
borderColor: 'transparent'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
borderWidth: '2px'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const style = {};
|
|
19
|
+
|
|
20
|
+
export default { component, style };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import button from './button';
|
|
2
|
+
import checkbox from './checkbox';
|
|
3
|
+
import TimelineStyle from '../../custom-components/timeline/TimelineStyle';
|
|
4
|
+
import AccordionStyle from '../../custom-components/accordion-view/AccordionStyle';
|
|
5
|
+
import RadioStyles from '../../custom-components/RadioButton/RadioStyles';
|
|
6
|
+
import TabVariant from '../../custom-components/custom-tabs/variant';
|
|
7
|
+
import { alertTheme } from '../../custom-components/Toaster';
|
|
8
|
+
|
|
9
|
+
const componentStyles = {
|
|
10
|
+
components: {
|
|
11
|
+
Button: button,
|
|
12
|
+
Checkbox: checkbox.component,
|
|
13
|
+
Accordion: AccordionStyle.component,
|
|
14
|
+
Tabs: TabVariant,
|
|
15
|
+
Radio: RadioStyles.component,
|
|
16
|
+
Alert: alertTheme
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
styles: {
|
|
20
|
+
global: {
|
|
21
|
+
...TimelineStyle.style,
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default componentStyles;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
const colors = {
|
|
2
|
+
transparent: 'transparent',
|
|
3
|
+
current: 'currentColor',
|
|
4
|
+
black: '#000000',
|
|
5
|
+
white: '#FFFFFF',
|
|
6
|
+
containerColor: '#E7EFF5',
|
|
7
|
+
whiteAlpha: {
|
|
8
|
+
50: 'rgba(255, 255, 255, 0.04)',
|
|
9
|
+
100: 'rgba(255, 255, 255, 0.06)',
|
|
10
|
+
200: 'rgba(255, 255, 255, 0.08)',
|
|
11
|
+
300: 'rgba(255, 255, 255, 0.16)',
|
|
12
|
+
400: 'rgba(255, 255, 255, 0.24)',
|
|
13
|
+
500: 'rgba(255, 255, 255, 0.36)',
|
|
14
|
+
600: 'rgba(255, 255, 255, 0.48)',
|
|
15
|
+
700: 'rgba(255, 255, 255, 0.64)',
|
|
16
|
+
800: 'rgba(255, 255, 255, 0.80)',
|
|
17
|
+
900: 'rgba(255, 255, 255, 0.92)'
|
|
18
|
+
},
|
|
19
|
+
blackAlpha: {
|
|
20
|
+
50: 'rgba(0, 0, 0, 0.04)',
|
|
21
|
+
100: 'rgba(0, 0, 0, 0.06)',
|
|
22
|
+
200: 'rgba(0, 0, 0, 0.08)',
|
|
23
|
+
300: 'rgba(0, 0, 0, 0.16)',
|
|
24
|
+
400: 'rgba(0, 0, 0, 0.24)',
|
|
25
|
+
500: 'rgba(0, 0, 0, 0.36)',
|
|
26
|
+
600: 'rgba(0, 0, 0, 0.48)',
|
|
27
|
+
700: 'rgba(0, 0, 0, 0.64)',
|
|
28
|
+
800: 'rgba(0, 0, 0, 0.80)',
|
|
29
|
+
900: 'rgba(0, 0, 0, 0.92)',
|
|
30
|
+
1000: 'rgba(69, 69, 69, 0.60)'
|
|
31
|
+
},
|
|
32
|
+
gray: {
|
|
33
|
+
10: '#9AA6AD',
|
|
34
|
+
30: '#FDFDFD',
|
|
35
|
+
50: '#F9FAFA',
|
|
36
|
+
80: '#F5F5F5',
|
|
37
|
+
90: '#BDBDBD',
|
|
38
|
+
100: '#E8ECEE',
|
|
39
|
+
200: '#E2E8F0',
|
|
40
|
+
300: '#CBD5E0',
|
|
41
|
+
400: '#A0AEC0',
|
|
42
|
+
500: '#718096',
|
|
43
|
+
600: '#4A5568',
|
|
44
|
+
700: '#2D3748',
|
|
45
|
+
800: '#454545',
|
|
46
|
+
900: '#171923',
|
|
47
|
+
1000: '#bfc3c8'
|
|
48
|
+
},
|
|
49
|
+
red: {
|
|
50
|
+
50: '#FFF5F5',
|
|
51
|
+
100: '#FED7D7',
|
|
52
|
+
200: '#FEB2B2',
|
|
53
|
+
300: '#FC8181',
|
|
54
|
+
400: '#F56565',
|
|
55
|
+
500: '#E53E3E',
|
|
56
|
+
600: '#C53030',
|
|
57
|
+
700: '#9B2C2C',
|
|
58
|
+
800: '#822727',
|
|
59
|
+
900: '#63171B'
|
|
60
|
+
},
|
|
61
|
+
orange: {
|
|
62
|
+
50: '#FFFAF0',
|
|
63
|
+
100: '#FEEBC8',
|
|
64
|
+
200: '#FBD38D',
|
|
65
|
+
300: '#F6AD55',
|
|
66
|
+
400: '#ED8936',
|
|
67
|
+
500: '#DD6B20',
|
|
68
|
+
600: '#C05621',
|
|
69
|
+
700: '#9C4221',
|
|
70
|
+
800: '#7B341E',
|
|
71
|
+
900: '#652B19'
|
|
72
|
+
},
|
|
73
|
+
yellow: {
|
|
74
|
+
50: '#FFFFF0',
|
|
75
|
+
100: '#FEFCBF',
|
|
76
|
+
200: '#FAF089',
|
|
77
|
+
300: '#F6E05E',
|
|
78
|
+
400: '#ECC94B',
|
|
79
|
+
500: '#D69E2E',
|
|
80
|
+
600: '#B7791F',
|
|
81
|
+
700: '#975A16',
|
|
82
|
+
800: '#744210',
|
|
83
|
+
900: '#5F370E'
|
|
84
|
+
},
|
|
85
|
+
green: {
|
|
86
|
+
50: '#F0FFF4',
|
|
87
|
+
100: '#C6F6D5',
|
|
88
|
+
200: '#9AE6B4',
|
|
89
|
+
300: '#68D391',
|
|
90
|
+
400: '#48BB78',
|
|
91
|
+
500: '#38A169',
|
|
92
|
+
600: '#2F855A',
|
|
93
|
+
700: '#276749',
|
|
94
|
+
800: '#22543D',
|
|
95
|
+
900: '#1C4532'
|
|
96
|
+
},
|
|
97
|
+
teal: {
|
|
98
|
+
50: '#E6FFFA',
|
|
99
|
+
100: '#B2F5EA',
|
|
100
|
+
200: '#81E6D9',
|
|
101
|
+
300: '#4FD1C5',
|
|
102
|
+
400: '#38B2AC',
|
|
103
|
+
500: '#319795',
|
|
104
|
+
600: '#2C7A7B',
|
|
105
|
+
700: '#285E61',
|
|
106
|
+
800: '#234E52',
|
|
107
|
+
900: '#1D4044'
|
|
108
|
+
},
|
|
109
|
+
blue: {
|
|
110
|
+
30: '#E7EFF5',
|
|
111
|
+
50: '#ebf8ff',
|
|
112
|
+
100: '#bee3f8',
|
|
113
|
+
200: '#90cdf4',
|
|
114
|
+
300: '#63b3ed',
|
|
115
|
+
400: '#4299e1',
|
|
116
|
+
500: '#3182ce',
|
|
117
|
+
600: '#2b6cb0',
|
|
118
|
+
700: '#2c5282',
|
|
119
|
+
800: '#2a4365',
|
|
120
|
+
900: '#1A365D'
|
|
121
|
+
},
|
|
122
|
+
cyan: {
|
|
123
|
+
50: '#EDFDFD',
|
|
124
|
+
100: '#C4F1F9',
|
|
125
|
+
200: '#9DECF9',
|
|
126
|
+
300: '#76E4F7',
|
|
127
|
+
400: '#0BC5EA',
|
|
128
|
+
500: '#00B5D8',
|
|
129
|
+
600: '#00A3C4',
|
|
130
|
+
700: '#0987A0',
|
|
131
|
+
800: '#086F83',
|
|
132
|
+
900: '#065666'
|
|
133
|
+
},
|
|
134
|
+
purple: {
|
|
135
|
+
50: '#FAF5FF',
|
|
136
|
+
100: '#E9D8FD',
|
|
137
|
+
200: '#D6BCFA',
|
|
138
|
+
300: '#B794F4',
|
|
139
|
+
400: '#9F7AEA',
|
|
140
|
+
500: '#805AD5',
|
|
141
|
+
600: '#6B46C1',
|
|
142
|
+
700: '#553C9A',
|
|
143
|
+
800: '#44337A',
|
|
144
|
+
900: '#322659'
|
|
145
|
+
},
|
|
146
|
+
pink: {
|
|
147
|
+
50: '#FFF5F7',
|
|
148
|
+
100: '#FED7E2',
|
|
149
|
+
200: '#FBB6CE',
|
|
150
|
+
300: '#F687B3',
|
|
151
|
+
400: '#ED64A6',
|
|
152
|
+
500: '#D53F8C',
|
|
153
|
+
600: '#B83280',
|
|
154
|
+
700: '#97266D',
|
|
155
|
+
800: '#702459',
|
|
156
|
+
900: '#521B41'
|
|
157
|
+
},
|
|
158
|
+
primary: {
|
|
159
|
+
50: '#a0e8ff',
|
|
160
|
+
100: '#6ddbff',
|
|
161
|
+
200: '#53d5ff',
|
|
162
|
+
300: '#39ceff',
|
|
163
|
+
400: '#20c8ff',
|
|
164
|
+
500: '#00B2EC',
|
|
165
|
+
600: '#008cb9',
|
|
166
|
+
700: '#0078a0',
|
|
167
|
+
800: '#006586',
|
|
168
|
+
900: '#003f53'
|
|
169
|
+
},
|
|
170
|
+
secondary: {
|
|
171
|
+
50: '#facddf',
|
|
172
|
+
100: '#f59fc2',
|
|
173
|
+
200: '#f288b3',
|
|
174
|
+
300: '#f071a4',
|
|
175
|
+
400: '#ed5a95',
|
|
176
|
+
500: '#E82C78',
|
|
177
|
+
600: '#cb165f',
|
|
178
|
+
700: '#b41454',
|
|
179
|
+
800: '#9d114a',
|
|
180
|
+
900: '#6f0c34'
|
|
181
|
+
},
|
|
182
|
+
tertiary: {
|
|
183
|
+
50: '#4583f1',
|
|
184
|
+
100: '#1663ee',
|
|
185
|
+
200: '#1059da',
|
|
186
|
+
300: '#0e4fc2',
|
|
187
|
+
400: '#0c45ab',
|
|
188
|
+
500: '#09327B',
|
|
189
|
+
600: '#061f4b',
|
|
190
|
+
700: '#041534',
|
|
191
|
+
800: '#020b1c',
|
|
192
|
+
900: '#000000'
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export default colors;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import borders from './borders';
|
|
2
|
+
import breakpoints from './breakpoints';
|
|
3
|
+
import colors from './colors';
|
|
4
|
+
import radii from './radius';
|
|
5
|
+
import shadows from './shadows';
|
|
6
|
+
import sizes from './sizes';
|
|
7
|
+
import spacing from './spacing';
|
|
8
|
+
import transition from './transition';
|
|
9
|
+
import typography from './typography';
|
|
10
|
+
import zIndices from './z-index';
|
|
11
|
+
import blur from './blur';
|
|
12
|
+
|
|
13
|
+
const foundations = {
|
|
14
|
+
breakpoints,
|
|
15
|
+
zIndices,
|
|
16
|
+
radii,
|
|
17
|
+
blur,
|
|
18
|
+
colors,
|
|
19
|
+
...typography,
|
|
20
|
+
sizes,
|
|
21
|
+
shadows,
|
|
22
|
+
space: spacing,
|
|
23
|
+
borders,
|
|
24
|
+
transition
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default foundations;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const shadows = {
|
|
2
|
+
xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',
|
|
3
|
+
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
4
|
+
base: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
|
|
5
|
+
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
|
6
|
+
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
|
7
|
+
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
|
8
|
+
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
|
9
|
+
outline: '0 0 0 3px rgba(66, 153, 225, 0.6)',
|
|
10
|
+
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
|
|
11
|
+
none: 'none',
|
|
12
|
+
'dark-lg': 'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px',
|
|
13
|
+
largeSoft: 'rgba(60, 64, 67, 0.15) 0px 2px 10px 6px;'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default shadows;
|