Skip to content

Commit 658f274

Browse files
authored
Lighten light mode slightly (#105)
Partially undoing #101, but only partially.
1 parent 4f7f79e commit 658f274

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

public/css/hanzi-graph.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
:root {
2-
--background-color: #f6f6f6;
2+
--background-color: #fafafa;
33
--primary-font-color: rgba(0, 0, 0, 0.87);
44
--primary-font: Roboto, Helvetica, Arial, sans-serif;
5-
--primary-font-weight: 400;
5+
--primary-font-weight: 300;
66
--primary-header-height: 50px;
77
--primary-header-font-size: 30px;
88
--secondary-header-font-size: 30px;

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="description"
88
content="Learn Chinese by exploring the relationships between characters alongside examples that illustrate their use.">
99
<meta name="viewport" content="width=device-width, initial-scale=1" />
10-
<meta name="theme-color" content="#f6f6f6" media="(prefers-color-scheme: light)">
10+
<meta name="theme-color" content="#fafafa" media="(prefers-color-scheme: light)">
1111
<meta name="theme-color" content="#121212" media="(prefers-color-scheme: dark)">
1212
<script type="module">
1313
if ('serviceWorker' in navigator) {

public/js/modules/graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function getStylesheet() {
241241
'label': !isTree ? 'data(displayWord)' : edgeLabel,
242242
'color': (_ => prefersDark ? '#eee' : '#000'),
243243
'font-size': isTree ? '12px' : '10px',
244-
'text-background-color': (_ => prefersDark ? '#121212' : '#f6f6f6'),
244+
'text-background-color': (_ => prefersDark ? '#121212' : '#fafafa'),
245245
'text-background-opacity': '1',
246246
'text-background-shape': 'round-rectangle',
247247
'text-background-padding': '1px',

0 commit comments

Comments
 (0)