Skip to content

Commit 3850eff

Browse files
committed
support overriding fonts with custom properties
1 parent a29b6c1 commit 3850eff

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

src/styles/fonts.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
$defaultSansFamily:
2+
'Inter var',
3+
ui-sans-serif,
4+
system-ui,
5+
-apple-system,
6+
BlinkMacSystemFont,
7+
'Segoe UI',
8+
Roboto,
9+
'Helvetica Neue',
10+
Arial,
11+
'Noto Sans',
12+
sans-serif,
13+
'Apple Color Emoji',
14+
'Segoe UI Emoji',
15+
'Segoe UI Symbol',
16+
'Noto Color Emoji';
17+
$defaultMonoFamily:
18+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

src/styles/theming.scss

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
$sansFamily:
2-
'Inter var',
3-
ui-sans-serif,
4-
system-ui,
5-
-apple-system,
6-
BlinkMacSystemFont,
7-
'Segoe UI',
8-
Roboto,
9-
'Helvetica Neue',
10-
Arial,
11-
'Noto Sans',
12-
sans-serif,
13-
'Apple Color Emoji',
14-
'Segoe UI Emoji',
15-
'Segoe UI Symbol',
16-
'Noto Color Emoji';
17-
$monoFamily:
18-
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
1+
@import './fonts';
2+
3+
$sansFamily: var(--cucumber-sans-font-family, $defaultSansFamily);
4+
$monoFamily: var(--cucumber-mono-font-family, $defaultMonoFamily);
195
$backgroundColor: var(--cucumber-background-color, white);
206
$textColor: var(--cucumber-text-color, #222);
217
$anchorColor: var(--cucumber-anchor-color, #297bde);

0 commit comments

Comments
 (0)