From 815ba6658750a97d98ff969eb0dc898bbd2f3aa4 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 12 Jul 2022 15:19:44 -0400 Subject: Add fontSmoothing --- Biz/Look.hs | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3