Skip to content

Commit

Permalink
docs: make code in <SectionMessage> look nicer (#4269)
Browse files Browse the repository at this point in the history
* docs: make `code` in `<SectionMessage>` look nicer

* Create sweet-squids-design.md

* Update sweet-squids-design.md
  • Loading branch information
sebald authored Oct 31, 2024
1 parent 26c958a commit 05f84b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/sweet-squids-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@marigold/docs": patch
"@marigold/theme-docs": patch
---

docs: adjust font size of `code` in `<SectionMessage>` and make them less distracting
2 changes: 1 addition & 1 deletion docs/ui/mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const typography = {
),
code: (props: HTMLAttributes<HTMLElement>) => (
<code
className="my-0 inline-grid rounded bg-black/10 px-1 py-0.5 font-mono text-sm before:content-none after:content-none"
className="my-0 inline-grid rounded bg-black/5 px-1 py-0.5 font-mono text-sm before:content-none after:content-none"
{...props}
/>
),
Expand Down
2 changes: 1 addition & 1 deletion themes/theme-docs/src/components/SectionMessage.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export const SectionMessage: ThemeComponent<'SectionMessage'> = {
),
icon: cva('size-6'),
title: cva('mb-1 font-bold leading-none tracking-tight'),
content: cva('text-sm [&_p]:leading-relaxed'),
content: cva('text-sm [&_p]:leading-relaxed [&_code]:text-xs'),
};

0 comments on commit 05f84b1

Please sign in to comment.