weitere perfektionierung der neuen mobile app
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { defaultConfig } from '@tamagui/config/v4'
|
||||
import { defaultConfig } from '@tamagui/config/v4';
|
||||
import { createTamagui } from '@tamagui/core';
|
||||
import { shorthands } from '@tamagui/shorthands';
|
||||
import { tokens as baseTokens, themes as baseThemes } from '@tamagui/themes';
|
||||
@@ -46,6 +46,34 @@ const themes = {
|
||||
},
|
||||
};
|
||||
|
||||
const sharedWeights = {
|
||||
4: '400',
|
||||
5: '500',
|
||||
6: '600',
|
||||
7: '700',
|
||||
8: '800',
|
||||
9: '900',
|
||||
};
|
||||
|
||||
const fonts = {
|
||||
...defaultConfig.fonts,
|
||||
body: {
|
||||
...defaultConfig.fonts.body,
|
||||
family: 'Montserrat',
|
||||
weight: sharedWeights,
|
||||
},
|
||||
heading: {
|
||||
...defaultConfig.fonts.heading,
|
||||
family: 'Montserrat',
|
||||
weight: sharedWeights,
|
||||
},
|
||||
display: {
|
||||
...defaultConfig.fonts.heading,
|
||||
family: 'Playfair Display',
|
||||
weight: sharedWeights,
|
||||
},
|
||||
};
|
||||
|
||||
const config = createTamagui({
|
||||
...defaultConfig,
|
||||
animations: createAnimations({
|
||||
@@ -55,6 +83,8 @@ const config = createTamagui({
|
||||
}),
|
||||
tokens,
|
||||
themes,
|
||||
fonts,
|
||||
defaultFont: 'body',
|
||||
shorthands,
|
||||
media: {
|
||||
...defaultConfig.media,
|
||||
|
||||
Reference in New Issue
Block a user