@@ -3,6 +3,7 @@ import tinycolor from 'tinycolor2';
3
3
import { Schemes , SchemeType } from './scheme' ;
4
4
export declare class Colors {
5
5
[ key : string ] : any ;
6
+ private shouldSupportDarkMode ;
6
7
constructor ( ) ;
7
8
/**
8
9
* Load custom set of colors
@@ -46,6 +47,7 @@ export declare class Colors {
46
47
getBackgroundKeysPattern ( ) : RegExp ;
47
48
isEmpty ( color : string ) : boolean ;
48
49
getColorTint ( color : string , tintKey : string | number ) : any ;
50
+ getInvertedTintKey ( tintKey : string | number ) : number ;
49
51
getColorName ( color : string ) : any ;
50
52
getTintedColorForDynamicHex ( color : string , tintKey : string | number ) : string ;
51
53
generateColorPalette : ( ( color : any ) => string [ ] ) & _ . MemoizedFunction ;
@@ -114,13 +116,12 @@ declare const colorObject: Colors & {
114
116
orange40 : string ;
115
117
orange50 : string ;
116
118
orange60 : string ;
117
- /**
119
+ orange70 : string ;
120
+ orange80 : string ; /**
118
121
* Set color scheme for app
119
122
* arguments:
120
123
* scheme - color scheme e.g light/dark/default
121
124
*/
122
- orange70 : string ;
123
- orange80 : string ;
124
125
red1 : string ;
125
126
red5 : string ;
126
127
red10 : string ;
@@ -142,6 +143,14 @@ declare const colorObject: Colors & {
142
143
purple70 : string ;
143
144
purple80 : string ;
144
145
violet1 : string ;
146
+ /**
147
+ * Add alpha to hex or rgb color
148
+ * arguments:
149
+ * p1 - hex color / R part of RGB
150
+ * p2 - opacity / G part of RGB
151
+ * p3 - B part of RGB
152
+ * p4 - opacity
153
+ */
145
154
violet5 : string ;
146
155
violet10 : string ;
147
156
violet20 : string ;
@@ -174,11 +183,7 @@ declare const colorObject: Colors & {
174
183
$backgroundSuccessHeavy : string ;
175
184
$backgroundSuccess : string ;
176
185
$backgroundWarningHeavy : string ;
177
- $backgroundWarning : string ; /**
178
- * Load set of schemes for light/dark mode
179
- * arguments:
180
- * schemes - two sets of map of colors e.g {light: {screen: 'white'}, dark: {screen: 'black'}}
181
- */
186
+ $backgroundWarning : string ;
182
187
$backgroundMajor : string ;
183
188
$backgroundDangerHeavy : string ;
184
189
$backgroundDanger : string ;
@@ -190,6 +195,11 @@ declare const colorObject: Colors & {
190
195
$textDisabled : string ;
191
196
$textDefault : string ;
192
197
$textNeutralHeavy : string ;
198
+ /**
199
+ * Set color scheme for app
200
+ * arguments:
201
+ * scheme - color scheme e.g light/dark/default
202
+ */
193
203
$textNeutral : string ;
194
204
$textNeutralLight : string ;
195
205
$textDefaultLight : string ;
0 commit comments