@filip.mazev/blocks-core 1.0.25 → 1.0.26
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 +9 -9
- package/fesm2022/filip.mazev-blocks-core.mjs +37 -69
- package/fesm2022/filip.mazev-blocks-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/styles/_palettes.scss +46 -46
- package/src/lib/styles/_theme-provider.scss +8 -8
- package/src/lib/styles/_utilities.scss +32 -32
- package/src/lib/styles/themes/_high-contrast-theme.scss +76 -114
- package/src/lib/styles/themes/_orange-theme.scss +85 -119
- package/src/lib/styles/themes/_purple-theme.scss +85 -119
- package/types/filip.mazev-blocks-core.d.ts +2 -2
|
@@ -1,129 +1,95 @@
|
|
|
1
1
|
@use '../palettes' as *;
|
|
2
2
|
|
|
3
3
|
$purple-light-theme: (
|
|
4
|
-
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
|
|
10
|
-
'
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
'bg-canvas': #ffffff,
|
|
5
|
+
'bg-surface': #ffffff,
|
|
6
|
+
'bg-surface-alt': get-color-from-palette('purple', 50),
|
|
7
|
+
'bg-element': get-color-from-palette('neutral', 100),
|
|
8
|
+
'bg-element-hover': get-color-from-palette('purple', 200),
|
|
9
|
+
|
|
10
|
+
'primary': get-color-from-palette('purple', 500),
|
|
11
|
+
'primary-hover': get-color-from-palette('purple', 600),
|
|
12
|
+
'primary-active': get-color-from-palette('purple', 700),
|
|
13
|
+
'primary-subtle': rgba(get-color-from-palette('purple', 400), 0.6),
|
|
14
|
+
'on-primary': get-color-from-palette('neutral', 100),
|
|
15
|
+
|
|
16
|
+
'text-heading': get-color-from-palette('neutral', 900),
|
|
13
17
|
'text-primary': get-color-from-palette('neutral', 700),
|
|
14
|
-
'text-secondary': get-color-from-palette('
|
|
15
|
-
'text-
|
|
16
|
-
'text-
|
|
17
|
-
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
|
|
41
|
-
'feedback-error-bg': get-color-from-palette('error', 50),
|
|
42
|
-
'feedback-error-border': get-color-from-palette('error', 200),
|
|
43
|
-
'feedback-error-accent': get-color-from-palette('error', 700),
|
|
44
|
-
'feedback-success-bg': get-color-from-palette('success', 50),
|
|
45
|
-
'feedback-success-border': get-color-from-palette('success', 200),
|
|
46
|
-
'feedback-success-accent': get-color-from-palette('success', 700),
|
|
47
|
-
'feedback-warn-bg': get-color-from-palette('warn', 50),
|
|
48
|
-
'feedback-warn-border': get-color-from-palette('warn', 200),
|
|
49
|
-
'feedback-warn-accent': get-color-from-palette('warn', 700),
|
|
50
|
-
|
|
51
|
-
// Scrollbar & Sliders
|
|
18
|
+
'text-secondary': get-color-from-palette('neutral', 500),
|
|
19
|
+
'text-brand': get-color-from-palette('purple', 700),
|
|
20
|
+
'text-inverse': get-color-from-palette('neutral', 100),
|
|
21
|
+
|
|
22
|
+
'border-subtle': get-color-from-palette('neutral', 200),
|
|
23
|
+
'border-default': get-color-from-palette('neutral', 300),
|
|
24
|
+
'border-strong': get-color-from-palette('neutral', 400),
|
|
25
|
+
'border-brand': get-color-from-palette('purple', 400),
|
|
26
|
+
|
|
27
|
+
'info-bg': get-color-from-palette('information', 50),
|
|
28
|
+
'info-border': get-color-from-palette('information', 200),
|
|
29
|
+
'info-text': get-color-from-palette('information', 700),
|
|
30
|
+
|
|
31
|
+
'success-bg': get-color-from-palette('success', 50),
|
|
32
|
+
'success-border': get-color-from-palette('success', 200),
|
|
33
|
+
'success-text': get-color-from-palette('success', 700),
|
|
34
|
+
'success-subtle': rgba(get-color-from-palette('success', 500), 0.44),
|
|
35
|
+
|
|
36
|
+
'warn-bg': get-color-from-palette('warn', 50),
|
|
37
|
+
'warn-border': get-color-from-palette('warn', 200),
|
|
38
|
+
'warn-text': get-color-from-palette('warn', 700),
|
|
39
|
+
|
|
40
|
+
'error-bg': get-color-from-palette('error', 50),
|
|
41
|
+
'error-border': get-color-from-palette('error', 200),
|
|
42
|
+
'error-text': get-color-from-palette('error', 700),
|
|
43
|
+
'error-subtle': rgba(get-color-from-palette('error', 500), 0.38),
|
|
44
|
+
|
|
52
45
|
'scroll-bg': get-color-from-palette('purple', 100),
|
|
53
46
|
'scroll-thumb': linear-gradient(278deg, get-color-from-palette('purple', 300) -10.44%, get-color-from-palette('purple', 400) 100%),
|
|
54
|
-
'scroll-thumb-
|
|
55
|
-
|
|
56
|
-
'slider-thumb': get-color-from-palette('purple', 500),
|
|
57
|
-
'slider-thumb-hover': get-color-from-palette('purple', 600),
|
|
58
|
-
|
|
59
|
-
'canvas': #ffffff,
|
|
60
|
-
'surface': #ffffff,
|
|
61
|
-
'element': get-color-from-palette('neutral', 100),
|
|
62
|
-
'text': get-color-from-palette('neutral', 700),
|
|
63
|
-
'status-warn': get-color-from-palette('purple', 500),
|
|
64
|
-
'status-error': get-color-from-palette('error', 500),
|
|
65
|
-
'error-subtle': get-color-from-palette('error', 50)) !default;
|
|
47
|
+
'scroll-thumb-hover': linear-gradient(278deg, get-color-from-palette('purple', 400) -10.44%, get-color-from-palette('purple', 700) 100%),
|
|
48
|
+
) !default;
|
|
66
49
|
|
|
67
50
|
$purple-dark-theme: (
|
|
68
|
-
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
|
|
74
|
-
'
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
|
|
80
|
-
'text-
|
|
81
|
-
'text-
|
|
82
|
-
'text-
|
|
83
|
-
'
|
|
84
|
-
'text-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
'
|
|
89
|
-
'border': get-color-from-palette('
|
|
90
|
-
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'info': get-color-from-palette('information', 400),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
'
|
|
103
|
-
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
|
|
109
|
-
'feedback-success-border': get-color-from-palette('success', 900),
|
|
110
|
-
'feedback-success-accent': get-color-from-palette('success', 400),
|
|
111
|
-
'feedback-warn-bg': get-color-from-palette('warn', 1000),
|
|
112
|
-
'feedback-warn-border': get-color-from-palette('warn', 900),
|
|
113
|
-
'feedback-warn-accent': get-color-from-palette('warn', 400),
|
|
114
|
-
|
|
115
|
-
// Scroll & Sliders
|
|
51
|
+
'bg-canvas': #000000,
|
|
52
|
+
'bg-surface': get-color-from-palette('neutral', 1000),
|
|
53
|
+
'bg-surface-alt': get-color-from-palette('neutral', 900),
|
|
54
|
+
'bg-element': get-color-from-palette('neutral', 800),
|
|
55
|
+
'bg-element-hover': get-color-from-palette('purple', 700),
|
|
56
|
+
|
|
57
|
+
'primary': get-color-from-palette('purple', 500),
|
|
58
|
+
'primary-hover': get-color-from-palette('purple', 400),
|
|
59
|
+
'primary-active': get-color-from-palette('purple', 300),
|
|
60
|
+
'primary-subtle': rgba(get-color-from-palette('purple', 500), 0.6),
|
|
61
|
+
'on-primary': #ffffff,
|
|
62
|
+
|
|
63
|
+
'text-heading': #ffffff,
|
|
64
|
+
'text-primary': get-color-from-palette('neutral', 200),
|
|
65
|
+
'text-secondary': get-color-from-palette('neutral', 400),
|
|
66
|
+
'text-brand': get-color-from-palette('purple', 300),
|
|
67
|
+
'text-inverse': get-color-from-palette('neutral', 900),
|
|
68
|
+
|
|
69
|
+
'border-subtle': get-color-from-palette('neutral', 900),
|
|
70
|
+
'border-default': get-color-from-palette('neutral', 800),
|
|
71
|
+
'border-strong': get-color-from-palette('neutral', 700),
|
|
72
|
+
'border-brand': get-color-from-palette('purple', 600),
|
|
73
|
+
|
|
74
|
+
'info-bg': get-color-from-palette('information', 1000),
|
|
75
|
+
'info-border': get-color-from-palette('information', 900),
|
|
76
|
+
'info-text': get-color-from-palette('information', 400),
|
|
77
|
+
|
|
78
|
+
'success-bg': get-color-from-palette('success', 1000),
|
|
79
|
+
'success-border': get-color-from-palette('success', 900),
|
|
80
|
+
'success-text': get-color-from-palette('success', 400),
|
|
81
|
+
'success-subtle': rgba(get-color-from-palette('success', 700), 0.44),
|
|
82
|
+
|
|
83
|
+
'warn-bg': get-color-from-palette('warn', 1000),
|
|
84
|
+
'warn-border': get-color-from-palette('warn', 900),
|
|
85
|
+
'warn-text': get-color-from-palette('warn', 400),
|
|
86
|
+
|
|
87
|
+
'error-bg': get-color-from-palette('error', 1000),
|
|
88
|
+
'error-border': get-color-from-palette('error', 900),
|
|
89
|
+
'error-text': get-color-from-palette('error', 400),
|
|
90
|
+
'error-subtle': rgba(get-color-from-palette('error', 800), 0.38),
|
|
91
|
+
|
|
116
92
|
'scroll-bg': get-color-from-palette('purple', 900),
|
|
117
93
|
'scroll-thumb': linear-gradient(278deg, get-color-from-palette('purple', 700) -10.44%, get-color-from-palette('purple', 500) 100%),
|
|
118
|
-
'scroll-thumb-
|
|
119
|
-
|
|
120
|
-
'slider-thumb': get-color-from-palette('purple', 400),
|
|
121
|
-
'slider-thumb-hover': get-color-from-palette('purple', 500),
|
|
122
|
-
|
|
123
|
-
'canvas': #000000,
|
|
124
|
-
'surface': get-color-from-palette('neutral', 1000),
|
|
125
|
-
'element': get-color-from-palette('neutral', 900),
|
|
126
|
-
'text': #ffffff,
|
|
127
|
-
'status-warn': get-color-from-palette('purple', 500),
|
|
128
|
-
'status-error': get-color-from-palette('error', 400),
|
|
129
|
-
'error-subtle': rgba(get-color-from-palette('error', 500), 0.15)) !default;
|
|
94
|
+
'scroll-thumb-hover': linear-gradient(278deg, get-color-from-palette('purple', 500) -10.44%, get-color-from-palette('purple', 400) 100%),
|
|
95
|
+
) !default;
|
|
@@ -143,7 +143,7 @@ declare class ThemingService implements OnDestroy {
|
|
|
143
143
|
|
|
144
144
|
declare const PALETTE_NAMES: readonly ["orange", "purple", "error", "success", "information", "neutral"];
|
|
145
145
|
declare const SHADE_NUMBERS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000];
|
|
146
|
-
declare const TOKEN_PREFIX = "
|
|
146
|
+
declare const TOKEN_PREFIX = "bx";
|
|
147
147
|
declare const TOKEN_COLOR_DELIMITER = "color";
|
|
148
148
|
declare const FALLBACK_COLOR = "#000000";
|
|
149
149
|
declare const SEMANTIC_PAIRS: Partial<Record<SemanticColorToken, SemanticColorToken>>;
|
|
@@ -177,7 +177,7 @@ type MSStreamWindow = Window & {
|
|
|
177
177
|
|
|
178
178
|
type ThemePalette = (typeof PALETTE_NAMES)[number];
|
|
179
179
|
type ThemeShade = (typeof SHADE_NUMBERS)[number];
|
|
180
|
-
type SemanticColorToken = '
|
|
180
|
+
type SemanticColorToken = 'bg-canvas' | 'bg-surface' | 'bg-surface-alt' | 'bg-element' | 'bg-element-hover' | 'primary' | 'primary-hover' | 'primary-active' | 'primary-subtle' | 'on-primary' | 'text-heading' | 'text-primary' | 'text-secondary' | 'text-brand' | 'text-inverse' | 'border-subtle' | 'border-default' | 'border-strong' | 'border-brand' | 'info-bg' | 'info-border' | 'info-text' | 'success-bg' | 'success-border' | 'success-text' | 'success-subtle' | 'warn-bg' | 'warn-border' | 'warn-text' | 'error-bg' | 'error-border' | 'error-text' | 'error-subtle' | 'scroll-bg' | 'scroll-thumb' | 'scroll-thumb-hover';
|
|
181
181
|
type ThemeColorToken = `${ThemePalette}-${ThemeShade}`;
|
|
182
182
|
type Color = ThemeColorToken | SemanticColorToken;
|
|
183
183
|
|