-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtamagui.config.ts
52 lines (46 loc) · 1.05 KB
/
tamagui.config.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
import { createInterFont } from "@tamagui/font-inter";
import { shorthands } from "@tamagui/shorthands";
import { tokens, themes } from "@tamagui/themes";
import { createTamagui } from "tamagui";
import { createAnimations } from "@tamagui/animations-react-native";
const animations = createAnimations({
bouncy: {
type: "spring",
damping: 10,
mass: 0.9,
stiffness: 100,
},
lazy: {
type: "spring",
damping: 20,
stiffness: 60,
},
quick: {
type: "spring",
damping: 20,
mass: 1.2,
stiffness: 250,
},
});
const headingFont = createInterFont();
const bodyFont = createInterFont();
const config = createTamagui({
animations,
defaultTheme: "dark",
shouldAddPrefersColorThemes: false,
themeClassNameOnRoot: false,
shorthands,
fonts: {
heading: headingFont,
body: bodyFont,
},
themes,
tokens
});
export type AppConfig = typeof config;
declare module "tamagui" {
// overrides TamaguiCustomConfig so your custom types
// work everywhere you import `tamagui`
interface TamaguiCustomConfig extends AppConfig {}
}
export default config;