@elastic/eui-theme-common 0.0.1
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/LICENSE.txt +6 -0
- package/README.md +11 -0
- package/lib/cjs/.tsbuildinfo +1 -0
- package/lib/cjs/global_styling/functions/index.d.ts +2 -0
- package/lib/cjs/global_styling/functions/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/functions/index.js +22 -0
- package/lib/cjs/global_styling/functions/index.js.map +1 -0
- package/lib/cjs/global_styling/functions/size.d.ts +13 -0
- package/lib/cjs/global_styling/functions/size.d.ts.map +1 -0
- package/lib/cjs/global_styling/functions/size.js +42 -0
- package/lib/cjs/global_styling/functions/size.js.map +1 -0
- package/lib/cjs/global_styling/index.d.ts +4 -0
- package/lib/cjs/global_styling/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/index.js +44 -0
- package/lib/cjs/global_styling/index.js.map +1 -0
- package/lib/cjs/global_styling/types.d.ts +66 -0
- package/lib/cjs/global_styling/types.d.ts.map +1 -0
- package/lib/cjs/global_styling/types.js +21 -0
- package/lib/cjs/global_styling/types.js.map +1 -0
- package/lib/cjs/global_styling/variables/_colors_vis.d.ts +13 -0
- package/lib/cjs/global_styling/variables/_colors_vis.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/_colors_vis.js +69 -0
- package/lib/cjs/global_styling/variables/_colors_vis.js.map +1 -0
- package/lib/cjs/global_styling/variables/animations.d.ts +36 -0
- package/lib/cjs/global_styling/variables/animations.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/animations.js +38 -0
- package/lib/cjs/global_styling/variables/animations.js.map +1 -0
- package/lib/cjs/global_styling/variables/borders.d.ts +61 -0
- package/lib/cjs/global_styling/variables/borders.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/borders.js +7 -0
- package/lib/cjs/global_styling/variables/borders.js.map +1 -0
- package/lib/cjs/global_styling/variables/breakpoint.d.ts +15 -0
- package/lib/cjs/global_styling/variables/breakpoint.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/breakpoint.js +23 -0
- package/lib/cjs/global_styling/variables/breakpoint.js.map +1 -0
- package/lib/cjs/global_styling/variables/buttons.d.ts +44 -0
- package/lib/cjs/global_styling/variables/buttons.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/buttons.js +7 -0
- package/lib/cjs/global_styling/variables/buttons.js.map +1 -0
- package/lib/cjs/global_styling/variables/colors.d.ts +245 -0
- package/lib/cjs/global_styling/variables/colors.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/colors.js +7 -0
- package/lib/cjs/global_styling/variables/colors.js.map +1 -0
- package/lib/cjs/global_styling/variables/components.d.ts +69 -0
- package/lib/cjs/global_styling/variables/components.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/components.js +7 -0
- package/lib/cjs/global_styling/variables/components.js.map +1 -0
- package/lib/cjs/global_styling/variables/forms.d.ts +20 -0
- package/lib/cjs/global_styling/variables/forms.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/forms.js +7 -0
- package/lib/cjs/global_styling/variables/forms.js.map +1 -0
- package/lib/cjs/global_styling/variables/index.d.ts +14 -0
- package/lib/cjs/global_styling/variables/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/index.js +154 -0
- package/lib/cjs/global_styling/variables/index.js.map +1 -0
- package/lib/cjs/global_styling/variables/levels.d.ts +39 -0
- package/lib/cjs/global_styling/variables/levels.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/levels.js +33 -0
- package/lib/cjs/global_styling/variables/levels.js.map +1 -0
- package/lib/cjs/global_styling/variables/shadow.d.ts +11 -0
- package/lib/cjs/global_styling/variables/shadow.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/shadow.js +27 -0
- package/lib/cjs/global_styling/variables/shadow.js.map +1 -0
- package/lib/cjs/global_styling/variables/size.d.ts +26 -0
- package/lib/cjs/global_styling/variables/size.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/size.js +17 -0
- package/lib/cjs/global_styling/variables/size.js.map +1 -0
- package/lib/cjs/global_styling/variables/states.d.ts +25 -0
- package/lib/cjs/global_styling/variables/states.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/states.js +7 -0
- package/lib/cjs/global_styling/variables/states.js.map +1 -0
- package/lib/cjs/global_styling/variables/typography.d.ts +93 -0
- package/lib/cjs/global_styling/variables/typography.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/typography.js +48 -0
- package/lib/cjs/global_styling/variables/typography.js.map +1 -0
- package/lib/cjs/index.d.ts +4 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/lib/cjs/index.js +44 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/types.d.ts +33 -0
- package/lib/cjs/types.d.ts.map +1 -0
- package/lib/cjs/types.js +7 -0
- package/lib/cjs/types.js.map +1 -0
- package/lib/cjs/utils.d.ts +104 -0
- package/lib/cjs/utils.d.ts.map +1 -0
- package/lib/cjs/utils.js +382 -0
- package/lib/cjs/utils.js.map +1 -0
- package/lib/cjs/utils.test.js +411 -0
- package/lib/cjs/utils.test.js.map +1 -0
- package/lib/esm/.tsbuildinfo +1 -0
- package/lib/esm/global_styling/functions/index.d.ts +1 -0
- package/lib/esm/global_styling/functions/index.js +9 -0
- package/lib/esm/global_styling/functions/index.js.map +1 -0
- package/lib/esm/global_styling/functions/size.d.ts +12 -0
- package/lib/esm/global_styling/functions/size.js +21 -0
- package/lib/esm/global_styling/functions/size.js.map +1 -0
- package/lib/esm/global_styling/index.d.ts +3 -0
- package/lib/esm/global_styling/index.js +11 -0
- package/lib/esm/global_styling/index.js.map +1 -0
- package/lib/esm/global_styling/types.d.ts +65 -0
- package/lib/esm/global_styling/types.js +13 -0
- package/lib/esm/global_styling/types.js.map +1 -0
- package/lib/esm/global_styling/variables/_colors_vis.d.ts +12 -0
- package/lib/esm/global_styling/variables/_colors_vis.js +60 -0
- package/lib/esm/global_styling/variables/_colors_vis.js.map +1 -0
- package/lib/esm/global_styling/variables/animations.d.ts +35 -0
- package/lib/esm/global_styling/variables/animations.js +25 -0
- package/lib/esm/global_styling/variables/animations.js.map +1 -0
- package/lib/esm/global_styling/variables/borders.d.ts +60 -0
- package/lib/esm/global_styling/variables/borders.js +9 -0
- package/lib/esm/global_styling/variables/borders.js.map +1 -0
- package/lib/esm/global_styling/variables/breakpoint.d.ts +14 -0
- package/lib/esm/global_styling/variables/breakpoint.js +9 -0
- package/lib/esm/global_styling/variables/breakpoint.js.map +1 -0
- package/lib/esm/global_styling/variables/buttons.d.ts +43 -0
- package/lib/esm/global_styling/variables/buttons.js +9 -0
- package/lib/esm/global_styling/variables/buttons.js.map +1 -0
- package/lib/esm/global_styling/variables/colors.d.ts +244 -0
- package/lib/esm/global_styling/variables/colors.js +9 -0
- package/lib/esm/global_styling/variables/colors.js.map +1 -0
- package/lib/esm/global_styling/variables/components.d.ts +68 -0
- package/lib/esm/global_styling/variables/components.js +9 -0
- package/lib/esm/global_styling/variables/components.js.map +1 -0
- package/lib/esm/global_styling/variables/forms.d.ts +19 -0
- package/lib/esm/global_styling/variables/forms.js +9 -0
- package/lib/esm/global_styling/variables/forms.js.map +1 -0
- package/lib/esm/global_styling/variables/index.d.ts +13 -0
- package/lib/esm/global_styling/variables/index.js +21 -0
- package/lib/esm/global_styling/variables/index.js.map +1 -0
- package/lib/esm/global_styling/variables/levels.d.ts +38 -0
- package/lib/esm/global_styling/variables/levels.js +34 -0
- package/lib/esm/global_styling/variables/levels.js.map +1 -0
- package/lib/esm/global_styling/variables/shadow.d.ts +10 -0
- package/lib/esm/global_styling/variables/shadow.js +19 -0
- package/lib/esm/global_styling/variables/shadow.js.map +1 -0
- package/lib/esm/global_styling/variables/size.d.ts +25 -0
- package/lib/esm/global_styling/variables/size.js +20 -0
- package/lib/esm/global_styling/variables/size.js.map +1 -0
- package/lib/esm/global_styling/variables/states.d.ts +24 -0
- package/lib/esm/global_styling/variables/states.js +9 -0
- package/lib/esm/global_styling/variables/states.js.map +1 -0
- package/lib/esm/global_styling/variables/typography.d.ts +92 -0
- package/lib/esm/global_styling/variables/typography.js +35 -0
- package/lib/esm/global_styling/variables/typography.js.map +1 -0
- package/lib/esm/index.d.ts +3 -0
- package/lib/esm/index.js +11 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/types.d.ts +32 -0
- package/lib/esm/types.js +9 -0
- package/lib/esm/types.js.map +1 -0
- package/lib/esm/utils.d.ts +103 -0
- package/lib/esm/utils.js +300 -0
- package/lib/esm/utils.js.map +1 -0
- package/lib/esm/utils.test.d.ts +1 -0
- package/lib/esm/utils.test.js +233 -0
- package/lib/esm/utils.test.js.map +1 -0
- package/licenses/ELASTIC-LICENSE-2.0.md +93 -0
- package/licenses/SSPL-LICENSE.md +557 -0
- package/package.json +78 -0
- package/src/global_styling/functions/_colors.scss +138 -0
- package/src/global_styling/functions/_index.scss +5 -0
- package/src/global_styling/functions/_math.scss +1 -0
- package/src/global_styling/functions/_math_pow.scss +82 -0
- package/src/global_styling/index.scss +18 -0
- package/src/global_styling/mixins/_button.scss +149 -0
- package/src/global_styling/mixins/_form.scss +273 -0
- package/src/global_styling/mixins/_helpers.scss +126 -0
- package/src/global_styling/mixins/_index.scss +14 -0
- package/src/global_styling/mixins/_link.scss +11 -0
- package/src/global_styling/mixins/_loading.scss +6 -0
- package/src/global_styling/mixins/_panel.scss +55 -0
- package/src/global_styling/mixins/_range.scss +62 -0
- package/src/global_styling/mixins/_responsive.scss +44 -0
- package/src/global_styling/mixins/_shadow.scss +108 -0
- package/src/global_styling/mixins/_size.scss +4 -0
- package/src/global_styling/mixins/_states.scss +50 -0
- package/src/global_styling/mixins/_tool_tip.scss +25 -0
- package/src/global_styling/mixins/_typography.scss +167 -0
- package/src/global_styling/react_date_picker/_date_picker.scss +772 -0
- package/src/global_styling/react_date_picker/_index.scss +2 -0
- package/src/global_styling/react_date_picker/_variables.scss +1 -0
- package/src/global_styling/utility/_animations.scss +55 -0
- package/src/global_styling/utility/_index.scss +1 -0
- package/src/global_styling/variables/_animations.scss +13 -0
- package/src/global_styling/variables/_borders.scss +11 -0
- package/src/global_styling/variables/_buttons.scss +18 -0
- package/src/global_styling/variables/_colors_vis.scss +72 -0
- package/src/global_styling/variables/_font_weight.scss +10 -0
- package/src/global_styling/variables/_form.scss +8 -0
- package/src/global_styling/variables/_index.scss +23 -0
- package/src/global_styling/variables/_responsive.scss +9 -0
- package/src/global_styling/variables/_shadows.scss +2 -0
- package/src/global_styling/variables/_size.scss +15 -0
- package/src/global_styling/variables/_states.scss +14 -0
- package/src/global_styling/variables/_typography.scss +75 -0
- package/src/global_styling/variables/_z_index.scss +34 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$euiDatePickerCalendarWidth: 284px;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Animations as utility so they don't get duplicated in compiled CSS
|
|
2
|
+
|
|
3
|
+
@keyframes euiAnimFadeIn {
|
|
4
|
+
0% {
|
|
5
|
+
opacity: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
100% {
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes euiGrow {
|
|
14
|
+
0% {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
1% {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
transform: scale(0);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
100% {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
transform: scale(1);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes focusRingAnimate {
|
|
30
|
+
0% {
|
|
31
|
+
box-shadow: 0 0 0 $euiFocusRingAnimStartSize $euiFocusRingAnimStartColor;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
100% {
|
|
35
|
+
box-shadow: 0 0 0 $euiFocusRingSize $euiFocusRingColor;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes focusRingAnimateLarge {
|
|
40
|
+
0% {
|
|
41
|
+
box-shadow: 0 0 0 $euiFocusRingAnimStartSizeLarge $euiFocusRingAnimStartColor;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
100% {
|
|
45
|
+
box-shadow: 0 0 0 $euiFocusRingSizeLarge $euiFocusRingColor;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Component specific
|
|
50
|
+
|
|
51
|
+
@keyframes euiButtonActive {
|
|
52
|
+
50% {
|
|
53
|
+
transform: translateY(1px);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'animations';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Animations
|
|
2
|
+
|
|
3
|
+
$euiAnimSlightBounce: cubic-bezier(.34, 1.61, .7, 1) !default;
|
|
4
|
+
$euiAnimSlightResistance: cubic-bezier(.694, .0482, .335, 1) !default;
|
|
5
|
+
|
|
6
|
+
$euiAnimSpeedExtraFast: 90ms !default;
|
|
7
|
+
$euiAnimSpeedFast: 150ms !default;
|
|
8
|
+
$euiAnimSpeedNormal: 250ms !default;
|
|
9
|
+
$euiAnimSpeedSlow: 350ms !default;
|
|
10
|
+
$euiAnimSpeedExtraSlow: 500ms !default;
|
|
11
|
+
|
|
12
|
+
// Keyframe animation declarations can be found in
|
|
13
|
+
// eui/utility/animations.scss
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Borders
|
|
2
|
+
|
|
3
|
+
$euiBorderWidthThin: 1px !default;
|
|
4
|
+
$euiBorderWidthThick: 2px !default;
|
|
5
|
+
|
|
6
|
+
$euiBorderColor: $euiColorLightShade !default;
|
|
7
|
+
$euiBorderRadius: $euiSizeS * .75 !default;
|
|
8
|
+
$euiBorderRadiusSmall: $euiSizeS * .5 !default;
|
|
9
|
+
$euiBorderThick: $euiBorderWidthThick solid $euiBorderColor !default;
|
|
10
|
+
$euiBorderThin: $euiBorderWidthThin solid $euiBorderColor !default;
|
|
11
|
+
$euiBorderEditable: $euiBorderWidthThick dotted $euiBorderColor !default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$euiButtonHeight: $euiSizeXXL !default;
|
|
2
|
+
$euiButtonHeightSmall: $euiSizeXL !default;
|
|
3
|
+
$euiButtonHeightXSmall: $euiSizeL !default;
|
|
4
|
+
|
|
5
|
+
// Modifier naming and colors.
|
|
6
|
+
$euiButtonTypes: (
|
|
7
|
+
primary: $euiColorPrimary,
|
|
8
|
+
accent: $euiColorAccent,
|
|
9
|
+
success: $euiColorSuccess,
|
|
10
|
+
warning: $euiColorWarning,
|
|
11
|
+
danger: $euiColorDanger,
|
|
12
|
+
ghost: $euiColorGhost, // Ghost is special, and does not care about theming.
|
|
13
|
+
text: $euiColorDarkShade, // Reserved for special use cases
|
|
14
|
+
) !default;
|
|
15
|
+
|
|
16
|
+
// TODO: Remove this once elastic-charts no longer uses this variable
|
|
17
|
+
// @see https://github.com/elastic/elastic-charts/pull/2528
|
|
18
|
+
$euiButtonColorDisabledText: $euiColorTextDisabled !default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Visualization colors
|
|
2
|
+
// stylelint-disable color-no-hex
|
|
3
|
+
|
|
4
|
+
// Maps allow for easier JSON usage
|
|
5
|
+
// Use map_merge($euiColorVisColors, $yourMap) to change individual colors after importing ths file
|
|
6
|
+
// The `behindText` variant is a direct copy of the hex output by the JS euiPaletteColorBlindBehindText() function
|
|
7
|
+
$euiPaletteColorBlind: (
|
|
8
|
+
euiColorVis0: (
|
|
9
|
+
graphic: #54B399,
|
|
10
|
+
behindText: #6DCCB1,
|
|
11
|
+
),
|
|
12
|
+
euiColorVis1: (
|
|
13
|
+
graphic: #6092C0,
|
|
14
|
+
behindText: #79AAD9,
|
|
15
|
+
),
|
|
16
|
+
euiColorVis2: (
|
|
17
|
+
graphic: #D36086,
|
|
18
|
+
behindText: #EE789D,
|
|
19
|
+
),
|
|
20
|
+
euiColorVis3: (
|
|
21
|
+
graphic: #9170B8,
|
|
22
|
+
behindText: #A987D1,
|
|
23
|
+
),
|
|
24
|
+
euiColorVis4: (
|
|
25
|
+
graphic: #CA8EAE,
|
|
26
|
+
behindText: #E4A6C7,
|
|
27
|
+
),
|
|
28
|
+
euiColorVis5: (
|
|
29
|
+
graphic: #D6BF57,
|
|
30
|
+
behindText: #F1D86F,
|
|
31
|
+
),
|
|
32
|
+
euiColorVis6: (
|
|
33
|
+
graphic: #B9A888,
|
|
34
|
+
behindText: #D2C0A0,
|
|
35
|
+
),
|
|
36
|
+
euiColorVis7: (
|
|
37
|
+
graphic: #DA8B45,
|
|
38
|
+
behindText: #F5A35C,
|
|
39
|
+
),
|
|
40
|
+
euiColorVis8: (
|
|
41
|
+
graphic: #AA6556,
|
|
42
|
+
behindText: #C47C6C,
|
|
43
|
+
),
|
|
44
|
+
euiColorVis9: (
|
|
45
|
+
graphic: #E7664C,
|
|
46
|
+
behindText: #FF7E62,
|
|
47
|
+
)
|
|
48
|
+
) !default;
|
|
49
|
+
|
|
50
|
+
$euiPaletteColorBlindKeys: map-keys($euiPaletteColorBlind);
|
|
51
|
+
|
|
52
|
+
$euiColorVis0: map-get(map-get($euiPaletteColorBlind, 'euiColorVis0'), 'graphic') !default;
|
|
53
|
+
$euiColorVis1: map-get(map-get($euiPaletteColorBlind, 'euiColorVis1'), 'graphic') !default;
|
|
54
|
+
$euiColorVis2: map-get(map-get($euiPaletteColorBlind, 'euiColorVis2'), 'graphic') !default;
|
|
55
|
+
$euiColorVis3: map-get(map-get($euiPaletteColorBlind, 'euiColorVis3'), 'graphic') !default;
|
|
56
|
+
$euiColorVis4: map-get(map-get($euiPaletteColorBlind, 'euiColorVis4'), 'graphic') !default;
|
|
57
|
+
$euiColorVis5: map-get(map-get($euiPaletteColorBlind, 'euiColorVis5'), 'graphic') !default;
|
|
58
|
+
$euiColorVis6: map-get(map-get($euiPaletteColorBlind, 'euiColorVis6'), 'graphic') !default;
|
|
59
|
+
$euiColorVis7: map-get(map-get($euiPaletteColorBlind, 'euiColorVis7'), 'graphic') !default;
|
|
60
|
+
$euiColorVis8: map-get(map-get($euiPaletteColorBlind, 'euiColorVis8'), 'graphic') !default;
|
|
61
|
+
$euiColorVis9: map-get(map-get($euiPaletteColorBlind, 'euiColorVis9'), 'graphic') !default;
|
|
62
|
+
|
|
63
|
+
$euiColorVis0_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis0'), 'behindText') !default;
|
|
64
|
+
$euiColorVis1_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis1'), 'behindText') !default;
|
|
65
|
+
$euiColorVis2_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis2'), 'behindText') !default;
|
|
66
|
+
$euiColorVis3_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis3'), 'behindText') !default;
|
|
67
|
+
$euiColorVis4_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis4'), 'behindText') !default;
|
|
68
|
+
$euiColorVis5_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis5'), 'behindText') !default;
|
|
69
|
+
$euiColorVis6_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis6'), 'behindText') !default;
|
|
70
|
+
$euiColorVis7_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis7'), 'behindText') !default;
|
|
71
|
+
$euiColorVis8_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis8'), 'behindText') !default;
|
|
72
|
+
$euiColorVis9_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis9'), 'behindText') !default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Separated out to its own file for easy import into docs
|
|
2
|
+
|
|
3
|
+
// Font weights
|
|
4
|
+
$euiFontWeightLight: 300 !default;
|
|
5
|
+
$euiFontWeightRegular: 400 !default;
|
|
6
|
+
$euiFontWeightMedium: 500 !default;
|
|
7
|
+
$euiFontWeightSemiBold: 600 !default;
|
|
8
|
+
$euiFontWeightBold: 700 !default;
|
|
9
|
+
$euiCodeFontWeightRegular: 400 !default;
|
|
10
|
+
$euiCodeFontWeightBold: 700 !default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Sizing
|
|
2
|
+
$euiFormMaxWidth: $euiSizeXXL * 10 !default;
|
|
3
|
+
$euiFormControlHeight: $euiSizeXXL !default;
|
|
4
|
+
$euiFormControlCompressedHeight: $euiSizeXL !default;
|
|
5
|
+
$euiFormControlPadding: $euiSizeM !default;
|
|
6
|
+
$euiFormControlCompressedPadding: $euiSizeS !default;
|
|
7
|
+
$euiFormControlBorderRadius: $euiBorderRadius !default;
|
|
8
|
+
$euiFormControlCompressedBorderRadius: $euiBorderRadiusSmall !default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// --------------------------------------------------------------------------------------
|
|
2
|
+
// EUI global variables
|
|
3
|
+
// --------------------------------------------------------------------------------------
|
|
4
|
+
// This module contains all global variables available within EUI. Every variable in this
|
|
5
|
+
// document should be prefixed with $eui. This lets us know where the variable is
|
|
6
|
+
// coming from when looking inside the individual component files. Any component local
|
|
7
|
+
// variables should be declared at the top of those documents prefixed with $componentName.
|
|
8
|
+
|
|
9
|
+
// Global colors are established and importer per theme, before this manifest
|
|
10
|
+
// Import order is important. Size, vis colors, ...etc are used in other variables.
|
|
11
|
+
@import 'size';
|
|
12
|
+
@import 'colors_vis';
|
|
13
|
+
@import 'animations';
|
|
14
|
+
@import 'font_weight';
|
|
15
|
+
@import 'typography';
|
|
16
|
+
@import 'borders';
|
|
17
|
+
@import 'responsive';
|
|
18
|
+
@import 'shadows';
|
|
19
|
+
@import 'states';
|
|
20
|
+
@import 'z_index';
|
|
21
|
+
|
|
22
|
+
@import 'buttons';
|
|
23
|
+
@import 'form';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$euiSize: 16px !default;
|
|
2
|
+
|
|
3
|
+
$euiSizeXS: $euiSize * .25 !default;
|
|
4
|
+
$euiSizeS: $euiSize * .5 !default;
|
|
5
|
+
$euiSizeM: $euiSize * .75 !default;
|
|
6
|
+
$euiSizeL: $euiSize * 1.5 !default;
|
|
7
|
+
$euiSizeXL: $euiSize * 2 !default;
|
|
8
|
+
$euiSizeXXL: $euiSize * 2.5 !default;
|
|
9
|
+
|
|
10
|
+
$euiButtonMinWidth: $euiSize * 7 !default;
|
|
11
|
+
|
|
12
|
+
$euiScrollBar: $euiSize !default;
|
|
13
|
+
// Corner sizes are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
14
|
+
$euiScrollBarCorner: $euiSizeXS !default;
|
|
15
|
+
$euiScrollBarCornerThin: $euiSizeS * .75 !default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Colors
|
|
2
|
+
$euiFocusRingColor: rgba($euiColorPrimary, .3) !default;
|
|
3
|
+
$euiFocusRingAnimStartColor: rgba($euiColorPrimary, 0) !default;
|
|
4
|
+
$euiFocusRingAnimStartSize: 6px !default;
|
|
5
|
+
$euiFocusRingAnimStartSizeLarge: 10px !default;
|
|
6
|
+
|
|
7
|
+
// Sizing
|
|
8
|
+
$euiFocusRingSizeLarge: $euiSizeXS !default;
|
|
9
|
+
$euiFocusRingSize: $euiFocusRingSizeLarge * .75 !default;
|
|
10
|
+
|
|
11
|
+
// Transparency
|
|
12
|
+
$euiFocusTransparency: lightOrDarkTheme(.1, .2) !default;
|
|
13
|
+
$euiFocusTransparencyPercent: lightOrDarkTheme(90%, 80%) !default;
|
|
14
|
+
$euiFocusBackgroundColor: tintOrShade($euiColorPrimary, $euiFocusTransparencyPercent, $euiFocusTransparencyPercent) !default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// Families
|
|
2
|
+
$euiFontFamily: 'Inter', BlinkMacSystemFont, Helvetica, Arial, sans-serif !default;
|
|
3
|
+
$euiCodeFontFamily: 'Roboto Mono', Menlo, Courier, monospace !default;
|
|
4
|
+
|
|
5
|
+
// Careful using ligatures. Code editors like ACE will often error because of width calculations
|
|
6
|
+
$euiFontFeatureSettings: 'calt' 1, 'kern' 1, 'liga' 1 !default;
|
|
7
|
+
|
|
8
|
+
// Font sizes -- scale is loosely based on Major Third (1.250)
|
|
9
|
+
$euiTextScale: 2.25, 1.75, 1.25, 1.125, 1, .875, .75 !default;
|
|
10
|
+
|
|
11
|
+
$euiFontSize: $euiSize !default; // 5th position in scale
|
|
12
|
+
$euiFontSizeXS: $euiFontSize * nth($euiTextScale, 7) !default; // 12px
|
|
13
|
+
$euiFontSizeS: $euiFontSize * nth($euiTextScale, 6) !default; // 14px
|
|
14
|
+
$euiFontSizeM: $euiFontSize * nth($euiTextScale, 4) !default; // 18px
|
|
15
|
+
$euiFontSizeL: $euiFontSize * nth($euiTextScale, 3) !default; // 20px
|
|
16
|
+
$euiFontSizeXL: $euiFontSize * nth($euiTextScale, 2) !default; // 28px
|
|
17
|
+
$euiFontSizeXXL: $euiFontSize * nth($euiTextScale, 1) !default; // 36px
|
|
18
|
+
|
|
19
|
+
// Line height
|
|
20
|
+
$euiLineHeight: 1.5 !default;
|
|
21
|
+
$euiBodyLineHeight: 1 !default;
|
|
22
|
+
|
|
23
|
+
// Normally functions are imported before variables in `_index.scss` files
|
|
24
|
+
// But because they need to consume some typography variables they need to live here
|
|
25
|
+
@function convertToRem($size) {
|
|
26
|
+
@return #{$size / $euiFontSize}rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Our base gridline is at 1/2 the font-size, ensure line-heights stay on that gridline.
|
|
30
|
+
// EX: A proper line-height for text is 1.5 times the font-size.
|
|
31
|
+
// If our base font size (euiFontSize) is 16, our baseline is 8 (16*1.5 / 3). To ensure the
|
|
32
|
+
// text stays on the baseline, we pass a multiplier to calculate a line-height in rems.
|
|
33
|
+
@function lineHeightFromBaseline($multiplier: 3) {
|
|
34
|
+
@return convertToRem(($euiFontSize / 2) * $multiplier);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Titles map
|
|
38
|
+
// Lists all the properties per EuiTitle size that then gets looped through to create the selectors.
|
|
39
|
+
// The map allows for tokenization and easier customization per theme, otherwise you'd have to override the selectors themselves
|
|
40
|
+
$euiTitles: (
|
|
41
|
+
'xxxs': (
|
|
42
|
+
'font-size': $euiFontSizeXS,
|
|
43
|
+
'line-height': lineHeightFromBaseline(3),
|
|
44
|
+
'font-weight': $euiFontWeightBold,
|
|
45
|
+
),
|
|
46
|
+
'xxs': (
|
|
47
|
+
'font-size': $euiFontSizeS,
|
|
48
|
+
'line-height': lineHeightFromBaseline(3),
|
|
49
|
+
'font-weight': $euiFontWeightBold,
|
|
50
|
+
),
|
|
51
|
+
'xs': (
|
|
52
|
+
'font-size': $euiFontSize,
|
|
53
|
+
'line-height': lineHeightFromBaseline(3),
|
|
54
|
+
'font-weight': $euiFontWeightSemiBold,
|
|
55
|
+
'letter-spacing': -.02em,
|
|
56
|
+
),
|
|
57
|
+
's': (
|
|
58
|
+
'font-size': $euiFontSizeL,
|
|
59
|
+
'line-height': lineHeightFromBaseline(4),
|
|
60
|
+
'font-weight': $euiFontWeightMedium,
|
|
61
|
+
'letter-spacing': -.025em,
|
|
62
|
+
),
|
|
63
|
+
'm': (
|
|
64
|
+
'font-size': $euiFontSizeXL,
|
|
65
|
+
'line-height': lineHeightFromBaseline(5),
|
|
66
|
+
'font-weight': $euiFontWeightLight,
|
|
67
|
+
'letter-spacing': -.04em,
|
|
68
|
+
),
|
|
69
|
+
'l': (
|
|
70
|
+
'font-size': $euiFontSizeXXL,
|
|
71
|
+
'line-height': lineHeightFromBaseline(6),
|
|
72
|
+
'font-weight': $euiFontWeightLight,
|
|
73
|
+
'letter-spacing': -.03em,
|
|
74
|
+
),
|
|
75
|
+
) !default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Z-Index
|
|
2
|
+
|
|
3
|
+
// Remember that z-index is relative to parent and based on the stacking context.
|
|
4
|
+
// z-indexes only compete against other z-indexes when they exist as children of
|
|
5
|
+
// that shared parent.
|
|
6
|
+
|
|
7
|
+
// That means a popover with a settings of 2, will still show above a modal
|
|
8
|
+
// with a setting of 100, if it is within that modal and not besides it.
|
|
9
|
+
|
|
10
|
+
// Generally that means it's a good idea to consider things added to this file
|
|
11
|
+
// as competitive only as siblings.
|
|
12
|
+
|
|
13
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
14
|
+
|
|
15
|
+
$euiZLevel0: 0;
|
|
16
|
+
$euiZLevel1: 1000;
|
|
17
|
+
$euiZLevel2: 2000;
|
|
18
|
+
$euiZLevel3: 3000;
|
|
19
|
+
$euiZLevel4: 4000;
|
|
20
|
+
$euiZLevel5: 5000;
|
|
21
|
+
$euiZLevel6: 6000;
|
|
22
|
+
$euiZLevel7: 7000;
|
|
23
|
+
$euiZLevel8: 8000;
|
|
24
|
+
$euiZLevel9: 9000;
|
|
25
|
+
|
|
26
|
+
$euiZToastList: $euiZLevel9;
|
|
27
|
+
$euiZModal: $euiZLevel8;
|
|
28
|
+
$euiZMask: $euiZLevel6;
|
|
29
|
+
$euiZNavigation: $euiZLevel6;
|
|
30
|
+
$euiZContentMenu: $euiZLevel2;
|
|
31
|
+
$euiZHeader: $euiZLevel1;
|
|
32
|
+
$euiZFlyout: $euiZHeader;
|
|
33
|
+
$euiZMaskBelowHeader: $euiZHeader;
|
|
34
|
+
$euiZContent: $euiZLevel0;
|