@justfixnyc/component-library 0.56.4 → 0.56.6

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/package.json CHANGED
@@ -2,11 +2,14 @@
2
2
  "name": "@justfixnyc/component-library",
3
3
  "description": "JustFix Component Library",
4
4
  "license": "MIT",
5
- "version": "0.56.4",
5
+ "version": "0.56.6",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.es.js",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "src/styles/colors.scss",
11
+ "src/styles/mixins.scss",
12
+ "src/styles/spacing.scss"
10
13
  ],
11
14
  "scripts": {
12
15
  "build": "npm run build:js && npm run build:types",
@@ -0,0 +1,30 @@
1
+ $WHITE: #ffffff;
2
+ $OFF_WHITE_100: #faf8f4;
3
+ $OFF_WHITE_150: #ebece8;
4
+ $OFF_WHITE_200: #efe9dc;
5
+ $OFF_BLACK: #242323;
6
+ $GREY_700: #4e4b4b;
7
+ $GREY_600: #676565;
8
+ $GREY_400: #9a9898;
9
+ $GREY_50: #f2f2f2;
10
+ $GREEN: #1aa551;
11
+ $PINK: #ffa0c7;
12
+ $YELLOW: #ffba33;
13
+ $ORANGE: #ff813a;
14
+ $BLUE: #5188ff;
15
+ $BLUE_50: #edf3ff;
16
+ $BLUE_100: #c6d8ff;
17
+ $BLUE_150: #9fbdff;
18
+ $GREY_SHADOW: #d4d5d0;
19
+ $GREY_DISABLED: #ebece8;
20
+ $GREY_NEW: #c5ccd1;
21
+
22
+ $FOCUS_OUTLINE_COLOR: $BLUE;
23
+ $INVALID_COLOR: $ORANGE;
24
+
25
+ $ORANGE: #ff813a;
26
+ $RED: #ba4300;
27
+
28
+ $TEXT_DISABLED: $GREY_600;
29
+ $BACKGROUND_DISABLED: $GREY_50;
30
+ $BORDER_DISABLED: $GREY_400;
@@ -0,0 +1,47 @@
1
+ @mixin body_standard_desktop {
2
+ font-family: 'Degular', Arial, Helvetica, sans-serif;
3
+ font-style: normal;
4
+ font-weight: 500;
5
+ font-size: 1.125rem; // 18px
6
+ line-height: 120%; // 21.6px
7
+ letter-spacing: 0.54px;
8
+ }
9
+
10
+ @mixin eyebrow_mobile {
11
+ font-family: "Suisse Int'l Mono";
12
+ font-size: 0.875rem; // 14px
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ line-height: 115%; // 16.1px
16
+ letter-spacing: 0.42px;
17
+ text-transform: uppercase;
18
+ }
19
+
20
+ @mixin small_text_mobile {
21
+ font-family: 'Degular', Arial, Helvetica, sans-serif;
22
+ font-size: 0.875rem; // 14px
23
+ font-style: normal;
24
+ font-weight: 500;
25
+ line-height: 130%; // 18.2px
26
+ letter-spacing: 0.42px;
27
+ }
28
+
29
+ @keyframes spin {
30
+ from {
31
+ transform: rotate(0deg);
32
+ }
33
+
34
+ to {
35
+ transform: rotate(360deg);
36
+ }
37
+ }
38
+
39
+ @mixin loading-spinner($color: $WHITE) {
40
+ display: block;
41
+ animation: spin 500ms infinite linear;
42
+ position: relative;
43
+ border: 2px solid $color;
44
+ border-radius: $iconWidth;
45
+ border-right-color: transparent;
46
+ border-top-color: transparent;
47
+ }
@@ -0,0 +1,13 @@
1
+ $JF_SPACING_01: 0.125rem; // 2px
2
+ $JF_SPACING_02: 0.25rem; // 4px
3
+ $JF_SPACING_03: 0.5rem; // 8px
4
+ $JF_SPACING_04: 0.75rem; // 12px
5
+ $JF_SPACING_05: 1rem; // 16px
6
+ $JF_SPACING_06: 1.5rem; // 24px
7
+ $JF_SPACING_07: 2rem; // 32px
8
+ $JF_SPACING_08: 2.5rem; // 40px
9
+ $JF_SPACING_09: 3rem; // 48px
10
+ $JF_SPACING_10: 4rem; // 64px
11
+ $JF_SPACING_11: 5rem; // 80px
12
+ $JF_SPACING_12: 6rem; // 96px
13
+ $JF_SPACING_13: 10rem; // 160px