-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert theme to TS and update zIndex values
- Loading branch information
1 parent
e789127
commit 1e2830d
Showing
4 changed files
with
71 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { VEDA_OVERRIDE_THEME } from "$styles/theme"; | ||
|
||
// Convert object keys to string paths. | ||
type PropertyStringPath<T, Prefix = ''> = { | ||
[K in keyof T]: T[K] extends number | string | ||
? `${string & Prefix}${string & K}` | ||
: PropertyStringPath<T[K], `${string & Prefix}${string & K}.`>; | ||
}[keyof T]; | ||
|
||
declare module '@devseed-ui/theme-provider' { | ||
type ThemeValPathExtend = | ||
| ThemeValPath | ||
| PropertyStringPath<typeof VEDA_OVERRIDE_THEME>; | ||
|
||
function themeVal(path: ThemeValPathExtend): ThemeValReturn; | ||
} |