themable colors

This commit is contained in:
Jan Prochazka
2020-11-11 18:30:44 +01:00
parent 98d7b3c6b9
commit 4ef7f275e6
8 changed files with 84 additions and 44 deletions

View File

@@ -1,7 +1,9 @@
import React from 'react';
import { Helmet } from 'react-helmet';
import useTheme from '../theme/useTheme';
export default function ThemeHelmet() {
const theme = useTheme();
return (
<Helmet>
<style>{`
@@ -14,6 +16,10 @@ export default function ThemeHelmet() {
.color-magenta-icon { color: #808 }
.color-yellow-icon { color: #880 }
.color-green-icon { color: #0A3; }
body {
color: ${theme.mainFont};
}
`}</style>
</Helmet>
);