Theme-UI: Added useCustomProperties for old browsers support (#40529)

* Added useCustomProperties for old browsers support

* Added definition author

* Made useCustomProperties optional

* Removed trailing whitespaces
This commit is contained in:
Prateek Kathal
2019-11-20 11:32:08 -08:00
committed by Sheetal Nandi
parent d59a83ea12
commit df17b3bea8
+9
View File
@@ -5,6 +5,7 @@
// Brian Andrews <https://github.com/sbardian>
// Rodrigo Pombo <https://github.com/pomber>
// Justin Hall <https://github.com/wKovacs64>
// Prateek Kathal <https://github.com/prateekkathal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
@@ -76,6 +77,14 @@ export type ColorMode = {
};
export interface Theme extends StyledSystemTheme {
/**
* Enable/disable custom CSS properties/variables if lower browser
* support is required (for eg. IE 11).
*
* References: https://theme-ui.com/color-modes/#turn-off-custom-properties
*/
useCustomProperties?: boolean;
/**
* Provide a value here to enable color modes
*/