generated from fastn-stack/fastn-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ftd
160 lines (101 loc) · 3.5 KB
/
index.ftd
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
-- import: fifthtry.github.io/package-doc/doc as pd
-- import: fifthtry.github.io/package-doc/code-block as cb
-- import: fifthtry.github.io/package-doc/typography as tf
-- import: fastn
-- import: fifthtry.github.io/montserrat/assets as montserrat-assets
-- ftd.type montserrat-demo:
line-height.px: 36
size.px: 22
letter-spacing.px: 0
font-family: $montserrat-assets.fonts.Montserrat
weight: 400
-- ftd.type montserrat-demo-heading:
line-height.px: 56
size.px: 48
letter-spacing.px: 0
font-family: $montserrat-assets.fonts.Montserrat
weight: 400
-- ftd.responsive-type small-heading:
desktop: $montserrat-demo
mobile: $montserrat-demo
-- ftd.responsive-type large-heading:
desktop: $montserrat-demo-heading
mobile: $montserrat-demo-heading
-- ftd.column:
width: fill-container
padding-horizontal.px: 50
padding-horizontal.px if { ftd.device == "mobile" }: 20
background.solid: $inherited.colors.background.base
;;id: parent
-- pd.package: montserrat - fastn font
name: fifthtry.github.io/montserrat
This component consist of Google montserrat font with all it's styles from Thin-100 to Black-900 Italic.
-- pd.component: montserrat - fastn font
name: https://github.com/FifthTry/montserrat
This component consist of Google montserrat font with all it's styles from Thin-100 to Black-900 Italic.
-- tf.h3: How to use
Include fifthtry.github.io/montserrat package into FASTN.ftd file
-- cb.code:
lang: ftd
\-- fastn.dependency: fifthtry.github.io/montserrat as montserrat
\-- fastn.auto-import: montserrat
-- tf.markdown:
Inside your .ftd file to add montserrat dependency and create custom font as given
in below code:
-- cb.code:
lang: ftd
\-- import: fifthtry.github.io/montserrat/assets as montserrat-assets
\-- import: fastn
\-- How to: define a custom font:-
\-- ftd.type montserrat-desktop:
size.px: 40
weight: 900
font-family: $montserrat-assets.fonts.Montserrat
\-- ftd.type montserrat-mobile:
size.px: 40
weight: 900
font-family: $montserrat-assets.fonts.Montserrat
\-- ftd.responsive-type montserrat:
desktop: $montserrat-desktop
mobile: $montserrat-mobile
\-- How to: invoke a custom font:-
\-- ftd.text: Todos os seres humanos nascem livres e iguais em dignidade.
role: $montserrat
color: $inherited.colors.text-strong
margin-bottom.px: 24
-- tf.h2: `montserrat` regular 18px:
-- ftd.text: The quick brown fox jumps over the lazy dog
role: $small-heading
color: $inherited.colors.text-strong
margin-bottom.px: 24
-- tf.h2: `montserrat` regular strike through 18px:
-- ftd.text: The quick brown fox jumps over the lazy dog
role: $small-heading
color: $inherited.colors.text-strong
margin-bottom.px: 24
-- tf.h2: `montserrat` regular underline 18px:
-- ftd.text: The quick brown fox jumps over the lazy dog
role: $small-heading
color: $inherited.colors.text-strong
margin-bottom.px: 24
-- tf.h2: `montserrat` regular italic 18px:
-- ftd.text: The quick brown fox jumps over the lazy dog
role: $small-heading
color: $inherited.colors.text-strong
margin-bottom.px: 24
-- tf.h2: `montserrat` bold 18px:
-- ftd.text: The quick brown fox jumps over the lazy dog
role: $small-heading
color: $inherited.colors.text-strong
margin-bottom.px: 24
-- tf.h2: `montserrat` bold italic 18px:
-- ftd.text: The quick brown fox jumps over the lazy dog
role: $small-heading
color: $inherited.colors.text-strong
margin-bottom.px: 24
-- tf.h2: `montserrat` heading regular 48px:
-- ftd.text: The quick brown fox jumps over the lazy dog
role: $large-heading
color: $inherited.colors.text-strong
margin-bottom.px: 40
-- end: ftd.column