@rabbitio/ui-kit 1.0.0-alpha.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/.storybook/main.js +77 -0
- package/.storybook/preview.js +51 -0
- package/Dockerfile +20 -0
- package/README.md +31 -0
- package/index.js +1 -0
- package/package.json +55 -0
- package/stories/assets/icons/transactions-icon.svg +7 -0
- package/stories/atoms/LoadingDots/LoadingDots.js +59 -0
- package/stories/atoms/LoadingDots/LoadingDots.module.scss +83 -0
- package/stories/atoms/LoadingDots/LoadingDots.stories.js +46 -0
- package/stories/atoms/buttons/Button/Button.js +237 -0
- package/stories/atoms/buttons/Button/Button.module.scss +212 -0
- package/stories/atoms/buttons/Button/Button.stories.js +286 -0
- package/stories/index.js +2 -0
- package/styles/_functions.scss +15 -0
- package/styles/_global-classes.scss +459 -0
- package/styles/_mixins.scss +59 -0
- package/styles/_placeholder.scss +146 -0
- package/styles/_variables.scss +46 -0
- package/styles/colors/_light-colors.scss +14 -0
- package/styles/colors/_solid-colors.scss +19 -0
- package/styles/fonts/NunitoSans-Bold.ttf +0 -0
- package/styles/fonts/NunitoSans-ExtraBold.ttf +0 -0
- package/styles/fonts/NunitoSans-Light.ttf +0 -0
- package/styles/fonts/NunitoSans-Regular.ttf +0 -0
- package/styles/fonts/NunitoSans-SemiBold.ttf +0 -0
- package/styles/index.scss +81 -0
- package/styles/size/_margin-size.scss +19 -0
- package/styles/size/_padding-size.scss +20 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$solidColor: (
|
|
2
|
+
"dark": #232d42,
|
|
3
|
+
"red": #ee6a7d,
|
|
4
|
+
"green": #24be6a,
|
|
5
|
+
"blue": #2294f0,
|
|
6
|
+
"yellow": #ffb35a,
|
|
7
|
+
"grey": #8f95a2,
|
|
8
|
+
"tosca": #16cdd6,
|
|
9
|
+
"purple": #9674fc,
|
|
10
|
+
"orange": #f37a65,
|
|
11
|
+
"cyan": #099aa1,
|
|
12
|
+
"army": #0a797e,
|
|
13
|
+
"sky": #8ae6ea,
|
|
14
|
+
"smoke": #e0e2eb,
|
|
15
|
+
"lightsmoke": #f1f5f7,
|
|
16
|
+
"darkBlue": #68789d,
|
|
17
|
+
"lighterGreen": #39ecb5,
|
|
18
|
+
"lighterRed": #ff8597,
|
|
19
|
+
);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
@import "variables";
|
|
2
|
+
@import "global-classes";
|
|
3
|
+
@import "mixins";
|
|
4
|
+
@import "functions";
|
|
5
|
+
@import "placeholder";
|
|
6
|
+
|
|
7
|
+
@font-face {
|
|
8
|
+
src: url("fonts/NunitoSans-ExtraBold.ttf");
|
|
9
|
+
font-family: "NunitoSans";
|
|
10
|
+
font-weight: $extra-bold;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@font-face {
|
|
14
|
+
src: url("fonts/NunitoSans-Bold.ttf");
|
|
15
|
+
font-family: "NunitoSans";
|
|
16
|
+
font-weight: $bold;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@font-face {
|
|
20
|
+
src: url("fonts/NunitoSans-SemiBold.ttf");
|
|
21
|
+
font-family: "NunitoSans";
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
src: url("fonts/NunitoSans-Regular.ttf");
|
|
27
|
+
font-family: "NunitoSans";
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
src: url("fonts/NunitoSans-Light.ttf");
|
|
33
|
+
font-family: "NunitoSans";
|
|
34
|
+
font-weight: 300;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
* {
|
|
38
|
+
outline: none !important;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
html {
|
|
44
|
+
background-color: SolidColor("dark");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
body {
|
|
48
|
+
margin: 0;
|
|
49
|
+
font-family: NunitoSans;
|
|
50
|
+
width: 100%;
|
|
51
|
+
overflow-x: hidden;
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
h1 {
|
|
56
|
+
@include typograpy("h1");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
h2 {
|
|
60
|
+
@include typograpy("h2");
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h3 {
|
|
64
|
+
@include typograpy("h3");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
h4 {
|
|
68
|
+
@include typograpy("h4");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
h5 {
|
|
72
|
+
@include typograpy("h5");
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
h6 {
|
|
76
|
+
@include typograpy("h6");
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
p {
|
|
80
|
+
@include typograpy("p");
|
|
81
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$margin-sizes: (
|
|
2
|
+
"0": 0px,
|
|
3
|
+
"1": 4px,
|
|
4
|
+
"2": 8px,
|
|
5
|
+
"3": 12px,
|
|
6
|
+
"4": 16px,
|
|
7
|
+
"5": 20px,
|
|
8
|
+
"6": 24px,
|
|
9
|
+
"7": 28px,
|
|
10
|
+
"8": 32px,
|
|
11
|
+
"9": 36px,
|
|
12
|
+
"10": 40px,
|
|
13
|
+
"11": 44px,
|
|
14
|
+
"12": 48px,
|
|
15
|
+
"13": 52px,
|
|
16
|
+
"14": 56px,
|
|
17
|
+
"50": 50px,
|
|
18
|
+
"60": 60px,
|
|
19
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
$padding-sizes: (
|
|
2
|
+
"0": 0px,
|
|
3
|
+
"1": 4px,
|
|
4
|
+
"2": 8px,
|
|
5
|
+
"3": 12px,
|
|
6
|
+
"4": 16px,
|
|
7
|
+
"5": 20px,
|
|
8
|
+
"6": 24px,
|
|
9
|
+
"7": 28px,
|
|
10
|
+
"8": 32px,
|
|
11
|
+
"9": 36px,
|
|
12
|
+
"10": 40px,
|
|
13
|
+
"11": 44px,
|
|
14
|
+
"12": 48px,
|
|
15
|
+
"14": 56px,
|
|
16
|
+
"50": 50px,
|
|
17
|
+
"60": 60px,
|
|
18
|
+
"65": 65px,
|
|
19
|
+
"80": 80px,
|
|
20
|
+
);
|