@ambita/design-system 5.7.1-3081.0 → 5.7.1-31.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.
- package/README.md +3 -0
- package/dist/ambita-logo.svg +4 -1
- package/dist/css/_tokens/_byggesoknaden.scss +3 -3
- package/dist/css/_tokens/byggesoknaden.css +5 -5
- package/dist/css/_tokens/component-tokens.css +9 -2
- package/dist/css/_typography.scss +228 -0
- package/dist/css/ambita-dark.css +3 -3
- package/dist/css/ambita-dark.scss +3 -0
- package/dist/css/ambita-light.css +3 -3
- package/dist/css/ambita-light.scss +3 -0
- package/dist/css/ambita-old.css +3 -3
- package/dist/css/ambita-old.scss +3 -0
- package/dist/css/base.scss +19 -0
- package/dist/css/byggesoknaden.css +3 -3
- package/dist/css/byggesoknaden.scss +3 -0
- package/dist/css/neo-mixins.scss +133 -8
- package/dist/css/themes/_base/component-tokens.css +9 -2
- package/dist/css/themes/ambita-dark/component-tokens.css +9 -2
- package/dist/css/themes/ambita-dark/semantic-tokens.css +3 -3
- package/dist/css/themes/ambita-light/component-tokens.css +9 -2
- package/dist/css/themes/ambita-light/semantic-tokens.css +3 -3
- package/dist/css/themes/ambita-old/component-tokens.css +3 -2
- package/dist/css/themes/ambita-old/semantic-tokens.css +3 -3
- package/dist/css/themes/byggesoknaden/component-tokens.css +15 -2
- package/dist/css/themes/byggesoknaden/semantic-tokens.css +3 -3
- package/dist/ds.cjs +10 -10
- package/dist/ds.js +6168 -6126
- package/dist/ds.umd.cjs +11 -11
- package/dist/index.css +1 -1
- package/dist/scss/_ambita-dark.scss +3 -3
- package/dist/scss/_ambita-light.scss +3 -3
- package/dist/scss/_ambita-old.scss +3 -3
- package/dist/scss/_byggesoknaden.scss +3 -3
- package/dist/scss/_typography.scss +228 -0
- package/dist/themes/ambita-dark.css +18 -14
- package/dist/themes/ambita-light.css +18 -14
- package/dist/themes/ambita-old.css +11 -14
- package/dist/themes/byggesoknaden.css +24 -14
- package/dist/types/components/{Modal → AuxModal}/Actions.vue.d.ts +1 -1
- package/dist/types/components/AuxModal/AuxModal.vue.d.ts +88 -0
- package/dist/types/components/Input/NeoInput.vue.d.ts +1 -1
- package/dist/types/components/NeoComboBox/NeoComboBox.vue.d.ts +1 -1
- package/dist/types/components/NeoDatePicker/NeoDatePicker.vue.d.ts +1 -1
- package/dist/types/components/NeoSelect/NeoSelect.vue.d.ts +1 -1
- package/dist/types/components/NeoTabs/NeoTabs.vue.d.ts +9 -3
- package/dist/types/components/NeoTagsInput/TagsInput.vue.d.ts +1 -1
- package/dist/types/components/Typography/NeoFormField.vue.d.ts +2 -6
- package/dist/types/components/Typography/types.d.ts +6 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/main.d.ts +6 -1
- package/package.json +8 -7
- package/dist/types/components/Modal/Modal.vue.d.ts +0 -166
- /package/dist/types/components/{Modal → AuxModal}/Action.d.ts +0 -0
- /package/dist/types/components/{Modal → AuxModal}/constants.d.ts +0 -0
package/README.md
CHANGED
|
@@ -31,8 +31,11 @@ The design system features:
|
|
|
31
31
|
|
|
32
32
|
### Documentation
|
|
33
33
|
|
|
34
|
+
- **[Ambita Style Guide](https://design.ambita.com)** - Brand guidelines, colors, typography, and visual standards
|
|
35
|
+
|
|
34
36
|
Key guides for contributors:
|
|
35
37
|
|
|
38
|
+
- **[docs/CONTRIBUTING.md](docs/CONTRIBUTING.md)** - General info on contributing
|
|
36
39
|
- **[docs/INTEGRATION_GUIDE.md](docs/INTEGRATION_GUIDE.md)** - How to use the design system in projects
|
|
37
40
|
- **[docs/REKA_UI_SCSS_GUIDE.md](docs/REKA_UI_SCSS_GUIDE.md)** - Portal components and `:deep()` selectors
|
|
38
41
|
- **[docs/NEO_COMPONENT_PATTERNS.md](docs/NEO_COMPONENT_PATTERNS.md)** - Common patterns and mixins
|
package/dist/ambita-logo.svg
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
1
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2
|
+
xml:space="preserve" preserveAspectRatio="xMinYMid meet" x="0px" y="0px"
|
|
3
|
+
viewBox="0 0 694.11 164.663" style="enable-background:new 0 0 694.11 164.663;" role="img"
|
|
4
|
+
aria-labelledby="ambita-logo-title"> <title id="ambita-logo-title">Ambita</title> <path fill="currentcolor" class="ambita-logo__svg__path" d="M101.071,48.106h-5.002c-5.439,0-9.889,4.451-9.889,9.892v0.155 c-8.794-6.17-19.177-10.047-30.702-10.047c-15.85,0-29.602,6.764-39.627,17.485C5.876,76.03,0.058,90.393,0.002,106.385 c0,0.078-0.002,0.156-0.002,0.236c0,15.848,5.827,30.302,15.85,41.022c10.025,10.493,23.778,17.02,39.627,17.02 c11.525,0,21.909-3.648,30.705-9.814c0.04,5.403,4.472,9.814,9.886,9.814h5.002c5.437,0,9.887-4.453,9.887-9.889V57.998 C110.958,52.558,106.507,48.106,101.071,48.106z M86.18,108.901c-0.508,8.609-3.876,16.153-9.021,21.729 c-5.595,5.826-13.522,9.089-21.681,9.089c-8.389,0-16.316-3.263-21.677-9.089c-5.595-6.063-8.859-14.453-8.859-24.009 c0-0.08,0.003-0.158,0.003-0.236c0.051-9.691,3.305-17.993,8.856-23.777c5.36-6.293,13.288-9.556,21.677-9.556 c8.159,0,16.086,3.263,21.681,9.556c5.145,5.36,8.513,12.888,9.021,21.68v2.098V108.901z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M281.806,48.106H150.147l0,0c-5.439,0-9.891,4.451-9.891,9.892v96.776 c0,5.436,4.451,9.889,9.891,9.889h4.999c5.439,0,9.89-4.453,9.89-9.889V72.887h38.551v81.888c0,5.436,4.451,9.889,9.89,9.889h4.999 c5.439,0,9.889-4.453,9.889-9.889V72.887h38.551v81.888c0,5.436,4.452,9.889,9.889,9.889h5.001c5.44,0,9.889-4.453,9.889-9.889 V57.998C291.695,52.558,287.247,48.106,281.806,48.106z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M684.222,48.106h-5.001c-5.44,0-9.889,4.451-9.889,9.892v0.155 c-8.794-6.17-19.178-10.047-30.702-10.047c-15.85,0-29.601,6.764-39.626,17.485c-9.976,10.438-15.791,24.801-15.848,40.793 c0,0.078-0.003,0.156-0.003,0.236c0,15.848,5.827,30.302,15.851,41.022c10.025,10.493,23.776,17.02,39.626,17.02 c11.525,0,21.908-3.648,30.702-9.814c0.041,5.403,4.475,9.814,9.889,9.814h5.001c5.438,0,9.889-4.453,9.889-9.889V57.998 C694.11,52.558,689.659,48.106,684.222,48.106z M669.332,108.907c-0.511,8.608-3.878,16.147-9.023,21.723 c-5.595,5.826-13.519,9.089-21.68,9.089c-8.391,0-16.315-3.263-21.679-9.089c-5.594-6.063-8.855-14.453-8.855-24.009 c0-0.08,0-0.158,0.003-0.236c0.051-9.691,3.305-17.993,8.852-23.777c5.363-6.293,13.288-9.556,21.679-9.556 c8.16,0,16.085,3.263,21.68,9.556c5.145,5.357,8.512,12.886,9.023,21.672v2.106V108.907z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M470.419,48.106h-5c-5.438,0-9.891,4.451-9.891,9.892v96.776c0,5.436,4.452,9.889,9.891,9.889h5 c5.439,0,9.889-4.453,9.889-9.889V57.998C480.308,52.558,475.857,48.106,470.419,48.106z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M433.659,106.385c-0.124-31.832-25.25-58.278-56.643-58.278c-11.422,0-22.608,3.731-31.234,9.792 l-0.008-46.522c0-5.437-4.448-9.889-9.888-9.889h-0.003h-4.998h-0.001c-5.439,0-9.889,4.452-9.889,9.889v143.398 c0,5.436,4.449,9.889,9.889,9.889h0.001h4.998h0.003c5.382,0,9.792-4.359,9.884-9.717c8.785,5.886,19.79,9.717,31.246,9.717 c31.471,0,56.647-26.575,56.647-58.042C433.662,106.541,433.659,106.463,433.659,106.385z M398.928,129.696 c-5.827,6.06-13.52,9.559-21.912,9.559c-8.623,0-16.084-3.499-21.911-9.559c-5.827-5.827-9.323-14.22-9.323-23.075 c0-0.08,0.001-0.158,0.001-0.236c0.059-9.232,3.542-17.532,9.322-23.311c5.827-6.06,13.288-9.559,21.911-9.559 c8.393,0,16.085,3.499,21.912,9.559c5.78,5.778,9.264,14.079,9.323,23.311c0,0.078,0.002,0.156,0.002,0.236 C408.253,115.477,404.758,123.869,398.928,129.696z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M565.793,48.106h-15.241v-36.73c0-5.437-4.45-9.889-9.889-9.889h-5.001 c-5.438,0-9.889,4.452-9.889,9.889v36.73h-15.241c-5.44,0-9.889,4.451-9.889,9.892v4.999c0,5.439,4.449,9.89,9.889,9.89h15.241 v81.888c0,5.436,4.451,9.889,9.889,9.889h5.001c5.438,0,9.889-4.453,9.889-9.889V72.887h15.241c5.44,0,9.889-4.45,9.889-9.89 v-4.999C575.682,52.558,571.233,48.106,565.793,48.106z"></path> <circle fill="currentcolor" class="ambita-logo__svg__path" cx="467.919" cy="13.877" r="13.878"></circle> </svg>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Do not edit directly, this file was auto-generated.
|
|
2
2
|
|
|
3
|
-
$amb-font-family-display-serif:
|
|
4
|
-
$amb-font-family-sans-serif:
|
|
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
|
|
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:
|
|
7
|
-
--amb-font-family-sans-serif:
|
|
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
|
|
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-
|
|
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-
|
|
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:
|
|
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:
|
|
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
|
+
}
|
package/dist/css/ambita-dark.css
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
package/dist/css/ambita-old.css
CHANGED
|
@@ -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
|
|
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;
|
package/dist/css/ambita-old.scss
CHANGED
|
@@ -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:
|
|
7
|
-
--amb-font-family-sans-serif:
|
|
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
|
|
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) */
|