@fremtind/jokul 5.0.0-next.2 → 5.0.0-next.3

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 (144) hide show
  1. package/README.md +14 -13
  2. package/build/build-stats.html +1 -1
  3. package/build/cjs/components/text-area/BaseTextArea.cjs +1 -1
  4. package/build/cjs/components/text-area/BaseTextArea.cjs.map +1 -1
  5. package/build/cjs/components/text-area/counter.cjs +2 -0
  6. package/build/cjs/components/text-area/counter.cjs.map +1 -0
  7. package/build/cjs/components/text-area/counter.d.cts +2 -0
  8. package/build/cjs/components/text-area/types.d.cts +21 -1
  9. package/build/cjs/components/typography/Text.cjs +2 -0
  10. package/build/cjs/components/typography/Text.cjs.map +1 -0
  11. package/build/cjs/components/typography/Text.d.cts +5 -0
  12. package/build/cjs/components/typography/Title.cjs +2 -0
  13. package/build/cjs/components/typography/Title.cjs.map +1 -0
  14. package/build/cjs/components/typography/Title.d.cts +5 -0
  15. package/build/cjs/components/typography/index.cjs +2 -0
  16. package/build/cjs/components/typography/index.cjs.map +1 -0
  17. package/build/cjs/components/typography/index.d.cts +3 -0
  18. package/build/cjs/components/typography/types.cjs +2 -0
  19. package/build/cjs/components/typography/types.cjs.map +1 -0
  20. package/build/cjs/components/typography/types.d.cts +48 -0
  21. package/build/es/components/text-area/BaseTextArea.js +1 -1
  22. package/build/es/components/text-area/BaseTextArea.js.map +1 -1
  23. package/build/es/components/text-area/counter.d.ts +2 -0
  24. package/build/es/components/text-area/counter.js +2 -0
  25. package/build/es/components/text-area/counter.js.map +1 -0
  26. package/build/es/components/text-area/types.d.ts +21 -1
  27. package/build/es/components/typography/Text.d.ts +5 -0
  28. package/build/es/components/typography/Text.js +2 -0
  29. package/build/es/components/typography/Text.js.map +1 -0
  30. package/build/es/components/typography/Title.d.ts +5 -0
  31. package/build/es/components/typography/Title.js +2 -0
  32. package/build/es/components/typography/Title.js.map +1 -0
  33. package/build/es/components/typography/index.d.ts +3 -0
  34. package/build/es/components/typography/index.js +2 -0
  35. package/build/es/components/typography/index.js.map +1 -0
  36. package/build/es/components/typography/types.d.ts +48 -0
  37. package/build/es/components/typography/types.js +2 -0
  38. package/build/es/components/typography/types.js.map +1 -0
  39. package/package.json +1 -1
  40. package/src/fonts/brands/dnb/DNB-Bold.woff2 +0 -0
  41. package/src/fonts/brands/dnb/DNB-Medium.woff2 +0 -0
  42. package/src/fonts/brands/dnb/DNB-Regular.woff2 +0 -0
  43. package/src/fonts/brands/dnb/DNBMono-Regular.woff2 +0 -0
  44. package/src/fonts/brands/eika/OpenSans-Bold.woff2 +0 -0
  45. package/src/fonts/brands/eika/OpenSans-Light.woff2 +0 -0
  46. package/src/fonts/brands/eika/OpenSans-Regular.woff2 +0 -0
  47. package/src/fonts/brands/eika/OpenSans-SemiBold.woff2 +0 -0
  48. package/src/fonts/brands/fremtind/InterVariable-Italic.woff2 +0 -0
  49. package/src/fonts/brands/fremtind/InterVariable.woff2 +0 -0
  50. package/src/fonts/brands/sparebank1/SpareBank1-Medium-Web.woff2 +0 -0
  51. package/src/fonts/brands/sparebank1/SpareBank1-Regular-Web.woff2 +0 -0
  52. package/src/fonts/brands/sparebank1/SpareBank1-Title-Medium-Web.woff2 +0 -0
  53. package/styles/base.css +125 -18
  54. package/styles/base.min.css +1 -1
  55. package/styles/components/beta/nav-link/navlink.css +1 -1
  56. package/styles/components/beta/nav-link/navlink.min.css +1 -1
  57. package/styles/components/checkbox/checkbox.css +1 -1
  58. package/styles/components/checkbox/checkbox.min.css +1 -1
  59. package/styles/components/checkbox-panel/checkbox-panel.css +1 -1
  60. package/styles/components/checkbox-panel/checkbox-panel.min.css +1 -1
  61. package/styles/components/checkbox-panel/development/styles.scss +1 -1
  62. package/styles/components/countdown/countdown.css +2 -2
  63. package/styles/components/countdown/countdown.min.css +1 -1
  64. package/styles/components/feedback/_index.scss +1 -1
  65. package/styles/components/feedback/feedback.css +2 -2
  66. package/styles/components/feedback/feedback.min.css +1 -1
  67. package/styles/components/file-input/file-input.css +10 -10
  68. package/styles/components/file-input/file-input.min.css +1 -1
  69. package/styles/components/icon/_base-styles.scss +12 -14
  70. package/styles/components/icon/icon.css +1 -1
  71. package/styles/components/icon/icon.min.css +1 -1
  72. package/styles/components/input-group/input-group.css +2 -2
  73. package/styles/components/input-group/input-group.min.css +1 -1
  74. package/styles/components/link/link.css +1 -1
  75. package/styles/components/link/link.min.css +1 -1
  76. package/styles/components/link-list/link-list.css +1 -1
  77. package/styles/components/link-list/link-list.min.css +1 -1
  78. package/styles/components/loader/loader.css +6 -6
  79. package/styles/components/loader/loader.min.css +1 -1
  80. package/styles/components/loader/skeleton-loader.css +3 -3
  81. package/styles/components/loader/skeleton-loader.min.css +1 -1
  82. package/styles/components/message/message.css +2 -2
  83. package/styles/components/message/message.min.css +1 -1
  84. package/styles/components/pagination/development/styles.scss +1 -1
  85. package/styles/components/progress-bar/progress-bar.css +1 -1
  86. package/styles/components/progress-bar/progress-bar.min.css +1 -1
  87. package/styles/components/radio-button/radio-button.css +1 -1
  88. package/styles/components/radio-button/radio-button.min.css +1 -1
  89. package/styles/components/radio-panel/development/styles.scss +1 -1
  90. package/styles/components/search/search.css +2 -2
  91. package/styles/components/search/search.min.css +1 -1
  92. package/styles/components/search/search.scss +2 -2
  93. package/styles/components/segmented-control/segmented-control.css +4 -4
  94. package/styles/components/segmented-control/segmented-control.min.css +1 -1
  95. package/styles/components/segmented-control/segmented-control.scss +1 -1
  96. package/styles/components/summary-table/development/summary-table-example.scss +1 -1
  97. package/styles/components/system-message/system-message.css +2 -2
  98. package/styles/components/system-message/system-message.min.css +1 -1
  99. package/styles/components/table-of-contents/table-of-contents.css +1 -1
  100. package/styles/components/table-of-contents/table-of-contents.min.css +1 -1
  101. package/styles/components/table-of-contents/table-of-contents.scss +2 -2
  102. package/styles/components/toast/toast.css +4 -4
  103. package/styles/components/toast/toast.min.css +1 -1
  104. package/styles/components/typography/_index.scss +2 -0
  105. package/styles/components/typography/text.css +38 -0
  106. package/styles/components/typography/text.min.css +1 -0
  107. package/styles/components/typography/text.scss +54 -0
  108. package/styles/components/typography/title.css +55 -0
  109. package/styles/components/typography/title.min.css +1 -0
  110. package/styles/components/typography/title.scss +59 -0
  111. package/styles/components.css +120 -33
  112. package/styles/components.min.css +2 -2
  113. package/styles/components.scss +53 -52
  114. package/styles/core/utility/_paragraphs.scss +39 -0
  115. package/styles/global/_base-class.scss +2 -2
  116. package/styles/global/_top-layer.scss +1 -1
  117. package/styles/hooks/stories/styles.scss +1 -1
  118. package/styles/jkl/_typography.scss +13 -21
  119. package/styles/theme/_dynamic-spacing.scss +3 -3
  120. package/styles/theme/_fonts.scss +16 -28
  121. package/styles/theme/_index.scss +3 -0
  122. package/styles/theme/_tokens.scss +3 -3
  123. package/styles/theme/brands/dnb/_fonts.scss +46 -0
  124. package/styles/theme/brands/eika/_fonts.scss +46 -0
  125. package/styles/theme/brands/jokul/_color-scheme.scss +119 -0
  126. package/styles/theme/brands/jokul/_fonts.scss +46 -0
  127. package/styles/theme/brands/sparebank1/_fonts.scss +38 -0
  128. package/styles/utility/_headings.scss +1 -1
  129. package/styles/utility/_paragraphs.scss +2 -2
  130. package/styles/utility/_screen-reader.scss +1 -1
  131. package/styles/utility/_spacing.scss +2 -2
  132. package/src/fonts/FremtindGrotesk-Bold-Web.woff +0 -0
  133. package/src/fonts/FremtindGrotesk-Bold-Web.woff2 +0 -0
  134. package/src/fonts/FremtindGrotesk-BoldItalic-Web.woff +0 -0
  135. package/src/fonts/FremtindGrotesk-BoldItalic-Web.woff2 +0 -0
  136. package/src/fonts/FremtindGrotesk-Display-Web.woff +0 -0
  137. package/src/fonts/FremtindGrotesk-Display-Web.woff2 +0 -0
  138. package/src/fonts/FremtindGrotesk-Italic-Web.woff +0 -0
  139. package/src/fonts/FremtindGrotesk-Italic-Web.woff2 +0 -0
  140. package/src/fonts/FremtindGrotesk-Regular-Web.woff +0 -0
  141. package/src/fonts/FremtindGrotesk-Regular-Web.woff2 +0 -0
  142. package/src/fonts/FremtindGroteskMono-Regular-Web.woff +0 -0
  143. package/src/fonts/FremtindGroteskMono-Regular-Web.woff2 +0 -0
  144. /package/src/fonts/{Fremtind-Material-Symbols.woff2 → brands/fremtind/Fremtind-Material-Symbols.woff2} +0 -0
@@ -1,52 +1,53 @@
1
- @use "components/autosuggest" as autosuggest;
2
- @use "components/breadcrumb" as breadcrumb;
3
- @use "components/button" as button;
4
- @use "components/card" as card;
5
- @use "components/checkbox" as checkbox;
6
- @use "components/checkbox-panel" as checkbox-panel;
7
- @use "components/chip" as chip;
8
- @use "components/combobox" as combobox;
9
- @use "components/cookie-consent" as cookie-consent;
10
- @use "components/countdown" as countdown;
11
- @use "components/datepicker" as datepicker;
12
- @use "components/description-list" as description-list;
13
- @use "components/expander" as expander;
14
- @use "components/feedback" as feedback;
15
- @use "components/file" as file;
16
- @use "components/file-input" as file-input;
17
- @use "components/icon" as icon;
18
- @use "components/icon-button" as icon-button;
19
- @use "components/image" as image;
20
- @use "components/input-group" as input-group;
21
- @use "components/link" as link;
22
- @use "components/link-list" as link-list;
23
- @use "components/list" as list;
24
- @use "components/loader" as loader;
25
- @use "components/logo" as logo;
26
- @use "components/menu" as menu;
27
- @use "components/message" as message;
28
- @use "components/modal" as modal;
29
- @use "components/nav-link" as nav-link;
30
- @use "components/beta/nav-link" as nav-link-beta;
31
- @use "components/pagination" as pagination;
32
- @use "components/popover" as popover;
33
- @use "components/progress-bar" as progress-bar;
34
- @use "components/radio-button" as radio-button;
35
- @use "components/radio-panel" as radio-panel;
36
- @use "components/select" as select;
37
- @use "components/beta/select" as select-beta;
38
- @use "components/search" as search;
39
- @use "components/segmented-control" as segmented-control;
40
- @use "components/summary-table" as summary-table;
41
- @use "components/system-message" as system-message;
42
- @use "components/table" as table;
43
- @use "components/table-of-contents" as table-of-contents;
44
- @use "components/tabs" as tabs;
45
- @use "components/tag" as tag;
46
- @use "components/text-area" as text-area;
47
- @use "components/text-input" as text-input;
48
- @use "components/toast" as toast;
49
- @use "components/toggle-switch" as toggle-switch;
50
- @use "components/tooltip" as tooltip;
51
- @use "components/help" as help;
52
- @use "components/flex" as flex;
1
+ @use "./components/autosuggest" as autosuggest;
2
+ @use "./components/breadcrumb" as breadcrumb;
3
+ @use "./components/button" as button;
4
+ @use "./components/card" as card;
5
+ @use "./components/checkbox" as checkbox;
6
+ @use "./components/checkbox-panel" as checkbox-panel;
7
+ @use "./components/chip" as chip;
8
+ @use "./components/combobox" as combobox;
9
+ @use "./components/cookie-consent" as cookie-consent;
10
+ @use "./components/countdown" as countdown;
11
+ @use "./components/datepicker" as datepicker;
12
+ @use "./components/description-list" as description-list;
13
+ @use "./components/expander" as expander;
14
+ @use "./components/feedback" as feedback;
15
+ @use "./components/file" as file;
16
+ @use "./components/file-input" as file-input;
17
+ @use "./components/icon" as icon;
18
+ @use "./components/icon-button" as icon-button;
19
+ @use "./components/image" as image;
20
+ @use "./components/input-group" as input-group;
21
+ @use "./components/link" as link;
22
+ @use "./components/link-list" as link-list;
23
+ @use "./components/list" as list;
24
+ @use "./components/loader" as loader;
25
+ @use "./components/logo" as logo;
26
+ @use "./components/menu" as menu;
27
+ @use "./components/message" as message;
28
+ @use "./components/modal" as modal;
29
+ @use "./components/nav-link" as nav-link;
30
+ @use "./components/beta/nav-link" as nav-link-beta;
31
+ @use "./components/pagination" as pagination;
32
+ @use "./components/popover" as popover;
33
+ @use "./components/progress-bar" as progress-bar;
34
+ @use "./components/radio-button" as radio-button;
35
+ @use "./components/radio-panel" as radio-panel;
36
+ @use "./components/select" as select;
37
+ @use "./components/beta/select" as select-beta;
38
+ @use "./components/search" as search;
39
+ @use "./components/segmented-control" as segmented-control;
40
+ @use "./components/summary-table" as summary-table;
41
+ @use "./components/system-message" as system-message;
42
+ @use "./components/table" as table;
43
+ @use "./components/table-of-contents" as table-of-contents;
44
+ @use "./components/tabs" as tabs;
45
+ @use "./components/tag" as tag;
46
+ @use "./components/text-area" as text-area;
47
+ @use "./components/text-input" as text-input;
48
+ @use "./components/toast" as toast;
49
+ @use "./components/toggle-switch" as toggle-switch;
50
+ @use "./components/tooltip" as tooltip;
51
+ @use "./components/typography" as typography;
52
+ @use "./components/help" as help;
53
+ @use "./components/flex" as flex;
@@ -0,0 +1,39 @@
1
+ @use "sass:map";
2
+ @use "../jkl";
3
+ @use "../jkl/typography";
4
+
5
+ @layer jokul.utility {
6
+ .jkl-body {
7
+ @include jkl.text-style("paragraph-medium");
8
+ }
9
+
10
+ .jkl-bold {
11
+ @include jkl.text-style("paragraph-medium") {
12
+ --jkl-icon-weight: #{jkl.$icon-weight-bold};
13
+ font-weight: jkl.$typography-weight-bold;
14
+ }
15
+ }
16
+
17
+ .jkl-small {
18
+ @include jkl.text-style("paragraph-small");
19
+ }
20
+
21
+ @each $style, $_ in typography.$text-styles {
22
+ // Title-komponenten bruker `.jkl-title` som klasse og styrer
23
+ // stilen via `data-text-size`. Utility-laget vinner over
24
+ // components-laget i cascade, så vi må ekskludere komponenten her
25
+ // for at `size`-propen fortsatt skal ha effekt.
26
+ $selector: if(
27
+ $style == "title",
28
+ ".jkl-title:not([data-text-size])",
29
+ ".jkl-#{$style}"
30
+ );
31
+
32
+ #{$selector} {
33
+ @each $property, $value in map.get(typography.$text-styles, $style)
34
+ {
35
+ #{$property}: $value;
36
+ }
37
+ }
38
+ }
39
+ }
@@ -1,4 +1,4 @@
1
- @use "jkl";
1
+ @use "../jkl";
2
2
 
3
3
  @layer jokul.global {
4
4
  /* Legger til støtte for fontskalering via OS-innstillinger på Apple-enheter */
@@ -21,7 +21,7 @@
21
21
  background-color: var(--jkl-background-color);
22
22
  color: var(--jkl-color);
23
23
 
24
- @include jkl.use-font-family("Fremtind Grotesk");
24
+ @include jkl.use-font-family("Jokul");
25
25
 
26
26
  strong {
27
27
  font-weight: jkl.$font-weight-bold;
@@ -1,4 +1,4 @@
1
- @use "jkl";
1
+ @use "../jkl";
2
2
 
3
3
  @layer jokul.global {
4
4
  [popover] {
@@ -1,4 +1,4 @@
1
- @use "../jkl";
1
+ @use "../../jkl";
2
2
 
3
3
  .lorem-text {
4
4
  margin-top: var(--jkl-spacing-16);
@@ -67,37 +67,29 @@
67
67
  }
68
68
 
69
69
  $_valid-font-family-values: (
70
- "Fremtind Grotesk",
71
- "Fremtind Grotesk Display",
72
- "Fremtind Grotesk Mono",
73
- "Fremtind Material Symbols"
70
+ "Jokul",
71
+ "Jokul Display",
72
+ "Jokul Mono",
73
+ "Jokul Material Symbols"
74
74
  );
75
75
 
76
- /// Hjelper sette riktig remse med fallback-fonts for Fremtind Grotesk, Fremtind Grotesk Display, og Fremtind Grotesk Mono.
77
- /// @param {"Fremtind Grotesk" | "Fremtind Grotesk Mono" | "Fremtind Grotesk Display" | "Fremtind Material Symbols"} $font - Regular justerer seg automatisk til italic og bold basert på font-style og font-weight. Display og Mono er adskilte fontfamilier.
76
+ /// Hjelper sette riktig remse med fallback-fonts for Jokul, Jokul Display, og Jokul Mono.
77
+ /// @param {"Jokul" | "Jokul Mono" | "Jokul Display" | "Jokul Material Symbols"} $font - Regular justerer seg automatisk til italic og bold basert på font-style og font-weight. Display og Mono er adskilte fontfamilier.
78
78
  /// @output - Ønsket fontfamilie med justert fallbackfont.
79
79
  @mixin use-font-family($font) {
80
80
  @if not list.index($_valid-font-family-values, $font) {
81
81
  @error "#{$font} will not be used for font-family. Valid options are: #{$_valid-font-family-values}.";
82
82
  }
83
83
 
84
- @if $font == "Fremtind Grotesk Mono" {
84
+ @if $font == "Jokul Mono" {
85
+ font-family: var(--jkl-font-family-mono);
86
+ } @else if $font == "Jokul Display" {
87
+ font-family: var(--jkl-font-family-display);
88
+ } @else if $font == "Jokul Material Symbols" {
85
89
  font-family:
86
- "Fremtind Grotesk Mono",
87
- "Adjusted Courier New Fallback",
88
- -apple-system,
89
- BlinkMacSystemFont,
90
- monospace;
91
- } @else if $font == "Fremtind Grotesk Display" {
92
- font-family:
93
- "Fremtind Grotesk Display", "Adjusted Arial Display Fallback",
94
- Arial, sans-serif;
95
- } @else if $font == "Fremtind Material Symbols" {
96
- font-family:
97
- "Fremtind Material Symbols", "Fremtind Material Symbols Fallback",
90
+ "Jokul Material Symbols", "Jokul Material Symbols Fallback",
98
91
  monospace;
99
92
  } @else {
100
- font-family:
101
- "Fremtind Grotesk", "Adjusted Arial Fallback", Arial, sans-serif;
93
+ font-family: var(--jkl-font-family-regular);
102
94
  }
103
95
  }
@@ -1,9 +1,9 @@
1
1
  @use "sass:list";
2
2
  @use "sass:map";
3
3
  @use "sass:string";
4
- @use "jkl";
5
- @use "jkl/screens";
6
- @use "jkl/spacing";
4
+ @use "../jkl";
5
+ @use "../jkl/screens";
6
+ @use "../jkl/spacing";
7
7
 
8
8
  @function get-class-name($spacing-combination) {
9
9
  $class-name: "jkl-spacing";
@@ -4,13 +4,11 @@ $webfonts-dir: "/fonts" !default;
4
4
 
5
5
  @layer jokul.theme {
6
6
  @font-face {
7
- font-family: "Fremtind Grotesk";
7
+ font-family: Jokul;
8
8
  font-display: fallback;
9
9
  font-weight: 400;
10
10
  font-style: normal;
11
- src: url("#{$webfonts-dir}/FremtindGrotesk-Regular-Web.woff2")
12
- format("woff2"),
13
- url("#{$webfonts-dir}/FremtindGrotesk-Regular-Web.woff") format("woff");
11
+ src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
14
12
  }
15
13
 
16
14
  @font-face {
@@ -25,12 +23,11 @@ $webfonts-dir: "/fonts" !default;
25
23
  }
26
24
 
27
25
  @font-face {
28
- font-family: "Fremtind Grotesk";
26
+ font-family: Jokul;
29
27
  font-display: fallback;
30
28
  font-weight: 700;
31
29
  font-style: normal;
32
- src: url("#{$webfonts-dir}/FremtindGrotesk-Bold-Web.woff2") format("woff2"),
33
- url("#{$webfonts-dir}/FremtindGrotesk-Bold-Web.woff") format("woff");
30
+ src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
34
31
  }
35
32
 
36
33
  @font-face {
@@ -45,13 +42,11 @@ $webfonts-dir: "/fonts" !default;
45
42
  }
46
43
 
47
44
  @font-face {
48
- font-family: "Fremtind Grotesk";
45
+ font-family: Jokul;
49
46
  font-display: fallback;
50
47
  font-weight: 400;
51
48
  font-style: italic;
52
- src: url("#{$webfonts-dir}/FremtindGrotesk-Italic-Web.woff2")
53
- format("woff2"),
54
- url("#{$webfonts-dir}/FremtindGrotesk-Italic-Web.woff") format("woff");
49
+ src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
55
50
  }
56
51
 
57
52
  @font-face {
@@ -66,14 +61,11 @@ $webfonts-dir: "/fonts" !default;
66
61
  }
67
62
 
68
63
  @font-face {
69
- font-family: "Fremtind Grotesk";
64
+ font-family: Jokul;
70
65
  font-display: fallback;
71
66
  font-weight: 700;
72
67
  font-style: italic;
73
- src: url("#{$webfonts-dir}/FremtindGrotesk-BoldItalic-Web.woff2")
74
- format("woff2"),
75
- url("#{$webfonts-dir}/FremtindGrotesk-BoldItalic-Web.woff")
76
- format("woff");
68
+ src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
77
69
  }
78
70
 
79
71
  @font-face {
@@ -88,13 +80,11 @@ $webfonts-dir: "/fonts" !default;
88
80
  }
89
81
 
90
82
  @font-face {
91
- font-family: "Fremtind Grotesk Display";
83
+ font-family: "Jokul Display";
92
84
  font-display: fallback;
93
85
  font-weight: 400;
94
86
  font-style: normal;
95
- src: url("#{$webfonts-dir}/FremtindGrotesk-Display-Web.woff2")
96
- format("woff2"),
97
- url("#{$webfonts-dir}/FremtindGrotesk-Display-Web.woff") format("woff");
87
+ src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
98
88
  }
99
89
 
100
90
  @font-face {
@@ -109,14 +99,11 @@ $webfonts-dir: "/fonts" !default;
109
99
  }
110
100
 
111
101
  @font-face {
112
- font-family: "Fremtind Grotesk Mono";
102
+ font-family: "Jokul Mono";
113
103
  font-display: fallback;
114
104
  font-weight: 400;
115
105
  font-style: normal;
116
- src: url("#{$webfonts-dir}/FremtindGroteskMono-Regular-Web.woff2")
117
- format("woff2"),
118
- url("#{$webfonts-dir}/FremtindGroteskMono-Regular-Web.woff")
119
- format("woff");
106
+ src: url("#{$webfonts-dir}/InterVariable.woff2") format("woff2");
120
107
  }
121
108
 
122
109
  @font-face {
@@ -131,14 +118,15 @@ $webfonts-dir: "/fonts" !default;
131
118
  }
132
119
 
133
120
  @font-face {
134
- font-family: "Fremtind Material Symbols";
121
+ font-family: "Jokul Material Symbols";
135
122
  font-weight: 300 400;
136
123
  font-style: normal;
137
- src: url("#{$webfonts-dir}/Fremtind-Material-Symbols.woff2") format("woff2");
124
+ src: url("#{$webfonts-dir}/Fremtind-Material-Symbols.woff2")
125
+ format("woff2");
138
126
  }
139
127
 
140
128
  @font-face {
141
- font-family: "Fremtind Material Symbols Fallback";
129
+ font-family: "Jokul Material Symbols Fallback";
142
130
  src: local(courier new);
143
131
  font-weight: 300 400;
144
132
  font-style: normal;
@@ -6,3 +6,6 @@
6
6
  @forward "brands/sparebank1/color-scheme";
7
7
  @forward "size";
8
8
  @forward "tokens";
9
+ @forward "brands/dnb/fonts";
10
+ @forward "brands/eika/fonts";
11
+ @forward "brands/sparebank1/fonts";
@@ -47,9 +47,9 @@
47
47
  --jkl-motion-easing-focus: cubic-bezier(0.6, 0.2, 0.35, 1);
48
48
  --jkl-font-weight-normal: 400;
49
49
  --jkl-font-weight-bold: 700;
50
- --jkl-font-family-regular: 'Fremtind Grotesk', 'Adjusted Arial Fallback', Arial, sans-serif;
51
- --jkl-font-family-display: 'Fremtind Grotesk Display', 'Adjusted Arial Display Fallback', Arial, sans-serif;
52
- --jkl-font-family-mono: 'Fremtind Grotesk Mono', 'Adjusted Courier New Fallback', -apple-system, BlinkMacSystemFont, monospace;
50
+ --jkl-font-family-regular: 'Jokul', 'Adjusted Arial Fallback', Arial, sans-serif;
51
+ --jkl-font-family-display: 'Jokul Display', 'Adjusted Arial Display Fallback', Arial, sans-serif;
52
+ --jkl-font-family-mono: 'Jokul Mono', 'Adjusted Courier New Fallback', -apple-system, BlinkMacSystemFont, monospace;
53
53
  --jkl-line-height-flush: 1;
54
54
  --jkl-line-height-tight: 1.3;
55
55
  --jkl-line-height-relaxed: 1.6;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+
6
+ $webfonts-dir-dnb: "/fonts/brands/dnb" !default;
7
+
8
+ @layer jokul.theme {
9
+ @font-face {
10
+ font-family: "DNB Sans";
11
+ font-display: fallback;
12
+ font-weight: 400;
13
+ font-style: normal;
14
+ src: url("#{$webfonts-dir-dnb}/DNB-Regular.woff2") format("woff2");
15
+ }
16
+
17
+ @font-face {
18
+ font-family: "DNB Sans";
19
+ font-display: fallback;
20
+ font-weight: 500;
21
+ font-style: normal;
22
+ src: url("#{$webfonts-dir-dnb}/DNB-Medium.woff2") format("woff2");
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "DNB Sans";
27
+ font-display: fallback;
28
+ font-weight: 700;
29
+ font-style: normal;
30
+ src: url("#{$webfonts-dir-dnb}/DNB-Bold.woff2") format("woff2");
31
+ }
32
+
33
+ @font-face {
34
+ font-family: "DNB Mono";
35
+ font-display: fallback;
36
+ font-weight: 400;
37
+ font-style: normal;
38
+ src: url("#{$webfonts-dir-dnb}/DNBMono-Regular.woff2") format("woff2");
39
+ }
40
+
41
+ [data-brand="dnb"] {
42
+ --jkl-font-family-regular: 'DNB Sans', 'Adjusted Arial Fallback', Arial, sans-serif;
43
+ --jkl-font-family-display: 'DNB Sans', 'Adjusted Arial Display Fallback', Arial, sans-serif;
44
+ --jkl-font-family-mono: 'DNB Mono', 'Adjusted Courier New Fallback', -apple-system, BlinkMacSystemFont, monospace;
45
+ }
46
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+
6
+ $webfonts-dir-eika: "/fonts/brands/eika" !default;
7
+
8
+ @layer jokul.theme {
9
+ @font-face {
10
+ font-family: "Open Sans";
11
+ font-display: fallback;
12
+ font-weight: 300;
13
+ font-style: normal;
14
+ src: url("#{$webfonts-dir-eika}/OpenSans-Light.woff2") format("woff2");
15
+ }
16
+
17
+ @font-face {
18
+ font-family: "Open Sans";
19
+ font-display: fallback;
20
+ font-weight: 400;
21
+ font-style: normal;
22
+ src: url("#{$webfonts-dir-eika}/OpenSans-Regular.woff2") format("woff2");
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "Open Sans";
27
+ font-display: fallback;
28
+ font-weight: 600;
29
+ font-style: normal;
30
+ src: url("#{$webfonts-dir-eika}/OpenSans-SemiBold.woff2") format("woff2");
31
+ }
32
+
33
+ @font-face {
34
+ font-family: "Open Sans";
35
+ font-display: fallback;
36
+ font-weight: 700;
37
+ font-style: normal;
38
+ src: url("#{$webfonts-dir-eika}/OpenSans-Bold.woff2") format("woff2");
39
+ }
40
+
41
+ [data-brand="eika"] {
42
+ --jkl-font-family-regular: 'Open Sans', 'Adjusted Arial Fallback', Arial, sans-serif;
43
+ --jkl-font-family-display: 'Open Sans', 'Adjusted Arial Display Fallback', Arial, sans-serif;
44
+ --jkl-font-family-mono: 'Adjusted Courier New Fallback', -apple-system, BlinkMacSystemFont, monospace;
45
+ }
46
+ }
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+
6
+ @layer jokul.theme {
7
+ [data-brand="jokul"] {
8
+ /* stylelint-disable declaration-block-no-duplicate-custom-properties -- fallback and light-dark() declarations are intentionally paired. */
9
+ --jkl-color-neutral-background-page: #F4F2EF;
10
+ --jkl-color-neutral-background-page: light-dark(#F4F2EF, #1B1917);
11
+ --jkl-color-neutral-background-container: #F9F9F9;
12
+ --jkl-color-neutral-background-container: light-dark(#F9F9F9, #313030);
13
+ --jkl-color-neutral-background-action: #1B1917;
14
+ --jkl-color-neutral-background-action: light-dark(#1B1917, #F9F9F9);
15
+ --jkl-color-neutral-text-default: #1B1917;
16
+ --jkl-color-neutral-text-default: light-dark(#1B1917, #F9F9F9);
17
+ --jkl-color-neutral-text-subdued: #636060;
18
+ --jkl-color-neutral-text-subdued: light-dark(#636060, #C8C5C3);
19
+ --jkl-color-neutral-text-on-action: #F9F9F9;
20
+ --jkl-color-neutral-text-on-action: light-dark(#F9F9F9, #1B1917);
21
+ --jkl-color-neutral-border-strong: #1B1917;
22
+ --jkl-color-neutral-border-strong: light-dark(#1B1917, #F9F9F9);
23
+ --jkl-color-neutral-border-default: #636060;
24
+ --jkl-color-neutral-border-default: light-dark(#636060, #C8C5C3);
25
+ --jkl-color-neutral-border-subdued: #C8C5C3;
26
+ --jkl-color-neutral-border-subdued: light-dark(#C8C5C3, #636060);
27
+ --jkl-color-accent-background-page: #F4F2EF;
28
+ --jkl-color-accent-background-page: light-dark(#F4F2EF, #1B1917);
29
+ --jkl-color-accent-background-container: #F9F9F9;
30
+ --jkl-color-accent-background-container: light-dark(#F9F9F9, #313030);
31
+ --jkl-color-accent-background-action: #1B1917;
32
+ --jkl-color-accent-background-action: light-dark(#1B1917, #F9F9F9);
33
+ --jkl-color-accent-text-default: #1B1917;
34
+ --jkl-color-accent-text-default: light-dark(#1B1917, #F9F9F9);
35
+ --jkl-color-accent-text-subdued: #636060;
36
+ --jkl-color-accent-text-subdued: light-dark(#636060, #C8C5C3);
37
+ --jkl-color-accent-text-on-action: #F9F9F9;
38
+ --jkl-color-accent-text-on-action: light-dark(#F9F9F9, #1B1917);
39
+ --jkl-color-accent-border-strong: #1B1917;
40
+ --jkl-color-accent-border-strong: light-dark(#1B1917, #F9F9F9);
41
+ --jkl-color-accent-border-default: #636060;
42
+ --jkl-color-accent-border-default: light-dark(#636060, #C8C5C3);
43
+ --jkl-color-accent-border-subdued: #C8C5C3;
44
+ --jkl-color-accent-border-subdued: light-dark(#C8C5C3, #636060);
45
+ --jkl-color-warning-background-page: #FCF7E8;
46
+ --jkl-color-warning-background-page: light-dark(#FCF7E8, #392B10);
47
+ --jkl-color-warning-background-container: #F7EBC2;
48
+ --jkl-color-warning-background-container: light-dark(#F7EBC2, #5A4519);
49
+ --jkl-color-warning-background-action: #B98900;
50
+ --jkl-color-warning-background-action: light-dark(#B98900, #E4B63A);
51
+ --jkl-color-warning-text-default: #5B4200;
52
+ --jkl-color-warning-text-default: light-dark(#5B4200, #FFF5D9);
53
+ --jkl-color-warning-text-subdued: #8B6B22;
54
+ --jkl-color-warning-text-subdued: light-dark(#8B6B22, #EEDFAE);
55
+ --jkl-color-warning-text-on-action: #1B1917;
56
+ --jkl-color-warning-text-on-action: light-dark(#1B1917, #1B1917);
57
+ --jkl-color-warning-border-strong: #B98900;
58
+ --jkl-color-warning-border-strong: light-dark(#B98900, #E4B63A);
59
+ --jkl-color-warning-border-default: #B98900;
60
+ --jkl-color-warning-border-default: light-dark(#B98900, #E4B63A);
61
+ --jkl-color-warning-border-subdued: #DECC8D;
62
+ --jkl-color-warning-border-subdued: light-dark(#DECC8D, #8B6B22);
63
+ --jkl-color-success-background-page: #EEF7F0;
64
+ --jkl-color-success-background-page: light-dark(#EEF7F0, #173122);
65
+ --jkl-color-success-background-container: #D7EADB;
66
+ --jkl-color-success-background-container: light-dark(#D7EADB, #234530);
67
+ --jkl-color-success-background-action: #2E8C4A;
68
+ --jkl-color-success-background-action: light-dark(#2E8C4A, #67B479);
69
+ --jkl-color-success-text-default: #1E5D31;
70
+ --jkl-color-success-text-default: light-dark(#1E5D31, #F1FBF3);
71
+ --jkl-color-success-text-subdued: #507A5B;
72
+ --jkl-color-success-text-subdued: light-dark(#507A5B, #C9DDCE);
73
+ --jkl-color-success-text-on-action: #F9F9F9;
74
+ --jkl-color-success-text-on-action: light-dark(#F9F9F9, #1B1917);
75
+ --jkl-color-success-border-strong: #2E8C4A;
76
+ --jkl-color-success-border-strong: light-dark(#2E8C4A, #67B479);
77
+ --jkl-color-success-border-default: #2E8C4A;
78
+ --jkl-color-success-border-default: light-dark(#2E8C4A, #67B479);
79
+ --jkl-color-success-border-subdued: #94B79B;
80
+ --jkl-color-success-border-subdued: light-dark(#94B79B, #507A5B);
81
+ --jkl-color-info-background-page: #EEF5FE;
82
+ --jkl-color-info-background-page: light-dark(#EEF5FE, #162A40);
83
+ --jkl-color-info-background-container: #DDEBFB;
84
+ --jkl-color-info-background-container: light-dark(#DDEBFB, #264261);
85
+ --jkl-color-info-background-action: #4AA3F0;
86
+ --jkl-color-info-background-action: light-dark(#4AA3F0, #7EBEF4);
87
+ --jkl-color-info-text-default: #1B3B60;
88
+ --jkl-color-info-text-default: light-dark(#1B3B60, #F5FAFF);
89
+ --jkl-color-info-text-subdued: #4E6C8E;
90
+ --jkl-color-info-text-subdued: light-dark(#4E6C8E, #D7E9F8);
91
+ --jkl-color-info-text-on-action: #F9F9F9;
92
+ --jkl-color-info-text-on-action: light-dark(#F9F9F9, #1B1917);
93
+ --jkl-color-info-border-strong: #4AA3F0;
94
+ --jkl-color-info-border-strong: light-dark(#4AA3F0, #7EBEF4);
95
+ --jkl-color-info-border-default: #4AA3F0;
96
+ --jkl-color-info-border-default: light-dark(#4AA3F0, #7EBEF4);
97
+ --jkl-color-info-border-subdued: #A9A9CA;
98
+ --jkl-color-info-border-subdued: light-dark(#A9A9CA, #4E6C8E);
99
+ --jkl-color-error-background-page: #FDEEEE;
100
+ --jkl-color-error-background-page: light-dark(#FDEEEE, #3A1C1C);
101
+ --jkl-color-error-background-container: #F8D1D1;
102
+ --jkl-color-error-background-container: light-dark(#F8D1D1, #5B2828);
103
+ --jkl-color-error-background-action: #E84B3C;
104
+ --jkl-color-error-background-action: light-dark(#E84B3C, #F27B70);
105
+ --jkl-color-error-text-default: #7B1F18;
106
+ --jkl-color-error-text-default: light-dark(#7B1F18, #FFF1EF);
107
+ --jkl-color-error-text-subdued: #A14E46;
108
+ --jkl-color-error-text-subdued: light-dark(#A14E46, #F1C8C4);
109
+ --jkl-color-error-text-on-action: #F9F9F9;
110
+ --jkl-color-error-text-on-action: light-dark(#F9F9F9, #1B1917);
111
+ --jkl-color-error-border-strong: #E84B3C;
112
+ --jkl-color-error-border-strong: light-dark(#E84B3C, #F27B70);
113
+ --jkl-color-error-border-default: #E84B3C;
114
+ --jkl-color-error-border-default: light-dark(#E84B3C, #F27B70);
115
+ --jkl-color-error-border-subdued: #DE9E9E;
116
+ --jkl-color-error-border-subdued: light-dark(#DE9E9E, #A14E46);
117
+ /* stylelint-enable declaration-block-no-duplicate-custom-properties */
118
+ }
119
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+
6
+ $webfonts-dir-jokul: "/fonts/brands/jokul" !default;
7
+
8
+ @layer jokul.theme {
9
+ @font-face {
10
+ font-family: "Inter";
11
+ font-display: fallback;
12
+ font-weight: 300;
13
+ font-style: normal;
14
+ src: url("#{$webfonts-dir-jokul}/InterVariable.woff2") format("woff2");
15
+ }
16
+
17
+ @font-face {
18
+ font-family: "Inter";
19
+ font-display: fallback;
20
+ font-weight: 400;
21
+ font-style: normal;
22
+ src: url("#{$webfonts-dir-jokul}/InterVariable.woff2") format("woff2");
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "Inter";
27
+ font-display: fallback;
28
+ font-weight: 600;
29
+ font-style: normal;
30
+ src: url("#{$webfonts-dir-jokul}/InterVariable.woff2") format("woff2");
31
+ }
32
+
33
+ @font-face {
34
+ font-family: "Inter";
35
+ font-display: fallback;
36
+ font-weight: 700;
37
+ font-style: normal;
38
+ src: url("#{$webfonts-dir-jokul}/InterVariable.woff2") format("woff2");
39
+ }
40
+
41
+ [data-brand="jokul"] {
42
+ --jkl-font-family-regular: 'Inter', 'Adjusted Arial Fallback', Arial, sans-serif;
43
+ --jkl-font-family-display: 'Inter', 'Adjusted Arial Display Fallback', Arial, sans-serif;
44
+ --jkl-font-family-mono: monospace, -apple-system, BlinkMacSystemFont;
45
+ }
46
+ }