Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions apps/www/src/content/docs/theme/typography/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ Font sizes, line heights, and letter spacing for body content.
tokens={[
{ name: "--rs-font-size-micro", value: "10px", description: "Fine print, timestamps" },
{ name: "--rs-line-height-micro", value: "12px", description: "Line height for micro" },
{ name: "--rs-letter-spacing-micro", value: "0.5px", description: "Letter spacing for micro" },
{ name: "--rs-letter-spacing-micro", value: "0.01em", description: "Letter spacing for micro" },
{ name: "--rs-font-size-mini", value: "11px", description: "Captions, badges" },
{ name: "--rs-line-height-mini", value: "16px", description: "Line height for mini" },
{ name: "--rs-letter-spacing-mini", value: "0.5px", description: "Letter spacing for mini" },
{ name: "--rs-line-height-mini", value: "14px", description: "Line height for mini" },
{ name: "--rs-letter-spacing-mini", value: "0.005em", description: "Letter spacing for mini" },
{ name: "--rs-font-size-small", value: "12px", description: "Secondary text, labels" },
{ name: "--rs-line-height-small", value: "16px", description: "Line height for small" },
{ name: "--rs-letter-spacing-small", value: "0.4px", description: "Letter spacing for small" },
{ name: "--rs-letter-spacing-small", value: "0em", description: "Letter spacing for small" },
{ name: "--rs-font-size-regular", value: "14px", description: "Default body text" },
{ name: "--rs-line-height-regular", value: "20px", description: "Line height for regular" },
{ name: "--rs-letter-spacing-regular", value: "0.25px", description: "Letter spacing for regular" },
{ name: "--rs-letter-spacing-regular", value: "-0.006em", description: "Letter spacing for regular" },
{ name: "--rs-font-size-large", value: "16px", description: "Large body text, introductions" },
{ name: "--rs-line-height-large", value: "24px", description: "Line height for large" },
{ name: "--rs-letter-spacing-large", value: "0.5px", description: "Letter spacing for large" },
{ name: "--rs-letter-spacing-large", value: "-0.011em", description: "Letter spacing for large" },
]}
/>

Expand All @@ -72,17 +72,17 @@ Font sizes, line heights, and letter spacing for headings and titles.
type="typography"
tokens={[
{ name: "--rs-font-size-t1", value: "20px", description: "Small headings (h4)" },
{ name: "--rs-line-height-t1", value: "24px", description: "Line height for t1" },
{ name: "--rs-letter-spacing-t1", value: "0", description: "Letter spacing for t1" },
{ name: "--rs-line-height-t1", value: "28px", description: "Line height for t1" },
{ name: "--rs-letter-spacing-t1", value: "-0.01em", description: "Letter spacing for t1" },
{ name: "--rs-font-size-t2", value: "24px", description: "Section headings (h3)" },
{ name: "--rs-line-height-t2", value: "32px", description: "Line height for t2" },
{ name: "--rs-letter-spacing-t2", value: "0", description: "Letter spacing for t2" },
{ name: "--rs-letter-spacing-t2", value: "-0.013em", description: "Letter spacing for t2" },
{ name: "--rs-font-size-t3", value: "28px", description: "Page headings (h2)" },
{ name: "--rs-line-height-t3", value: "36px", description: "Line height for t3" },
{ name: "--rs-letter-spacing-t3", value: "0", description: "Letter spacing for t3" },
{ name: "--rs-letter-spacing-t3", value: "-0.016em", description: "Letter spacing for t3" },
{ name: "--rs-font-size-t4", value: "32px", description: "Main titles (h1)" },
{ name: "--rs-line-height-t4", value: "40px", description: "Line height for t4" },
{ name: "--rs-letter-spacing-t4", value: "0", description: "Letter spacing for t4" },
{ name: "--rs-letter-spacing-t4", value: "-0.02em", description: "Letter spacing for t4" },
]}
/>

Expand Down
2 changes: 1 addition & 1 deletion packages/react/components/drawer/drawer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@

.title {
font-size: var(--rs-font-size-large);
font-weight: var(--rs-font-weight-semibold);
font-weight: var(--rs-font-weight-medium);
line-height: var(--rs-line-height-large);
letter-spacing: var(--rs-letter-spacing-large);
color: var(--rs-color-foreground-base-primary);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
width: 100%;
overflow-y: auto;
color: var(--rs-color-foreground-base-primary);
font-family: var(--rs-font-family);
font-family: var(--rs-font-body);
font-size: var(--rs-font-size-small);
letter-spacing: var(--rs-letter-spacing-small);
}
Expand Down
8 changes: 4 additions & 4 deletions packages/react/components/fieldset/fieldset.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

.legend {
color: var(--rs-color-foreground-base-primary);
font-weight: var(--rs-font-weight-semibold);
font-size: var(--rs-font-size-base);
line-height: var(--rs-line-height-base);
letter-spacing: var(--rs-letter-spacing-base);
font-weight: var(--rs-font-weight-medium);
font-size: var(--rs-font-size-regular);
line-height: var(--rs-line-height-regular);
letter-spacing: var(--rs-letter-spacing-regular);
padding: 0;
margin-bottom: var(--rs-space-2);
}
4 changes: 2 additions & 2 deletions packages/react/components/input/input.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@
background: var(--rs-color-background-neutral-secondary);
border-radius: max(var(--rs-radius-pill, 0px), var(--rs-radius-2));
white-space: nowrap;
height: auto;
height: var(--rs-space-6);
}

.size-large .prefix,
.size-large .suffix {
height: 22px;
height: var(--rs-space-7);
}

.prefix {
Expand Down
Loading