File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,16 @@ export interface ColorMode {
527
527
[ k : string ] : CSS . ColorProperty | ObjectOrArray < CSS . ColorProperty >
528
528
}
529
529
530
+ interface ColorModesScale extends ColorMode {
531
+ /**
532
+ * Nested color modes can provide overrides when used in conjunction with
533
+ * `Theme.initialColorModeName and `useColorMode()`
534
+ */
535
+ modes ?: {
536
+ [ k : string ] : ColorMode
537
+ }
538
+ }
539
+
530
540
export interface Theme {
531
541
breakpoints ?: Array < string >
532
542
mediaQueries ?: { [ size : string ] : string }
@@ -584,15 +594,7 @@ export interface Theme {
584
594
/**
585
595
* Define the colors that are available through this theme
586
596
*/
587
- colors ?: ColorMode & {
588
- /**
589
- * Nested color modes can provide overrides when used in conjunction with
590
- * `Theme.initialColorModeName and `useColorMode()`
591
- */
592
- modes ?: {
593
- [ k : string ] : ColorMode
594
- }
595
- }
597
+ colors ?: ColorModesScale
596
598
597
599
/**
598
600
* Styles for elements rendered in MDX can be added to the theme.styles
You can’t perform that action at this time.
0 commit comments