-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyled.d.ts
59 lines (53 loc) · 1.71 KB
/
styled.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import { NextFont, NextFontWithVariable } from 'next/dist/compiled/@next/font';
import 'styled-components';
declare module 'styled-components' {
type ColorPalettes = 'primary' | 'secondary' | 'tertiary' | 'common';
type Fonts =
| 'Birdman'
| 'Oxanium'
| 'MonocraftNF'
| 'Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Verdana, Geneva, Tahoma, Arial, sans-serif, monospace'
| 'Verdana, Geneva, Tahoma, Arial, sans-serif, system-ui, -apple-system, BlinkMacSystemFont'
| '"Times New Roman", Times, Haettenschweiler, monospace, system-ui, -apple-system, BlinkMacSystemFont';
interface CommonColors {
readonly black: string | 'rgb(0, 0, 0)';
readonly white: string | 'rgb(255, 255, 255)';
}
interface Colors extends CommonColors {
readonly red: string;
readonly orange: string;
readonly blue: string;
readonly cyan: string;
readonly green: string;
readonly purple: string;
readonly drab: string;
readonly neon: string;
readonly tan: string;
readonly steel: string;
readonly gray: string;
readonly teal: string;
readonly yellow: string;
readonly linear?: string;
readonly radial?: string;
}
interface Breakpoints {
readonly phone: '480px';
readonly smallTab: '640px';
readonly laptop: '768px';
readonly fullDisplay: '1024px';
readonly largeDisplay: '1280px';
}
export interface DefaultTheme {
readonly name: 'Default' | 'Alternate' | string;
readonly defaultBorder: string;
readonly defaultRadius: string;
readonly breakpoints: Breakpoints;
readonly fonts: Array<Fonts>;
palette: {
common: CommonColors;
primary: Colors;
secondary: Colors;
tertiary: Colors;
};
}
}