1 | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
2 |
|
3 | function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
4 |
|
5 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6 |
|
7 | import { systemWeights } from "react-native-typography";
|
8 | export default {
|
9 | disabledOpacity: 0.5,
|
10 | spacing: {
|
11 | gutters: 16,
|
12 | text: 4,
|
13 | small: 8,
|
14 | medium: 12,
|
15 | large: 16
|
16 | },
|
17 | borderRadius: {
|
18 | global: 6,
|
19 | button: 24
|
20 | },
|
21 | colors: {
|
22 | primary: "rgba(90, 69, 255, 1)",
|
23 | secondary: "rgba(59, 201, 234, 1)",
|
24 | surface: "rgba(255, 255, 255, 1)",
|
25 | background: "rgba(251, 252, 253, 1)",
|
26 | error: "rgba(255, 69, 100, 1)",
|
27 | divider: "rgba(234, 237, 242, 1)",
|
28 | strong: "rgba(18, 20, 44, 1)",
|
29 | medium: "rgba(70, 78, 88, 1)",
|
30 | strongInverse: "rgba(255, 255, 255, 1)",
|
31 | mediumInverse: "rgba(255, 255, 255, 0.87)",
|
32 | lightInverse: "rgba(255, 255, 255, 0.68)",
|
33 | light: "rgba(165, 173, 183, 1)"
|
34 | },
|
35 | elevation: {
|
36 | "0": {
|
37 | shadowColor: "rgba(18, 20, 44, 1)",
|
38 | shadowOffset: {
|
39 | width: 0,
|
40 | height: 0
|
41 | },
|
42 | shadowRadius: 0,
|
43 | shadowOpacity: 0,
|
44 | borderWidth: 0,
|
45 | borderColor: "rgba(18, 20, 44, 1)",
|
46 | borderOpacity: 0
|
47 | },
|
48 | "1": {
|
49 | shadowColor: "rgba(18, 20, 44, 1)",
|
50 | shadowOffset: {
|
51 | width: 0,
|
52 | height: 2
|
53 | },
|
54 | shadowRadius: 4,
|
55 | shadowOpacity: 0.0599999987,
|
56 | borderWidth: 1,
|
57 | borderColor: "rgba(18, 20, 44, 1)",
|
58 | borderOpacity: 0.0599999987
|
59 | },
|
60 | "2": {
|
61 | shadowColor: "rgba(18, 20, 44, 1)",
|
62 | shadowOffset: {
|
63 | width: 0,
|
64 | height: 2
|
65 | },
|
66 | shadowRadius: 4,
|
67 | shadowOpacity: 0.0799999982,
|
68 | borderWidth: 0,
|
69 | borderColor: "rgba(18, 20, 44, 1)",
|
70 | borderOpacity: 0
|
71 | },
|
72 | "3": {
|
73 | shadowColor: "rgba(18, 20, 44, 1)",
|
74 | shadowOffset: {
|
75 | width: 0,
|
76 | height: 6
|
77 | },
|
78 | shadowRadius: 6,
|
79 | shadowOpacity: 0.119999997,
|
80 | borderWidth: 0,
|
81 | borderColor: "rgba(18, 20, 44, 1)",
|
82 | borderOpacity: 0
|
83 | }
|
84 | },
|
85 | typography: {
|
86 | headline1: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
87 | fontSize: 60,
|
88 | letterSpacing: 0,
|
89 | lineHeight: 71
|
90 | }),
|
91 | headline2: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
92 | fontSize: 48,
|
93 | letterSpacing: 0,
|
94 | lineHeight: 58
|
95 | }),
|
96 | headline3: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
97 | fontSize: 34,
|
98 | letterSpacing: 0,
|
99 | lineHeight: 40
|
100 | }),
|
101 | headline4: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
102 | fontSize: 24,
|
103 | letterSpacing: 0,
|
104 | lineHeight: 34
|
105 | }),
|
106 | headline5: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
107 | fontSize: 20,
|
108 | letterSpacing: 0,
|
109 | lineHeight: 26
|
110 | }),
|
111 | subtitle1: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
112 | fontSize: 16,
|
113 | letterSpacing: 0,
|
114 | lineHeight: 26
|
115 | }),
|
116 | subtitle2: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
117 | fontSize: 14,
|
118 | letterSpacing: 0,
|
119 | lineHeight: 22
|
120 | }),
|
121 | body1: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
122 | fontSize: 16,
|
123 | letterSpacing: 0,
|
124 | lineHeight: 26
|
125 | }),
|
126 | body2: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
127 | fontSize: 14,
|
128 | letterSpacing: 0,
|
129 | lineHeight: 22
|
130 | }),
|
131 | button: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
132 | fontSize: 14,
|
133 | letterSpacing: 0,
|
134 | lineHeight: 16
|
135 | }),
|
136 | caption: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
137 | fontSize: 12,
|
138 | letterSpacing: 0,
|
139 | lineHeight: 16
|
140 | }),
|
141 | overline: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
142 | fontSize: 12,
|
143 | letterSpacing: 2,
|
144 | lineHeight: 16
|
145 | }),
|
146 | headline6: _objectSpread(_objectSpread({}, systemWeights.regular), {}, {
|
147 | fontSize: 16,
|
148 | letterSpacing: 0,
|
149 | lineHeight: 24
|
150 | })
|
151 | }
|
152 | };
|
153 |
|
\ | No newline at end of file |