@fs-design/pantry 1.562.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @fs-design/pantry might be problematic. Click here for more details.
- package/build.js +91 -0
- package/package.json +21 -0
- package/src/base/_box-model.scss +9 -0
- package/src/base/_reset.scss +53 -0
- package/src/base/typography/base/_font-face-gilroy.scss +35 -0
- package/src/base/typography/base/_font-face-inter.scss +35 -0
- package/src/base/typography/base/_font-face-thai.scss +71 -0
- package/src/base/typography/base/_links.scss +13 -0
- package/src/base/typography/base/_lists.scss +5 -0
- package/src/base/typography/base/_typography.scss +137 -0
- package/src/components/accordion/_index.scss +50 -0
- package/src/components/button/base/_button.scss +174 -0
- package/src/components/button/base/_mixins.scss +40 -0
- package/src/components/card/_index.scss +97 -0
- package/src/components/choice/base/_index.scss +72 -0
- package/src/components/choice/checkbox/_index.scss +43 -0
- package/src/components/choice/radio-button/_index.scss +52 -0
- package/src/components/file-selector/_index.scss +118 -0
- package/src/components/form-control/_index.scss +57 -0
- package/src/components/icon/_index.scss +27 -0
- package/src/components/input/_form-input.scss +35 -0
- package/src/components/input-group/_index.scss +62 -0
- package/src/components/layout/_grid.scss +364 -0
- package/src/components/logo/_index.scss +16 -0
- package/src/components/modal/_index.scss +84 -0
- package/src/components/navigation-bar/_index.scss +36 -0
- package/src/components/navigation-bar/_nav-menu-item.scss +49 -0
- package/src/components/navigation-bar/_nav-menu.scss +53 -0
- package/src/components/navigation-bar/_nav-submenu.scss +148 -0
- package/src/components/navigation-bar/_nav.scss +90 -0
- package/src/components/navigation-bar/_navbar.scss +114 -0
- package/src/components/progress-indicator/_index.scss +140 -0
- package/src/components/radial-progress/_index.scss +23 -0
- package/src/components/select/_index.scss +49 -0
- package/src/components/step-progress/_index.scss +137 -0
- package/src/components/table/_index.scss +41 -0
- package/src/components/textarea/_index.scss +36 -0
- package/src/shared/variables/border-radius/border-radius.scss +4 -0
- package/src/shared/variables/breakpoints/breakpoints.common.js +7 -0
- package/src/shared/variables/colors/colors.common.js +83 -0
- package/src/shared/variables/colors/colors.scss +82 -0
- package/src/shared/variables/shadows/shadows.common.js +5 -0
- package/src/shared/variables/shadows/shadows.scss +4 -0
- package/src/shared/variables/spacing/spacing.scss +11 -0
- package/src/shared/variables/type/type.scss +33 -0
- package/src/utilities/background/_index.scss +11 -0
- package/src/utilities/display/_mixins.scss +17 -0
- package/src/utilities/images/_index.scss +4 -0
- package/src/utilities/spacing/_mixins.scss +26 -0
- package/src/utilities/text-alignment/_index.scss +107 -0
- package/src/utilities/text-color/_index.scss +3 -0
- package/src/utilities/text-weight/_index.scss +7 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
.table-scrollable {
|
2
|
+
overflow-x: auto;
|
3
|
+
}
|
4
|
+
|
5
|
+
table {
|
6
|
+
border: 1px solid $l-base-gray-lightest;
|
7
|
+
border-collapse: collapse;
|
8
|
+
}
|
9
|
+
|
10
|
+
thead + tbody,
|
11
|
+
tbody + tfoot {
|
12
|
+
border-top: 1px solid $l-base-gray-lightest;
|
13
|
+
}
|
14
|
+
|
15
|
+
td,
|
16
|
+
th {
|
17
|
+
padding: $spacing-5;
|
18
|
+
white-space: nowrap;
|
19
|
+
}
|
20
|
+
|
21
|
+
thead {
|
22
|
+
text-align: left;
|
23
|
+
font-weight: $font-weight-medium;
|
24
|
+
color: $color-gray-700;
|
25
|
+
}
|
26
|
+
|
27
|
+
tbody {
|
28
|
+
color: $l-base-gray-darkest;
|
29
|
+
|
30
|
+
tr:hover {
|
31
|
+
background-color: $color-gray-100;
|
32
|
+
}
|
33
|
+
|
34
|
+
tr.is-active {
|
35
|
+
background-color: $l-primary-lightest;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
tr + tr {
|
40
|
+
border-top: 1px solid $l-base-gray-lightest;
|
41
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
$textarea-transition-fn: cubic-bezier(0, 0, 0.2, 1);
|
2
|
+
|
3
|
+
.form-textarea {
|
4
|
+
display: block;
|
5
|
+
width: 100%;
|
6
|
+
background: $color-white;
|
7
|
+
border: 1px solid $color-gray-300;
|
8
|
+
border-radius: $border-radius-small;
|
9
|
+
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12);
|
10
|
+
padding: $spacing-3 $spacing-5;
|
11
|
+
color: $color-gray-900;
|
12
|
+
font-family: inherit;
|
13
|
+
font-size: $font-size-default;
|
14
|
+
line-height: $line-height-default;
|
15
|
+
resize: vertical;
|
16
|
+
will-change: border-color, box-shadow;
|
17
|
+
transition: border-color 100ms $textarea-transition-fn,
|
18
|
+
box-shadow 100ms $textarea-transition-fn;
|
19
|
+
|
20
|
+
&:disabled,
|
21
|
+
&:read-only {
|
22
|
+
background: $color-gray-100;
|
23
|
+
color: $color-gray-700;
|
24
|
+
box-shadow: none;
|
25
|
+
}
|
26
|
+
|
27
|
+
&:disabled {
|
28
|
+
cursor: not-allowed;
|
29
|
+
}
|
30
|
+
|
31
|
+
&:focus {
|
32
|
+
outline: 0;
|
33
|
+
border-color: $color-blue-200;
|
34
|
+
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px $color-blue-200;
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
module.exports = {
|
2
|
+
colorBlue000: "#f3f5fd",
|
3
|
+
colorBlue100: "#d6e4ff",
|
4
|
+
colorBlue200: "#79a6ff",
|
5
|
+
colorBlue300: "#3e7eff",
|
6
|
+
colorBlue400: "#2c50ff",
|
7
|
+
colorBlue500: "#003cc1",
|
8
|
+
colorBlue600: "#0b2e8f",
|
9
|
+
colorBlue700: "#111f66",
|
10
|
+
colorBlue800: "#171f46",
|
11
|
+
colorBlue900: "#070d29",
|
12
|
+
colorPurple000: "#f6f5fa",
|
13
|
+
colorPurple100: "#f2f0fa",
|
14
|
+
colorPurple200: "#d2c2ff",
|
15
|
+
colorPurple300: "#8b52ff",
|
16
|
+
colorPurple400: "#691fff",
|
17
|
+
colorPurple500: "#5203ea",
|
18
|
+
colorPurple600: "#3b03a8",
|
19
|
+
colorPurple700: "#370b8f",
|
20
|
+
colorPurple800: "#1c0068",
|
21
|
+
colorPurple900: "#20143d",
|
22
|
+
colorGreen000: "#f0faf5",
|
23
|
+
colorGreen100: "#dcfaf0",
|
24
|
+
colorGreen200: "#c2ffeb",
|
25
|
+
colorGreen300: "#93f5d6",
|
26
|
+
colorGreen400: "#27e4cd",
|
27
|
+
colorGreen500: "#08c0a6",
|
28
|
+
colorGreen600: "#1f9989",
|
29
|
+
colorGreen700: "#008670",
|
30
|
+
colorGreen800: "#0c665a",
|
31
|
+
colorGreen900: "#0b473f",
|
32
|
+
colorYellow000: "#faf8f0",
|
33
|
+
colorYellow100: "#fff3d6",
|
34
|
+
colorYellow200: "#ffe7ad",
|
35
|
+
colorYellow300: "#ffde0f",
|
36
|
+
colorYellow400: "#ffce5c",
|
37
|
+
colorYellow500: "#ffb50d",
|
38
|
+
colorYellow600: "#e29700",
|
39
|
+
colorYellow700: "#e07c09",
|
40
|
+
colorYellow800: "#cc6810",
|
41
|
+
colorYellow900: "#b85716",
|
42
|
+
colorRed000: "#fae6e6",
|
43
|
+
colorRed100: "#f5d7d7",
|
44
|
+
colorRed200: "#f5c4c4",
|
45
|
+
colorRed300: "#ff7070",
|
46
|
+
colorRed400: "#ff2945",
|
47
|
+
colorRed500: "#cc1830",
|
48
|
+
colorRed600: "#8f0101",
|
49
|
+
colorRed700: "#7a0505",
|
50
|
+
colorRed800: "#5c1212",
|
51
|
+
colorRed900: "#3d1111",
|
52
|
+
colorGray000: "#fafbfc",
|
53
|
+
colorGray100: "#f1f1f2",
|
54
|
+
colorGray200: "#e0e0e0",
|
55
|
+
colorGray300: "#cccccc",
|
56
|
+
colorGray400: "#adadad",
|
57
|
+
colorGray500: "#9b9b9b",
|
58
|
+
colorGray600: "#8f8f8f",
|
59
|
+
colorGray700: "#757575",
|
60
|
+
colorGray800: "#4a4a4a",
|
61
|
+
colorGray900: "#222222",
|
62
|
+
colorWhite: "#ffffff",
|
63
|
+
colorWhiteFade80: "rgba(255, 255, 255, 0.8)",
|
64
|
+
colorWhiteFade60: "rgba(255, 255, 255, 0.6)",
|
65
|
+
colorWhiteFade40: "rgba(255, 255, 255, 0.4)",
|
66
|
+
colorWhiteFade20: "rgba(255, 255, 255, 0.2)",
|
67
|
+
colorWhiteFade15: "rgba(255, 255, 255, 0.15)",
|
68
|
+
colorWhiteFade10: "rgba(255, 255, 255, 0.1)",
|
69
|
+
lBaseGrayLightest: "#e0e0e0",
|
70
|
+
lBaseGrayLighter: "#cccccc",
|
71
|
+
lBaseGray: "#757575",
|
72
|
+
lBaseGrayDarker: "#4a4a4a",
|
73
|
+
lBaseGrayDarkest: "#222222",
|
74
|
+
lPrimaryLightest: "#f3f5fd",
|
75
|
+
lPrimaryLighter: "#3e7eff",
|
76
|
+
lPrimary: "#2c50ff",
|
77
|
+
lPrimaryDarker: "#003cc1",
|
78
|
+
lPrimaryDarkest: "#0b2e8f",
|
79
|
+
lSecondary: "#ffffff",
|
80
|
+
lWarning: "#ffb50d",
|
81
|
+
lSuccess: "#08c0a6",
|
82
|
+
lError: "#cc1830",
|
83
|
+
};
|
@@ -0,0 +1,82 @@
|
|
1
|
+
|
2
|
+
$color-blue-000: #f3f5fd;
|
3
|
+
$color-blue-100: #d6e4ff;
|
4
|
+
$color-blue-200: #79a6ff;
|
5
|
+
$color-blue-300: #3e7eff;
|
6
|
+
$color-blue-400: #2c50ff;
|
7
|
+
$color-blue-500: #003cc1;
|
8
|
+
$color-blue-600: #0b2e8f;
|
9
|
+
$color-blue-700: #111f66;
|
10
|
+
$color-blue-800: #171f46;
|
11
|
+
$color-blue-900: #070d29;
|
12
|
+
$color-purple-000: #f6f5fa;
|
13
|
+
$color-purple-100: #f2f0fa;
|
14
|
+
$color-purple-200: #d2c2ff;
|
15
|
+
$color-purple-300: #8b52ff;
|
16
|
+
$color-purple-400: #691fff;
|
17
|
+
$color-purple-500: #5203ea;
|
18
|
+
$color-purple-600: #3b03a8;
|
19
|
+
$color-purple-700: #370b8f;
|
20
|
+
$color-purple-800: #1c0068;
|
21
|
+
$color-purple-900: #20143d;
|
22
|
+
$color-green-000: #f0faf5;
|
23
|
+
$color-green-100: #dcfaf0;
|
24
|
+
$color-green-200: #c2ffeb;
|
25
|
+
$color-green-300: #93f5d6;
|
26
|
+
$color-green-400: #27e4cd;
|
27
|
+
$color-green-500: #08c0a6;
|
28
|
+
$color-green-600: #1f9989;
|
29
|
+
$color-green-700: #008670;
|
30
|
+
$color-green-800: #0c665a;
|
31
|
+
$color-green-900: #0b473f;
|
32
|
+
$color-yellow-000: #faf8f0;
|
33
|
+
$color-yellow-100: #fff3d6;
|
34
|
+
$color-yellow-200: #ffe7ad;
|
35
|
+
$color-yellow-300: #ffde0f;
|
36
|
+
$color-yellow-400: #ffce5c;
|
37
|
+
$color-yellow-500: #ffb50d;
|
38
|
+
$color-yellow-600: #e29700;
|
39
|
+
$color-yellow-700: #e07c09;
|
40
|
+
$color-yellow-800: #cc6810;
|
41
|
+
$color-yellow-900: #b85716;
|
42
|
+
$color-red-000: #fae6e6;
|
43
|
+
$color-red-100: #f5d7d7;
|
44
|
+
$color-red-200: #f5c4c4;
|
45
|
+
$color-red-300: #ff7070;
|
46
|
+
$color-red-400: #ff2945;
|
47
|
+
$color-red-500: #cc1830;
|
48
|
+
$color-red-600: #8f0101;
|
49
|
+
$color-red-700: #7a0505;
|
50
|
+
$color-red-800: #5c1212;
|
51
|
+
$color-red-900: #3d1111;
|
52
|
+
$color-gray-000: #fafbfc;
|
53
|
+
$color-gray-100: #f1f1f2;
|
54
|
+
$color-gray-200: #e0e0e0;
|
55
|
+
$color-gray-300: #cccccc;
|
56
|
+
$color-gray-400: #adadad;
|
57
|
+
$color-gray-500: #9b9b9b;
|
58
|
+
$color-gray-600: #8f8f8f;
|
59
|
+
$color-gray-700: #757575;
|
60
|
+
$color-gray-800: #4a4a4a;
|
61
|
+
$color-gray-900: #222222;
|
62
|
+
$color-white: #ffffff;
|
63
|
+
$color-white-fade-80: rgba(255, 255, 255, 0.8);
|
64
|
+
$color-white-fade-60: rgba(255, 255, 255, 0.6);
|
65
|
+
$color-white-fade-40: rgba(255, 255, 255, 0.4);
|
66
|
+
$color-white-fade-20: rgba(255, 255, 255, 0.2);
|
67
|
+
$color-white-fade-15: rgba(255, 255, 255, 0.15);
|
68
|
+
$color-white-fade-10: rgba(255, 255, 255, 0.1);
|
69
|
+
$l-base-gray-lightest: #e0e0e0;
|
70
|
+
$l-base-gray-lighter: #cccccc;
|
71
|
+
$l-base-gray: #757575;
|
72
|
+
$l-base-gray-darker: #4a4a4a;
|
73
|
+
$l-base-gray-darkest: #222222;
|
74
|
+
$l-primary-lightest: #f3f5fd;
|
75
|
+
$l-primary-lighter: #3e7eff;
|
76
|
+
$l-primary: #2c50ff;
|
77
|
+
$l-primary-darker: #003cc1;
|
78
|
+
$l-primary-darkest: #0b2e8f;
|
79
|
+
$l-secondary: #ffffff;
|
80
|
+
$l-warning: #ffb50d;
|
81
|
+
$l-success: #08c0a6;
|
82
|
+
$l-error: #cc1830;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
$font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif, 'Prompt';
|
3
|
+
$font-family-heading: 'Gilroy', -apple-system, BlinkMacSystemFont, 'San Francisco', Roboto, 'Segoe UI', 'Helvetica Neue', sans-serif, 'Prompt';
|
4
|
+
$line-height-default: 1.5;
|
5
|
+
$line-height-tight: 1.4;
|
6
|
+
$line-height-condensed: 1.25;
|
7
|
+
$line-height-most-condensed: 1.1;
|
8
|
+
$font-weight-light: 300;
|
9
|
+
$font-weight-normal: 400;
|
10
|
+
$font-weight-medium: 500;
|
11
|
+
$font-weight-semibold: 600;
|
12
|
+
$font-weight-bold: 700;
|
13
|
+
$font-size-default: 16px;
|
14
|
+
$font-size-h1-desktop: 60px;
|
15
|
+
$font-size-h1-tablet: 40px;
|
16
|
+
$font-size-h1-mobile: 32px;
|
17
|
+
$font-size-h2-desktop: 40px;
|
18
|
+
$font-size-h2-tablet: 32px;
|
19
|
+
$font-size-h2-mobile: 28px;
|
20
|
+
$font-size-h3-desktop: 32px;
|
21
|
+
$font-size-h3-tablet: 28px;
|
22
|
+
$font-size-h3-mobile: 24px;
|
23
|
+
$font-size-h4-desktop: 28px;
|
24
|
+
$font-size-h4-tablet: 24px;
|
25
|
+
$font-size-h4-mobile: 20px;
|
26
|
+
$font-size-h5-desktop: 24px;
|
27
|
+
$font-size-h5-tablet: 24px;
|
28
|
+
$font-size-h5-mobile: 20px;
|
29
|
+
$font-size-h6-desktop: 20px;
|
30
|
+
$font-size-h6-tablet: 20px;
|
31
|
+
$font-size-h6-mobile: 20px;
|
32
|
+
$font-size-small: 14px;
|
33
|
+
$font-size-caption: 12px;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$display-values: [none, inline, inline-block, block];
|
2
|
+
|
3
|
+
@mixin generate-display-helpers($breakpoint: null, $breakpoint-name: null) {
|
4
|
+
@each $display in $display-values {
|
5
|
+
@if $breakpoint and $breakpoint-name {
|
6
|
+
.d-#{$display}-#{$breakpoint-name} {
|
7
|
+
@media (min-width: $breakpoint) {
|
8
|
+
display: $display;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
} @else {
|
12
|
+
.d-#{$display} {
|
13
|
+
display: $display;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
$spacings-list: [$spacing-0, $spacing-1, $spacing-2, $spacing-3, $spacing-4,
|
2
|
+
$spacing-5, $spacing-6, $spacing-7, $spacing-8, $spacing-9];
|
3
|
+
|
4
|
+
@mixin generate-spacing-helpers-for($property) {
|
5
|
+
// Take the first letter of the property as the class name
|
6
|
+
// E.g., "m" for margin; "p" for padding.
|
7
|
+
$class-prefix: str-slice($property, 0, 1);
|
8
|
+
|
9
|
+
@each $spacing in $spacings-list {
|
10
|
+
$index: index($spacings-list, $spacing) - 1;
|
11
|
+
|
12
|
+
.#{$class-prefix}-#{$index} {
|
13
|
+
#{$property}: $spacing;
|
14
|
+
}
|
15
|
+
|
16
|
+
.#{$class-prefix}h-#{$index} {
|
17
|
+
#{$property}-left: $spacing;
|
18
|
+
#{$property}-right: $spacing;
|
19
|
+
}
|
20
|
+
|
21
|
+
.#{$class-prefix}v-#{$index} {
|
22
|
+
#{$property}-top: $spacing;
|
23
|
+
#{$property}-bottom: $spacing;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
// Mobile-first
|
2
|
+
.text-left {
|
3
|
+
text-align: left;
|
4
|
+
}
|
5
|
+
|
6
|
+
.text-center {
|
7
|
+
text-align: center;
|
8
|
+
}
|
9
|
+
|
10
|
+
.text-right {
|
11
|
+
text-align: right;
|
12
|
+
}
|
13
|
+
|
14
|
+
// Small and up
|
15
|
+
.text-left--small {
|
16
|
+
@media (min-width: $breakpoint-small) {
|
17
|
+
text-align: left;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.text-center--small {
|
22
|
+
@media (min-width: $breakpoint-small) {
|
23
|
+
text-align: center;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.text-right--small {
|
28
|
+
@media (min-width: $breakpoint-small) {
|
29
|
+
text-align: right;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
// Small only
|
34
|
+
.text-left--small-only {
|
35
|
+
@media (min-width: $breakpoint-small-up) and (max-width: $breakpoint-medium) {
|
36
|
+
text-align: left;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.text-center--small-only {
|
41
|
+
@media (min-width: $breakpoint-small-up) and (max-width: $breakpoint-medium) {
|
42
|
+
text-align: center;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.text-right--small-only {
|
47
|
+
@media (min-width: $breakpoint-small-up) and (max-width: $breakpoint-medium) {
|
48
|
+
text-align: right;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
// Medium and up
|
53
|
+
.text-left--medium {
|
54
|
+
@media (min-width: $breakpoint-medium) {
|
55
|
+
text-align: left;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.text-center--medium {
|
60
|
+
@media (min-width: $breakpoint-medium) {
|
61
|
+
text-align: center;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.text-right--medium {
|
66
|
+
@media (min-width: $breakpoint-medium) {
|
67
|
+
text-align: right;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// Medium only
|
72
|
+
.text-left--medium-only {
|
73
|
+
@media (min-width: $breakpoint-medium-up) and (max-width: $breakpoint-large) {
|
74
|
+
text-align: left;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.text-center--medium-only {
|
79
|
+
@media (min-width: $breakpoint-medium-up) and (max-width: $breakpoint-large) {
|
80
|
+
text-align: center;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.text-right--medium-only {
|
85
|
+
@media (min-width: $breakpoint-medium-up) and (max-width: $breakpoint-large) {
|
86
|
+
text-align: right;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
// Large and up
|
91
|
+
.text-left--large {
|
92
|
+
@media (min-width: $breakpoint-large) {
|
93
|
+
text-align: left;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.text-center--large {
|
98
|
+
@media (min-width: $breakpoint-large) {
|
99
|
+
text-align: center;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.text-right--large {
|
104
|
+
@media (min-width: $breakpoint-large) {
|
105
|
+
text-align: right;
|
106
|
+
}
|
107
|
+
}
|