@skbkontur/colors 2.0.0-alpha.2 → 2.0.0-alpha.4

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 (174) hide show
  1. package/README.md +104 -171
  2. package/colors.less +319 -0
  3. package/colors.scss +319 -0
  4. package/lib/consts/default-swatch.d.ts +108 -0
  5. package/lib/consts/default-swatch.js +108 -0
  6. package/{dist/esm/constants/default-swatch.js → lib/consts/default-swatch.ts} +11 -7
  7. package/lib/consts/params/abney-correction.d.ts +2 -0
  8. package/lib/consts/params/abney-correction.js +1102 -0
  9. package/{dist/cjs/constants/abney-correction.js → lib/consts/params/abney-correction.ts} +3 -4
  10. package/lib/consts/params/chroma-params.d.ts +2 -0
  11. package/lib/consts/params/chroma-params.js +102 -0
  12. package/{dist/esm/constants/chroma-settings.js → lib/consts/params/chroma-params.ts} +3 -1
  13. package/lib/consts/params/interactions.ts +9 -0
  14. package/lib/consts/params/logo-lightness.d.ts +1 -0
  15. package/lib/consts/params/logo-lightness.js +1 -0
  16. package/lib/consts/params/logo-lightness.ts +1 -0
  17. package/{dist/cjs/constants → lib/consts/params}/promo-hue-shift.d.ts +1 -1
  18. package/lib/consts/params/promo-hue-shift.js +11 -0
  19. package/{dist/esm/constants/promo-hue-shift.js → lib/consts/params/promo-hue-shift.ts} +1 -1
  20. package/{dist/cjs/constants → lib/consts/params}/warning-hue-patch.d.ts +1 -1
  21. package/lib/consts/params/warning-hue-patch.js +22 -0
  22. package/{dist/esm/constants/warning-hue-patch.js → lib/consts/params/warning-hue-patch.ts} +1 -1
  23. package/lib/get-colors-base.d.ts +11 -0
  24. package/lib/get-colors-base.js +78 -0
  25. package/lib/get-colors-base.ts +99 -0
  26. package/lib/get-colors-default-tokens.d.ts +645 -0
  27. package/lib/get-colors-default-tokens.js +647 -0
  28. package/lib/get-colors-default-tokens.ts +646 -0
  29. package/lib/get-colors.d.ts +40 -0
  30. package/lib/get-colors.js +28 -0
  31. package/lib/get-colors.ts +65 -0
  32. package/{dist/cjs → lib}/helpers/get-interactions.d.ts +2 -2
  33. package/lib/helpers/get-interactions.js +35 -0
  34. package/lib/helpers/get-interactions.ts +64 -0
  35. package/{dist/cjs → lib}/helpers/get-logo.d.ts +2 -2
  36. package/lib/helpers/get-logo.js +25 -0
  37. package/lib/helpers/get-logo.ts +40 -0
  38. package/lib/helpers/get-palette.d.ts +51 -0
  39. package/lib/helpers/get-palette.js +204 -0
  40. package/lib/helpers/get-palette.ts +261 -0
  41. package/lib/helpers/get-promo.d.ts +6 -0
  42. package/lib/helpers/get-promo.js +47 -0
  43. package/lib/helpers/get-promo.ts +55 -0
  44. package/lib/types/tokens-base-generator.d.ts +43 -0
  45. package/{dist/cjs/types/generator-tokens.d.ts → lib/types/tokens-base-generator.ts} +12 -17
  46. package/lib/types/tokens-base.d.ts +55 -0
  47. package/{dist/esm/types/base-tokens.d.ts → lib/types/tokens-base.ts} +7 -2
  48. package/lib/types/tokens.d.ts +12 -0
  49. package/lib/types/tokens.js +1 -0
  50. package/lib/types/tokens.ts +18 -0
  51. package/lib/utils/convert-color.d.ts +3 -0
  52. package/lib/utils/convert-color.js +144 -0
  53. package/lib/utils/convert-color.ts +163 -0
  54. package/lib/utils/format-variable.js +6 -0
  55. package/lib/utils/format-variable.ts +7 -0
  56. package/package.json +44 -19
  57. package/{dist/tokens → tokens}/brand-blue-deep_accent-brand.css +33 -33
  58. package/{dist/tokens → tokens}/brand-blue-deep_accent-gray.css +33 -33
  59. package/{dist/tokens → tokens}/brand-blue_accent-brand.css +33 -33
  60. package/{dist/tokens → tokens}/brand-blue_accent-gray.css +33 -33
  61. package/{dist/tokens → tokens}/brand-green_accent-brand.css +33 -33
  62. package/{dist/tokens → tokens}/brand-green_accent-gray.css +33 -33
  63. package/{dist/tokens → tokens}/brand-mint_accent-brand.css +33 -33
  64. package/{dist/tokens → tokens}/brand-mint_accent-gray.css +33 -33
  65. package/{dist/tokens → tokens}/brand-orange_accent-gray.css +33 -33
  66. package/{dist/tokens → tokens}/brand-purple_accent-brand.css +33 -33
  67. package/{dist/tokens → tokens}/brand-purple_accent-gray.css +33 -33
  68. package/{dist/tokens → tokens}/brand-red_accent-gray.css +33 -33
  69. package/{dist/tokens → tokens}/brand-violet_accent-brand.css +33 -33
  70. package/{dist/tokens → tokens}/brand-violet_accent-gray.css +33 -33
  71. package/tokens-mobile/brand-blue-deep_accent-brand.json +718 -0
  72. package/tokens-mobile/brand-blue-deep_accent-gray.json +718 -0
  73. package/tokens-mobile/brand-blue_accent-brand.json +718 -0
  74. package/tokens-mobile/brand-blue_accent-gray.json +718 -0
  75. package/tokens-mobile/brand-green_accent-brand.json +718 -0
  76. package/tokens-mobile/brand-green_accent-gray.json +718 -0
  77. package/tokens-mobile/brand-mint_accent-brand.json +718 -0
  78. package/tokens-mobile/brand-mint_accent-gray.json +718 -0
  79. package/tokens-mobile/brand-orange_accent-gray.json +718 -0
  80. package/tokens-mobile/brand-purple_accent-brand.json +718 -0
  81. package/tokens-mobile/brand-purple_accent-gray.json +718 -0
  82. package/tokens-mobile/brand-red_accent-gray.json +718 -0
  83. package/tokens-mobile/brand-violet_accent-brand.json +718 -0
  84. package/tokens-mobile/brand-violet_accent-gray.json +718 -0
  85. package/dist/cjs/constants/abney-correction.d.ts +0 -2
  86. package/dist/cjs/constants/chroma-settings.d.ts +0 -2
  87. package/dist/cjs/constants/chroma-settings.js +0 -105
  88. package/dist/cjs/constants/default-swatch.d.ts +0 -109
  89. package/dist/cjs/constants/default-swatch.js +0 -112
  90. package/dist/cjs/constants/interaction-settings.js +0 -19
  91. package/dist/cjs/constants/logo-lightness.d.ts +0 -1
  92. package/dist/cjs/constants/logo-lightness.js +0 -4
  93. package/dist/cjs/constants/promo-hue-shift.js +0 -14
  94. package/dist/cjs/constants/warning-hue-patch.js +0 -25
  95. package/dist/cjs/get-base-tokens.d.ts +0 -26
  96. package/dist/cjs/get-base-tokens.js +0 -319
  97. package/dist/cjs/get-colors.d.ts +0 -20
  98. package/dist/cjs/get-colors.js +0 -20
  99. package/dist/cjs/get-default-tokens.d.ts +0 -645
  100. package/dist/cjs/get-default-tokens.js +0 -996
  101. package/dist/cjs/helpers/get-interactions.js +0 -61
  102. package/dist/cjs/helpers/get-logo.js +0 -32
  103. package/dist/cjs/helpers/get-palette.d.ts +0 -76
  104. package/dist/cjs/helpers/get-palette.js +0 -287
  105. package/dist/cjs/helpers/get-promo.d.ts +0 -12
  106. package/dist/cjs/helpers/get-promo.js +0 -56
  107. package/dist/cjs/types/base-tokens.d.ts +0 -125
  108. package/dist/cjs/types/base-tokens.js +0 -2
  109. package/dist/cjs/types/generator-tokens.js +0 -2
  110. package/dist/cjs/utils/format-variable.js +0 -15
  111. package/dist/colors.default-dark.js +0 -332
  112. package/dist/colors.default-light.js +0 -336
  113. package/dist/colors.less +0 -319
  114. package/dist/colors.scss +0 -319
  115. package/dist/esm/constants/abney-correction.d.ts +0 -2
  116. package/dist/esm/constants/abney-correction.js +0 -1102
  117. package/dist/esm/constants/chroma-settings.d.ts +0 -2
  118. package/dist/esm/constants/default-swatch.d.ts +0 -109
  119. package/dist/esm/constants/interaction-settings.d.ts +0 -8
  120. package/dist/esm/constants/logo-lightness.d.ts +0 -1
  121. package/dist/esm/constants/logo-lightness.js +0 -1
  122. package/dist/esm/constants/promo-hue-shift.d.ts +0 -3
  123. package/dist/esm/constants/warning-hue-patch.d.ts +0 -3
  124. package/dist/esm/get-base-tokens.d.ts +0 -26
  125. package/dist/esm/get-base-tokens.js +0 -257
  126. package/dist/esm/get-colors.d.ts +0 -20
  127. package/dist/esm/get-colors.js +0 -16
  128. package/dist/esm/get-default-tokens.d.ts +0 -645
  129. package/dist/esm/get-default-tokens.js +0 -992
  130. package/dist/esm/helpers/get-interactions.d.ts +0 -7
  131. package/dist/esm/helpers/get-interactions.js +0 -49
  132. package/dist/esm/helpers/get-logo.d.ts +0 -6
  133. package/dist/esm/helpers/get-logo.js +0 -28
  134. package/dist/esm/helpers/get-palette.d.ts +0 -76
  135. package/dist/esm/helpers/get-palette.js +0 -232
  136. package/dist/esm/helpers/get-promo.d.ts +0 -12
  137. package/dist/esm/helpers/get-promo.js +0 -51
  138. package/dist/esm/types/generator-tokens.d.ts +0 -43
  139. package/dist/esm/utils/format-variable.d.ts +0 -2
  140. package/dist/esm/utils/format-variable.js +0 -10
  141. package/dist/tokens-js/brand-blue-deep_accent-brand.js +0 -644
  142. package/dist/tokens-js/brand-blue-deep_accent-gray.js +0 -644
  143. package/dist/tokens-js/brand-blue_accent-brand.js +0 -644
  144. package/dist/tokens-js/brand-blue_accent-gray.js +0 -644
  145. package/dist/tokens-js/brand-green_accent-brand.js +0 -644
  146. package/dist/tokens-js/brand-green_accent-gray.js +0 -644
  147. package/dist/tokens-js/brand-mint_accent-brand.js +0 -644
  148. package/dist/tokens-js/brand-mint_accent-gray.js +0 -644
  149. package/dist/tokens-js/brand-orange_accent-gray.js +0 -644
  150. package/dist/tokens-js/brand-purple_accent-brand.js +0 -644
  151. package/dist/tokens-js/brand-purple_accent-gray.js +0 -644
  152. package/dist/tokens-js/brand-red_accent-gray.js +0 -644
  153. package/dist/tokens-js/brand-violet_accent-brand.js +0 -644
  154. package/dist/tokens-js/brand-violet_accent-gray.js +0 -644
  155. package/dist/tokens-mobile/brand-blue-deep_accent-brand.json +0 -718
  156. package/dist/tokens-mobile/brand-blue-deep_accent-gray.json +0 -718
  157. package/dist/tokens-mobile/brand-blue_accent-brand.json +0 -718
  158. package/dist/tokens-mobile/brand-blue_accent-gray.json +0 -718
  159. package/dist/tokens-mobile/brand-green_accent-brand.json +0 -718
  160. package/dist/tokens-mobile/brand-green_accent-gray.json +0 -718
  161. package/dist/tokens-mobile/brand-mint_accent-brand.json +0 -718
  162. package/dist/tokens-mobile/brand-mint_accent-gray.json +0 -718
  163. package/dist/tokens-mobile/brand-orange_accent-gray.json +0 -718
  164. package/dist/tokens-mobile/brand-purple_accent-brand.json +0 -718
  165. package/dist/tokens-mobile/brand-purple_accent-gray.json +0 -718
  166. package/dist/tokens-mobile/brand-red_accent-gray.json +0 -718
  167. package/dist/tokens-mobile/brand-violet_accent-brand.json +0 -718
  168. package/dist/tokens-mobile/brand-violet_accent-gray.json +0 -718
  169. /package/{dist/colors.js → colors.js} +0 -0
  170. /package/{dist/cjs/constants/interaction-settings.d.ts → lib/consts/params/interactions.d.ts} +0 -0
  171. /package/{dist/esm/constants/interaction-settings.js → lib/consts/params/interactions.js} +0 -0
  172. /package/{dist/esm/types/base-tokens.js → lib/types/tokens-base-generator.js} +0 -0
  173. /package/{dist/esm/types/generator-tokens.js → lib/types/tokens-base.js} +0 -0
  174. /package/{dist/cjs → lib}/utils/format-variable.d.ts +0 -0
@@ -1,2 +0,0 @@
1
- import type { GeneratorColorChromaSettingsGroup } from '../types/generator-tokens';
2
- export declare const CHROMA_SETTINGS: GeneratorColorChromaSettingsGroup;
@@ -1,105 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- exports.CHROMA_SETTINGS = void 0;
4
- exports.CHROMA_SETTINGS = {
5
- 20: {
6
- vivid: { rel: 100, max: 12 },
7
- normal: { rel: 66, min: 4.4, max: 8 },
8
- dim: { rel: 46, min: 2, max: 4.4 },
9
- },
10
- 24: {
11
- vivid: { rel: 100, max: 14.2 },
12
- normal: { rel: 68, min: 5.7, max: 10 },
13
- dim: { rel: 48, min: 2.8, max: 5.7 },
14
- },
15
- 28: {
16
- vivid: { rel: 100, max: 15.8 },
17
- normal: { rel: 70, min: 7, max: 11.8 },
18
- dim: { rel: 50, min: 3.6, max: 7 },
19
- },
20
- 32: {
21
- vivid: { rel: 100, max: 17.1 },
22
- normal: { rel: 72, min: 8.2, max: 13.2 },
23
- dim: { rel: 52, min: 4.4, max: 8.2 },
24
- },
25
- 36: {
26
- vivid: { rel: 100, max: 18 },
27
- normal: { rel: 74, min: 9.4, max: 14.4 },
28
- dim: { rel: 54, min: 5.2, max: 9.4 },
29
- },
30
- 40: {
31
- vivid: { rel: 100, max: 18.8 },
32
- normal: { rel: 76, min: 10.6, max: 15.6 },
33
- dim: { rel: 56, min: 6, max: 10.6 },
34
- },
35
- 44: {
36
- vivid: { rel: 100, max: 19.6 },
37
- normal: { rel: 78, min: 11.7, max: 16.6 },
38
- dim: { rel: 58, min: 6.8, max: 11.7 },
39
- },
40
- 48: {
41
- vivid: { rel: 100, max: 20.3 },
42
- normal: { rel: 80, min: 12.8, max: 17.5 },
43
- dim: { rel: 60, min: 7.6, max: 12.8 },
44
- },
45
- 52: {
46
- vivid: { rel: 100, max: 21 },
47
- normal: { rel: 82, min: 13.9, max: 18.4 },
48
- dim: { rel: 62, min: 8.4, max: 13.9 },
49
- },
50
- 56: {
51
- vivid: { rel: 100, max: 21.6 },
52
- normal: { rel: 84, min: 15, max: 19.2 },
53
- dim: { rel: 64, min: 9.2, max: 15 },
54
- },
55
- 60: {
56
- vivid: { rel: 100, max: 22 },
57
- normal: { rel: 86, min: 15.9, max: 19.9 },
58
- dim: { rel: 66, min: 9.9, max: 15.9 },
59
- },
60
- 64: {
61
- vivid: { rel: 100, max: 22.2 },
62
- normal: { rel: 88, min: 16.2, max: 20.2 },
63
- dim: { rel: 68, min: 10.2, max: 16.2 },
64
- },
65
- 68: {
66
- vivid: { rel: 100, max: 21.9 },
67
- normal: { rel: 90, min: 15.8, max: 19.8 },
68
- dim: { rel: 70, min: 9.6, max: 15.8 },
69
- },
70
- 72: {
71
- vivid: { rel: 100, max: 21.2 },
72
- normal: { rel: 92, min: 14.8, max: 18.8 },
73
- dim: { rel: 72, min: 8.4, max: 14.8 },
74
- },
75
- 76: {
76
- vivid: { rel: 100, max: 20.3 },
77
- normal: { rel: 90, min: 13.1, max: 17.5 },
78
- dim: { rel: 70, min: 7, max: 13.1 },
79
- },
80
- 80: {
81
- vivid: { rel: 100, max: 19 },
82
- normal: { rel: 88, min: 11.2, max: 15.6 },
83
- dim: { rel: 68, min: 5.6, max: 11.2 },
84
- },
85
- 84: {
86
- vivid: { rel: 100, max: 17.1 },
87
- normal: { rel: 86, min: 9, max: 13.4 },
88
- dim: { rel: 66, min: 4.4, max: 9 },
89
- },
90
- 88: {
91
- vivid: { rel: 100, max: 14.2 },
92
- normal: { rel: 84, min: 6.7, max: 10.4 },
93
- dim: { rel: 64, min: 3.2, max: 6.7 },
94
- },
95
- 92: {
96
- vivid: { rel: 100, max: 11 },
97
- normal: { rel: 82, min: 4.4, max: 7.4 },
98
- dim: { rel: 62, min: 2.2, max: 4.4 },
99
- },
100
- 96: {
101
- vivid: { rel: 100, max: 7 },
102
- normal: { rel: 80, min: 2.6, max: 4.4 },
103
- dim: { rel: 60, min: 1.5, max: 2.6 },
104
- },
105
- };
@@ -1,109 +0,0 @@
1
- export declare const brand: {
2
- red: string;
3
- orange: string;
4
- green: string;
5
- mint: string;
6
- blue: string;
7
- blueDeep: string;
8
- violet: string;
9
- purple: string;
10
- };
11
- export declare const system: {
12
- warning: string;
13
- error: string;
14
- success: string;
15
- accent: string;
16
- };
17
- export declare const customizable: {
18
- red: string;
19
- orange: string;
20
- green: string;
21
- mint: string;
22
- blue: string;
23
- blueDeep: string;
24
- violet: string;
25
- purple: string;
26
- yellow: string;
27
- };
28
- export declare const gray: {
29
- 0: string;
30
- 16: string;
31
- 20: string;
32
- 24: string;
33
- 28: string;
34
- 32: string;
35
- 36: string;
36
- 40: string;
37
- 44: string;
38
- 48: string;
39
- 52: string;
40
- 56: string;
41
- 60: string;
42
- 64: string;
43
- 68: string;
44
- 72: string;
45
- 76: string;
46
- 80: string;
47
- 84: string;
48
- 88: string;
49
- 92: string;
50
- 96: string;
51
- 98: string;
52
- 100: string;
53
- };
54
- export declare const whiteAlpha: {
55
- 4: string;
56
- 6: string;
57
- 8: string;
58
- 12: string;
59
- 16: string;
60
- 20: string;
61
- 24: string;
62
- 28: string;
63
- 32: string;
64
- 36: string;
65
- 40: string;
66
- 44: string;
67
- 48: string;
68
- 52: string;
69
- 56: string;
70
- 60: string;
71
- 64: string;
72
- 68: string;
73
- 72: string;
74
- 76: string;
75
- 80: string;
76
- 84: string;
77
- 88: string;
78
- 92: string;
79
- 96: string;
80
- 100: string;
81
- };
82
- export declare const blackAlpha: {
83
- 4: string;
84
- 6: string;
85
- 8: string;
86
- 12: string;
87
- 16: string;
88
- 20: string;
89
- 24: string;
90
- 28: string;
91
- 32: string;
92
- 36: string;
93
- 40: string;
94
- 44: string;
95
- 48: string;
96
- 52: string;
97
- 56: string;
98
- 60: string;
99
- 64: string;
100
- 68: string;
101
- 72: string;
102
- 76: string;
103
- 80: string;
104
- 84: string;
105
- 88: string;
106
- 92: string;
107
- 96: string;
108
- 100: string;
109
- };
@@ -1,112 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- exports.blackAlpha = exports.whiteAlpha = exports.gray = exports.customizable = exports.system = exports.brand = void 0;
4
- exports.brand = {
5
- red: '#FE4C4C',
6
- orange: '#FC7630',
7
- green: '#26AD50',
8
- mint: '#00BEA2',
9
- blue: '#2291FF',
10
- blueDeep: '#366AF3',
11
- violet: '#844BEC',
12
- purple: '#B750D1',
13
- };
14
- exports.system = {
15
- warning: '#FDAA00',
16
- error: '#E62B34',
17
- success: '#009A40',
18
- accent: '#2291FF',
19
- };
20
- exports.customizable = {
21
- red: '#FE4C4C',
22
- orange: '#FC7630',
23
- green: '#26AD50',
24
- mint: '#00BEA2',
25
- blue: '#2291FF',
26
- blueDeep: '#366AF3',
27
- violet: '#844BEC',
28
- purple: '#B750D1',
29
- yellow: '#FAB700',
30
- };
31
- exports.gray = {
32
- 0: 'oklch(0% 0 0)',
33
- 16: 'oklch(16% 0 0)',
34
- 20: 'oklch(20% 0 0)',
35
- 24: 'oklch(24% 0 0)',
36
- 28: 'oklch(28% 0 0)',
37
- 32: 'oklch(32% 0 0)',
38
- 36: 'oklch(36% 0 0)',
39
- 40: 'oklch(40% 0 0)',
40
- 44: 'oklch(44% 0 0)',
41
- 48: 'oklch(48% 0 0)',
42
- 52: 'oklch(52% 0 0)',
43
- 56: 'oklch(56% 0 0)',
44
- 60: 'oklch(60% 0 0)',
45
- 64: 'oklch(64% 0 0)',
46
- 68: 'oklch(68% 0 0)',
47
- 72: 'oklch(72% 0 0)',
48
- 76: 'oklch(76% 0 0)',
49
- 80: 'oklch(80% 0 0)',
50
- 84: 'oklch(84% 0 0)',
51
- 88: 'oklch(88% 0 0)',
52
- 92: 'oklch(92% 0 0)',
53
- 96: 'oklch(96% 0 0)',
54
- 98: 'oklch(98% 0 0)',
55
- 100: 'oklch(100% 0 0)',
56
- };
57
- exports.whiteAlpha = {
58
- 4: 'oklch(100% 0 0 / 0.04)',
59
- 6: 'oklch(100% 0 0 / 0.06)',
60
- 8: 'oklch(100% 0 0 / 0.08)',
61
- 12: 'oklch(100% 0 0 / 0.12)',
62
- 16: 'oklch(100% 0 0 / 0.16)',
63
- 20: 'oklch(100% 0 0 / 0.2)',
64
- 24: 'oklch(100% 0 0 / 0.24)',
65
- 28: 'oklch(100% 0 0 / 0.28)',
66
- 32: 'oklch(100% 0 0 / 0.32)',
67
- 36: 'oklch(100% 0 0 / 0.36)',
68
- 40: 'oklch(100% 0 0 / 0.4)',
69
- 44: 'oklch(100% 0 0 / 0.44)',
70
- 48: 'oklch(100% 0 0 / 0.48)',
71
- 52: 'oklch(100% 0 0 / 0.52)',
72
- 56: 'oklch(100% 0 0 / 0.56)',
73
- 60: 'oklch(100% 0 0 / 0.6)',
74
- 64: 'oklch(100% 0 0 / 0.64)',
75
- 68: 'oklch(100% 0 0 / 0.68)',
76
- 72: 'oklch(100% 0 0 / 0.72)',
77
- 76: 'oklch(100% 0 0 / 0.76)',
78
- 80: 'oklch(100% 0 0 / 0.8)',
79
- 84: 'oklch(100% 0 0 / 0.84)',
80
- 88: 'oklch(100% 0 0 / 0.88)',
81
- 92: 'oklch(100% 0 0 / 0.92)',
82
- 96: 'oklch(100% 0 0 / 0.96)',
83
- 100: 'oklch(100% 0 0 / 1)',
84
- };
85
- exports.blackAlpha = {
86
- 4: 'oklch(0% 0 0 / 0.04)',
87
- 6: 'oklch(0% 0 0 / 0.06)',
88
- 8: 'oklch(0% 0 0 / 0.08)',
89
- 12: 'oklch(0% 0 0 / 0.12)',
90
- 16: 'oklch(0% 0 0 / 0.16)',
91
- 20: 'oklch(0% 0 0 / 0.2)',
92
- 24: 'oklch(0% 0 0 / 0.24)',
93
- 28: 'oklch(0% 0 0 / 0.28)',
94
- 32: 'oklch(0% 0 0 / 0.32)',
95
- 36: 'oklch(0% 0 0 / 0.36)',
96
- 40: 'oklch(0% 0 0 / 0.4)',
97
- 44: 'oklch(0% 0 0 / 0.44)',
98
- 48: 'oklch(0% 0 0 / 0.48)',
99
- 52: 'oklch(0% 0 0 / 0.52)',
100
- 56: 'oklch(0% 0 0 / 0.56)',
101
- 60: 'oklch(0% 0 0 / 0.6)',
102
- 64: 'oklch(0% 0 0 / 0.64)',
103
- 68: 'oklch(0% 0 0 / 0.68)',
104
- 72: 'oklch(0% 0 0 / 0.72)',
105
- 76: 'oklch(0% 0 0 / 0.76)',
106
- 80: 'oklch(0% 0 0 / 0.8)',
107
- 84: 'oklch(0% 0 0 / 0.84)',
108
- 88: 'oklch(0% 0 0 / 0.88)',
109
- 92: 'oklch(0% 0 0 / 0.92)',
110
- 96: 'oklch(0% 0 0 / 0.96)',
111
- 100: 'oklch(0% 0 0 / 1)',
112
- };
@@ -1,19 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- exports.PRESSED_DARK_C =
4
- exports.PRESSED_DARK_L =
5
- exports.PRESSED_LIGHT_C =
6
- exports.PRESSED_LIGHT_L =
7
- exports.HOVER_DARK_C =
8
- exports.HOVER_DARK_L =
9
- exports.HOVER_LIGHT_C =
10
- exports.HOVER_LIGHT_L =
11
- void 0;
12
- exports.HOVER_LIGHT_L = -4;
13
- exports.HOVER_LIGHT_C = 0;
14
- exports.HOVER_DARK_L = +4;
15
- exports.HOVER_DARK_C = 0;
16
- exports.PRESSED_LIGHT_L = -8;
17
- exports.PRESSED_LIGHT_C = -0.03;
18
- exports.PRESSED_DARK_L = -4;
19
- exports.PRESSED_DARK_C = -0.03;
@@ -1 +0,0 @@
1
- export declare const MIN_LOGO_LIGHTNESS = 64;
@@ -1,4 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- exports.MIN_LOGO_LIGHTNESS = void 0;
4
- exports.MIN_LOGO_LIGHTNESS = 64;
@@ -1,14 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- exports.PROMO_HUE_SHIFTS = void 0;
4
- exports.PROMO_HUE_SHIFTS = {
5
- 0: -24,
6
- 25: -32,
7
- 44: -35,
8
- 148: 40,
9
- 177: 51,
10
- 253: 11,
11
- 264: 14,
12
- 294: 0,
13
- 319: -24,
14
- };
@@ -1,25 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- exports.WARNING_HUE_PATCH = void 0;
4
- exports.WARNING_HUE_PATCH = {
5
- 96: 0,
6
- 92: 0,
7
- 88: 0,
8
- 84: 0,
9
- 80: 0,
10
- 76: 0,
11
- 72: -4,
12
- 68: -8,
13
- 64: -12,
14
- 60: -8,
15
- 56: -4,
16
- 52: -2,
17
- 48: 0,
18
- 44: 0,
19
- 40: 0,
20
- 36: 0,
21
- 32: 0,
22
- 28: 0,
23
- 24: 0,
24
- 20: 0,
25
- };
@@ -1,26 +0,0 @@
1
- import * as DEFAULT_SWATCH from './constants/default-swatch';
2
- import type { BaseTokens } from './types/base-tokens';
3
- type PresetOrCustom<T extends string> = T | (string & Record<never, never>);
4
- export declare const ACCENT_PARAMS: string[];
5
- export interface ColorObject {
6
- [key: string]: ColorValue;
7
- }
8
- export type ColorValue = string | ColorObject | ColorValue[];
9
- type ColorStructure = ColorObject | ColorValue[];
10
- export type ColorFormat = 'hex/rgba' | 'rgb/rgba' | 'oklch' | 'hex-aarrggbb';
11
- export interface ConfigOptions {
12
- brand: PresetOrCustom<keyof typeof DEFAULT_SWATCH.brand>;
13
- accent: PresetOrCustom<(typeof ACCENT_PARAMS)[number]>;
14
- system?: typeof DEFAULT_SWATCH.system;
15
- format?: ColorFormat;
16
- }
17
- export declare function getBaseTokens({ brand, accent, system }: ConfigOptions): BaseTokens;
18
- export declare function convertOklchToHex(obj: ColorStructure): ColorStructure;
19
- export declare const convertOklchToRgba: (oklchString: string) => string;
20
- export declare function convertAlphaOklchToRgba(obj: ColorStructure): ColorStructure;
21
- export declare const convertHexToRgbString: (hexString: string) => string;
22
- export declare function convertHexValuesToRgb(obj: ColorStructure): ColorStructure;
23
- export declare const convertToAarrggbb: (colorString: string) => string;
24
- export declare function convertToAarrggbbRecursive(obj: ColorStructure): ColorStructure;
25
- export declare function convertColorFormat(obj: ColorStructure, format?: ColorFormat): ColorStructure;
26
- export {};