-
Notifications
You must be signed in to change notification settings - Fork 2
/
accordian.dart
85 lines (85 loc) · 2.16 KB
/
accordian.dart
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
const accordionData = {
"width": "\$full",
"_icon": {
"color": "\$textLight900",
"_dark": {"color": "\$textDark50"}
},
"_titleText": {
"color": "\$textLight900",
"_dark": {"color": "\$textDark50"}
},
"_contentText": {
"color": "\$textLight700",
"_dark": {"color": "\$textDark200"}
},
"variants": {
"size": {
"sm": {
"_titleText": {
"fontSize": "\$sm",
"fontFamily": "\$body",
"fontWeight": "\$bold",
"lineHeight": "\$sm"
},
"_contentText": {
"fontSize": "\$sm",
"fontFamily": "\$body",
"fontWeight": "\$normal",
"lineHeight": "\$sm"
}
},
"md": {
"_titleText": {
"fontSize": "\$md",
"fontFamily": "\$body",
"fontWeight": "\$bold",
"lineHeight": "\$md"
},
"_contentText": {
"fontSize": "\$md",
"fontFamily": "\$body",
"fontWeight": "\$normal",
"lineHeight": "\$md"
}
},
"lg": {
"_titleText": {
"fontSize": "\$lg",
"fontFamily": "\$body",
"fontWeight": "\$bold",
"lineHeight": "\$lg"
},
"_contentText": {
"fontSize": "\$lg",
"fontFamily": "\$body",
"fontWeight": "\$normal",
"lineHeight": "\$lg"
}
}
},
"variant": {
"filled": {
"backgroundColor": "\$white",
"_item": {"backgroundColor": "\$backgroundLight0"},
"shadowColor": "\$backgroundLight900",
"shadowOffset": {"width": 0, "height": 3},
"shadowRadius": 8,
"shadowOpacity": 0.2,
"elevation": 10,
"_dark": {
"backgroundColor": "transparent",
"_item": {"backgroundColor": "\$backgroundDark950"}
}
},
"unfilled": {
"shadowColor": "transparent",
"shadowOffset": {"width": 0, "height": 0},
"_item": {"backgroundColor": "transparent"},
"_dark": {
"_item": {"backgroundColor": "transparent"}
}
}
}
},
"defaultProps": {"theme": "light", "size": "md", "variant": "filled"}
};