-
-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathtext_styles_default.dart
More file actions
163 lines (149 loc) · 4.86 KB
/
text_styles_default.dart
File metadata and controls
163 lines (149 loc) · 4.86 KB
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
161
162
163
import 'package:flutter/widgets.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:shadcn_ui/src/utils/extensions/text_style.dart';
const kDefaultFontFamily = 'Geist';
abstract class ShadTextDefaultTheme {
static TextStyle h1Large() {
return GoogleFonts.geist(
fontSize: 48,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w800,
height: 48 / 48,
letterSpacing: -0.4,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle h1() {
return GoogleFonts.geist(
fontSize: 36,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w800,
height: 40 / 36,
letterSpacing: -0.4,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle h2() {
return GoogleFonts.geist(
fontSize: 30,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
height: 36 / 30,
letterSpacing: -0.4,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle h3() {
return GoogleFonts.geist(
fontSize: 24,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
height: 32 / 24,
letterSpacing: -0.4,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle h4() {
return GoogleFonts.geist(
fontSize: 20,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
height: 28 / 20,
letterSpacing: -0.4,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle p() {
return GoogleFonts.geist(
fontSize: 16,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
height: 28 / 16,
letterSpacing: 0,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle blockquote() {
return GoogleFonts.geist(
fontSize: 16,
decoration: TextDecoration.none,
fontStyle: FontStyle.italic,
fontWeight: FontWeight.w400,
height: 24 / 16,
letterSpacing: 0,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle table() {
return GoogleFonts.geist(
fontSize: 16,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w700,
height: 24 / 16,
letterSpacing: 0,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle list() {
return GoogleFonts.geist(
fontSize: 16,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
height: 24 / 16,
letterSpacing: 0,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle lead() {
return GoogleFonts.geist(
fontSize: 20,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
height: 28 / 20,
letterSpacing: 0,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle large() {
return GoogleFonts.geist(
fontSize: 18,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
height: 28 / 18,
letterSpacing: 0,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle small() {
return GoogleFonts.geist(
fontSize: 14,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
height: 14 / 14,
letterSpacing: 0,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
static TextStyle muted() {
return GoogleFonts.geist(
fontSize: 14,
decoration: TextDecoration.none,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
height: 20 / 14,
letterSpacing: 0,
textBaseline: TextBaseline.alphabetic,
).fallback(leadingDistribution: TextLeadingDistribution.even);
}
}