-
Notifications
You must be signed in to change notification settings - Fork 183
/
Types.js
35 lines (34 loc) · 1.03 KB
/
Types.js
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
// @flow
type GoogleFontsType = {name: string; styles: string[]}
type VerticalRhythmType = {
rhythm: (value: number) => string,
scale: (value: number) => Object,
adjustFontSizeTo: (value?: number | string) => Object,
}
export type OptionsType = {
title: string,
baseFontSize?: string,
baseLineHeight?: number,
scaleRatio?: number,
googleFonts?: GoogleFontsType[],
headerFontFamily?: string[],
bodyFontFamily?: string[],
headerColor?: string,
bodyColor?: string,
headerWeight?: number | string,
bodyWeight?: number | string,
boldWeight?: number | string,
blockMarginBottom?: number,
includeNormalize?: boolean,
overrideStyles?: (
verticalRhythm: VerticalRhythmType, // TODO Create flow type for compass-vertical-rhythm and import here.
options: OptionsType,
styles: mixed,
) => Object,
overrideThemeStyles?: (
verticalRhythm: VerticalRhythmType, // TODO Create flow type for compass-vertical-rhythm and import here.
options: OptionsType,
styles: mixed,
) => Object,
plugins?: mixed[],
}