@jotyping/jo-designsystem 0.1.12-alpha → 0.1.14-alpha

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 (47) hide show
  1. package/dist/components/button/jd-button.scss.js +1 -1
  2. package/dist/components/flash/jd-flash.scss.js +1 -1
  3. package/dist/components/footer/jd-footer.scss.js +1 -1
  4. package/dist/components/header/jd-header.scss.js +1 -1
  5. package/dist/components/heading/jd-heading.scss.js +1 -1
  6. package/dist/components/icon/jd-icon.scss.js +2 -2
  7. package/dist/components/icon-button/jd-icon-button.scss.js +1 -1
  8. package/dist/components/image-link/jd-image-link.scss.js +1 -1
  9. package/dist/components/link/jd-link.scss.js +1 -1
  10. package/dist/components/modal/jd-modal.scss.js +1 -1
  11. package/dist/components/tag/jd-tag.scss.js +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/styles/fonts-DrDPnbyS.css +1 -0
  14. package/dist/styles/variables-ClUb8GND.css +1 -0
  15. package/package.json +1 -1
  16. package/src/components/button/jd-button.scss +13 -13
  17. package/src/components/flash/jd-flash.scss +5 -5
  18. package/src/components/footer/jd-footer.scss +3 -3
  19. package/src/components/header/jd-header.scss +2 -2
  20. package/src/components/heading/jd-heading.scss +3 -3
  21. package/src/components/icon/jd-icon.scss +9 -9
  22. package/src/components/icon-button/jd-icon-button.scss +7 -7
  23. package/src/components/image-link/jd-image-link.scss +4 -4
  24. package/src/components/link/jd-link.scss +3 -3
  25. package/src/components/modal/jd-modal.scss +2 -2
  26. package/src/components/tag/jd-tag.scss +3 -3
  27. package/src/index.ts +1 -1
  28. package/src/styles/_mixins.scss +42 -42
  29. package/src/styles/{_fonts.scss → _tokens.scss} +12 -1
  30. package/src/styles/fonts.css +23 -0
  31. package/src/styles/variables.scss +1 -2
  32. package/dist/styles/font-Cfj3oqEL.css +0 -1
  33. package/dist/styles/variables-66ErY4EK.css +0 -1
  34. package/src/styles/_colors.scss +0 -10
  35. package/src/styles/font.css +0 -27
  36. /package/dist/assets/{fonts/satoshi-black.ttf → satoshi-black.ttf} +0 -0
  37. /package/dist/assets/{fonts/satoshi-bold.ttf → satoshi-bold.ttf} +0 -0
  38. /package/dist/assets/{fonts/satoshi-italic.ttf → satoshi-italic.ttf} +0 -0
  39. /package/dist/assets/{fonts/satoshi-regular.ttf → satoshi-regular.ttf} +0 -0
  40. /package/public/assets/{fonts/satoshi-black.ttf → satoshi-black.ttf} +0 -0
  41. /package/public/assets/{fonts/satoshi-bold.ttf → satoshi-bold.ttf} +0 -0
  42. /package/public/assets/{fonts/satoshi-italic.ttf → satoshi-italic.ttf} +0 -0
  43. /package/public/assets/{fonts/satoshi-regular.ttf → satoshi-regular.ttf} +0 -0
  44. /package/src/assets/{fonts/satoshi-black.ttf → satoshi-black.ttf} +0 -0
  45. /package/src/assets/{fonts/satoshi-bold.ttf → satoshi-bold.ttf} +0 -0
  46. /package/src/assets/{fonts/satoshi-italic.ttf → satoshi-italic.ttf} +0 -0
  47. /package/src/assets/{fonts/satoshi-regular.ttf → satoshi-regular.ttf} +0 -0
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "description": "Jo Design System",
7
- "version": "0.1.12-alpha",
7
+ "version": "0.1.14-alpha",
8
8
  "type": "module",
9
9
  "main": "dist/index.js",
10
10
  "module": "dist/index.js",
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: inline-block;
@@ -7,16 +7,16 @@
7
7
 
8
8
  :host([active]) button {
9
9
  &.primary {
10
- color: colors.$color-black;
11
- background-color: colors.$color-white;
10
+ color: tokens.$color-black;
11
+ background-color: tokens.$color-white;
12
12
  }
13
13
  &.secondary {
14
14
  color: #3a3a3a;
15
- background-color: colors.$color-white;
16
- outline: 3px solid colors.$color-black;
15
+ background-color: tokens.$color-white;
16
+ outline: 3px solid tokens.$color-black;
17
17
  outline-offset: -3px;
18
18
  &:hover {
19
- outline: 4px solid colors.$color-black;
19
+ outline: 4px solid tokens.$color-black;
20
20
  outline-offset: -4px;
21
21
  }
22
22
  }
@@ -34,22 +34,22 @@ button {
34
34
  overflow: hidden;
35
35
  text-overflow: ellipsis;
36
36
  &.primary {
37
- color: colors.$color-black;
38
- background-color: colors.$color-white;
39
- outline: 3px solid colors.$color-black;
37
+ color: tokens.$color-black;
38
+ background-color: tokens.$color-white;
39
+ outline: 3px solid tokens.$color-black;
40
40
  outline-offset: -3px;
41
41
  &:hover {
42
- outline: 4px solid colors.$color-black;
42
+ outline: 4px solid tokens.$color-black;
43
43
  outline-offset: -4px;
44
44
  }
45
45
  }
46
46
  &.secondary {
47
47
  color: #3a3a3a;
48
- background-color: colors.$color-white;
49
- outline: 1px solid colors.$color-neutral-200;
48
+ background-color: tokens.$color-white;
49
+ outline: 1px solid tokens.$color-neutral-200;
50
50
  outline-offset: -1px;
51
51
  &:hover {
52
- outline: 3px solid colors.$color-neutral-200;
52
+ outline: 3px solid tokens.$color-neutral-200;
53
53
  outline-offset: -3px;
54
54
  }
55
55
  }
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: inline-block;
@@ -23,18 +23,18 @@
23
23
  @include mixins.font-03-subheadline;
24
24
  }
25
25
  &.red {
26
- color: colors.$color-accent-red;
26
+ color: tokens.$color-accent-red;
27
27
  }
28
28
  &.purple {
29
- color: colors.$color-accent-purple;
29
+ color: tokens.$color-accent-purple;
30
30
  }
31
31
  &.blue {
32
- color: colors.$color-accent-blue;
32
+ color: tokens.$color-accent-blue;
33
33
  }
34
34
  }
35
35
 
36
36
  .icon-wrapper {
37
- color: colors.$color-black;
37
+ color: tokens.$color-black;
38
38
  &.m,
39
39
  &.l {
40
40
  width: 72px;
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: block;
@@ -7,7 +7,7 @@
7
7
  .footer-wrapper {
8
8
  display: flex;
9
9
  justify-content: start;
10
- border-top: 2px solid colors.$color-black;
10
+ border-top: 2px solid tokens.$color-black;
11
11
  @include mixins.font-03-copy;
12
12
  &.s {
13
13
  flex-direction: column;
@@ -38,5 +38,5 @@
38
38
  justify-content: center;
39
39
  width: 28px;
40
40
  height: 28px;
41
- color: colors.$color-black;
41
+ color: tokens.$color-black;
42
42
  }
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: block;
@@ -43,6 +43,6 @@
43
43
 
44
44
  .logo {
45
45
  @include mixins.font-logo;
46
- color: colors.$color-black;
46
+ color: tokens.$color-black;
47
47
  cursor: pointer;
48
48
  }
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: inline-block;
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .title-wrapper {
15
- color: colors.$color-black;
15
+ color: tokens.$color-black;
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  gap: 0px;
@@ -28,7 +28,7 @@
28
28
  }
29
29
 
30
30
  .subtitle-wrapper {
31
- color: colors.$color-black;
31
+ color: tokens.$color-black;
32
32
  &.l {
33
33
  @include mixins.font-01-subheadline;
34
34
  }
@@ -1,4 +1,4 @@
1
- @use "/src/styles/colors.scss" as colors;
1
+ @use "/src/styles/tokens.scss" as tokens;
2
2
 
3
3
  :host {
4
4
  display: inline-block;
@@ -9,27 +9,27 @@
9
9
  align-items: center;
10
10
  justify-content: center;
11
11
  &.blue {
12
- color: colors.$color-accent-blue;
12
+ color: tokens.$color-accent-blue;
13
13
  }
14
14
  &.red {
15
- color: colors.$color-accent-red;
15
+ color: tokens.$color-accent-red;
16
16
  }
17
17
  &.purple {
18
- color: colors.$color-accent-purple;
18
+ color: tokens.$color-accent-purple;
19
19
  }
20
20
  &.black {
21
- color: colors.$color-black;
21
+ color: tokens.$color-black;
22
22
  }
23
23
  &.white {
24
- color: colors.$color-white;
24
+ color: tokens.$color-white;
25
25
  }
26
26
  &.neutral-200 {
27
- color: colors.$color-neutral-200;
27
+ color: tokens.$color-neutral-200;
28
28
  }
29
29
  &.neutral-400 {
30
- color: colors.$color-neutral-400;
30
+ color: tokens.$color-neutral-400;
31
31
  }
32
32
  &.neutral-600 {
33
- color: colors.$color-neutral-600;
33
+ color: tokens.$color-neutral-600;
34
34
  }
35
35
  }
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: inline-block;
@@ -9,7 +9,7 @@
9
9
 
10
10
  :host([active]) button {
11
11
  &.borderless {
12
- color: colors.$color-black;
12
+ color: tokens.$color-black;
13
13
  }
14
14
  }
15
15
 
@@ -20,16 +20,16 @@ button {
20
20
  width: 48px;
21
21
  height: 48px;
22
22
  &.borderless {
23
- color: colors.$color-black;
24
- background-color: colors.$color-white;
23
+ color: tokens.$color-black;
24
+ background-color: tokens.$color-white;
25
25
  &:hover {
26
- color: colors.$color-accent-red;
26
+ color: tokens.$color-accent-red;
27
27
  }
28
28
  }
29
29
  &.border {
30
30
  color: #3a3a3a;
31
- background-color: colors.$color-white;
32
- outline: 2px solid colors.$color-black;
31
+ background-color: tokens.$color-white;
32
+ outline: 2px solid tokens.$color-black;
33
33
  outline-offset: -2px;
34
34
  border-radius: 24px;
35
35
  }
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: inline-block;
@@ -13,11 +13,11 @@
13
13
  }
14
14
 
15
15
  a {
16
- color: colors.$color-black;
16
+ color: tokens.$color-black;
17
17
  text-decoration: none;
18
18
  background-color: transparent;
19
19
  &:hover {
20
- color: colors.$color-black;
20
+ color: tokens.$color-black;
21
21
  }
22
22
  }
23
23
 
@@ -32,7 +32,7 @@ a {
32
32
  }
33
33
 
34
34
  .divider {
35
- border-bottom: solid 2px colors.$color-black;
35
+ border-bottom: solid 2px tokens.$color-black;
36
36
  height: 1px;
37
37
  }
38
38
 
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: inline-block;
@@ -13,11 +13,11 @@
13
13
  }
14
14
 
15
15
  a {
16
- color: colors.$color-black;
16
+ color: tokens.$color-black;
17
17
  text-decoration: none;
18
18
  background-color: transparent;
19
19
  &:hover {
20
- color: colors.$color-black;
20
+ color: tokens.$color-black;
21
21
  text-decoration: underline;
22
22
  text-decoration-thickness: 2px;
23
23
  text-underline-offset: 6px;
@@ -1,9 +1,9 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  .content {
5
5
  display: flex;
6
- background-color: colors.$color-white;
6
+ background-color: tokens.$color-white;
7
7
  position: fixed;
8
8
  &.s {
9
9
  top: 0;
@@ -1,5 +1,5 @@
1
1
  @use "/src/styles/mixins.scss" as mixins;
2
- @use "/src/styles/colors.scss" as colors;
2
+ @use "/src/styles/tokens.scss" as tokens;
3
3
 
4
4
  :host {
5
5
  display: inline-block;
@@ -14,6 +14,6 @@
14
14
  border-radius: 32px;
15
15
  height: 64px;
16
16
  border: none;
17
- color: colors.$color-black;
18
- background-color: colors.$color-neutral-200;
17
+ color: tokens.$color-black;
18
+ background-color: tokens.$color-neutral-200;
19
19
  }
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./styles/variables.scss";
2
- import "./styles/font.css";
2
+ import "./styles/fonts.css";
3
3
 
4
4
  export * from "./components/button/jd-button.js";
5
5
  export * from "./components/flash/jd-flash.js";
@@ -1,91 +1,91 @@
1
- @use "fonts" as font;
1
+ @use "tokens" as token;
2
2
 
3
- /* Regular fonts */
3
+ /* Regular tokens */
4
4
  @mixin font-01-copy {
5
- font-family: #{font.$font-regular};
6
- font-size: #{font.$font-size-01-copy}; /* 34x */
7
- line-height: #{font.$line-height-01-copy}; /* 52px */
5
+ font-family: #{token.$font-regular};
6
+ font-size: #{token.$font-size-01-copy}; /* 34x */
7
+ line-height: #{token.$line-height-01-copy}; /* 52px */
8
8
  }
9
9
 
10
10
  @mixin font-02-copy {
11
- font-family: #{font.$font-regular};
12
- font-size: #{font.$font-size-02-copy}; /* 28x */
13
- line-height: #{font.$line-height-02-copy}; /* 42px */
11
+ font-family: #{token.$font-regular};
12
+ font-size: #{token.$font-size-02-copy}; /* 28x */
13
+ line-height: #{token.$line-height-02-copy}; /* 42px */
14
14
  }
15
15
 
16
16
  @mixin font-03-copy {
17
- font-family: #{font.$font-regular};
18
- font-size: #{font.$font-size-03-copy}; /* 22x */
19
- line-height: #{font.$line-height-03-copy}; /* 32px */
17
+ font-family: #{token.$font-regular};
18
+ font-size: #{token.$font-size-03-copy}; /* 22x */
19
+ line-height: #{token.$line-height-03-copy}; /* 32px */
20
20
  }
21
21
 
22
22
  /* Italic fonts */
23
23
  @mixin font-01-copy-italic {
24
- font-family: #{font.$font-italic};
25
- font-size: #{font.$font-size-01-copy}; /* 34x */
26
- line-height: #{font.$line-height-01-copy}; /* 52px */
24
+ font-family: #{token.$font-italic};
25
+ font-size: #{token.$font-size-01-copy}; /* 34x */
26
+ line-height: #{token.$line-height-01-copy}; /* 52px */
27
27
  }
28
28
 
29
29
  @mixin font-02-copy-italic {
30
- font-family: #{font.$font-italic};
31
- font-size: #{font.$font-size-02-copy}; /* 28x */
32
- line-height: #{font.$line-height-02-copy}; /* 42px */
30
+ font-family: #{token.$font-italic};
31
+ font-size: #{token.$font-size-02-copy}; /* 28x */
32
+ line-height: #{token.$line-height-02-copy}; /* 42px */
33
33
  }
34
34
 
35
35
  @mixin font-03-copy-italic {
36
- font-family: #{font.$font-italic};
37
- font-size: #{font.$font-size-03-copy}; /* 22x */
38
- line-height: #{font.$line-height-03-copy}; /* 32px */
36
+ font-family: #{token.$font-italic};
37
+ font-size: #{token.$font-size-03-copy}; /* 22x */
38
+ line-height: #{token.$line-height-03-copy}; /* 32px */
39
39
  }
40
40
 
41
41
  /* Button fonts */
42
42
  @mixin font-button {
43
- font-family: #{font.$font-bold};
44
- font-size: #{font.$font-size-button}; /* 24x */
45
- line-height: #{font.$line-height-button}; /* 42px */
43
+ font-family: #{token.$font-bold};
44
+ font-size: #{token.$font-size-button}; /* 24x */
45
+ line-height: #{token.$line-height-button}; /* 42px */
46
46
  }
47
47
 
48
48
  /* Headline fonts */
49
49
  @mixin font-01-headline {
50
- font-family: #{font.$font-black};
51
- font-size: #{font.$font-size-01-headline}; /* 130px */
52
- line-height: #{font.$line-height-01-headline}; /* 112px */
50
+ font-family: #{token.$font-black};
51
+ font-size: #{token.$font-size-01-headline}; /* 130px */
52
+ line-height: #{token.$line-height-01-headline}; /* 112px */
53
53
  }
54
54
 
55
55
  @mixin font-02-headline {
56
- font-family: #{font.$font-black};
57
- font-size: #{font.$font-size-02-headline}; /* 100x */
58
- line-height: #{font.$line-height-02-headline}; /* 90px */
56
+ font-family: #{token.$font-black};
57
+ font-size: #{token.$font-size-02-headline}; /* 100x */
58
+ line-height: #{token.$line-height-02-headline}; /* 90px */
59
59
  }
60
60
 
61
61
  @mixin font-03-headline {
62
- font-family: #{font.$font-black};
63
- font-size: #{font.$font-size-03-headline}; /* 80x */
64
- line-height: #{font.$line-height-03-headline}; /* 72px */
62
+ font-family: #{token.$font-black};
63
+ font-size: #{token.$font-size-03-headline}; /* 80x */
64
+ line-height: #{token.$line-height-03-headline}; /* 72px */
65
65
  }
66
66
 
67
67
  /* Subheadline fonts */
68
68
  @mixin font-01-subheadline {
69
- font-family: #{font.$font-italic};
70
- font-size: #{font.$font-size-01-subheadline}; /* 130x */
71
- line-height: #{font.$line-height-01-subheadline}; /* 112px */
69
+ font-family: #{token.$font-italic};
70
+ font-size: #{token.$font-size-01-subheadline}; /* 130x */
71
+ line-height: #{token.$line-height-01-subheadline}; /* 112px */
72
72
  }
73
73
 
74
74
  @mixin font-02-subheadline {
75
- font-family: #{font.$font-italic};
76
- font-size: #{font.$font-size-02-subheadline}; /* 100x */
77
- line-height: #{font.$line-height-02-subheadline}; /* 90px */
75
+ font-family: #{token.$font-italic};
76
+ font-size: #{token.$font-size-02-subheadline}; /* 100x */
77
+ line-height: #{token.$line-height-02-subheadline}; /* 90px */
78
78
  }
79
79
 
80
80
  @mixin font-03-subheadline {
81
- font-family: #{font.$font-italic};
82
- font-size: #{font.$font-size-03-subheadline}; /* 80x */
83
- line-height: #{font.$line-height-03-subheadline}; /* 72px */
81
+ font-family: #{token.$font-italic};
82
+ font-size: #{token.$font-size-03-subheadline}; /* 80x */
83
+ line-height: #{token.$line-height-03-subheadline}; /* 72px */
84
84
  }
85
85
 
86
86
  /* Logo font */
87
87
  @mixin font-logo {
88
- font-family: #{font.$font-black};
88
+ font-family: #{token.$font-black};
89
89
  font-size: 30px;
90
90
  line-height: 168px;
91
91
  }
@@ -1,4 +1,4 @@
1
- @import "font.css";
1
+ @import "fonts.css";
2
2
 
3
3
  /* --- FONT FAMILIES --- */
4
4
  $font-regular: "Satoshi_Regular", sans-serif;
@@ -37,3 +37,14 @@ $line-height-02-subheadline: 50px;
37
37
 
38
38
  $font-size-03-subheadline: 34px;
39
39
  $line-height-03-subheadline: 36px;
40
+
41
+ $color-black: #3a3a3a;
42
+ $color-white: #ffffff;
43
+
44
+ $color-neutral-200: #f3f3f3;
45
+ $color-neutral-400: #d5d5d5;
46
+ $color-neutral-600: #898989;
47
+
48
+ $color-accent-blue: #2a91ff;
49
+ $color-accent-purple: #bf2aff;
50
+ $color-accent-red: #ff4d2a;
@@ -0,0 +1,23 @@
1
+ @font-face {
2
+ font-family: "Satoshi_Regular";
3
+ font-display: swap;
4
+ src: url(../assets/satoshi-regular.ttf) format("truetype");
5
+ }
6
+
7
+ @font-face {
8
+ font-family: "Satoshi_Bold";
9
+ font-display: swap;
10
+ src: url(../assets/satoshi-bold.ttf) format("truetype");
11
+ }
12
+
13
+ @font-face {
14
+ font-family: "Satoshi_Black";
15
+ font-display: swap;
16
+ src: url(../assets/satoshi-black.ttf) format("truetype");
17
+ }
18
+
19
+ @font-face {
20
+ font-family: "Satoshi_Italic";
21
+ font-display: swap;
22
+ src: url(../assets/satoshi-italic.ttf) format("truetype");
23
+ }
@@ -1,5 +1,4 @@
1
- @use "fonts" as font;
2
- @use "colors" as color;
1
+ @use "tokens" as t;
3
2
  @use "mixins" as *;
4
3
 
5
4
  body,