@swisspost/design-system-styles 5.0.0-alpha.7

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 (188) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +40 -0
  3. package/basics.css +29 -0
  4. package/basics.scss +9 -0
  5. package/components/_index.scss +45 -0
  6. package/components/accordion.scss +94 -0
  7. package/components/alert.scss +214 -0
  8. package/components/badge.scss +85 -0
  9. package/components/base.scss +6 -0
  10. package/components/breadcrumb.scss +42 -0
  11. package/components/button-group.scss +69 -0
  12. package/components/button.scss +213 -0
  13. package/components/card.scss +211 -0
  14. package/components/carousel.scss +176 -0
  15. package/components/close.scss +33 -0
  16. package/components/datatable.scss +196 -0
  17. package/components/datepicker.scss +232 -0
  18. package/components/dropdown.scss +83 -0
  19. package/components/floating-label.scss +77 -0
  20. package/components/fonts.scss +27 -0
  21. package/components/form-check.scss +236 -0
  22. package/components/form-feedback.scss +32 -0
  23. package/components/form-range.scss +111 -0
  24. package/components/form-select.scss +31 -0
  25. package/components/forms.scss +54 -0
  26. package/components/grid.scss +100 -0
  27. package/components/icons.scss +60 -0
  28. package/components/intranet-header/_icon.scss +6 -0
  29. package/components/intranet-header/_language-chooser.scss +40 -0
  30. package/components/intranet-header/_logo.scss +54 -0
  31. package/components/intranet-header/_nav-overflow.scss +56 -0
  32. package/components/intranet-header/_scaffolding.scss +96 -0
  33. package/components/intranet-header/_searchbox.scss +32 -0
  34. package/components/intranet-header/_settings.scss +23 -0
  35. package/components/intranet-header/_sidebar.scss +118 -0
  36. package/components/intranet-header/_top-navigation.scss +109 -0
  37. package/components/intranet-header/index.scss +17 -0
  38. package/components/list-group.scss +166 -0
  39. package/components/modal.scss +62 -0
  40. package/components/offcanvas.scss +5 -0
  41. package/components/pagination.scss +79 -0
  42. package/components/popover.scss +21 -0
  43. package/components/product-card.scss +74 -0
  44. package/components/progress.scss +28 -0
  45. package/components/reboot.scss +10 -0
  46. package/components/root.scss +11 -0
  47. package/components/sizing.scss +101 -0
  48. package/components/spinner.scss +71 -0
  49. package/components/stepper.scss +193 -0
  50. package/components/subnavigation.scss +138 -0
  51. package/components/tables.scss +16 -0
  52. package/components/tabs.scss +212 -0
  53. package/components/timepicker.scss +123 -0
  54. package/components/toast.scss +187 -0
  55. package/components/tooltip.scss +23 -0
  56. package/components/topic-teaser.scss +186 -0
  57. package/components/transitions.scss +4 -0
  58. package/components/type.scss +131 -0
  59. package/components/utilities.scss +98 -0
  60. package/core.css +0 -0
  61. package/core.scss +5 -0
  62. package/functions/_color.scss +55 -0
  63. package/functions/_icons.scss +71 -0
  64. package/functions/_index.scss +5 -0
  65. package/functions/_list.scss +22 -0
  66. package/functions/_sizing.scss +103 -0
  67. package/functions/_utilities.scss +66 -0
  68. package/index.css +75 -0
  69. package/index.scss +8 -0
  70. package/intranet.css +75 -0
  71. package/intranet.scss +6 -0
  72. package/layouts/portal/_grid.scss +80 -0
  73. package/layouts/portal/_subnavigation.scss +5 -0
  74. package/layouts/portal/_type.scss +83 -0
  75. package/layouts/portal/_variables.scss +8 -0
  76. package/layouts/portal/index.scss +5 -0
  77. package/lic/_bootstrap-license.scss +29 -0
  78. package/mixins/_animation.scss +48 -0
  79. package/mixins/_badge.scss +22 -0
  80. package/mixins/_button.scss +57 -0
  81. package/mixins/_color.scss +15 -0
  82. package/mixins/_form-checks.scss +80 -0
  83. package/mixins/_forms.scss +110 -0
  84. package/mixins/_icons.scss +38 -0
  85. package/mixins/_index.scss +8 -0
  86. package/mixins/_scroll-shadows.scss +17 -0
  87. package/mixins/_size.scss +65 -0
  88. package/mixins/_type.scss +54 -0
  89. package/mixins/_utilities.scss +79 -0
  90. package/package.json +76 -0
  91. package/placeholders/_button.scss +25 -0
  92. package/placeholders/_color.scss +71 -0
  93. package/placeholders/_dropdown.scss +11 -0
  94. package/placeholders/_index.scss +3 -0
  95. package/placeholders/_notifications.scss +128 -0
  96. package/placeholders/_text.scss +158 -0
  97. package/placeholders/badge.scss +61 -0
  98. package/themes/bootstrap/_accordion.scss +2 -0
  99. package/themes/bootstrap/_alert.scss +2 -0
  100. package/themes/bootstrap/_badge.scss +2 -0
  101. package/themes/bootstrap/_breadcrumbs.scss +2 -0
  102. package/themes/bootstrap/_button-group.scss +2 -0
  103. package/themes/bootstrap/_buttons.scss +3 -0
  104. package/themes/bootstrap/_card.scss +2 -0
  105. package/themes/bootstrap/_carousel.scss +2 -0
  106. package/themes/bootstrap/_close.scss +2 -0
  107. package/themes/bootstrap/_containers.scss +2 -0
  108. package/themes/bootstrap/_dropdown.scss +2 -0
  109. package/themes/bootstrap/_forms.scss +9 -0
  110. package/themes/bootstrap/_grid.scss +2 -0
  111. package/themes/bootstrap/_images.scss +2 -0
  112. package/themes/bootstrap/_list-group.scss +2 -0
  113. package/themes/bootstrap/_modal.scss +2 -0
  114. package/themes/bootstrap/_nav.scss +2 -0
  115. package/themes/bootstrap/_navbar.scss +2 -0
  116. package/themes/bootstrap/_offcanvas.scss +2 -0
  117. package/themes/bootstrap/_overrides-color.scss +45 -0
  118. package/themes/bootstrap/_overrides-features.scss +18 -0
  119. package/themes/bootstrap/_overrides-variables.scss +40 -0
  120. package/themes/bootstrap/_overrides.scss +5 -0
  121. package/themes/bootstrap/_pagination.scss +2 -0
  122. package/themes/bootstrap/_popover.scss +2 -0
  123. package/themes/bootstrap/_progress.scss +2 -0
  124. package/themes/bootstrap/_reboot.scss +2 -0
  125. package/themes/bootstrap/_root.scss +2 -0
  126. package/themes/bootstrap/_spinners.scss +2 -0
  127. package/themes/bootstrap/_tables.scss +2 -0
  128. package/themes/bootstrap/_toasts.scss +2 -0
  129. package/themes/bootstrap/_tooltip.scss +2 -0
  130. package/themes/bootstrap/_transitions.scss +2 -0
  131. package/themes/bootstrap/_type.scss +6 -0
  132. package/themes/bootstrap/_utilities.scss +9 -0
  133. package/themes/bootstrap/forms/_floating-labels.scss +2 -0
  134. package/themes/bootstrap/forms/_form-check.scss +2 -0
  135. package/themes/bootstrap/forms/_form-control.scss +2 -0
  136. package/themes/bootstrap/forms/_form-range.scss +2 -0
  137. package/themes/bootstrap/forms/_form-select.scss +2 -0
  138. package/themes/bootstrap/forms/_form-text.scss +2 -0
  139. package/themes/bootstrap/forms/_input-group.scss +2 -0
  140. package/themes/bootstrap/forms/_labels.scss +2 -0
  141. package/themes/bootstrap/forms/_validation.scss +2 -0
  142. package/variables/_animation.scss +36 -0
  143. package/variables/_breakpoints.scss +9 -0
  144. package/variables/_color.scss +119 -0
  145. package/variables/_commons.scss +56 -0
  146. package/variables/_grid.scss +27 -0
  147. package/variables/_icons.scss +4600 -0
  148. package/variables/_index.scss +14 -0
  149. package/variables/_options.scss +5 -0
  150. package/variables/_spacing.scss +181 -0
  151. package/variables/_type.scss +204 -0
  152. package/variables/components/_accordion.scss +38 -0
  153. package/variables/components/_alert.scss +51 -0
  154. package/variables/components/_badge.scss +44 -0
  155. package/variables/components/_breadcrumbs.scss +21 -0
  156. package/variables/components/_button.scss +137 -0
  157. package/variables/components/_card.scss +30 -0
  158. package/variables/components/_carousel.scss +27 -0
  159. package/variables/components/_close.scss +19 -0
  160. package/variables/components/_code.scss +14 -0
  161. package/variables/components/_datatable.scss +53 -0
  162. package/variables/components/_datepicker.scss +22 -0
  163. package/variables/components/_detail-summary.scss +12 -0
  164. package/variables/components/_dropdowns.scss +30 -0
  165. package/variables/components/_figures.scss +6 -0
  166. package/variables/components/_form-check.scss +63 -0
  167. package/variables/components/_form-feedback.scss +25 -0
  168. package/variables/components/_form-select.scss +13 -0
  169. package/variables/components/_form-switch.scss +38 -0
  170. package/variables/components/_forms.scss +129 -0
  171. package/variables/components/_index.scss +30 -0
  172. package/variables/components/_intranet-header.scss +9 -0
  173. package/variables/components/_list-group.scss +29 -0
  174. package/variables/components/_modals.scss +68 -0
  175. package/variables/components/_nav.scss +55 -0
  176. package/variables/components/_navbar.scss +44 -0
  177. package/variables/components/_pagination.scss +42 -0
  178. package/variables/components/_paragraph.scss +6 -0
  179. package/variables/components/_popovers.scss +28 -0
  180. package/variables/components/_progress-bars.scss +16 -0
  181. package/variables/components/_spinners.scss +16 -0
  182. package/variables/components/_stepper.scss +36 -0
  183. package/variables/components/_subnavigation.scss +32 -0
  184. package/variables/components/_tables.scss +39 -0
  185. package/variables/components/_thumbnails.scss +11 -0
  186. package/variables/components/_toasts.scss +18 -0
  187. package/variables/components/_tooltips.scss +18 -0
  188. package/variables/components/_topic-teaser.scss +27 -0
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/carousel';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/close';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/containers';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/dropdown';
@@ -0,0 +1,9 @@
1
+ @forward './forms/labels';
2
+ @forward './forms/form-text';
3
+ @forward './forms/form-control';
4
+ @forward './forms/form-select';
5
+ @forward './forms/form-check';
6
+ @forward './forms/form-range';
7
+ @forward './forms/floating-labels';
8
+ @forward './forms/input-group';
9
+ @forward './forms/validation';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/grid';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/images';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/list-group';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/modal';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/nav';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/navbar';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/offcanvas';
@@ -0,0 +1,45 @@
1
+ @use 'sass:map';
2
+ @use '../../variables/color';
3
+
4
+ /**
5
+ * Override the necessary bootstrap
6
+ * colors and maps using colors from
7
+ * the post style guide only.
8
+ *
9
+ * Other bootstrap colors
10
+ * will be available as sass-variables
11
+ * but should not be used.
12
+ */
13
+
14
+ // $grays are defined in post colors
15
+ // $colors are defined in post colors
16
+
17
+ $primary: color.$gray-80;
18
+ $secondary: color.$gray-60;
19
+ // $success: color.$success; // Is already defined as $sucess in post-colors
20
+ $info: color.$yellow;
21
+ // $warning: color.$warning; // Is already defined as $warning in post-colors
22
+ $danger: color.$error;
23
+
24
+ // Colors that can be used as a background
25
+ $colors: () !default;
26
+
27
+ $theme-colors: () !default;
28
+ $theme-colors: map.merge(
29
+ $theme-colors,
30
+ (
31
+ 'primary': $primary,
32
+ 'secondary': $secondary,
33
+ 'light': color.$light,
34
+ 'dark': color.$dark,
35
+ )
36
+ );
37
+ $theme-colors: map.merge($theme-colors, color.$contextual-colors);
38
+
39
+ // Contrast colors are ok
40
+
41
+ $body-bg: color.$white;
42
+ $body-color: color.$black;
43
+
44
+ $component-active-color: color.$white !default;
45
+ $component-active-bg: $primary !default;
@@ -0,0 +1,18 @@
1
+ // Features
2
+ //
3
+ // Note: This variables have almost no influence on how the UI is shown,
4
+ // because they have not been used in the custom swisspost styling.
5
+ // Nevertheless, they have to be defined, for bootstrap to work as expected.
6
+
7
+ $enable-caret: true;
8
+ $enable-rounded: true;
9
+ $enable-shadows: false;
10
+ $enable-gradients: false;
11
+ $enable-transitions: true;
12
+ $enable-hover-media-query: false;
13
+ $enable-grid-classes: true;
14
+
15
+ // Prefix for :root CSS variables
16
+ // TODO: this variable will change from "$variable-prefix" to "$prefix" in bootstrap@5.2
17
+ // https://getbootstrap.com/docs/5.2/customize/css-variables/#prefix
18
+ $variable-prefix: 'bs-' !default;
@@ -0,0 +1,40 @@
1
+ @forward '../../variables/animation';
2
+ @forward '../../variables/breakpoints';
3
+ @forward '../../variables/color';
4
+ @forward './overrides-features';
5
+ @forward './overrides-color';
6
+ @forward '../../variables/commons';
7
+ @forward '../../variables/grid';
8
+ @forward '../../variables/icons';
9
+ @forward '../../variables/spacing';
10
+ @forward '../../variables/options';
11
+ @forward '../../variables/type';
12
+ @forward '../../variables/components/accordion';
13
+ @forward '../../variables/components/alert';
14
+ @forward '../../variables/components/badge';
15
+ @forward '../../variables/components/breadcrumbs';
16
+ @forward '../../variables/components/button';
17
+ @forward '../../variables/components/card';
18
+ @forward '../../variables/components/carousel';
19
+ @forward '../../variables/components/close';
20
+ @forward '../../variables/components/dropdowns';
21
+ @forward '../../variables/components/figures';
22
+ @forward '../../variables/components/form-check';
23
+ @forward '../../variables/components/form-feedback';
24
+ @forward '../../variables/components/form-select';
25
+ @forward '../../variables/components/form-switch';
26
+ @forward '../../variables/components/forms';
27
+ @forward '../../variables/components/list-group';
28
+ @forward '../../variables/components/modals';
29
+ @forward '../../variables/components/nav';
30
+ @forward '../../variables/components/navbar';
31
+ @forward '../../variables/components/pagination';
32
+ @forward '../../variables/components/paragraph';
33
+ @forward '../../variables/components/popovers';
34
+ @forward '../../variables/components/progress-bars';
35
+ @forward '../../variables/components/spinners';
36
+ @forward '../../variables/components/subnavigation';
37
+ @forward '../../variables/components/tables';
38
+ @forward '../../variables/components/thumbnails';
39
+ @forward '../../variables/components/toasts';
40
+ @forward '../../variables/components/tooltips';
@@ -0,0 +1,5 @@
1
+ @import './overrides-variables';
2
+
3
+ @import 'bootstrap/scss/functions';
4
+ @import 'bootstrap/scss/variables';
5
+ @import 'bootstrap/scss/mixins';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/pagination';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/popover';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/progress';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/reboot';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/root';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/spinners';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/tables';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/toasts';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/tooltip';
@@ -0,0 +1,2 @@
1
+ @use './overrides' as *;
2
+ @import 'bootstrap/scss/transitions';
@@ -0,0 +1,6 @@
1
+ @use './overrides' as *;
2
+
3
+ // Reboot is needed here because type.scss is extending the h1/2/... selectors
4
+ @use './reboot' as *;
5
+
6
+ @import 'bootstrap/scss/type';
@@ -0,0 +1,9 @@
1
+ @use 'sass:map';
2
+ @use './overrides' as *;
3
+ @import 'bootstrap/scss/helpers';
4
+ @import 'bootstrap/scss/utilities';
5
+
6
+ // manipulate $utilities before you import utilities/api
7
+ $utilities: map.remove($utilities, 'background-color');
8
+
9
+ @import 'bootstrap/scss/utilities/api';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/floating-labels';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/form-check';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/form-control';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/form-range';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/form-select';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/form-text';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/input-group';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/labels';
@@ -0,0 +1,2 @@
1
+ @use '../overrides' as *;
2
+ @import 'bootstrap/scss/forms/validation';
@@ -0,0 +1,36 @@
1
+ @use 'sass:map';
2
+ @use './spacing';
3
+
4
+ // Material Design - Motion Guidelines implementation
5
+ // https://material.io/design/motion/
6
+ // The // Original flag simple means, that this variable is not yet tweaked for Post
7
+
8
+ // Complexity
9
+ $transition-time-simple: 150ms !default;
10
+ $transition-time-default: 250ms !default;
11
+ $transition-time-morph: 500ms !default; // Original
12
+ $transition-time-fade-in: 200ms !default;
13
+ $transition-time-fade-out: 125ms !default;
14
+
15
+ // Area
16
+ $transition-time-area-small: $transition-time-simple !default;
17
+ $transition-time-area-medium: 350ms !default;
18
+ $transition-time-area-large: 500ms !default;
19
+
20
+ // Easings
21
+ $transition-easing-default: cubic-bezier(0.4, 0, 0.2, 1) !default;
22
+ $transition-easing-decelerate: cubic-bezier(0, 0, 0.2, 1) !default;
23
+ $transition-easing-accelerate: cubic-bezier(0.4, 0, 1, 1) !default;
24
+
25
+ // Distances
26
+ $transition-distance-xsmall: map.get(spacing.$post-sizes, 'micro') !default;
27
+ $transition-distance-small: map.get(spacing.$post-sizes, 'small-regular') !default;
28
+ $transition-distance-medium: map.get(spacing.$post-sizes, 'regular') !default;
29
+ $transition-distance-medium-md: map.get(spacing.$post-sizes, 'big') !default;
30
+ $transition-distance-large: map.get(spacing.$post-sizes, 'huge') !default;
31
+ $transition-distance-large-md: map.get(spacing.$post-sizes, 'giant') !default;
32
+
33
+ $transition-base-timing: $transition-time-default $transition-easing-default !default;
34
+ $transition-base: all $transition-base-timing !default;
35
+ $transition-fade: opacity $transition-time-fade-in linear !default;
36
+ $transition-collapse: height $transition-base-timing, padding $transition-base-timing !default;
@@ -0,0 +1,9 @@
1
+ $grid-breakpoints: (
2
+ xs: 0,
3
+ sm: 400px,
4
+ rg: 600px,
5
+ md: 780px,
6
+ lg: 1024px,
7
+ xl: 1280px,
8
+ xxl: 1441px,
9
+ ) !default;
@@ -0,0 +1,119 @@
1
+ @use 'sass:map';
2
+ @use 'sass:list';
3
+ @use '../functions/color' as color-fn;
4
+
5
+ /**
6
+ * Colors used by the post style guide
7
+ */
8
+
9
+ // The one and only
10
+ $yellow: #fc0;
11
+
12
+ // Grayscale
13
+ $gray-background: #f4f3f1;
14
+ $gray-background-light: #faf9f8;
15
+
16
+ $white: #fff;
17
+ $gray-10: hsl(0, 0%, 90%);
18
+ $gray-20: hsl(0, 0%, 80%);
19
+ $gray-40: hsl(0, 0%, 60%);
20
+ $gray-60: hsl(0, 0%, 40%);
21
+ $gray-80: hsl(0, 0%, 20%);
22
+ $black: #000;
23
+
24
+ $dark: $gray-80;
25
+ $light: $gray-background-light;
26
+
27
+ // Accent colors
28
+ $nightblue-dark: #004976;
29
+ $nightblue-bright: #0076a8;
30
+ $petrol-dark: #006d68;
31
+ $petrol-bright: #00968f;
32
+ $coral-dark: #9e2a2f;
33
+ $coral-bright: #e03c31;
34
+ $purple-dark: #80276c;
35
+ $purple-bright: #c5299b;
36
+ $olive-dark: #716135;
37
+ $olive-bright: #aa9d2e;
38
+ $aubergine-dark: #523178;
39
+ $aubergine-bright: #7566a0;
40
+
41
+ // Contextual colors
42
+ $success: #2c911c;
43
+ $success-text: #255e1c;
44
+ $error: #a51728;
45
+ $error-text: #8f0d1c;
46
+ $warning: #f49e00;
47
+
48
+ /**
49
+ * Maps. Allow maps to have custom colors from the project
50
+ * by always merging into a default empty map
51
+ */
52
+
53
+ $post-grays: () !default;
54
+ $post-grays: map.merge(
55
+ $post-grays,
56
+ (
57
+ 'gray-10': $gray-10,
58
+ 'gray-20': $gray-20,
59
+ 'gray-40': $gray-40,
60
+ 'gray-60': $gray-60,
61
+ 'gray-80': $gray-80,
62
+ )
63
+ );
64
+
65
+ $contextual-colors: () !default;
66
+ $contextual-colors: map.merge(
67
+ $contextual-colors,
68
+ (
69
+ 'success': $success,
70
+ 'info': $yellow,
71
+ 'warning': $warning,
72
+ 'danger': $error,
73
+ )
74
+ );
75
+
76
+ $accent-colors: () !default;
77
+ $accent-colors: map.merge(
78
+ $accent-colors,
79
+ (
80
+ 'nightblue': $nightblue-dark,
81
+ 'nightblue-bright': $nightblue-bright,
82
+ 'petrol': $petrol-dark,
83
+ 'petrol-bright': $petrol-bright,
84
+ 'coral': $coral-dark,
85
+ 'coral-bright': $coral-bright,
86
+ 'olive': $olive-dark,
87
+ 'olive-bright': $olive-bright,
88
+ 'purple': $purple-dark,
89
+ 'purple-bright': $purple-bright,
90
+ 'aubergine': $aubergine-dark,
91
+ 'aubergine-bright': $aubergine-bright,
92
+ )
93
+ );
94
+
95
+ // List of possible background colors with some synonyms for easier usage
96
+ $background-colors: () !default;
97
+ $background-colors: map.merge(
98
+ $background-colors,
99
+ (
100
+ 'yellow': $yellow,
101
+ 'light': $light,
102
+ 'gray': $gray-background,
103
+ 'dark': $dark,
104
+ 'primary': $gray-80,
105
+ 'white': $white,
106
+ )
107
+ );
108
+
109
+ // Merge with the other lists
110
+ $background-colors: map.merge($background-colors, $contextual-colors);
111
+ $background-colors: map.merge($background-colors, $accent-colors);
112
+
113
+ // Compile a list of dark backgrounds, used in the :is selector mixin at mixins/color
114
+ $dark-backgrounds: () !default;
115
+ @each $colorname, $color in $background-colors {
116
+ @if (color-fn.get-contrast-color($color) != #000) {
117
+ $dark-backgrounds: list.append($dark-backgrounds, '.bg-#{$colorname}', $separator: comma);
118
+ }
119
+ }
@@ -0,0 +1,56 @@
1
+ @use './color';
2
+
3
+ // Components
4
+ //
5
+ // Define common padding and border radius sizes and more.
6
+ $border-width: 1px !default;
7
+ $border-thick: 2px !default;
8
+ $border-color: color.$gray-20 !default;
9
+
10
+ $border-radius: 3px !default;
11
+ $border-radius-sm: $border-radius !default;
12
+ $border-radius-rg: $border-radius !default;
13
+ $border-radius-lg: $border-radius !default;
14
+
15
+ $box-shadow-sm: 0 0 4px 0 rgba(color.$black, 0.4) !default;
16
+ $box-shadow: 0 0 5px 0 rgba(color.$black, 0.3) !default;
17
+ $box-shadow-lg: 0 0 8px 0 rgba(color.$black, 0.4) !default;
18
+ $box-shadow-hover: 0 0 1rem 0 rgba(color.$black, 0.08) !default;
19
+
20
+ $caret-width: 0.3em !default;
21
+
22
+ // Z-index master list
23
+ //
24
+ // Warning: Avoid customizing these values. They're used for a bird's eye view
25
+ // of components dependent on the z-axis and are designed to all work together.
26
+
27
+ $zindex-spinner: 990 !default; // Design System only
28
+ $zindex-dropdown: 1000 !default;
29
+ $zindex-sticky: 1020 !default;
30
+ $zindex-fixed: 1030 !default;
31
+ $zindex-modal-backdrop: 1040 !default;
32
+ $zindex-modal: 1055 !default;
33
+ $zindex-popover: 1060 !default;
34
+ $zindex-tooltip: 1070 !default;
35
+ $zindex-alert: 1080 !default; // Design System only
36
+
37
+ // Z-index
38
+
39
+ $z-indexes: (
40
+ hero: (
41
+ img,
42
+ brandframe,
43
+ ),
44
+ productcard: (
45
+ card,
46
+ ),
47
+ subnavigation: (
48
+ underscore-root,
49
+ underscore-link,
50
+ ),
51
+ ) !default;
52
+
53
+ // Utilities
54
+ $displays: none, inline, inline-block, block, table, table-row, table-cell, flex, inline-flex !default;
55
+ $overflows: auto, hidden !default;
56
+ $positions: static, relative, absolute, fixed, sticky !default;
@@ -0,0 +1,27 @@
1
+ // Grid containers
2
+ //
3
+ // Define the maximum width of `.container` for different screen sizes.
4
+
5
+ $container-max-widths: (
6
+ xs: 1440px,
7
+ ) !default;
8
+
9
+ // list of breakpoint giving the possibility to loop over them
10
+ $grid-breakpoints-list: xs sm rg md lg xl xxl;
11
+
12
+ // Grid columns
13
+ //
14
+ // Set the number of columns and specify the width of the gutters.
15
+
16
+ $grid-columns: 12 !default;
17
+ $grid-gutter-width: 30px !default;
18
+
19
+ $grid-container-padding: (
20
+ xs: 12px,
21
+ sm: 16px,
22
+ rg: 32px,
23
+ md: 32px,
24
+ lg: 40px,
25
+ xl: 128px,
26
+ xxl: 128px,
27
+ ) !default;