@filip.mazev/blocks-core 0.0.25 → 0.0.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filip.mazev/blocks-core",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  "./mixins": "./lib/styles/_mixins.scss",
@@ -8,6 +8,7 @@
8
8
  "./theme-provider": "./lib/styles/_theme-provider.scss",
9
9
  "./default-theme": "./lib/styles/themes/_default-theme.scss",
10
10
  "./orange-company-theme": "./lib/styles/themes/_orange-company-theme.scss",
11
+ "./high-contrast-theme": "./lib/styles/themes/_high-contrast-theme.scss",
11
12
  "./index": "./lib/styles/_index.scss",
12
13
  "./package.json": {
13
14
  "default": "./package.json"
@@ -2,4 +2,5 @@
2
2
  @forward 'variables';
3
3
  @forward 'theme-provider';
4
4
  @forward 'themes/default-theme';
5
- @forward 'themes/orange-company-theme';
5
+ @forward 'themes/orange-company-theme';
6
+ @forward 'themes/high-contrast-theme';
@@ -1,29 +1,33 @@
1
1
  $gray-palette: (
2
- 50: #fafafa,
3
- 100: #f5f5f5,
4
- 200: #e5e5e5,
5
- 300: #d4d4d4,
6
- 400: #a3a3a3,
7
- 500: #737373,
8
- 600: #525252,
9
- 700: #404040,
10
- 800: #262626,
11
- 900: #171717
12
- ) !default;
2
+ 50: #fafafa,
3
+ 100: #f5f5f5,
4
+ 200: #e5e5e5,
5
+ 300: #d4d4d4,
6
+ 400: #a3a3a3,
7
+ 500: #737373,
8
+ 600: #525252,
9
+ 700: #404040,
10
+ 800: #262626,
11
+ 900: #171717) !default;
13
12
 
14
13
  $warning-palette: (
15
- 50: #fffbeb,
16
- 500: #f59e0b,
17
- 900: #78350f,
18
- A400: #ffc400
19
- ) !default;
14
+ 50: #fffbeb,
15
+ 500: #f59e0b,
16
+ 900: #78350f,
17
+ A400: #ffc400) !default;
20
18
 
21
19
  $error-palette: (
22
- 50: #fef2f2,
23
- 400: #f87171,
24
- 500: #ef4444,
25
- 900: #7f1d1d
26
- ) !default;
20
+ 50: #fef2f2,
21
+ 400: #f87171,
22
+ 500: #ef4444,
23
+ 900: #7f1d1d) !default;
24
+
25
+ $hc-black: #000000;
26
+ $hc-white: #ffffff;
27
+ $hc-yellow: #ffff00;
28
+ $hc-cyan: #00ffff;
29
+ $hc-red: #ff0000;
30
+ $hc-green: #00ff00;
27
31
 
28
32
  $breakpoints: (
29
33
  xs: 360px,
@@ -36,5 +40,4 @@ $breakpoints: (
36
40
 
37
41
  2xl: 1536px,
38
42
  3xl: 1920px,
39
- 4xl: 2560px
40
- ) !default;
43
+ 4xl: 2560px) !default;
@@ -0,0 +1,97 @@
1
+ @use '../variables' as *;
2
+
3
+ $high-contrast-light-config: (
4
+ 'primary': $hc-black,
5
+ 'secondary': $hc-white,
6
+ 'alt': $hc-black,
7
+ 'accent': $hc-yellow,
8
+ 'accent-alt': $hc-yellow,
9
+ 'accent-tertiary': $hc-yellow,
10
+
11
+ 'text-primary': $hc-black,
12
+ 'text-secondary': $hc-black,
13
+ 'text-tertiary': $hc-black,
14
+ 'text-accent': $hc-black,
15
+ 'text-accent-alt': $hc-black,
16
+ 'text-grayscale': $hc-black,
17
+ 'menu-item-text': $hc-black,
18
+ 'text-warn': $hc-white,
19
+ 'text-confirm': $hc-black,
20
+
21
+ 'bg-menu-item-hover': $hc-yellow,
22
+ 'border': $hc-black,
23
+ 'border-grayscale-light': $hc-black,
24
+ 'warn': $hc-red,
25
+ 'error': $hc-red,
26
+ 'info': $hc-cyan,
27
+
28
+ 'button-primary': $hc-white,
29
+ 'button-confirm': $hc-green,
30
+ 'button-warn': $hc-red,
31
+ 'button-grayscale': $hc-white,
32
+
33
+ 'snackbar-error': $hc-white,
34
+ 'snackbar-success': $hc-white,
35
+ 'snackbar-warn': $hc-white,
36
+
37
+ 'scroll-bg': $hc-white,
38
+ 'scroll-thumb': $hc-black,
39
+ 'scroll-thumb-highlighted': $hc-yellow,
40
+
41
+ 'canvas': $hc-white,
42
+ 'surface': $hc-white,
43
+ 'element': $hc-white,
44
+ 'text': $hc-black,
45
+
46
+ 'status-warn': $hc-red,
47
+ 'status-error': $hc-red,
48
+ 'error-subtle': rgba(0, 0, 0, 0.15)
49
+ );
50
+
51
+ $high-contrast-dark-config: (
52
+ 'primary': $hc-white,
53
+ 'secondary': $hc-black,
54
+ 'alt': $hc-white,
55
+ 'accent': $hc-yellow,
56
+ 'accent-alt': $hc-yellow,
57
+ 'accent-tertiary': $hc-yellow,
58
+
59
+ 'text-primary': $hc-white,
60
+ 'text-secondary': $hc-white,
61
+ 'text-tertiary': $hc-white,
62
+ 'text-accent': $hc-black,
63
+ 'text-accent-alt': $hc-black,
64
+ 'text-grayscale': $hc-white,
65
+ 'menu-item-text': $hc-white,
66
+ 'text-warn': $hc-white,
67
+ 'text-confirm': $hc-black,
68
+
69
+ 'bg-menu-item-hover': $hc-yellow,
70
+ 'border': $hc-white,
71
+ 'border-grayscale-light': $hc-white,
72
+ 'warn': $hc-red,
73
+ 'error': $hc-red,
74
+ 'info': $hc-cyan,
75
+
76
+ 'button-primary': $hc-black,
77
+ 'button-confirm': $hc-green,
78
+ 'button-warn': $hc-red,
79
+ 'button-grayscale': $hc-black,
80
+
81
+ 'snackbar-error': $hc-black,
82
+ 'snackbar-success': $hc-black,
83
+ 'snackbar-warn': $hc-black,
84
+
85
+ 'scroll-bg': $hc-black,
86
+ 'scroll-thumb': $hc-white,
87
+ 'scroll-thumb-highlighted': $hc-yellow,
88
+
89
+ 'canvas': $hc-black,
90
+ 'surface': $hc-black,
91
+ 'element': $hc-black,
92
+ 'text': $hc-white,
93
+
94
+ 'status-warn': $hc-red,
95
+ 'status-error': $hc-red,
96
+ 'error-subtle': rgba(255, 255, 255, 0.2)
97
+ );