Skip to content

Commit 5796e78

Browse files
authored
style: global css heading font to semibold from bold and FAQs spacing between chevron and text (#15)
* style: accordion trigger and chevron gap set for FAQs * fix: figma width
1 parent 38bb1ff commit 5796e78

5 files changed

Lines changed: 16 additions & 15 deletions

File tree

apps/website/src/components/home/faq-accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function FAQAccordion() {
4747
<Accordion size="lg" type="single" className="w-full" collapsible variant="open">
4848
{CONTENT.map(({ title, content, icon: Icon }) => (
4949
<AccordionItem key={title} value={title}>
50-
<AccordionTrigger>
50+
<AccordionTrigger className="gap-2">
5151
<div className="flex items-center gap-3">
5252
<Icon size={24} strokeWidth={1.5} className="text-fg-secondary shrink-0" aria-hidden="true" />
5353
<span>{title}</span>

apps/website/src/components/mdx-components-docs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const components = (examples: typeof Examples | undefined) => ({
195195
return <AccordionItem {...props} />
196196
},
197197
AccordionTrigger: (props: AccordionTriggerProps) => {
198-
return <AccordionTrigger {...props} />
198+
return <AccordionTrigger className="gap-2" {...props} />
199199
},
200200
AccordionContent: (props: AccordionContentProps) => {
201201
return <AccordionContent {...props} />

apps/website/src/content/docs/getting-started/figma.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Get the full Radian Figma kit for free in Figma community
77
Available on the Figma Community, Radian is a free design system and UI kit built for solo designers, freelancers, startups, agencies, and organizations. With ever-expanding UI
88
layouts, components and patterns, Radian keeps evolving to support your growth and collaboration.
99

10-
<Image src="/doc/figmacoverimage.png" width="716" height="405" alt="Figma Cover Image" loading="eager" />
10+
<Image src="/doc/figmacoverimage.png" width="720" height="405" alt="Figma Cover Image" loading="eager" />
1111

1212
<br />
1313

@@ -17,19 +17,19 @@ layouts, components and patterns, Radian keeps evolving to support your growth a
1717

1818
1. **Get the File:** Get the Radian design system file from Figma community
1919

20-
<Image src="/doc/downloadfigmafile.png" width="716" height="450" alt="Download Figma File" loading="eager" />
20+
<Image src="/doc/downloadfigmafile.png" width="720" height="450" alt="Download Figma File" loading="eager" />
2121
2. **Make a Copy:** Duplicate the file and move it to your intended project folder. Rename the file to “Project_Name Design System”
2222

23-
<Image src="/doc/duplicatefile.png" width="716" height="450" alt="Duplicate File" loading="eager" />
23+
<Image src="/doc/duplicatefile.png" width="720" height="450" alt="Duplicate File" loading="eager" />
2424
3. **Tweaks:** Define primary colors, or fonts that aligns with your project
2525

26-
<Image src="/doc/colorprimitive.png" width="716" height="450" alt="Map Colors" loading="eager" />
26+
<Image src="/doc/colorprimitive.png" width="720" height="450" alt="Map Colors" loading="eager" />
2727
4. **Start Building:** All you components will be adjusted to your selected color and fonts. Publish the library and start building your app.
2828

29-
<Image src="/doc/colormapped.png" width="716" height="450" alt="Color Mapped" loading="eager" />
29+
<Image src="/doc/colormapped.png" width="720" height="450" alt="Color Mapped" loading="eager" />
3030
5. **New Theme:** All the design structure remains the same, just the brand color is changed.
3131

32-
<Image src="/doc/newtheme.png" width="716" height="450" alt="New Theme" loading="eager" />
32+
<Image src="/doc/newtheme.png" width="720" height="450" alt="New Theme" loading="eager" />
3333

3434
## Whats Inside?
3535

apps/website/src/css/globals.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203

204204
/* Heading 1 */
205205
@utility heading-1 {
206-
@apply font-heading text-[2.25rem] font-bold leading-[2.75rem];
206+
@apply font-heading text-[2.25rem] font-semibold leading-[2.75rem];
207207

208208
@media (width >=theme(--breakpoint-sm)) {
209209
font-size: 3rem;
@@ -218,7 +218,7 @@
218218

219219
/* Heading 2 */
220220
@utility heading-2 {
221-
@apply font-heading text-[2rem] font-bold leading-[2.5rem];
221+
@apply font-heading text-[2rem] font-semibold leading-[2.5rem];
222222

223223
@media (width >=theme(--breakpoint-sm)) {
224224
font-size: 2.5rem;
@@ -233,7 +233,7 @@
233233

234234
/* Heading 3 */
235235
@utility heading-3 {
236-
@apply font-heading text-[1.875rem] font-bold leading-[2.375rem];
236+
@apply font-heading text-[1.875rem] font-semibold leading-[2.375rem];
237237

238238
@media (width >=theme(--breakpoint-sm)) {
239239
font-size: 2.25rem;
@@ -248,7 +248,7 @@
248248

249249
/* Heading 4 */
250250
@utility heading-4 {
251-
@apply font-heading text-[1.75rem] font-bold leading-[2.25rem];
251+
@apply font-heading text-[1.75rem] font-semibold leading-[2.25rem];
252252

253253
@media (width >=theme(--breakpoint-sm)) {
254254
font-size: 1.875rem;
@@ -263,7 +263,7 @@
263263

264264
/* Heading 5 */
265265
@utility heading-5 {
266-
@apply font-heading text-[1.5rem] font-bold leading-[2rem];
266+
@apply font-heading text-[1.5rem] font-semibold leading-[2rem];
267267

268268
@media (width >=theme(--breakpoint-sm)) {
269269
font-size: 1.5rem;
@@ -278,7 +278,7 @@
278278

279279
/* Heading 6 */
280280
@utility heading-6 {
281-
@apply font-heading text-[1.25rem] font-bold leading-[1.75rem];
281+
@apply font-heading text-[1.25rem] font-semibold leading-[1.75rem];
282282

283283
@media (width >=theme(--breakpoint-sm)) {
284284
font-size: 1.25rem;

apps/website/src/css/website.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,14 @@
7272
html {
7373
scroll-behavior: smooth;
7474
}
75+
7576
h1,
7677
h2,
7778
h3,
7879
h4,
7980
h5,
8081
h6,
81-
[class^="heading-"] {
82+
:is(.heading-1, .heading-2, .heading-3, .heading-4, .heading-5, .heading-6) {
8283
@apply tracking-[-0.01em];
8384
}
8485
}

0 commit comments

Comments
 (0)