forked from clerk/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.ts
More file actions
31 lines (23 loc) · 778 Bytes
/
Copy paththeme.ts
File metadata and controls
31 lines (23 loc) · 778 Bytes
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
export type EmUnit = string;
export type FontWeight = string;
export type BoxShadow = string;
export type TransparentColor = 'transparent';
export type BuiltInColors = 'black' | 'blue' | 'red' | 'green' | 'grey' | 'white' | 'yellow';
export type HexColor = `#${string}`;
export type HslaColor = {
h: number;
s: number;
l: number;
a?: number;
};
export type RgbaColor = {
r: number;
g: number;
b: number;
a?: number;
};
export type HexColorString = HexColor;
export type HslaColorString = `hsl(${string})` | `hsla(${string})`;
export type RgbaColorString = `rgb(${string})` | `rgba(${string})`;
export type Color = string | HexColor | HslaColor | RgbaColor | TransparentColor;
export type ColorString = HexColorString | HslaColorString | RgbaColorString;