diff --git a/README.md b/README.md index 79e3277..921159e 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,5 @@ ## List of available styles * [mikrotik](./mikrotik.user.css) +* [notion](./notion.user.css) * [sourcehut](./sourcehut.user.css) diff --git a/notion.user.css b/notion.user.css new file mode 100644 index 0000000..cdeeef3 --- /dev/null +++ b/notion.user.css @@ -0,0 +1,50 @@ +/* ==UserStyle== +@name notion.so +@namespace git.mfocko.xyz/mfocko/dotfiles +@updateURL https://git.mfocko.xyz/mfocko/usercss/raw/branch/main/notion.user.css +@version 1.1.6 +@description Allow switching of the fonts on notion.so. +@author mfocko +@preprocessor stylus +@var select monospace-font "Font" [ + "custom*", + "Berkeley Mono Variable", + "Cascadia Code NF", + "Comic Code Ligatures", + "Fira Code", + "Hack", + "IBM Plex Mono", + "Iosevka Term", + "Iosevka Term Slab", + "Iosevka Comfy", + "Pragmasevka", + "JetBrains Mono", + "JuliaMono", + "MonoLisa Variable", + "PragmataPro Liga", + "PragmataPro Mono Liga", + "Rec Mono Linear", + "Roboto Mono", + "SF Mono", + "Source Code Pro", + "Victor Mono", +] +@var text custom-font "Custom font" "monospace" +==/UserStyle== */ + +if monospace-font=="custom" + monospace-font=custom-font + +@-moz-document domain("notion.so") { + * [style *=" monospace"] { + font-family: monospace-font !important; + } + + * [style *=" serif"] { + font-family: "Roboto Slab" !important; + } + + * [style *=" sans"] { + font-family: "Roboto" !important; + } +}