-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDesignSystem.ts
More file actions
43 lines (35 loc) · 989 Bytes
/
DesignSystem.ts
File metadata and controls
43 lines (35 loc) · 989 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
32
33
34
35
36
37
38
39
40
41
42
43
/*
Design system should take best from compose, react and material design.
Should be closer to compose without the padding nonsense.
At runtime, these styles will get converted into emotion-js / compose modifiers / stylesheet.
Caching for conversions would be needed.
It can't match native pure css in speed, but we need to make it close with Server Components.
Everything is a flexbox as grid is not supported in react native or jetpack compose.
*/
// FlexBox
type Box = {
width: string,
height: string,
color: string,
elevation: string,
shadow: string,
margin: string,
padding: string,
borderWidth: string,
borderRadius: string,
borderColor: string
}
type Typography = Box & {
fontSize: string,
fontWeight: string,
lineHeight: string,
letterSpacing: string,
textAlign: string
}
type Button = Box & {
hoverColor: string,
activeColor: string,
focusColor: string,
disabledColor: string,
content: Box
}