From d7536947a7fc3f9b60ba3c8f19c2530ca00110a9 Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Mon, 19 Dec 2022 19:41:06 +0000 Subject: [PATCH] Simplify `serif = sansSerif` example :memo: --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index c4ab77eb..cd51b7ab 100644 --- a/README.md +++ b/README.md @@ -139,23 +139,23 @@ stylix.fonts = { }; ``` -You might like to set `serif = sansSerif` for a more uniform look: +These can be changed as you like. + +To make things more uniform, you can replace the serif font with sans-serif: ```nix -stylix.fonts = rec { - serif = sansSerif; - - sansSerif = { - package = pkgs.dejavu_fonts; - name = "DejaVu Sans"; - }; -}; +stylix.fonts.serif = config.stylix.fonts.sansSerif; ``` -Or even use your favorite monospace font for all of them! +Or even use monospace for everything: -All that really matters is that `monospace` is actually monospace, as using a -non-monospace font there will probably break your terminal. +```nix +stylix.fonts = { + serif = config.stylix.fonts.monospace; + sansSerif = config.stylix.fonts.monospace; + emoji = config.stylix.fonts.monospace; +}; +``` ## Turning targets on and off