-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tamagui.config.ts
63 lines (58 loc) · 1.12 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
53
54
55
56
57
58
59
60
61
62
63
import { config as configBase } from '@tamagui/config/v3'
import { createTamagui, createTokens } from 'tamagui'
import { Maax, PublicSans } from './theme/fonts'
import { themes } from './themes'
const myTokens = createTokens({
...configBase.tokens,
space: {
...configBase.tokens.space,
true: 16,
xsmall: 4,
small: 8,
medium: 16,
large: 24,
xlarge: 32,
xxlarge: 40,
xxxlarge: 64,
1: 0,
2: 2,
3: 4,
4: 8,
5: 12,
6: 16,
7: 20,
8: 24,
9: 32,
10: 40,
11: 64,
12: 80,
'-1': -0,
'-2': '-2',
'-3': '-4',
'-4': '-8',
'-5': '-12',
'-6': '-16',
'-7': '-20',
'-8': '-24',
'-9': '-32',
'-10': '-40',
'-11': '-64',
'-12': '-80',
},
})
export const config = createTamagui({
...configBase,
settings: {
webContainerType: 'normal',
},
themes,
tokens: myTokens,
media: configBase.media,
defaultFont: 'PublicSans',
fonts: { ...configBase.fonts, Maax, PublicSans },
})
export default config
export type Conf = typeof config
declare module 'tamagui' {
interface TamaguiCustomConfig extends Conf {}
}