Skip to content

Commit 254d991

Browse files
authored
Create themer.d.ts
Signed-off-by: Cody Olsen <[email protected]>
1 parent 5b781a8 commit 254d991

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

themer.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
declare module 'https://themer.sanity.build/api/hues?*' {
2+
interface Hue
3+
extends Omit<import('@sanity/color').ColorHueConfig, 'title' | 'midPoint'> {
4+
midPoint: 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950
5+
}
6+
interface Hues {
7+
default: Hue
8+
transparent: Hue
9+
primary: Hue
10+
positive: Hue
11+
caution: Hue
12+
critical: Hue
13+
}
14+
export const hues: Hues
15+
type Theme = import('sanity').StudioTheme
16+
export function createTheme(_hues: Hues): Theme
17+
export const theme: Theme
18+
}

0 commit comments

Comments
 (0)