-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathButtonFontTokens.win.ts
More file actions
30 lines (28 loc) · 978 Bytes
/
ButtonFontTokens.win.ts
File metadata and controls
30 lines (28 loc) · 978 Bytes
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
import type { Theme } from '@fluentui-react-native/framework';
import { globalTokens } from '@fluentui-react-native/theme-tokens';
import type { TokenSettings } from '@fluentui-react-native/use-styling';
import type { ButtonTokens } from './Button.types';
export const defaultButtonFontTokens: TokenSettings<ButtonTokens, Theme> = (t: Theme) =>
({
medium: {
hasContent: {
fontFamily: t.typography.families.secondary,
fontSize: globalTokens.font.size300,
fontWeight: globalTokens.font.weight.semibold,
},
},
small: {
hasContent: {
fontFamily: t.typography.families.primary,
fontSize: globalTokens.font.size200,
fontWeight: globalTokens.font.weight.regular,
},
},
large: {
hasContent: {
fontFamily: t.typography.families.secondary,
fontSize: globalTokens.font.size400,
fontWeight: globalTokens.font.weight.semibold,
},
},
} as ButtonTokens);