diff options
author | Ben Sima <ben@bsima.me> | 2022-07-12 15:19:44 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-07-14 00:34:04 -0400 |
commit | 815ba6658750a97d98ff969eb0dc898bbd2f3aa4 (patch) | |
tree | bdc497b7f54df84920b6639ca033a6882e35080a /Biz/Look.hs | |
parent | db1ede967a5c89c576daf43cf3e6aa3bbf809f55 (diff) |
Add fontSmoothing
Diffstat (limited to 'Biz/Look.hs')
-rw-r--r-- | Biz/Look.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Biz/Look.hs b/Biz/Look.hs index 372dd08..2e05993 100644 --- a/Biz/Look.hs +++ b/Biz/Look.hs @@ -15,6 +15,7 @@ module Biz.Look noColorPreference, -- | Font fontStack, + fontSmoothing, -- | Clay.Text extensions textDecorationThickness, textDecorationWidth, @@ -52,6 +53,11 @@ fontStack = do fontFamily ["Camphor", "Open Sans", "Segoe UI"] [sansSerif] textRendering optimizeLegibility +fontSmoothing :: Css +fontSmoothing = do + Stylesheet.key "-webkit-font-smoothing" ("antialiased" :: Text) + Stylesheet.key "-moz-osx-font-smoothing" ("grayscale" :: Text) + hoverButton :: Css hoverButton = button # hover ? do |