@ambita/design-system 5.7.1-3101.0 → 5.7.1-3121.0

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 (146) hide show
  1. package/dist/css/_tokens/_byggesoknaden.scss +3 -3
  2. package/dist/css/_tokens/byggesoknaden.css +5 -5
  3. package/dist/css/_tokens/component-tokens.css +9 -2
  4. package/dist/css/_typography.scss +228 -0
  5. package/dist/css/ambita-dark.css +3 -3
  6. package/dist/css/ambita-dark.scss +3 -0
  7. package/dist/css/ambita-light.css +3 -3
  8. package/dist/css/ambita-light.scss +3 -0
  9. package/dist/css/ambita-old.css +3 -3
  10. package/dist/css/ambita-old.scss +3 -0
  11. package/dist/css/base.scss +19 -0
  12. package/dist/css/byggesoknaden.css +3 -3
  13. package/dist/css/byggesoknaden.scss +3 -0
  14. package/dist/css/neo-mixins.scss +133 -8
  15. package/dist/css/themes/_base/component-tokens.css +9 -2
  16. package/dist/css/themes/ambita-dark/component-tokens.css +9 -2
  17. package/dist/css/themes/ambita-dark/semantic-tokens.css +3 -3
  18. package/dist/css/themes/ambita-light/component-tokens.css +9 -2
  19. package/dist/css/themes/ambita-light/semantic-tokens.css +3 -3
  20. package/dist/css/themes/ambita-old/component-tokens.css +3 -2
  21. package/dist/css/themes/ambita-old/semantic-tokens.css +3 -3
  22. package/dist/css/themes/byggesoknaden/component-tokens.css +15 -2
  23. package/dist/css/themes/byggesoknaden/semantic-tokens.css +3 -3
  24. package/dist/ds.cjs +4 -4
  25. package/dist/ds.js +155 -155
  26. package/dist/ds.umd.cjs +9 -9
  27. package/dist/index.css +1 -1
  28. package/dist/scss/_ambita-dark.scss +3 -3
  29. package/dist/scss/_ambita-light.scss +3 -3
  30. package/dist/scss/_ambita-old.scss +3 -3
  31. package/dist/scss/_byggesoknaden.scss +3 -3
  32. package/dist/scss/_typography.scss +228 -0
  33. package/dist/themes/ambita-dark.css +18 -14
  34. package/dist/themes/ambita-light.css +18 -14
  35. package/dist/themes/ambita-old.css +11 -14
  36. package/dist/themes/byggesoknaden.css +24 -14
  37. package/dist/types/{components → src/components}/Input/NeoInput.vue.d.ts +1 -1
  38. package/dist/types/{components → src/components}/NeoComboBox/NeoComboBox.vue.d.ts +1 -1
  39. package/dist/types/{components → src/components}/NeoDatePicker/NeoDatePicker.vue.d.ts +1 -1
  40. package/dist/types/{components → src/components}/NeoSelect/NeoSelect.vue.d.ts +1 -1
  41. package/dist/types/{components → src/components}/NeoTagsInput/TagsInput.vue.d.ts +1 -1
  42. package/dist/types/{components → src/components}/Typography/NeoFormField.vue.d.ts +2 -6
  43. package/dist/types/src/components/Typography/types.d.ts +6 -0
  44. package/dist/types/{index.d.ts → src/index.d.ts} +1 -1
  45. package/dist/types/src/main.d.ts +6 -0
  46. package/package.json +3 -2
  47. package/dist/types/main.d.ts +0 -1
  48. /package/dist/types/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
  49. /package/dist/types/{components → src/components}/Accordion/NeoAccordion.vue.d.ts +0 -0
  50. /package/dist/types/{components → src/components}/Accordion/NeoAccordionContent.vue.d.ts +0 -0
  51. /package/dist/types/{components → src/components}/Accordion/NeoAccordionItem.vue.d.ts +0 -0
  52. /package/dist/types/{components → src/components}/Accordion/NeoAccordionTrigger.vue.d.ts +0 -0
  53. /package/dist/types/{components → src/components}/AuxAriaAnnouncer/AuxAriaAnnouncer.vue.d.ts +0 -0
  54. /package/dist/types/{components → src/components}/AuxTabs/AuxTabs.vue.d.ts +0 -0
  55. /package/dist/types/{components → src/components}/AuxTabs/constants.d.ts +0 -0
  56. /package/dist/types/{components → src/components}/Banner/Banner.types.d.ts +0 -0
  57. /package/dist/types/{components → src/components}/Banner/Banner.vue.d.ts +0 -0
  58. /package/dist/types/{components → src/components}/Button/Button.vue.d.ts +0 -0
  59. /package/dist/types/{components → src/components}/Button/NeoButton.vue.d.ts +0 -0
  60. /package/dist/types/{components → src/components}/Button/NeoLinkButton.vue.d.ts +0 -0
  61. /package/dist/types/{components → src/components}/Button/constants.d.ts +0 -0
  62. /package/dist/types/{components → src/components}/Card/Card.vue.d.ts +0 -0
  63. /package/dist/types/{components → src/components}/Checkbox/Checkbox.vue.d.ts +0 -0
  64. /package/dist/types/{components → src/components}/Checkbox/CheckboxCard.vue.d.ts +0 -0
  65. /package/dist/types/{components → src/components}/Checkbox/CheckboxRegular.vue.d.ts +0 -0
  66. /package/dist/types/{components → src/components}/Checkbox/constants.d.ts +0 -0
  67. /package/dist/types/{components → src/components}/CheckboxDropdown/CheckboxDropdown.vue.d.ts +0 -0
  68. /package/dist/types/{components → src/components}/CheckboxGroup/CheckboxGroup.vue.d.ts +0 -0
  69. /package/dist/types/{components → src/components}/CheckboxGroup/CheckboxGroupCardElement.vue.d.ts +0 -0
  70. /package/dist/types/{components → src/components}/CheckboxGroup/CheckboxGroupElement.vue.d.ts +0 -0
  71. /package/dist/types/{components → src/components}/Color/ColorSwatch.vue.d.ts +0 -0
  72. /package/dist/types/{components → src/components}/Definition/Definition.vue.d.ts +0 -0
  73. /package/dist/types/{components → src/components}/Details/Details.vue.d.ts +0 -0
  74. /package/dist/types/{components → src/components}/DirectionalArrow/DirectionalArrow.vue.d.ts +0 -0
  75. /package/dist/types/{components → src/components}/DirectionalArrow/constants.d.ts +0 -0
  76. /package/dist/types/{components → src/components}/FormElement/FormElement.vue.d.ts +0 -0
  77. /package/dist/types/{components → src/components}/Icons/IconPreview.vue.d.ts +0 -0
  78. /package/dist/types/{components → src/components}/Input/Input.vue.d.ts +0 -0
  79. /package/dist/types/{components → src/components}/JsonForm/Components/Checkboxes.vue.d.ts +0 -0
  80. /package/dist/types/{components → src/components}/JsonForm/Components/RadioButtons.vue.d.ts +0 -0
  81. /package/dist/types/{components → src/components}/JsonForm/Controls/Array.vue.d.ts +0 -0
  82. /package/dist/types/{components → src/components}/JsonForm/Controls/Boolean.vue.d.ts +0 -0
  83. /package/dist/types/{components → src/components}/JsonForm/Controls/Number.vue.d.ts +0 -0
  84. /package/dist/types/{components → src/components}/JsonForm/Controls/String.vue.d.ts +0 -0
  85. /package/dist/types/{components → src/components}/JsonForm/Controls/Wrapper.vue.d.ts +0 -0
  86. /package/dist/types/{components → src/components}/JsonForm/JsonForm.vue.d.ts +0 -0
  87. /package/dist/types/{components → src/components}/JsonForm/Renderers/Array.vue.d.ts +0 -0
  88. /package/dist/types/{components → src/components}/JsonForm/Renderers/Boolean.vue.d.ts +0 -0
  89. /package/dist/types/{components → src/components}/JsonForm/Renderers/Integer.vue.d.ts +0 -0
  90. /package/dist/types/{components → src/components}/JsonForm/Renderers/Layout.vue.d.ts +0 -0
  91. /package/dist/types/{components → src/components}/JsonForm/Renderers/Number.vue.d.ts +0 -0
  92. /package/dist/types/{components → src/components}/JsonForm/Renderers/Object.vue.d.ts +0 -0
  93. /package/dist/types/{components → src/components}/JsonForm/Renderers/String.vue.d.ts +0 -0
  94. /package/dist/types/{components → src/components}/JsonForm/Renderers/index.d.ts +0 -0
  95. /package/dist/types/{components → src/components}/Link/Link.vue.d.ts +0 -0
  96. /package/dist/types/{components → src/components}/Link/constants.d.ts +0 -0
  97. /package/dist/types/{components → src/components}/Logo/Logo.vue.d.ts +0 -0
  98. /package/dist/types/{components → src/components}/Modal/Action.d.ts +0 -0
  99. /package/dist/types/{components → src/components}/Modal/Actions.vue.d.ts +0 -0
  100. /package/dist/types/{components → src/components}/Modal/Modal.vue.d.ts +0 -0
  101. /package/dist/types/{components → src/components}/Modal/constants.d.ts +0 -0
  102. /package/dist/types/{components → src/components}/NeoBanner/NeoBanner.vue.d.ts +0 -0
  103. /package/dist/types/{components → src/components}/NeoPagination/NeoPagination.vue.d.ts +0 -0
  104. /package/dist/types/{components → src/components}/NeoTabs/NeoTabs.vue.d.ts +0 -0
  105. /package/dist/types/{components → src/components}/NeoTabs/NeoTabsContent.vue.d.ts +0 -0
  106. /package/dist/types/{components → src/components}/NeoTabs/NeoTabsTrigger.vue.d.ts +0 -0
  107. /package/dist/types/{components → src/components}/NeoTabs/NeoTabsWrapper.vue.d.ts +0 -0
  108. /package/dist/types/{components → src/components}/NeoTagsInput/NeoTag.vue.d.ts +0 -0
  109. /package/dist/types/{components → src/components}/NeoTagsInput/types.d.ts +0 -0
  110. /package/dist/types/{components → src/components}/Notification/Notification.vue.d.ts +0 -0
  111. /package/dist/types/{components → src/components}/Notification/Notifications.vue.d.ts +0 -0
  112. /package/dist/types/{components → src/components}/Notification/constants.d.ts +0 -0
  113. /package/dist/types/{components → src/components}/Pagination/Pagination.vue.d.ts +0 -0
  114. /package/dist/types/{components → src/components}/Pagination/types.d.ts +0 -0
  115. /package/dist/types/{components → src/components}/Pill/Colors.d.ts +0 -0
  116. /package/dist/types/{components → src/components}/Pill/Pill.vue.d.ts +0 -0
  117. /package/dist/types/{components → src/components}/Radio/Radio.vue.d.ts +0 -0
  118. /package/dist/types/{components → src/components}/RadioGroup/RadioGroup.vue.d.ts +0 -0
  119. /package/dist/types/{components → src/components}/RadioGroup/RadioGroupCardElement.vue.d.ts +0 -0
  120. /package/dist/types/{components → src/components}/RadioGroup/RadioGroupElement.vue.d.ts +0 -0
  121. /package/dist/types/{components → src/components}/RadioGroup/constants.d.ts +0 -0
  122. /package/dist/types/{components → src/components}/Select/Select.vue.d.ts +0 -0
  123. /package/dist/types/{components → src/components}/Seperator/NeoSeparator.vue.d.ts +0 -0
  124. /package/dist/types/{components → src/components}/Spinner/Spinner.vue.d.ts +0 -0
  125. /package/dist/types/{components → src/components}/Spinner/constants.d.ts +0 -0
  126. /package/dist/types/{components → src/components}/StatusBadge/StatusBadge.vue.d.ts +0 -0
  127. /package/dist/types/{components → src/components}/StatusBadge/constants.d.ts +0 -0
  128. /package/dist/types/{components → src/components}/Tag/Colors.d.ts +0 -0
  129. /package/dist/types/{components → src/components}/Tag/Tag.vue.d.ts +0 -0
  130. /package/dist/types/{components → src/components}/TextArea/TextArea.vue.d.ts +0 -0
  131. /package/dist/types/{components → src/components}/TextArea/constants.d.ts +0 -0
  132. /package/dist/types/{components → src/components}/Time/Time.vue.d.ts +0 -0
  133. /package/dist/types/{components → src/components}/Toggle/Toggle.vue.d.ts +0 -0
  134. /package/dist/types/{components → src/components}/Typography/ErrorText.vue.d.ts +0 -0
  135. /package/dist/types/{components → src/components}/Typography/HelperText.vue.d.ts +0 -0
  136. /package/dist/types/{components → src/components}/Typography/LabelText.vue.d.ts +0 -0
  137. /package/dist/types/{components → src/components}/Upload/File/File.vue.d.ts +0 -0
  138. /package/dist/types/{components → src/components}/Upload/Upload.vue.d.ts +0 -0
  139. /package/dist/types/{components → src/components}/ValidationWrapper/ValidationWrapper.vue.d.ts +0 -0
  140. /package/dist/types/{composables → src/composables}/useInputId.d.ts +0 -0
  141. /package/dist/types/{helpers → src/helpers}/formatters/formatDateAndTime/Storybook/FormatDateAndTime.vue.d.ts +0 -0
  142. /package/dist/types/{helpers → src/helpers}/formatters/formatDateAndTime/index.d.ts +0 -0
  143. /package/dist/types/{helpers → src/helpers}/formatters/formatQuantity/Storybook/FormatAmount.vue.d.ts +0 -0
  144. /package/dist/types/{helpers → src/helpers}/formatters/formatQuantity/formatAmount.d.ts +0 -0
  145. /package/dist/types/{helpers → src/helpers}/formatters/formatQuantity/formatNumber.d.ts +0 -0
  146. /package/dist/types/{helpers → src/helpers}/uuid.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  // Do not edit directly, this file was auto-generated.
2
2
 
3
- $amb-font-family-display-serif: PT Serif;
4
- $amb-font-family-sans-serif: Inter;
3
+ $amb-font-family-display-serif: 'Source Sans Pro', Arial, Helvetica, sans-serif;
4
+ $amb-font-family-sans-serif: 'Source Sans Pro', Arial, Helvetica, sans-serif;
5
5
  $amb-font-weight-bold: 700;
6
6
  $amb-font-weight-medium: 500;
7
7
  $amb-font-weight-regular: 400;
@@ -32,7 +32,7 @@ $bs-color-red-3: #b74a40; // For UI
32
32
  $bs-color-white: #ffffff; // For marketing and UI
33
33
  $bs-color-yellow-1: #fefaed; // For UI
34
34
  $bs-color-yellow-2: #dfbb2c; // For UI
35
- $bs-font-family-bs-font: Source Sans pro;
35
+ $bs-font-family-bs-font: 'Source Sans Pro', Arial, Helvetica, sans-serif;
36
36
  $bs-font-line-height-14: 14px;
37
37
  $bs-font-line-height-16: 16px;
38
38
  $bs-font-line-height-18: 18px;
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --amb-font-family-display-serif: PT Serif;
7
- --amb-font-family-sans-serif: Inter;
6
+ --amb-font-family-display-serif: 'Source Sans Pro', Arial, Helvetica, sans-serif;
7
+ --amb-font-family-sans-serif: 'Source Sans Pro', Arial, Helvetica, sans-serif;
8
8
  --amb-font-weight-bold: 700;
9
9
  --amb-font-weight-medium: 500;
10
10
  --amb-font-weight-regular: 400;
@@ -35,7 +35,7 @@
35
35
  --bs-color-white: #ffffff; /** For marketing and UI */
36
36
  --bs-color-yellow-1: #fefaed; /** For UI */
37
37
  --bs-color-yellow-2: #dfbb2c; /** For UI */
38
- --bs-font-family-bs-font: Source Sans pro;
38
+ --bs-font-family-bs-font: 'Source Sans Pro', Arial, Helvetica, sans-serif;
39
39
  --bs-font-line-height-14: 14px;
40
40
  --bs-font-line-height-16: 16px;
41
41
  --bs-font-line-height-18: 18px;
@@ -164,7 +164,7 @@
164
164
  --bs-color-red-3
165
165
  ); /** Fyllfarge for å bruke på en ramme for å indikere en feil. */
166
166
  --border-color-focus: var(
167
- --bs-color-blue-3
167
+ --bs-color-blue-5
168
168
  ); /** Fyllfarge for å bruke på en ramme i interaktive komponenter som er i fokusert tilstand. */
169
169
  --border-color-input: var(
170
170
  --bs-color-grey-5
@@ -217,7 +217,7 @@
217
217
  ); /** Fyllfarge for høykontrast elementer i deaktivert tilstand. */
218
218
  --fill-error: var(--bs-color-red-1); /** Dempet fyllfarge som indikerer feilmelding. */
219
219
  --fill-error-stronger: var(--bs-color-red-2); /** Sterk fyllfarge som indikerer feilmelding. */
220
- --fill-hover-default: var(--bs-color-blue-2); /** Fyllfarge for interaktive elementer */
220
+ --fill-hover-default: var(--bs-color-blue-1); /** Fyllfarge for interaktive elementer */
221
221
  --fill-info: var(--bs-color-blue-1); /** Dempet fyllfarge som indikerer nøytral informasjon. */
222
222
  --fill-info-stronger: var(
223
223
  --bs-color-blue-2
@@ -28,7 +28,14 @@
28
28
  TYPOGRAPHY TOKENS
29
29
  Global font settings that can be overridden per theme
30
30
  ======================================================================== */
31
- --font-family-base: 'ff-din-round-web', sans-serif;
31
+ --font-family-base: var(--font-family-sans-serif, 'Inter', Arial, Helvetica, sans-serif);
32
+ --font-family-display: var(
33
+ --font-family-display-serif,
34
+ 'PT Serif',
35
+ Georgia,
36
+ 'Times New Roman',
37
+ serif
38
+ );
32
39
  /* ------------------------------------------------------------------------
33
40
  SHADOW TOKENS
34
41
  ------------------------------------------------------------------------ */
@@ -37,7 +44,7 @@
37
44
  --Shadow-Error: 0 0 0 2px var(--text-error);
38
45
  --Shadow-Dropdown: 0px 4px 8px 3px rgba(0, 0, 0, 0.05), 0px 1px 3px 0px rgba(85, 85, 85, 0.4);
39
46
  /* TagsInput Dropdown */
40
- --tags-dropdown-max-height: 15rem;
47
+ --tags-dropdown-max-height: 240px;
41
48
  --tags-dropdown-separator-margin: 5px;
42
49
  --tags-dropdown-separator-height: 1px;
43
50
  /* TagsInput Dropdown Label */
@@ -0,0 +1,228 @@
1
+ /* ============================================================================
2
+ TYPOGRAPHY MIXINS & UTILITIES
3
+ ============================================================================
4
+
5
+ Semantic typography mixins based on the Ambita design system.
6
+ These provide pre-composed text styles matching the design specifications.
7
+
8
+ Usage:
9
+ ```scss
10
+ @use '@ambita/design-system/dist/scss/_typography.scss' as *;
11
+
12
+ .my-title {
13
+ @include heading-xxl-display;
14
+ }
15
+
16
+ h1 { @include heading-xxl-display; }
17
+ h2 { @include heading-xl; }
18
+ p { @include body-m; }
19
+
20
+ // Using the rem() function:
21
+ .custom-element {
22
+ font-size: rem(18); // => 1.125rem (18/16)
23
+ padding: rem(24) rem(16); // => 1.5rem 1rem
24
+ }
25
+ ```
26
+
27
+ Heading styles:
28
+ - Display variants use the display font (PT Serif in ambita-light/dark)
29
+ - Regular variants use the base font (Inter in ambita-light/dark)
30
+
31
+ Note: These mixins use CSS custom properties defined in your theme.
32
+ Make sure to import a theme CSS file before using these mixins:
33
+ - @ambita/design-system/dist/themes/ambita-light.css
34
+ - @ambita/design-system/dist/themes/ambita-dark.css
35
+ - @ambita/design-system/dist/themes/ambita-old.css
36
+ - @ambita/design-system/dist/themes/byggesoknaden.css
37
+ ============================================================================ */
38
+
39
+ @use 'sass:math';
40
+
41
+ /* ============================================================================
42
+ UTILITY FUNCTIONS
43
+ ============================================================================ */
44
+
45
+ /**
46
+ * Convert pixel values to rem units
47
+ *
48
+ * @param $px - The pixel value to convert
49
+ * @param $base - The base font size (default: 16px, browser default)
50
+ * @return rem value
51
+ *
52
+ * Examples:
53
+ * rem(16) => 1rem
54
+ * rem(24) => 1.5rem
55
+ * rem(14) => 0.875rem
56
+ * rem(18, 18) => 1rem (custom base)
57
+ */
58
+ @function rem($px, $base: 16) {
59
+ @return math.div($px, $base) * 1rem;
60
+ }
61
+
62
+ /* ============================================================================
63
+ HEADING MIXINS
64
+ ============================================================================ */
65
+
66
+ /**
67
+ * Heading XXL Display
68
+ * Font: PT Serif (display), Size: 50px, Weight: 400, Line-height: 54px
69
+ * Use for: Hero titles, marketing headlines
70
+ */
71
+ @mixin heading-xxl-display {
72
+ font-family: var(--font-family-display);
73
+ font-size: var(--font-size-xxl);
74
+ font-weight: var(--font-weight-regular);
75
+ line-height: var(--font-line-height-xxxl);
76
+ }
77
+
78
+ /**
79
+ * Heading XXL
80
+ * Font: Inter (base), Size: 50px, Weight: 400, Line-height: 54px
81
+ * Use for: Large page titles
82
+ */
83
+ @mixin heading-xxl {
84
+ font-family: var(--font-family-base);
85
+ font-size: var(--font-size-xxl);
86
+ font-weight: var(--font-weight-regular);
87
+ line-height: var(--font-line-height-xxxl);
88
+ }
89
+
90
+ /**
91
+ * Heading XL Display
92
+ * Font: PT Serif (display), Size: 30px, Weight: 400, Line-height: 34px
93
+ * Use for: Section titles with display styling
94
+ */
95
+ @mixin heading-xl-display {
96
+ font-family: var(--font-family-display);
97
+ font-size: var(--font-size-xl);
98
+ font-weight: var(--font-weight-regular);
99
+ line-height: var(--font-line-height-xxl);
100
+ }
101
+
102
+ /**
103
+ * Heading XL
104
+ * Font: Inter (base), Size: 30px, Weight: 500, Line-height: 34px
105
+ * Use for: Page sections, major content divisions
106
+ */
107
+ @mixin heading-xl {
108
+ font-family: var(--font-family-base);
109
+ font-size: var(--font-size-xl);
110
+ font-weight: var(--font-weight-medium);
111
+ line-height: var(--font-line-height-xxl);
112
+ }
113
+
114
+ /**
115
+ * Heading L
116
+ * Font: Inter (base), Size: 22px, Weight: 500, Line-height: 26px
117
+ * Use for: Card titles, subsections
118
+ */
119
+ @mixin heading-l {
120
+ font-family: var(--font-family-base);
121
+ font-size: var(--font-size-l);
122
+ font-weight: var(--font-weight-medium);
123
+ line-height: var(--font-line-height-xl);
124
+ }
125
+
126
+ /**
127
+ * Heading L Link
128
+ * Font: Inter (base), Size: 22px, Weight: 400, Line-height: 26px
129
+ * Use for: Clickable headings, navigation items
130
+ */
131
+ @mixin heading-l-link {
132
+ font-family: var(--font-family-base);
133
+ font-size: var(--font-size-l);
134
+ font-weight: var(--font-weight-regular);
135
+ line-height: var(--font-line-height-xl);
136
+ }
137
+
138
+ /**
139
+ * Heading M
140
+ * Font: Inter (base), Size: 20px, Weight: 500, Line-height: 24px
141
+ * Use for: Component titles, list headers
142
+ */
143
+ @mixin heading-m {
144
+ font-family: var(--font-family-base);
145
+ font-size: var(--font-size-m);
146
+ font-weight: var(--font-weight-medium);
147
+ line-height: var(--font-line-height-l);
148
+ }
149
+
150
+ /**
151
+ * Heading S
152
+ * Font: Inter (base), Size: 18px, Weight: 500, Line-height: 22px
153
+ * Use for: Small titles, form section headers
154
+ */
155
+ @mixin heading-s {
156
+ font-family: var(--font-family-base);
157
+ font-size: var(--font-size-s);
158
+ font-weight: var(--font-weight-medium);
159
+ line-height: var(--font-line-height-m);
160
+ }
161
+
162
+ /* ============================================================================
163
+ BODY TEXT MIXINS
164
+ ============================================================================ */
165
+
166
+ /**
167
+ * Body L
168
+ * Font: Inter (base), Size: 18px, Weight: 400, Line-height: 26px
169
+ * Use for: Lead paragraphs, introductions
170
+ */
171
+ @mixin body-l {
172
+ font-family: var(--font-family-base);
173
+ font-size: var(--font-size-s);
174
+ font-weight: var(--font-weight-regular);
175
+ line-height: var(--font-line-height-xl);
176
+ }
177
+
178
+ /**
179
+ * Body M
180
+ * Font: Inter (base), Size: 16px, Weight: 400, Line-height: 22px
181
+ * Use for: Default body text, paragraphs
182
+ */
183
+ @mixin body-m {
184
+ font-family: var(--font-family-base);
185
+ font-size: var(--font-size-xs);
186
+ font-weight: var(--font-weight-regular);
187
+ line-height: var(--font-line-height-m);
188
+ }
189
+
190
+ /**
191
+ * Body S
192
+ * Font: Inter (base), Size: 14px, Weight: 400, Line-height: 19px
193
+ * Use for: Secondary text, descriptions
194
+ */
195
+ @mixin body-s {
196
+ font-family: var(--font-family-base);
197
+ font-size: var(--font-size-xxs);
198
+ font-weight: var(--font-weight-regular);
199
+ line-height: var(--font-line-height-s);
200
+ }
201
+
202
+ /* ============================================================================
203
+ UTILITY TEXT MIXINS
204
+ ============================================================================ */
205
+
206
+ /**
207
+ * Caption
208
+ * Font: Inter (base), Size: 12px, Weight: 400, Line-height: 16px
209
+ * Use for: Image captions, footnotes, meta information
210
+ */
211
+ @mixin caption {
212
+ font-family: var(--font-family-base);
213
+ font-size: var(--font-size-xxxs);
214
+ font-weight: var(--font-weight-regular);
215
+ line-height: var(--font-line-height-xxs);
216
+ }
217
+
218
+ /**
219
+ * Label
220
+ * Font: Inter (base), Size: 16px, Weight: 500, Line-height: 19px
221
+ * Use for: Form labels, input labels
222
+ */
223
+ @mixin label {
224
+ font-family: var(--font-family-base);
225
+ font-size: var(--font-size-xs);
226
+ font-weight: var(--font-weight-medium);
227
+ line-height: var(--font-line-height-s);
228
+ }
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --amb-font-family-display-serif: PT Serif;
7
- --amb-font-family-sans-serif: Inter;
6
+ --amb-font-family-display-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
7
+ --amb-font-family-sans-serif: 'Inter', Arial, Helvetica, sans-serif;
8
8
  --amb-font-weight-bold: 700;
9
9
  --amb-font-weight-medium: 500;
10
10
  --amb-font-weight-regular: 400;
@@ -35,7 +35,7 @@
35
35
  --bs-color-white: #ffffff; /** For marketing and UI */
36
36
  --bs-color-yellow-1: #fefaed; /** For UI */
37
37
  --bs-color-yellow-2: #dfbb2c; /** For UI */
38
- --bs-font-family-bs-font: Source Sans pro;
38
+ --bs-font-family-bs-font: 'Source Sans Pro', Arial, Helvetica, sans-serif;
39
39
  --bs-font-line-height-14: 14px;
40
40
  --bs-font-line-height-16: 16px;
41
41
  --bs-font-line-height-18: 18px;
@@ -6,6 +6,9 @@
6
6
  *
7
7
  * Usage:
8
8
  * import '@ambita/design-system/dist/css/ambita-dark.css';
9
+ *
10
+ * Fonts: Add this to your HTML <head>:
11
+ * <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" />
9
12
  */
10
13
 
11
14
  /* Layer 0: Legacy SCSS Variables (for legacy Aux components) */
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --amb-font-family-display-serif: PT Serif;
7
- --amb-font-family-sans-serif: Inter;
6
+ --amb-font-family-display-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
7
+ --amb-font-family-sans-serif: 'Inter', Arial, Helvetica, sans-serif;
8
8
  --amb-font-weight-bold: 700;
9
9
  --amb-font-weight-medium: 500;
10
10
  --amb-font-weight-regular: 400;
@@ -35,7 +35,7 @@
35
35
  --bs-color-white: #ffffff; /** For marketing and UI */
36
36
  --bs-color-yellow-1: #fefaed; /** For UI */
37
37
  --bs-color-yellow-2: #dfbb2c; /** For UI */
38
- --bs-font-family-bs-font: Source Sans pro;
38
+ --bs-font-family-bs-font: 'Source Sans Pro', Arial, Helvetica, sans-serif;
39
39
  --bs-font-line-height-14: 14px;
40
40
  --bs-font-line-height-16: 16px;
41
41
  --bs-font-line-height-18: 18px;
@@ -7,6 +7,9 @@
7
7
  * Usage:
8
8
  * import '@ambita/design-system/dist/css/ambita-light.css';
9
9
  *
10
+ * Fonts: Add this to your HTML <head>:
11
+ * <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" />
12
+ *
10
13
  * This is the default theme for the design system.
11
14
  */
12
15
 
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --amb-font-family-display-serif: PT Serif;
7
- --amb-font-family-sans-serif: Inter;
6
+ --amb-font-family-display-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
7
+ --amb-font-family-sans-serif: 'Inter', Arial, Helvetica, sans-serif;
8
8
  --amb-font-weight-bold: 700;
9
9
  --amb-font-weight-medium: 500;
10
10
  --amb-font-weight-regular: 400;
@@ -35,7 +35,7 @@
35
35
  --bs-color-white: #ffffff; /** For marketing and UI */
36
36
  --bs-color-yellow-1: #fefaed; /** For UI */
37
37
  --bs-color-yellow-2: #dfbb2c; /** For UI */
38
- --bs-font-family-bs-font: Source Sans pro;
38
+ --bs-font-family-bs-font: 'Source Sans Pro', Arial, Helvetica, sans-serif;
39
39
  --bs-font-line-height-14: 14px;
40
40
  --bs-font-line-height-16: 16px;
41
41
  --bs-font-line-height-18: 18px;
@@ -7,6 +7,9 @@
7
7
  * Usage:
8
8
  * import '@ambita/design-system/dist/css/ambita-old.css';
9
9
  *
10
+ * Fonts: DIN Round is not available on Google Fonts.
11
+ * Host the font files and add @font-face declarations, or use the fallback (Arial).
12
+ *
10
13
  * This theme maintains backwards compatibility with older designs.
11
14
  */
12
15
 
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Design System Base Styles (Font-Free)
3
+ *
4
+ * DO NOT import this file directly in consuming projects.
5
+ * Use theme entry points instead:
6
+ * - @ambita/design-system/dist/themes/ambita-light.css
7
+ * - @ambita/design-system/dist/themes/ambita-dark.css
8
+ * - @ambita/design-system/dist/themes/ambita-old.css
9
+ * - @ambita/design-system/dist/themes/byggesoknaden.css
10
+ */
11
+
12
+ /* Layer 0: Legacy SCSS Variables (for legacy Aux components) */
13
+ @use './colors-css-variables.scss';
14
+
15
+ /* Layer 1: Semantic Tokens - Using Ambita Light as default */
16
+ @import url('./themes/ambita-light/semantic-tokens.css');
17
+
18
+ /* Layer 2: Component Tokens - Using Ambita Light as default */
19
+ @import url('./themes/ambita-light/component-tokens.css');
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --amb-font-family-display-serif: PT Serif;
7
- --amb-font-family-sans-serif: Inter;
6
+ --amb-font-family-display-serif: 'Source Sans Pro', Arial, Helvetica, sans-serif;
7
+ --amb-font-family-sans-serif: 'Source Sans Pro', Arial, Helvetica, sans-serif;
8
8
  --amb-font-weight-bold: 700;
9
9
  --amb-font-weight-medium: 500;
10
10
  --amb-font-weight-regular: 400;
@@ -35,7 +35,7 @@
35
35
  --bs-color-white: #ffffff; /** For marketing and UI */
36
36
  --bs-color-yellow-1: #fefaed; /** For UI */
37
37
  --bs-color-yellow-2: #dfbb2c; /** For UI */
38
- --bs-font-family-bs-font: Source Sans pro;
38
+ --bs-font-family-bs-font: 'Source Sans Pro', Arial, Helvetica, sans-serif;
39
39
  --bs-font-line-height-14: 14px;
40
40
  --bs-font-line-height-16: 16px;
41
41
  --bs-font-line-height-18: 18px;
@@ -6,6 +6,9 @@
6
6
  *
7
7
  * Usage:
8
8
  * import '@ambita/design-system/dist/css/byggesoknaden.css';
9
+ *
10
+ * Fonts: DIN Round is not available on Google Fonts.
11
+ * Host the font files and add @font-face declarations, or use the fallback (Arial).
9
12
  */
10
13
 
11
14
  /* Layer 0: Legacy SCSS Variables (for legacy Aux components) */
@@ -185,7 +185,7 @@
185
185
  * Dropdown item with icon indicator (for multi-select)
186
186
  * Adds padding-left to accommodate the indicator
187
187
  */
188
- @mixin dropdown-item-with-indicator($indicator-width: 2.5rem) {
188
+ @mixin dropdown-item-with-indicator($indicator-width: 40px) {
189
189
  @include dropdown-item-base;
190
190
  padding-left: $indicator-width;
191
191
  display: flex;
@@ -196,7 +196,7 @@
196
196
  * Dropdown empty state
197
197
  * Shown when no items match search/filter
198
198
  */
199
- @mixin dropdown-empty($padding-y: 0.5rem, $padding-x: 0.5rem) {
199
+ @mixin dropdown-empty($padding-y: 8px, $padding-x: 8px) {
200
200
  padding: $padding-y $padding-x;
201
201
  text-align: center;
202
202
  font-size: 16px;
@@ -207,7 +207,7 @@
207
207
  * Dropdown separator
208
208
  * Divides groups of items
209
209
  */
210
- @mixin dropdown-separator($margin-y: 0rem) {
210
+ @mixin dropdown-separator($margin-y: 0px) {
211
211
  margin-top: $margin-y;
212
212
  margin-bottom: $margin-y;
213
213
  height: 1px;
@@ -218,7 +218,7 @@
218
218
  * Dropdown group label
219
219
  * Labels for grouped items
220
220
  */
221
- @mixin dropdown-label($padding-y: 0.5rem, $padding-x: 0.75rem) {
221
+ @mixin dropdown-label($padding-y: 8px, $padding-x: 12px) {
222
222
  padding: $padding-y $padding-x;
223
223
  font-size: 14px;
224
224
  font-weight: 600;
@@ -382,7 +382,7 @@
382
382
 
383
383
  @keyframes slideInFromTop {
384
384
  from {
385
- transform: translateY(-0.5rem);
385
+ transform: translateY(-8px);
386
386
  }
387
387
  to {
388
388
  transform: translateY(0);
@@ -391,7 +391,7 @@
391
391
 
392
392
  @keyframes slideInFromBottom {
393
393
  from {
394
- transform: translateY(0.5rem);
394
+ transform: translateY(8px);
395
395
  }
396
396
  to {
397
397
  transform: translateY(0);
@@ -400,7 +400,7 @@
400
400
 
401
401
  @keyframes slideInFromLeft {
402
402
  from {
403
- transform: translateX(-0.5rem);
403
+ transform: translateX(-8px);
404
404
  }
405
405
  to {
406
406
  transform: translateX(0);
@@ -409,10 +409,135 @@
409
409
 
410
410
  @keyframes slideInFromRight {
411
411
  from {
412
- transform: translateX(0.5rem);
412
+ transform: translateX(8px);
413
413
  }
414
414
  to {
415
415
  transform: translateX(0);
416
416
  }
417
417
  }
418
418
  }
419
+
420
+ /* ============================================================================
421
+ TYPOGRAPHY MIXINS
422
+ ============================================================================
423
+
424
+ Semantic typography mixins based on the Ambita design system.
425
+ These provide pre-composed text styles matching the design specifications.
426
+
427
+ Usage:
428
+ ```scss
429
+ @use '@/css/neo-mixins' as *;
430
+
431
+ .my-title {
432
+ @include heading-xxl-display;
433
+ }
434
+ ```
435
+
436
+ Heading styles:
437
+ - Display variants use PT Serif (--font-family-display)
438
+ - Regular variants use Inter (--font-family-base)
439
+ ============================================================================ */
440
+
441
+ /* Heading XXL Display - PT Serif, 50px, weight 400, line-height 54px */
442
+ @mixin heading-xxl-display {
443
+ font-family: var(--font-family-display);
444
+ font-size: var(--font-size-xxl);
445
+ font-weight: var(--font-weight-regular);
446
+ line-height: var(--font-line-height-xxxl);
447
+ }
448
+
449
+ /* Heading XXL - Inter, 50px, weight 400, line-height 54px */
450
+ @mixin heading-xxl {
451
+ font-family: var(--font-family-base);
452
+ font-size: var(--font-size-xxl);
453
+ font-weight: var(--font-weight-regular);
454
+ line-height: var(--font-line-height-xxxl);
455
+ }
456
+
457
+ /* Heading XL Display - PT Serif, 30px, weight 400, line-height 34px */
458
+ @mixin heading-xl-display {
459
+ font-family: var(--font-family-display);
460
+ font-size: var(--font-size-xl);
461
+ font-weight: var(--font-weight-regular);
462
+ line-height: var(--font-line-height-xxl);
463
+ }
464
+
465
+ /* Heading XL - Inter, 30px, weight 500, line-height 34px */
466
+ @mixin heading-xl {
467
+ font-family: var(--font-family-base);
468
+ font-size: var(--font-size-xl);
469
+ font-weight: var(--font-weight-medium);
470
+ line-height: var(--font-line-height-xxl);
471
+ }
472
+
473
+ /* Heading L - Inter, 22px, weight 500, line-height 26px */
474
+ @mixin heading-l {
475
+ font-family: var(--font-family-base);
476
+ font-size: var(--font-size-l);
477
+ font-weight: var(--font-weight-medium);
478
+ line-height: var(--font-line-height-xl);
479
+ }
480
+
481
+ /* Heading L Link - Inter, 22px, weight 400, line-height 26px */
482
+ @mixin heading-l-link {
483
+ font-family: var(--font-family-base);
484
+ font-size: var(--font-size-l);
485
+ font-weight: var(--font-weight-regular);
486
+ line-height: var(--font-line-height-xl);
487
+ }
488
+
489
+ /* Heading M - Inter, 20px, weight 500, line-height 24px */
490
+ @mixin heading-m {
491
+ font-family: var(--font-family-base);
492
+ font-size: var(--font-size-m);
493
+ font-weight: var(--font-weight-medium);
494
+ line-height: var(--font-line-height-l);
495
+ }
496
+
497
+ /* Heading S - Inter, 18px, weight 500, line-height 22px */
498
+ @mixin heading-s {
499
+ font-family: var(--font-family-base);
500
+ font-size: var(--font-size-s);
501
+ font-weight: var(--font-weight-medium);
502
+ line-height: var(--font-line-height-m);
503
+ }
504
+
505
+ /* Body L - Inter, 18px, weight 400, line-height 26px */
506
+ @mixin body-l {
507
+ font-family: var(--font-family-base);
508
+ font-size: var(--font-size-s);
509
+ font-weight: var(--font-weight-regular);
510
+ line-height: var(--font-line-height-xl);
511
+ }
512
+
513
+ /* Body M - Inter, 16px, weight 400, line-height 22px */
514
+ @mixin body-m {
515
+ font-family: var(--font-family-base);
516
+ font-size: var(--font-size-xs);
517
+ font-weight: var(--font-weight-regular);
518
+ line-height: var(--font-line-height-m);
519
+ }
520
+
521
+ /* Body S - Inter, 14px, weight 400, line-height 19px */
522
+ @mixin body-s {
523
+ font-family: var(--font-family-base);
524
+ font-size: var(--font-size-xxs);
525
+ font-weight: var(--font-weight-regular);
526
+ line-height: var(--font-line-height-s);
527
+ }
528
+
529
+ /* Caption - Inter, 12px, weight 400, line-height 16px */
530
+ @mixin caption {
531
+ font-family: var(--font-family-base);
532
+ font-size: var(--font-size-xxxs);
533
+ font-weight: var(--font-weight-regular);
534
+ line-height: var(--font-line-height-xxs);
535
+ }
536
+
537
+ /* Label - Inter, 16px, weight 500, line-height 19px */
538
+ @mixin label {
539
+ font-family: var(--font-family-base);
540
+ font-size: var(--font-size-xs);
541
+ font-weight: var(--font-weight-medium);
542
+ line-height: var(--font-line-height-s);
543
+ }
@@ -21,7 +21,14 @@
21
21
  Global font settings that can be overridden per theme
22
22
  ======================================================================== */
23
23
 
24
- --font-family-base: 'ff-din-round-web', sans-serif;
24
+ --font-family-base: var(--font-family-sans-serif, 'Inter', Arial, Helvetica, sans-serif);
25
+ --font-family-display: var(
26
+ --font-family-display-serif,
27
+ 'PT Serif',
28
+ Georgia,
29
+ 'Times New Roman',
30
+ serif
31
+ );
25
32
 
26
33
  /* ========================================================================
27
34
  SHADOW TOKENS
@@ -43,7 +50,7 @@
43
50
  --tags-input-padding-x: 6px;
44
51
 
45
52
  /* TagsInput Dropdown */
46
- --tags-dropdown-max-height: 15rem;
53
+ --tags-dropdown-max-height: 240px;
47
54
  --tags-dropdown-separator-margin: 5px;
48
55
  --tags-dropdown-separator-height: 1px;
49
56