Skip to content

Commit 8d72b9a

Browse files
authored
use sans-serif font most of the time (#97)
* use sans-serif font most of the time * add changelog entry
1 parent 33f1a1d commit 8d72b9a

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
9+
### Changed
10+
- Most content is now rendered with a sans serif font.
911

1012
## [19.0.0] - 2022-01-24
1113
### Added

src/components/CucumberReact.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.cucumberReact {
44
font-size: 14px;
5-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
5+
font-family: $sansFamily;
66
color: $textColor;
77
background: $backgroundColor;
88
}

src/components/gherkin/Attachment.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.text {
44
white-space: pre-wrap;
5-
font-family: inherit;
5+
font-family: $monoFamily;
66
font-size: 0.875em;
77
padding: 0.666em 0.75em;
88
border-radius: 0.25em;

src/components/gherkin/DocString.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import '../../styles/theming';
22

33
.docString {
4-
font-family: inherit;
4+
font-family: $monoFamily;
55
color: $docstringColor;
66
padding-bottom: 0.25em;
77
margin: 0;

src/components/gherkin/ErrorMessage.module.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
.message {
44
white-space: pre-wrap;
5-
font-family: inherit;
5+
font-family: $monoFamily;
66
font-size: 0.875em;
77
padding: 0.666em 0.75em;
88
border-radius: 0.25em;
99
margin: 0;
1010
overflow-x: auto;
1111
background-color: $errorBackgroundColor;
1212
color: $errorTextColor;
13-
}
13+
}

src/styles/theming.scss

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$sansFamily: 'Inter var', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
2+
$monoFamily: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
13
$backgroundColor: var(--cucumber-background-color, white);
24
$textColor: var(--cucumber-text-color, #222);
35
$anchorColor: var(--cucumber-anchor-color, #297bde);

0 commit comments

Comments
 (0)