Skip to content

Commit 111d2da

Browse files
krflkrfl
andauthored
Improve flatwhite theme (#3843)
Co-authored-by: krfl <[email protected]>
1 parent 73f8e99 commit 111d2da

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

runtime/themes/flatwhite.toml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
# Author: Alexander Brevig <[email protected]>
1+
# Author: Alexander Brevig <[email protected]>, krfl <[email protected]>
22
# Adopted from https://github.com/biletskyy/flatwhite-syntax
33

44
"attribute" = { fg = "blue_text", bg = "blue_bg" }
5-
"comment" = { fg = "base3", bg = "base7", modifiers = ["italic"] }
5+
"comment" = { fg = "base3", modifiers = ["italic"] }
66
"comment.line" = {}
77
"comment.block" = {}
88
"comment.block.documentation" = { fg = "base2" }
99
"constant" = { fg = "blue_text", bg = "blue_bg" }
10-
"constructor" = { fg = "base1", bg = "base7" }
11-
"function" = { fg = "base1", bg = "base7", modifiers = ["bold"] }
10+
"constructor" = { fg = "base1" }
11+
"function" = { fg = "base1", modifiers = ["bold"] }
1212
"keyword" = { fg = "purple_text", bg = "purple_bg" }
1313
"label" = { modifiers = ["bold"] }
1414
"namespace" = { fg = "teal_text", bg = "teal_bg" }
15-
"operator" = { fg = "base1", bg = "base7" }
15+
"operator" = { fg = "base1" }
1616
"punctuation.bracket" = { modifiers = ["bold"] }
1717
"special" = { fg = "blue_text", bg = "blue_bg" }
1818
"string" = { fg = "green_text", bg = "green_bg" }
19-
"type" = { fg = "base1", bg = "base7" }
20-
"variable" = { fg = "base1", bg = "base7" }
19+
"type" = { fg = "base1" }
20+
"variable" = { fg = "base1" }
2121
"variable.parameter" = { fg = "blue_text", bg = "blue_bg" }
2222

2323
"diagnostic" = { modifiers = ["underlined"] }
2424
"info" = { fg = "orange_text", bg = "orange_bg" }
2525
"hint" = { modifiers = ["bold"] }
2626
"warning" = { fg = "orange_text", bg = "orange_bg" }
27-
"error" = { fg = "diff_delete", bg = "base7" }
27+
"error" = { fg = "diff_delete" }
2828

2929
"markup.heading" = { fg = "purple_text", bg = "purple_bg", modifiers = [
3030
"bold",
@@ -47,11 +47,12 @@
4747
"ui.cursor" = { fg = "base1", bg = "base7", modifiers = ["reversed"] }
4848
"ui.cursor.primary" = { fg = "base1", bg = "base7", modifiers = ["reversed"] }
4949
"ui.cursor.match" = { fg = "base5", bg = "base3", modifiers = ["reversed"] }
50-
"ui.selection" = { bg = "base3" }
51-
"ui.selection.primary" = { fg = "base5", bg = "base3" }
50+
"ui.selection" = { bg = "base4" }
51+
"ui.selection.primary" = { fg = "base6", bg = "base2" }
5252

53-
"ui.virtual" = { bg = "base6" }
54-
"ui.virtual.whitespace" = { bg = "base7" }
53+
"ui.virtual" = { fg = "base5", bg = "base6" }
54+
"ui.virtual.whitespace" = { fg = "base5" }
55+
"ui.virtual.ruler" = { bg = "base6" }
5556

5657
"ui.linenr" = { bg = "base6" }
5758
"ui.linenr.selected" = { bg = "base6", modifiers = ["reversed"] }
@@ -66,15 +67,15 @@
6667
"bold",
6768
] }
6869

69-
"ui.text" = { fg = "base1", bg = "base7" }
70-
"ui.text.focus" = { fg = "base1", bg = "base6", modifiers = ["bold"] }
70+
"ui.text" = { fg = "base1" }
71+
"ui.text.focus" = { fg = "base1", modifiers = ["bold"] }
7172

7273
"ui.menu" = { fg = "base1", bg = "base6" }
7374
"ui.menu.selected" = { fg = "base1", bg = "base6", modifiers = ["reversed"] }
7475
"ui.menu.scroll" = { fg = "base1", bg = "base6" }
75-
"ui.help" = { fg = "base1", bg = "base7" }
76-
"ui.popup" = { fg = "base1", bg = "base7" }
77-
"ui.window" = { fg = "base1", bg = "base7" }
76+
"ui.help" = { fg = "base1", bg = "base6" }
77+
"ui.popup" = { fg = "base1", bg = "base6" }
78+
"ui.window" = { fg = "base1", bg = "base6" }
7879

7980
"diff.plus" = { bg = "diff_add" }
8081
"diff.delta" = { bg = "diff_change" }

0 commit comments

Comments
 (0)