summaryrefslogtreecommitdiff
path: root/src/WWW/Css.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WWW/Css.hs')
-rw-r--r--src/WWW/Css.hs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/WWW/Css.hs b/src/WWW/Css.hs
index 164b2af..05aec62 100644
--- a/src/WWW/Css.hs
+++ b/src/WWW/Css.hs
@@ -3,6 +3,8 @@ module WWW.Css where
import Control.Monad
import Clay
import Clay.Flexbox qualified as F
+import Clay.Stylesheet
+import Data.Foldable (fold)
import Data.Text (Text)
import Diagrams.Attributes (SomeColor)
@@ -12,7 +14,13 @@ import WWW.Colors qualified as G
colorVariables :: G.Gruvbox SomeColor -> Css
colorVariables gb = do
- "--html-bg" -: "test"
+ fold $ key <$> (("--" <>) <$> G.gruvboxVar) <*> gb
+ key "--html-bg" $ G._bg1 gb
+ key "--href" $ G._orange gb
+ key "--href-hover" $ G._orange' gb
+ key "--hr" $ G._gray gb
+ key "--code-bg" $ G._bg gb
+
rootColors :: Css
rootColors = do