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
5 changes: 5 additions & 0 deletions .changeset/blue-type-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@doc-kit/generator-react': patch
---

Use a consistent link color for inline type annotations in light and dark themes.
7 changes: 5 additions & 2 deletions packages/react/src/html/ui/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,13 @@ main {
border-radius: calc(var(--spacing, 0.25rem) * 1);

.type-link {
/* Links keep their token color; underline marks the affordance */
color: inherit;
text-decoration: underline dotted;

span {
/* Override Shiki's inline light color and rehype-shiki's !important dark color. */
color: inherit !important;
}

&:hover {
text-decoration: underline;
}
Expand Down
Loading