Skip to content

Commit a7a980d

Browse files
committed
Add tailwind spec to guideline
1 parent 6d39686 commit a7a980d

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

brand_guidelines/visual_identity/typography/index.mdx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ We use a **lighter default** with a **darker emphasis option** to:
101101
{
102102
style: 'Page Title',
103103
example: <div style={{ fontSize: '24px', fontWeight: '600', color: '#2d3748' }}>Home</div>,
104-
specifications: '24px • 600 weight • text-emphasis',
104+
specifications: '24px (text-2xl) • 600 weight (font-semibold) • text-emphasis',
105105
usage: 'Main application page titles'
106106
},
107107
{
108108
style: 'Title',
109109
example: (
110110
<div style={{ fontSize: '18px', fontWeight: '600', color: '#2d3748' }}>Flow inputs</div>
111111
),
112-
specifications: '18px • 600 weight • text-emphasis',
112+
specifications: '18px (text-lg) • 600 weight (font-semibold) • text-emphasis',
113113
usage: 'Top-level page headings, modal titles'
114114
},
115115
{
@@ -119,7 +119,7 @@ We use a **lighter default** with a **darker emphasis option** to:
119119
Advanced settings
120120
</div>
121121
),
122-
specifications: '14px • 600 weight • text-emphasis',
122+
specifications: '14px (text-sm) • 600 weight (font-semibold) • text-emphasis',
123123
usage: 'Panel headers, card titles, sidebar groups'
124124
},
125125
{
@@ -129,15 +129,15 @@ We use a **lighter default** with a **darker emphasis option** to:
129129
Default text throughout the application
130130
</div>
131131
),
132-
specifications: '12px • 400 weight • text-primary',
132+
specifications: '12px (text-xs) • 400 weight (font-normal) • text-primary',
133133
usage: 'Descriptions, content, list items, table cells'
134134
},
135135
{
136136
style: 'Body Emphasized',
137137
example: (
138138
<div style={{ fontSize: '12px', fontWeight: '500', color: '#2d3748' }}>Field name:</div>
139139
),
140-
specifications: '12px • 500 weight • text-emphasis',
140+
specifications: '12px (text-xs) • 500 weight (font-medium) • text-emphasis',
141141
usage: 'Labels, form field labels, tab labels'
142142
},
143143
{
@@ -147,15 +147,15 @@ We use a **lighter default** with a **darker emphasis option** to:
147147
Last run 2 hours ago
148148
</div>
149149
),
150-
specifications: '12px • 400 weight • text-secondary',
150+
specifications: '12px (text-xs) • 400 weight (font-normal) • text-secondary',
151151
usage: 'Supporting information, metadata, timestamps'
152152
},
153153
{
154154
style: 'Caption',
155155
example: (
156156
<div style={{ fontSize: '11px', fontWeight: '400', color: '#718096' }}>Optional field</div>
157157
),
158-
specifications: '11px • 400 weight • text-secondary',
158+
specifications: '11px (text-2xs) • 400 weight (font-normal) • text-secondary',
159159
usage: 'Helper text, table headers, annotations'
160160
},
161161
{
@@ -165,7 +165,7 @@ We use a **lighter default** with a **darker emphasis option** to:
165165
Enter job name...
166166
</div>
167167
),
168-
specifications: '11px • 400 weight • text-hint',
168+
specifications: '11px (text-2xs) • 400 weight (font-normal) • text-hint',
169169
usage: 'Input placeholders, tooltips, empty states'
170170
},
171171
{
@@ -184,23 +184,23 @@ We use a **lighter default** with a **darker emphasis option** to:
184184
job_id_12345
185185
</code>
186186
),
187-
specifications: '11px • 400 weight • monospace • text-emphasis',
187+
specifications: '11px (text-2xs) • 400 weight (font-normal) • monospace (font-mono) • text-emphasis',
188188
usage: 'Job IDs, code snippets, file paths, API endpoints'
189189
}
190190
]}
191191
darkExamples={[
192192
{
193193
style: 'Page Title',
194194
example: <div style={{ fontSize: '24px', fontWeight: '600', color: '#f3f4f6' }}>Home</div>,
195-
specifications: '24px • 600 weight • text-emphasis',
195+
specifications: '24px (text-2xl) • 600 weight (font-semibold) • text-emphasis',
196196
usage: 'Main application page titles'
197197
},
198198
{
199199
style: 'Title',
200200
example: (
201201
<div style={{ fontSize: '18px', fontWeight: '600', color: '#f3f4f6' }}>Flow inputs</div>
202202
),
203-
specifications: '18px • 600 weight • text-emphasis',
203+
specifications: '18px (text-lg) • 600 weight (font-semibold) • text-emphasis',
204204
usage: 'Top-level page headings, modal titles'
205205
},
206206
{
@@ -210,7 +210,7 @@ We use a **lighter default** with a **darker emphasis option** to:
210210
Advanced settings
211211
</div>
212212
),
213-
specifications: '14px • 600 weight • text-emphasis',
213+
specifications: '14px (text-sm) • 600 weight (font-semibold) • text-emphasis',
214214
usage: 'Panel headers, card titles, sidebar groups'
215215
},
216216
{
@@ -220,15 +220,15 @@ We use a **lighter default** with a **darker emphasis option** to:
220220
Default text throughout the application
221221
</div>
222222
),
223-
specifications: '12px • 400 weight • text-primary',
223+
specifications: '12px (text-xs) • 400 weight (font-normal) • text-primary',
224224
usage: 'Descriptions, content, list items, table cells'
225225
},
226226
{
227227
style: 'Body Emphasized',
228228
example: (
229229
<div style={{ fontSize: '12px', fontWeight: '500', color: '#f3f4f6' }}>Field name:</div>
230230
),
231-
specifications: '12px • 500 weight • text-emphasis',
231+
specifications: '12px (text-xs) • 500 weight (font-medium) • text-emphasis',
232232
usage: 'Labels, form field labels, tab labels'
233233
},
234234
{
@@ -238,15 +238,15 @@ We use a **lighter default** with a **darker emphasis option** to:
238238
Last run 2 hours ago
239239
</div>
240240
),
241-
specifications: '12px • 400 weight • text-secondary',
241+
specifications: '12px (text-xs) • 400 weight (font-normal) • text-secondary',
242242
usage: 'Supporting information, metadata, timestamps'
243243
},
244244
{
245245
style: 'Caption',
246246
example: (
247247
<div style={{ fontSize: '11px', fontWeight: '400', color: '#aab0bb' }}>Optional field</div>
248248
),
249-
specifications: '11px • 400 weight • text-secondary',
249+
specifications: '11px (text-2xs) • 400 weight (font-normal) • text-secondary',
250250
usage: 'Helper text, table headers, annotations'
251251
},
252252
{
@@ -256,7 +256,7 @@ We use a **lighter default** with a **darker emphasis option** to:
256256
Enter job name...
257257
</div>
258258
),
259-
specifications: '11px • 400 weight • text-hint',
259+
specifications: '11px (text-2xs) • 400 weight (font-normal) • text-hint',
260260
usage: 'Input placeholders, tooltips, empty states'
261261
},
262262
{
@@ -275,7 +275,7 @@ We use a **lighter default** with a **darker emphasis option** to:
275275
job_id_12345
276276
</code>
277277
),
278-
specifications: '11px • 400 weight • monospace • text-emphasis',
278+
specifications: '11px (text-2xs) • 400 weight (font-normal) • monospace (font-mono) • text-emphasis',
279279
usage: 'Job IDs, code snippets, file paths, API endpoints'
280280
}
281281
]}

tailwind.config.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ module.exports = {
4343
'bg-feedback-success',
4444
'bg-feedback-warning',
4545
'bg-feedback-error',
46-
'bg-feedback-info'
46+
'bg-feedback-info',
47+
// Typography classes used in guidelines
48+
'text-2xl',
49+
'text-lg',
50+
'text-sm',
51+
'text-xs',
52+
'text-2xs',
53+
'font-normal',
54+
'font-medium',
55+
'font-semibold',
56+
'font-mono'
4757
],
4858
extend: {
4959
height: {
@@ -70,6 +80,9 @@ module.exports = {
7080
'"Courier New"',
7181
'monospace'
7282
]
83+
},
84+
fontSize: {
85+
'2xs': ['11px', { lineHeight: '16px' }]
7386
}
7487
},
7588
theme: {

0 commit comments

Comments
 (0)