mirror of
https://github.com/danth/stylix
synced 2024-11-10 06:34:15 +00:00
Simplify serif = sansSerif
example 📝
This commit is contained in:
parent
46899f291b
commit
d7536947a7
1 changed files with 12 additions and 12 deletions
24
README.md
24
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue