Skip to content

Commit b9b210b

Browse files
authored
Improve inline code contrast (#2182)
1 parent 0dad37f commit b9b210b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.changeset/six-bottles-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cloudfour/patterns': patch
3+
---
4+
5+
Inline code elements inside of lighter gray containers now have improved contrast.

src/base/_themes.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
--theme-color-border-text-group: var(--theme-color-border-base);
2222
--theme-color-text-action: #{color.$text-action};
2323
--theme-color-text-base: #{color.$text-dark};
24-
--theme-color-text-code: #{color.$base-fuchsia};
24+
--theme-color-text-code: #{color.$text-code};
2525
--theme-color-text-emphasis: var(--theme-color-text-base);
2626
--theme-color-text-muted: #{color.$text-dark-muted};
2727
--theme-opacity-del: #{opacity.$muted};

src/tokens/color/text.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"action": {
2121
"value": "{color.base.blue.value}",
2222
"comment": "Accessible on white and lighter-gray."
23+
},
24+
"code": {
25+
"value": "hsla(322, 98%, 40%, 0.94)",
26+
"comment": "Similar to the base fuchsia, but accessible on white and lighter-gray."
2327
}
2428
}
2529
}

0 commit comments

Comments
 (0)