@design-system-rte/core 0.3.0 → 0.6.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/components/button/button.interface.d.ts +2 -4
- package/components/button/{button.constants.ts → common/common-button.constants.ts} +1 -1
- package/components/button/common/common-button.d.ts +2 -0
- package/components/button/icon-button/icon-button.interface.d.ts +12 -0
- package/components/grid/grid.scss +21 -20
- package/components/grid/grid.stories.scss +2 -2
- package/components/icon/icon-utils.ts +3 -0
- package/components/split-button/split-button.constants.ts +13 -0
- package/components/split-button/split-button.interface.d.ts +19 -0
- package/constants/keyboard.constants.ts +1 -0
- package/css/bleu_iceberg.css +1 -1
- package/css/rte-themes.css +1 -1
- package/css/vert_foret.css +1 -1
- package/design-tokens/generator.ts +15 -0
- package/design-tokens/main.scss +10 -0
- package/design-tokens/scripts/common.ts +28 -0
- package/design-tokens/scripts/primitives-generator.spec.ts +84 -0
- package/{tokens → design-tokens/scripts}/primitives-generator.ts +9 -17
- package/design-tokens/scripts/tokens-generator.spec.ts +184 -0
- package/design-tokens/scripts/tokens-generator.ts +128 -0
- package/design-tokens/scripts/tokens-generators/colors.ts +133 -0
- package/design-tokens/scripts/tokens-generators/layout.ts +22 -0
- package/design-tokens/scripts/tokens-generators/opacity.ts +14 -0
- package/design-tokens/scripts/tokens-generators/shadows.ts +18 -0
- package/design-tokens/scripts/tokens-generators/typography.ts +58 -0
- package/design-tokens/tokens/_elevation.scss +144 -0
- package/design-tokens/tokens/_mixins.scss +250 -0
- package/design-tokens/tokens/_shadows.scss +36 -0
- package/design-tokens/tokens/_themes.scss +14 -0
- package/{tokens → design-tokens/tokens}/_typography.scss +2 -2
- package/design-tokens/tokens/themes/_bleu-iceberg-dark.scss +163 -0
- package/design-tokens/tokens/themes/_bleu-iceberg-light.scss +163 -0
- package/design-tokens/tokens/themes/_main.scss +6 -0
- package/design-tokens/tokens/themes/_vert-foret-dark.scss +163 -0
- package/design-tokens/tokens/themes/_vert-foret-light.scss +163 -0
- package/design-tokens/tokens/themes/_violet-dark.scss +163 -0
- package/design-tokens/tokens/themes/_violet-light.scss +163 -0
- package/package.json +5 -4
- package/tokens/_mixins.scss +0 -284
- package/tokens/_shadows.scss +0 -36
- package/tokens/_themes.scss +0 -914
- package/tokens/main.scss +0 -9
- package/tokens/tokens-generator.ts +0 -197
- /package/{tokens → design-tokens}/primitives/_colors.scss +0 -0
- /package/{tokens → design-tokens}/primitives/_devColors.scss +0 -0
- /package/{tokens → design-tokens}/primitives/_typography.scss +0 -0
- /package/{tokens → design-tokens/tokens}/_border.scss +0 -0
- /package/{tokens → design-tokens/tokens}/_layout.scss +0 -0
- /package/{tokens → design-tokens/tokens}/_opacity.scss +0 -0
- /package/{tokens → design-tokens/tokens}/_size.scss +0 -0
- /package/{tokens → design-tokens/tokens}/_spacing.scss +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
@use "shadows" as *;
|
|
2
|
+
|
|
3
|
+
@mixin neutral-inner-shadow {
|
|
4
|
+
box-shadow: inset $inner-shadow-key-position-x $inner-shadow-key-position-y $inner-shadow-key-blur $inner-shadow-key-spread var(--elevation-shadow-key);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin elevation-neutral-inner-shadow {
|
|
8
|
+
@include neutral-inner-shadow;
|
|
9
|
+
background: linear-gradient(0deg, var(--elevation-surface-inner-shadow) 0%, var(--elevation-surface-inner-shadow) 100%);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin neutral-shadow-1 {
|
|
13
|
+
box-shadow: $shadow-1-key-position-x $shadow-1-key-position-y $shadow-1-key-blur $shadow-1-key-spread var(--elevation-shadow-key),
|
|
14
|
+
$ambient-shadow-position-x $ambient-shadow-position-y $ambient-shadow-blur $ambient-shadow-spread var(--elevation-shadow-ambient);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin elevation-neutral-shadow-1 {
|
|
18
|
+
@include neutral-shadow-1;
|
|
19
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-1) 0%, var(--elevation-surface-shadow-1) 100%);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin neutral-shadow-2 {
|
|
23
|
+
box-shadow: $shadow-2-key-position-x $shadow-2-key-position-y $shadow-2-key-blur $shadow-2-key-spread var(--elevation-shadow-key),
|
|
24
|
+
$ambient-shadow-position-x $ambient-shadow-position-y $ambient-shadow-blur $ambient-shadow-spread var(--elevation-shadow-ambient);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin elevation-neutral-shadow-2 {
|
|
28
|
+
@include neutral-shadow-2;
|
|
29
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-2) 0%, var(--elevation-surface-shadow-2) 100%);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin neutral-shadow-3 {
|
|
33
|
+
box-shadow: $shadow-3-key-position-x $shadow-3-key-position-y $shadow-3-key-blur $shadow-3-key-spread var(--elevation-shadow-key),
|
|
34
|
+
$ambient-shadow-position-x $ambient-shadow-position-y $ambient-shadow-blur $ambient-shadow-spread var(--elevation-shadow-ambient);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin elevation-neutral-shadow-3 {
|
|
38
|
+
@include neutral-shadow-3;
|
|
39
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-3) 0%, var(--elevation-surface-shadow-3) 100%);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@mixin neutral-shadow-4 {
|
|
43
|
+
box-shadow: $shadow-4-key-position-x $shadow-4-key-position-y $shadow-4-key-blur $shadow-4-key-spread var(--elevation-shadow-key),
|
|
44
|
+
$ambient-shadow-position-x $ambient-shadow-position-y $ambient-shadow-blur $ambient-shadow-spread var(--elevation-shadow-ambient);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin elevation-neutral-shadow-4 {
|
|
48
|
+
@include neutral-shadow-4;
|
|
49
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-4) 0%, var(--elevation-surface-shadow-4) 100%);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@mixin neutral-shadow-5 {
|
|
53
|
+
box-shadow: $shadow-5-key-position-x $shadow-5-key-position-y $shadow-5-key-blur $shadow-5-key-spread var(--elevation-shadow-key-darker),
|
|
54
|
+
$ambient-shadow-darker-position-x $ambient-shadow-darker-position-y $ambient-shadow-darker-blur $ambient-shadow-darker-spread var(--elevation-shadow-ambient-darker);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin elevation-neutral-shadow-5 {
|
|
58
|
+
@include neutral-shadow-5;
|
|
59
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-5) 0%, var(--elevation-surface-shadow-5) 100%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin neutral-shadow-6 {
|
|
63
|
+
box-shadow: $shadow-6-key-position-x $shadow-6-key-position-y $shadow-6-key-blur $shadow-6-key-spread var(--elevation-shadow-key-darker),
|
|
64
|
+
$ambient-shadow-darker-position-x $ambient-shadow-darker-position-y $ambient-shadow-darker-blur $ambient-shadow-darker-spread var(--elevation-shadow-ambient-darker);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin elevation-neutral-shadow-6 {
|
|
68
|
+
@include neutral-shadow-6;
|
|
69
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-6) 0%, var(--elevation-surface-shadow-6) 100%);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@mixin brand-inner-shadow {
|
|
73
|
+
box-shadow: inset $inner-shadow-key-position-x $inner-shadow-key-position-y $inner-shadow-key-blur $inner-shadow-key-spread var(--elevation-shadow-key-brand);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin elevation-brand-inner-shadow {
|
|
77
|
+
@include brand-inner-shadow;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin brand-shadow-1 {
|
|
81
|
+
box-shadow:
|
|
82
|
+
$shadow-1-key-position-x $shadow-1-key-position-y $shadow-1-key-blur $shadow-1-key-spread var(--elevation-shadow-key-brand),
|
|
83
|
+
$ambient-shadow-position-x $ambient-shadow-position-y $ambient-shadow-blur $ambient-shadow-spread var(--elevation-shadow-ambient-brand);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@mixin elevation-brand-shadow-1 {
|
|
87
|
+
@include brand-shadow-1;
|
|
88
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-1) 0%, var(--elevation-surface-shadow-1) 100%);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@mixin brand-shadow-2 {
|
|
92
|
+
box-shadow:
|
|
93
|
+
$shadow-2-key-position-x $shadow-2-key-position-y $shadow-2-key-blur $shadow-2-key-spread var(--elevation-shadow-key-brand),
|
|
94
|
+
$ambient-shadow-position-x $ambient-shadow-position-y $ambient-shadow-blur $ambient-shadow-spread var(--elevation-shadow-ambient-brand);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@mixin elevation-brand-shadow-2 {
|
|
98
|
+
@include brand-shadow-2;
|
|
99
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-2) 0%, var(--elevation-surface-shadow-2) 100%);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@mixin brand-shadow-3 {
|
|
103
|
+
box-shadow:
|
|
104
|
+
$shadow-3-key-position-x $shadow-3-key-position-y $shadow-3-key-blur $shadow-3-key-spread var(--elevation-shadow-key-brand),
|
|
105
|
+
$ambient-shadow-position-x $ambient-shadow-position-y $ambient-shadow-blur $ambient-shadow-spread var(--elevation-shadow-ambient-brand);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@mixin elevation-brand-shadow-3 {
|
|
109
|
+
@include brand-shadow-3;
|
|
110
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-3) 0%, var(--elevation-surface-shadow-3) 100%);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@mixin brand-shadow-4 {
|
|
114
|
+
box-shadow:
|
|
115
|
+
$shadow-4-key-position-x $shadow-4-key-position-y $shadow-4-key-blur $shadow-4-key-spread var(--elevation-shadow-key-brand),
|
|
116
|
+
$ambient-shadow-position-x $ambient-shadow-position-y $ambient-shadow-blur $ambient-shadow-spread var(--elevation-shadow-ambient-brand);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@mixin elevation-brand-shadow-4 {
|
|
120
|
+
@include brand-shadow-4;
|
|
121
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-4) 0%, var(--elevation-surface-shadow-4) 100%);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@mixin brand-shadow-5 {
|
|
125
|
+
box-shadow:
|
|
126
|
+
$shadow-5-key-position-x $shadow-5-key-position-y $shadow-5-key-blur $shadow-5-key-spread var(--elevation-shadow-key-brand),
|
|
127
|
+
$ambient-shadow-darker-position-x $ambient-shadow-darker-position-y $ambient-shadow-darker-blur $ambient-shadow-darker-spread var(--elevation-shadow-ambient-brand);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@mixin elevation-brand-shadow-5 {
|
|
131
|
+
@include brand-shadow-5;
|
|
132
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-5) 0%, var(--elevation-surface-shadow-5) 100%);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@mixin brand-shadow-6 {
|
|
136
|
+
box-shadow:
|
|
137
|
+
$shadow-6-key-position-x $shadow-6-key-position-y $shadow-6-key-blur $shadow-6-key-spread var(--elevation-shadow-key-brand),
|
|
138
|
+
$ambient-shadow-darker-position-x $ambient-shadow-darker-position-y $ambient-shadow-darker-blur $ambient-shadow-darker-spread var(--elevation-shadow-ambient-brand);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@mixin elevation-brand-shadow-6 {
|
|
142
|
+
@include brand-shadow-6;
|
|
143
|
+
background: linear-gradient(0deg, var(--elevation-surface-shadow-6) 0%, var(--elevation-surface-shadow-6) 100%);
|
|
144
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
@use 'themes' as *;
|
|
2
|
+
@use 'typography' as *;
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
|
|
5
|
+
$themes: (
|
|
6
|
+
"bleu_iceberg": $bleu-iceberg,
|
|
7
|
+
"violet": $violet,
|
|
8
|
+
"vert_foret": $vert-foret
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
@mixin apply-theme($targetTheme: bleu_iceberg, $mode: light) {
|
|
12
|
+
$targetTheme: map.get($themes, $targetTheme, $mode);
|
|
13
|
+
|
|
14
|
+
@include extract-custom-properties-from-theme($targetTheme);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@mixin theme-selector($targetTheme: bleu_iceberg, $mode: light) {
|
|
19
|
+
$theme: map.get($themes, $targetTheme, $mode);
|
|
20
|
+
|
|
21
|
+
[data-theme="#{$targetTheme}"][data-mode="#{$mode}"] {
|
|
22
|
+
@include extract-custom-properties-from-theme($theme);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin extract-custom-properties-from-theme($theme) {
|
|
27
|
+
@each $property, $value in $theme {
|
|
28
|
+
--#{$property}: #{$value};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@mixin hover-box-shadow($color) {
|
|
34
|
+
box-shadow: 0 0 0 8px $color;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Mixins for typography
|
|
38
|
+
|
|
39
|
+
@mixin typography-button {
|
|
40
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin typography-button-s {
|
|
45
|
+
@include typography-button;
|
|
46
|
+
font-family: $button-s-semibold-font-family;
|
|
47
|
+
font-size: $button-s-semibold-font-size;
|
|
48
|
+
letter-spacing: $button-s-semibold-letter-spacing;
|
|
49
|
+
font-weight: $button-s-semibold-font-weight;
|
|
50
|
+
line-height: $button-s-semibold-line-height;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin typography-button-m {
|
|
54
|
+
@include typography-button;
|
|
55
|
+
font-family: $button-m-semibold-font-family;
|
|
56
|
+
font-weight: $button-m-semibold-font-weight;
|
|
57
|
+
font-size: $button-m-semibold-font-size;
|
|
58
|
+
line-height: $button-m-semibold-line-height;
|
|
59
|
+
letter-spacing: $button-m-semibold-letter-spacing;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin typography-button-l {
|
|
63
|
+
@include typography-button;
|
|
64
|
+
font-family: $button-l-semibold-font-family;
|
|
65
|
+
font-weight: $button-l-semibold-font-weight;
|
|
66
|
+
font-size: $button-l-semibold-font-size;
|
|
67
|
+
line-height: $button-l-semibold-line-height;
|
|
68
|
+
letter-spacing: $button-l-semibold-letter-spacing;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@mixin typography-text {
|
|
72
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
|
73
|
+
font-style: normal;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin typography-text-m {
|
|
77
|
+
@include typography-text;
|
|
78
|
+
font-family: $text-m-regular-font-family;
|
|
79
|
+
font-weight: $text-m-regular-font-weight;
|
|
80
|
+
font-size: $text-m-regular-font-size;
|
|
81
|
+
line-height: $text-m-regular-line-height;
|
|
82
|
+
letter-spacing: $text-m-regular-letter-spacing;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@mixin typography-text-m-bold {
|
|
86
|
+
@include typography-text;
|
|
87
|
+
font-family: $text-m-bold-font-family;
|
|
88
|
+
font-weight: $text-m-bold-font-weight;
|
|
89
|
+
font-size: $text-m-bold-font-size;
|
|
90
|
+
line-height: $text-m-bold-line-height;
|
|
91
|
+
letter-spacing: $text-m-bold-letter-spacing;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@mixin typography-text-s {
|
|
95
|
+
@include typography-text;
|
|
96
|
+
font-family: $text-s-regular-font-family;
|
|
97
|
+
font-weight: $text-s-regular-font-weight;
|
|
98
|
+
font-size: $text-s-regular-font-size;
|
|
99
|
+
line-height: $text-s-regular-line-height;
|
|
100
|
+
letter-spacing: $text-s-regular-letter-spacing;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin typography-text-l {
|
|
104
|
+
@include typography-text;
|
|
105
|
+
font-family: $text-l-regular-font-family;
|
|
106
|
+
font-weight: $text-l-regular-font-weight;
|
|
107
|
+
font-size: $text-l-regular-font-size;
|
|
108
|
+
line-height: $text-l-regular-line-height;
|
|
109
|
+
letter-spacing: $text-l-regular-letter-spacing;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@mixin typography-link {
|
|
113
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
|
114
|
+
font-style: normal;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin typography-link-m {
|
|
118
|
+
@include typography-link;
|
|
119
|
+
font-family: $text-m-regular-font-family;
|
|
120
|
+
font-weight: $text-m-regular-font-weight;
|
|
121
|
+
font-size: $text-m-regular-font-size;
|
|
122
|
+
line-height: $text-m-regular-line-height;
|
|
123
|
+
letter-spacing: $text-m-regular-letter-spacing;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@mixin typography-radio-button {
|
|
127
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
|
128
|
+
font-style: normal;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@mixin typography-radio-button-l {
|
|
132
|
+
@include typography-radio-button;
|
|
133
|
+
font-family: $text-l-regular-font-family;
|
|
134
|
+
font-size: $text-l-regular-font-size;
|
|
135
|
+
font-weight: $text-l-regular-font-weight;
|
|
136
|
+
line-height: $text-l-regular-line-height;
|
|
137
|
+
letter-spacing: $text-l-regular-letter-spacing;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@mixin typography-heading {
|
|
141
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
142
|
+
font-style: normal;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@mixin typography-heading-s {
|
|
146
|
+
@include typography-heading;
|
|
147
|
+
font-family: $heading-s-semibold-font-family;
|
|
148
|
+
font-weight: $heading-s-semibold-font-weight;
|
|
149
|
+
font-size: $heading-s-semibold-font-size;
|
|
150
|
+
line-height: $heading-s-semibold-line-height;
|
|
151
|
+
letter-spacing: $heading-s-semibold-letter-spacing;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@mixin typography-checkbox-error {
|
|
155
|
+
@include typography-text-s;
|
|
156
|
+
font-weight: $text-s-bold-font-weight;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@mixin typography-tooltip {
|
|
160
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
161
|
+
font-style: normal;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@mixin typography-tooltip-label {
|
|
165
|
+
@include typography-tooltip;
|
|
166
|
+
font-family: $text-m-regular-font-family;
|
|
167
|
+
font-weight: $text-m-regular-font-weight;
|
|
168
|
+
font-size: $text-m-regular-font-size;
|
|
169
|
+
line-height: $text-m-regular-line-height;
|
|
170
|
+
letter-spacing: $text-m-regular-letter-spacing;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@mixin typography-storybook-title {
|
|
174
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
175
|
+
font-style: normal;
|
|
176
|
+
font-family: $heading-3xl-semibold-font-family;
|
|
177
|
+
font-weight: $heading-3xl-semibold-font-weight;
|
|
178
|
+
font-size: $heading-2xl-semibold-font-size;
|
|
179
|
+
line-height: $heading-xl-semibold-line-height;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@mixin typography-storybook-subtitle {
|
|
183
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
184
|
+
font-style: normal;
|
|
185
|
+
font-family: $heading-4xl-semibold-font-family;
|
|
186
|
+
font-weight: $heading-m-semibold-font-weight;
|
|
187
|
+
font-size: $heading-m-semibold-font-size;
|
|
188
|
+
line-height: $heading-m-semibold-line-height;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@mixin typography-storybook-header-content {
|
|
192
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
193
|
+
font-style: normal;
|
|
194
|
+
font-family: $text-xl-regular-font-family;
|
|
195
|
+
font-weight: $text-xl-regular-font-weight;
|
|
196
|
+
font-size: $text-xl-regular-font-size;
|
|
197
|
+
line-height: $text-xl-regular-line-height;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@mixin typography-storybook-header-xs {
|
|
201
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
202
|
+
font-style: normal;
|
|
203
|
+
font-family: $heading-xs-semibold-font-family;
|
|
204
|
+
font-weight: $heading-xs-semibold-font-weight;
|
|
205
|
+
font-size: $heading-xs-semibold-font-size;
|
|
206
|
+
line-height: $heading-xs-semibold-line-height;
|
|
207
|
+
letter-spacing: $heading-xs-semibold-letter-spacing;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@mixin typography-storybook-header-s {
|
|
211
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
212
|
+
font-style: normal;
|
|
213
|
+
font-family: $heading-s-semibold-font-family;
|
|
214
|
+
font-weight: $heading-s-semibold-font-weight;
|
|
215
|
+
font-size: $heading-s-semibold-font-size;
|
|
216
|
+
line-height: $heading-s-semibold-line-height;
|
|
217
|
+
letter-spacing: $heading-s-semibold-letter-spacing;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@mixin typography-split-button {
|
|
221
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
222
|
+
font-style: normal;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@mixin typography-split-button-s {
|
|
226
|
+
@include typography-split-button;
|
|
227
|
+
font-family: $button-s-semibold-font-family;
|
|
228
|
+
font-weight: $button-s-semibold-font-weight;
|
|
229
|
+
font-size: $button-s-semibold-font-size;
|
|
230
|
+
line-height: $button-s-semibold-line-height;
|
|
231
|
+
letter-spacing: $button-s-semibold-letter-spacing;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@mixin typography-split-button-m {
|
|
235
|
+
@include typography-split-button;
|
|
236
|
+
font-family: $button-m-semibold-font-family;
|
|
237
|
+
font-weight: $button-m-semibold-font-weight;
|
|
238
|
+
font-size: $button-m-semibold-font-size;
|
|
239
|
+
line-height: $button-m-semibold-line-height;
|
|
240
|
+
letter-spacing: $button-m-semibold-letter-spacing;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@mixin typography-split-button-l {
|
|
244
|
+
@include typography-split-button;
|
|
245
|
+
font-family: $button-l-semibold-font-family;
|
|
246
|
+
font-weight: $button-l-semibold-font-weight;
|
|
247
|
+
font-size: $button-l-semibold-font-size;
|
|
248
|
+
line-height: $button-l-semibold-line-height;
|
|
249
|
+
letter-spacing: $button-l-semibold-letter-spacing;
|
|
250
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
$ambient-shadow-position-x: 0px;
|
|
2
|
+
$ambient-shadow-position-y: 0px;
|
|
3
|
+
$ambient-shadow-blur: 2px;
|
|
4
|
+
$ambient-shadow-spread: 0px;
|
|
5
|
+
$ambient-shadow-darker-position-x: 0px;
|
|
6
|
+
$ambient-shadow-darker-position-y: 0px;
|
|
7
|
+
$ambient-shadow-darker-blur: 8px;
|
|
8
|
+
$ambient-shadow-darker-spread: 0px;
|
|
9
|
+
$inner-shadow-key-position-x: 0px;
|
|
10
|
+
$inner-shadow-key-position-y: 1px;
|
|
11
|
+
$inner-shadow-key-blur: 4px;
|
|
12
|
+
$inner-shadow-key-spread: 0px;
|
|
13
|
+
$shadow-1-key-position-x: 0px;
|
|
14
|
+
$shadow-1-key-position-y: 1px;
|
|
15
|
+
$shadow-1-key-blur: 2px;
|
|
16
|
+
$shadow-1-key-spread: 0px;
|
|
17
|
+
$shadow-2-key-position-x: 0px;
|
|
18
|
+
$shadow-2-key-position-y: 2px;
|
|
19
|
+
$shadow-2-key-blur: 4px;
|
|
20
|
+
$shadow-2-key-spread: 0px;
|
|
21
|
+
$shadow-3-key-position-x: 0px;
|
|
22
|
+
$shadow-3-key-position-y: 4px;
|
|
23
|
+
$shadow-3-key-blur: 8px;
|
|
24
|
+
$shadow-3-key-spread: 0px;
|
|
25
|
+
$shadow-4-key-position-x: 0px;
|
|
26
|
+
$shadow-4-key-position-y: 8px;
|
|
27
|
+
$shadow-4-key-blur: 16px;
|
|
28
|
+
$shadow-4-key-spread: 0px;
|
|
29
|
+
$shadow-5-key-position-x: 0px;
|
|
30
|
+
$shadow-5-key-position-y: 14px;
|
|
31
|
+
$shadow-5-key-blur: 28px;
|
|
32
|
+
$shadow-5-key-spread: 0px;
|
|
33
|
+
$shadow-6-key-position-x: 0px;
|
|
34
|
+
$shadow-6-key-position-y: 32px;
|
|
35
|
+
$shadow-6-key-blur: 64px;
|
|
36
|
+
$shadow-6-key-spread: 0px;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use "./themes/main" as *;
|
|
2
|
+
|
|
3
|
+
$bleu-iceberg: (
|
|
4
|
+
"light": $bleu-iceberg-light,
|
|
5
|
+
"dark": $bleu-iceberg-dark,
|
|
6
|
+
);
|
|
7
|
+
$violet: (
|
|
8
|
+
"light": $violet-light,
|
|
9
|
+
"dark": $violet-dark,
|
|
10
|
+
);
|
|
11
|
+
$vert-foret: (
|
|
12
|
+
"light": $vert-foret-light,
|
|
13
|
+
"dark": $vert-foret-dark,
|
|
14
|
+
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use 'primitives/typography' as *;
|
|
1
|
+
@use '../primitives/typography' as *;
|
|
2
2
|
|
|
3
3
|
$heading-5xl-semibold-font-family: $font-family-nunito;
|
|
4
4
|
$heading-5xl-semibold-font-weight: $font-weight-semibold;
|
|
@@ -114,4 +114,4 @@ $button-l-semibold-font-family: $font-family-nunito;
|
|
|
114
114
|
$button-l-semibold-font-weight: $font-weight-semibold;
|
|
115
115
|
$button-l-semibold-font-size: $font-size-2xl;
|
|
116
116
|
$button-l-semibold-line-height: $line-height-2xl;
|
|
117
|
-
$button-l-semibold-letter-spacing: $letter-spacing-s;
|
|
117
|
+
$button-l-semibold-letter-spacing: $letter-spacing-s;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
@use '../../primitives/colors' as *;
|
|
2
|
+
@use '../../primitives/devColors' as *;
|
|
3
|
+
|
|
4
|
+
$bleu-iceberg-dark: (
|
|
5
|
+
"background-default": $greyscale-900,
|
|
6
|
+
"background-hover": $greyscale-800,
|
|
7
|
+
"background-pressed": $greyscale-700,
|
|
8
|
+
"background-disabled": $greyscale-800,
|
|
9
|
+
"background-inverse": $core-white,
|
|
10
|
+
"background-brand-default": $bleu-iceberg-300,
|
|
11
|
+
"background-brand-hover": $bleu-iceberg-200,
|
|
12
|
+
"background-brand-pressed": $bleu-iceberg-100,
|
|
13
|
+
"background-brand-selected-default": $bleu-iceberg-300,
|
|
14
|
+
"background-brand-selected-hover": $bleu-iceberg-200,
|
|
15
|
+
"background-brand-unselected-default": $bleu-iceberg-700,
|
|
16
|
+
"background-brand-unselected-hover": $bleu-iceberg-600,
|
|
17
|
+
"background-brand-inverse-default": $greyscale-900,
|
|
18
|
+
"background-brand-inverse-hover": $bleu-iceberg-700,
|
|
19
|
+
"background-brand-inverse-pressed": $bleu-iceberg-600,
|
|
20
|
+
"background-danger-default": $rouge-indications-400,
|
|
21
|
+
"background-danger-hover": $rouge-indications-500,
|
|
22
|
+
"background-danger-pressed": $rouge-indications-600,
|
|
23
|
+
"background-status-info-subtle": $bleu-digital-100,
|
|
24
|
+
"background-status-info": $bleu-digital-400,
|
|
25
|
+
"background-status-warning": $jaune-500,
|
|
26
|
+
"background-status-warning-subtle": $jaune-100,
|
|
27
|
+
"background-status-success": $vert-digital-400,
|
|
28
|
+
"background-status-success-subtle": $vert-digital-200,
|
|
29
|
+
"background-status-alert": $rouge-indications-500,
|
|
30
|
+
"background-status-alert-subtle": $rouge-indications-100,
|
|
31
|
+
"border-primary": $greyscale-400,
|
|
32
|
+
"border-secondary": $greyscale-600,
|
|
33
|
+
"border-tertiary": $greyscale-800,
|
|
34
|
+
"border-disabled": $greyscale-700,
|
|
35
|
+
"border-inverse": $greyscale-900,
|
|
36
|
+
"border-brand-default": $bleu-iceberg-0,
|
|
37
|
+
"border-brand-focused": $bleu-iceberg-0,
|
|
38
|
+
"border-danger": $rouge-indications-600,
|
|
39
|
+
"border-info": $bleu-digital-500,
|
|
40
|
+
"border-warning": $jaune-indications-400,
|
|
41
|
+
"border-success": $vert-digital-600,
|
|
42
|
+
"chart-brand": $bleu-iceberg-500,
|
|
43
|
+
"chart-neutral": $greyscale-350,
|
|
44
|
+
"chart-category-1": $bleu-iceberg-500,
|
|
45
|
+
"chart-category-2": $fuschia-500,
|
|
46
|
+
"chart-category-3": $violet-600,
|
|
47
|
+
"chart-category-4": $vert-foret-500,
|
|
48
|
+
"chart-category-5": $marine-900,
|
|
49
|
+
"chart-category-6": $jaune-indications-500,
|
|
50
|
+
"chart-category-7": $taupe-700,
|
|
51
|
+
"chart-category-8": $bleu-petrole-400,
|
|
52
|
+
"chart-bleu-iceberg": $bleu-iceberg-100,
|
|
53
|
+
"chart-bleu-iceberg-bold": $bleu-iceberg-500,
|
|
54
|
+
"chart-vert-foret": $vert-foret-100,
|
|
55
|
+
"chart-vert-foret-bold": $vert-foret-400,
|
|
56
|
+
"chart-violet": $violet-300,
|
|
57
|
+
"chart-violet-bold": $violet-600,
|
|
58
|
+
"chart-bleu-rte": $bleu-rte-100,
|
|
59
|
+
"chart-bleu-rte-bold": $bleu-rte-600,
|
|
60
|
+
"chart-bleu-digital": $bleu-digital-100,
|
|
61
|
+
"chart-bleu-digital-bold": $bleu-digital-500,
|
|
62
|
+
"chart-marine": $marine-100,
|
|
63
|
+
"chart-marine-bold": $marine-500,
|
|
64
|
+
"chart-bleu-petrole": $bleu-petrole-100,
|
|
65
|
+
"chart-bleu-petrole-bold": $bleu-petrole-500,
|
|
66
|
+
"chart-bleu-cyan": $bleu-cyan-100,
|
|
67
|
+
"chart-bleu-cyan-bold": $bleu-cyan-500,
|
|
68
|
+
"chart-vert": $vert-100,
|
|
69
|
+
"chart-vert-bold": $vert-500,
|
|
70
|
+
"chart-vert-indications": $vert-indications-200,
|
|
71
|
+
"chart-vert-indications-bold": $vert-indications-400,
|
|
72
|
+
"chart-vert-digital": $vert-digital-100,
|
|
73
|
+
"chart-vert-digital-bold": $vert-digital-400,
|
|
74
|
+
"chart-jaune": $jaune-100,
|
|
75
|
+
"chart-jaune-bold": $jaune-500,
|
|
76
|
+
"chart-jaune-ocre": $jaune-ocre-100,
|
|
77
|
+
"chart-jaune-ocre-bold": $jaune-ocre-400,
|
|
78
|
+
"chart-jaune-indications": $jaune-indications-100,
|
|
79
|
+
"chart-jaune-indications-bold": $jaune-indications-400,
|
|
80
|
+
"chart-saumon": $saumon-100,
|
|
81
|
+
"chart-saumon-bold": $saumon-500,
|
|
82
|
+
"chart-rose-digital": $rose-digital-200,
|
|
83
|
+
"chart-rose-digital-bold": $rose-digital-500,
|
|
84
|
+
"chart-fuschia": $fuschia-100,
|
|
85
|
+
"chart-fuschia-bold": $fuschia-500,
|
|
86
|
+
"chart-rouge-indications": $rouge-indications-100,
|
|
87
|
+
"chart-rouge-indications-bold": $rouge-indications-500,
|
|
88
|
+
"chart-greyscale": $greyscale-50,
|
|
89
|
+
"chart-greyscale-bold": $greyscale-550,
|
|
90
|
+
"chart-taupe": $taupe-200,
|
|
91
|
+
"chart-taupe-bold": $taupe-600,
|
|
92
|
+
"content-primary": $core-white,
|
|
93
|
+
"content-secondary": $greyscale-100,
|
|
94
|
+
"content-tertiary": $greyscale-300,
|
|
95
|
+
"content-primary-inverse": $greyscale-900,
|
|
96
|
+
"content-secondary-inverse": $greyscale-800,
|
|
97
|
+
"content-tertiary-inverse": $greyscale-600,
|
|
98
|
+
"content-disabled": $greyscale-700,
|
|
99
|
+
"content-brand-default": $bleu-iceberg-0,
|
|
100
|
+
"content-brand-hover": $bleu-iceberg-50,
|
|
101
|
+
"content-brand-press": $bleu-iceberg-100,
|
|
102
|
+
"content-link-default": $bleu-digital-500,
|
|
103
|
+
"content-link-hover": $bleu-digital-400,
|
|
104
|
+
"content-link-press": $bleu-digital-300,
|
|
105
|
+
"content-link-visited": $violet-500,
|
|
106
|
+
"content-link-visited-hover": $violet-400,
|
|
107
|
+
"content-link-visited-press": $violet-300,
|
|
108
|
+
"content-danger": $rouge-indications-400,
|
|
109
|
+
"content-danger-hover": $rouge-indications-500,
|
|
110
|
+
"content-danger-press": $rouge-indications-600,
|
|
111
|
+
"content-danger-inverse": $core-white,
|
|
112
|
+
"content-info": $bleu-digital-500,
|
|
113
|
+
"content-info-inverse": $core-white,
|
|
114
|
+
"content-info-bold": $bleu-digital-400,
|
|
115
|
+
"content-warning": $jaune-indications-400,
|
|
116
|
+
"content-warning-inverse": $core-white,
|
|
117
|
+
"content-warning-bold": $jaune-indications-300,
|
|
118
|
+
"content-success": $vert-digital-600,
|
|
119
|
+
"content-success-inverse": $core-white,
|
|
120
|
+
"content-success-bold": $vert-digital-500,
|
|
121
|
+
"content-decorative": $greyscale-900,
|
|
122
|
+
"content-status": $greyscale-900,
|
|
123
|
+
"decorative-neutral": $greyscale-50,
|
|
124
|
+
"decorative-bleu-iceberg": $bleu-iceberg-200,
|
|
125
|
+
"decorative-vert-foret": $vert-foret-100,
|
|
126
|
+
"decorative-violet": $violet-200,
|
|
127
|
+
"decorative-bleu-rte": $bleu-rte-200,
|
|
128
|
+
"decorative-bleu-digital": $bleu-digital-200,
|
|
129
|
+
"decorative-marine": $marine-100,
|
|
130
|
+
"decorative-bleu-petrole": $bleu-petrole-200,
|
|
131
|
+
"decorative-bleu-cyan": $bleu-cyan-200,
|
|
132
|
+
"decorative-vert": $vert-200,
|
|
133
|
+
"decorative-vert-indications": $vert-indications-200,
|
|
134
|
+
"decorative-vert-digital": $vert-digital-200,
|
|
135
|
+
"decorative-jaune": $jaune-100,
|
|
136
|
+
"decorative-jaune-ocre": $jaune-ocre-200,
|
|
137
|
+
"decorative-jaune-indications": $jaune-indications-200,
|
|
138
|
+
"decorative-saumon": $saumon-300,
|
|
139
|
+
"decorative-rose-digital": $rose-digital-200,
|
|
140
|
+
"decorative-fuschia": $fuschia-200,
|
|
141
|
+
"decorative-rouge-indication": $rouge-indications-100,
|
|
142
|
+
"decorative-taupe": $taupe-200,
|
|
143
|
+
"elevation-surface-inner-shadow": rgba(0, 0, 0, 0.20),
|
|
144
|
+
"elevation-surface-shadow-1": rgba(255, 255, 255, 0.03),
|
|
145
|
+
"elevation-surface-shadow-2": rgba(255, 255, 255, 0.05),
|
|
146
|
+
"elevation-surface-shadow-3": rgba(255, 255, 255, 0.08),
|
|
147
|
+
"elevation-surface-shadow-4": rgba(255, 255, 255, 0.10),
|
|
148
|
+
"elevation-surface-shadow-5": rgba(255, 255, 255, 0.12),
|
|
149
|
+
"elevation-surface-shadow-6": rgba(255, 255, 255, 0.14),
|
|
150
|
+
"elevation-shadow-ambient": rgba(0, 0, 0, 0.20),
|
|
151
|
+
"elevation-shadow-ambient-darker": rgba(0, 0, 0, 0.40),
|
|
152
|
+
"elevation-shadow-ambient-brand": rgba(0, 0, 0, 0.17),
|
|
153
|
+
"elevation-shadow-key": rgba(0, 0, 0, 0.28),
|
|
154
|
+
"elevation-shadow-key-darker": rgba(0, 0, 0, 0.48),
|
|
155
|
+
"elevation-shadow-key-brand": rgba(0, 0, 0, 0.21),
|
|
156
|
+
"gradient-default": #ffffff,
|
|
157
|
+
// TODO remove this color (not a real token)
|
|
158
|
+
"background-brand-hover-opacity-20": $bleu-iceberg-200-opacity-20,
|
|
159
|
+
// TODO remove this color (not a real token)
|
|
160
|
+
"background-danger-hover-opacity-20": $rouge-indications-500-opacity-20,
|
|
161
|
+
// TODO remove this color (not a real token)
|
|
162
|
+
"background-hover-opacity-50": $greyscale-800-opacity-50,
|
|
163
|
+
);
|