Skip to content

Commit c9cf5dd

Browse files
Programcodeclaude
andcommitted
Bold in answers stands out from Nunito body text; toast close button themed
Rendered answers set strong text and minor headings at 800, since the typography plugin's 600 now equals the body weight. Sonner's close button takes the card colours instead of its own black circle in dark mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 0990051 commit c9cf5dd

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/components/ui/sonner.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
3434
info: "[&_[data-icon]]:bg-brand-tint [&_[data-icon]]:text-primary",
3535
actionButton: "group-[.toast]:bg-brand! group-[.toast]:text-white! group-[.toast]:font-display! group-[.toast]:rounded-md! group-[.toast]:shadow-[0_3px_0_var(--do-primary-ledge)]! group-[.toast]:h-8! group-[.toast]:px-3!",
3636
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
37+
closeButton: "group-[.toast]:bg-card! group-[.toast]:text-muted-foreground! group-[.toast]:border-2! group-[.toast]:border-border! hover:group-[.toast]:text-foreground!",
3738
},
3839
}}
3940
{...props}

‎src/index.css‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,12 @@ passes AA on every surface; buttons fill with --do-primary (#0A6FF0) and white t
10431043
}
10441044
}
10451045

1046+
/* Body text is Nunito 600, so emphasis and minor headings in rendered answers step up to 800;
1047+
the typography plugin's 600 would read as plain text. Unlayered, so it beats the plugin. */
1048+
.prose :where(strong, b, h3, h4):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
1049+
font-weight: 800;
1050+
}
1051+
10461052
/* Scroll margin for anchors under the sticky header. Unlayered, so it wins over scroll-mt-* as in v3. */
10471053
[id] {
10481054
scroll-margin-top: 5rem;

0 commit comments

Comments
 (0)