Skip to content

Commit 97075cb

Browse files
committed
Add .typography-link utility
1 parent e6c9e43 commit 97075cb

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

src/app/conf/2025/components/call-for-proposals.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ function NotesTab() {
102102
<li>
103103
All speakers are required to adhere to our{" "}
104104
<Link
105-
className="text-neu-800 underline hover:no-underline dark:text-neu-50"
105+
className="typography-link dark:text-neu-50"
106106
href="/conf/2025/resources/#code-of-conduct"
107107
>
108108
Code of Conduct
109109
</Link>
110110
. We also highly recommend that speakers take our online{" "}
111111
<a
112-
className="text-neu-800 underline hover:no-underline dark:text-neu-50"
112+
className="typography-link dark:text-neu-50"
113113
target="_blank"
114114
href="https://training.linuxfoundation.org/linux-courses/open-source-compliance-courses/inclusive-speaker-orientation"
115115
>
@@ -169,7 +169,7 @@ function NotesTab() {
169169
<a
170170
href="https://youtu.be/2I5fYBLCfUA"
171171
target="_blank"
172-
className="text-neu-800 underline hover:no-underline dark:text-neu-50"
172+
className="typography-link dark:text-neu-50"
173173
>
174174
Getting Over Your Imposter Syndrome to Become a Conference Speaker
175175
</a>
@@ -183,8 +183,13 @@ function NotesTab() {
183183
community and share your ideas and the work that you are doing and we
184184
strongly encourage first-time speakers to submit talks for our events.
185185
In the instance that you aren't sure about your abstract,{" "}
186-
<a href="mailto:[email protected]">reach out to us</a> and we will
187-
be more than happy to work with you on your proposal.
186+
<a
187+
href="mailto:[email protected]"
188+
className="typography-link dark:text-neu-50"
189+
>
190+
reach out to us
191+
</a>{" "}
192+
and we will be more than happy to work with you on your proposal.
188193
</p>
189194
</div>
190195
)
@@ -337,7 +342,7 @@ export function CallForProposals() {
337342
For any questions regarding the CFP process, please email{" "}
338343
<a
339344
href="mailto:[email protected]"
340-
className="text-neu-800 underline hover:no-underline dark:text-neu-50"
345+
className="typography-link dark:text-neu-50"
341346
>
342347
343348
</a>
@@ -351,7 +356,7 @@ export function CallForProposals() {
351356
<a
352357
target="_blank"
353358
href="https://sessionize.com/playbook/submit-your-session-for-an-event"
354-
className="text-neu-800 underline hover:no-underline dark:text-neu-50"
359+
className="typography-link dark:text-neu-50"
355360
>
356361
how to submit your session
357362
</a>{" "}

src/app/conf/2025/components/register-section/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function RegisterSection({ className, ...props }: RegisterSectionProps) {
3636
email. If you did not, please contact us for more details:{" "}
3737
<a
3838
href="mailto:[email protected]"
39-
className="gql-focus-visible text-neu-800 underline hover:no-underline"
39+
className="typography-link"
4040
>
4141
4242
</a>
@@ -57,7 +57,7 @@ export function RegisterSection({ className, ...props }: RegisterSectionProps) {
5757
register as a Sponsor. For further questions, please email us:{" "}
5858
<a
5959
href="mailto:[email protected]"
60-
className="gql-focus-visible text-neu-800 underline hover:no-underline"
60+
className="typography-link"
6161
>
6262
6363
</a>

tailwind.config.ts

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ const config: Config = {
7979
typography,
8080
containerQueries,
8181
plugin(({ addUtilities }) => {
82-
const headingStyles = {
82+
// heading styles
83+
addUtilities({
8384
".typography-d1, .typography-h1, .typography-h2, .typography-h3": {
8485
lineHeight: "1.2",
8586
},
@@ -107,9 +108,10 @@ const config: Config = {
107108
fontSize: "32px",
108109
},
109110
},
110-
}
111+
})
111112

112-
const bodyStyles = {
113+
// paragraph styles
114+
addUtilities({
113115
".typography-body-lg, .typography-body-md, .typography-body-sm, .typography-body-xs":
114116
{
115117
lineHeight: "1.5",
@@ -138,9 +140,10 @@ const config: Config = {
138140
fontSize: "12px",
139141
},
140142
},
141-
}
143+
})
142144

143-
const specialStyles = {
145+
// other text styles
146+
addUtilities({
144147
".typography-button, .typography-tagline": {
145148
fontSize: "16px",
146149
lineHeight: "1",
@@ -154,9 +157,17 @@ const config: Config = {
154157
lineHeight: "1",
155158
textTransform: "uppercase",
156159
},
157-
}
160+
})
158161

159-
addUtilities({ ...headingStyles, ...bodyStyles, ...specialStyles })
162+
addUtilities({
163+
".typography-link": {
164+
color: "theme('colors.neu-800')",
165+
textDecoration: "underline",
166+
"&:hover": {
167+
textDecoration: "none",
168+
},
169+
},
170+
})
160171
}),
161172
],
162173
darkMode: ["class", 'html[class~="dark"]'],

0 commit comments

Comments
 (0)