Skip to content

Notion Font Setting by cjm00n

Details

Authorcjm00n

LicenseMIT

Categorynotion

Created

Updated

Size1.5 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Notes

Source code

/* ==UserStyle==
@name           8/18/2022, 5:10:26 PM
@namespace      github.com/openstyles/stylus
@version        1.0.1
@description    notion font settings, copied from https://userstyles.world/style/5738/alfon-s-notion-tweak
@author         guest, alfonsusac
@preprocessor   stylus
@var text fontFamilySans "Sans Serif Font" null
@var text fontFamilySerif "Serif Font" null
@var text fontFamilyMono "Mono Font" null
==/UserStyle== */

@-moz-document domain("notion.so")
    if fontFamilySans
        @import url('https://fonts.googleapis.com/css2?family='+fontFamilySans+':ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900')
        div[style*=" sans-serif"]
            font-family fontFamilySans !important
    
    if fontFamilySerif
        @import url('https://fonts.googleapis.com/css2?family='+fontFamilySerif+':ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900')
        div[style*=" serif"]
            font-family fontFamilySerif !important
            
    if fontFamilyMono
        @import url('https://fonts.googleapis.com/css2?family='+fontFamilyMono+':ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900')
        div[style*=" monospace"]
            font-family fontFamilyMono !important
        span[class*="code-line-numbers"]
            font-family fontFamilyMono !important

Reviews

No reviews yet.