From 464174b7e5e4e5c389c896173e8c7ab21badda8a Mon Sep 17 00:00:00 2001 From: s-ol Date: Fri, 5 Feb 2021 19:32:12 +0100 Subject: clean up UI code --- src/ui/theme.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/ui/theme.js (limited to 'src/ui/theme.js') diff --git a/src/ui/theme.js b/src/ui/theme.js new file mode 100644 index 0000000..372cd46 --- /dev/null +++ b/src/ui/theme.js @@ -0,0 +1,26 @@ +import css from './css'; + +css` +body { + --theme-backdrop: #1e1e1e; + --theme-fg: #eeeeee; + --theme-note-bg: #eeeeee; + --theme-note-fg: #363636; + --theme-header-fg: #121212; +} + +body.darktheme { + --theme-backdrop: #1e1e1e; + --theme-note-bg: #363636; + --theme-note-fg: #eeeeee; + --theme-header-fg: #121212; +} + +body { + color: var(--theme-fg); + background: var(--theme-backdrop); + font-family: sans-serif; + font-size: 11px; +} +`; + -- cgit v1.2.3