Skip to content

notion-custom-fonts by aquariuslt

Screenshot of notion-custom-fonts

Details

Authoraquariuslt

LicenseMIT

Categorynotion.so

Created

Updated

Size3.4 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

customize your notion fonts (cjk + latin)

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         notion-custom-fonts
@version      20241205.05.41
@namespace    https://userstyles.world/user/aquariuslt
@description  customize your notion fonts (cjk + latin)
@author       aquariuslt
@license      MIT
==/UserStyle== */

@-moz-document domain("notion.so") {
/* fonts definition */
@font-face {
  font-family: 'CustomFontCJK';
  src: local('Noto Serif CJK SC Medium'), local('Noto Serif SC');
  unicode-range: U+4E00-9FFF;
}

@font-face {
  font-family: 'CustomFontCJK-Bold';
  src: local('Noto Serif CJK SC Medium'), local('Noto Serif SC SemiBold');
  unicode-range: U+4E00-9FFF;
}

@font-face {
  font-family: 'CustomFontLatin';
  src: local('Noto Serif Medium'), local('Noto Serif Thin');
  unicode-range: U+0000-007F, U+0080-00FF;
}


@font-face {
  font-family: 'CustomFontCode';
  src: local('Cascadia Code'), local('Consolas'), local('Courier');
  unicode-range: U+0000-007F, U+0080-00FF;
}

/* heading */
#notion-app > * h1,
#notion-app > * h2 {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-variant-ligatures: no-common-ligatures;
  font-weight: 600;
}



/* h2 */
#notion-app > * h3 {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-variant-ligatures: no-common-ligatures;
}

/* h3 */
#notion-app > * h4 {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-variant-ligatures: no-common-ligatures;
}


/* normal text block */
#notion-app > * .notion-text-block > * div.notranslate {
  font-family: 'CustomFontCJK', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-weight: normal;
  font-variant-ligatures: no-common-ligatures;
}


/* code block */
#notion-app > * .notion-code-block > * div.notranslate {
  font-family: 'CustomFontCode', 'CustomFontLatin', monospaced !important;
  font-variant-ligatures: no-common-ligatures;
}

/* list-item */
#notion-app > * .notion-page-block > * div.notranslate,
#notion-app > * .notion-collection-item > * div,
#notion-app > * .notion-collection_view_page-block > * div.notranslate {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif;
  font-variant-ligatures: no-common-ligatures;
}


/* page property */
/* page placeholder */
#notion-app > * div[aria-label="Page properties"] {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-variant-ligatures: no-common-ligatures;
}

/* template button */
#notion-app > * div[role="button"] {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-variant-ligatures: no-common-ligatures;
}


/* breadcrumbs */
/* sidebar */
.notion-sidebar-container,
.notion-topbar {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-weight: 500;
  font-variant-ligatures: no-common-ligatures;
}


/* inbox */
/* search modal */
.notion-scroller > div,
.notion-search-menu > * div {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-variant-ligatures: no-common-ligatures;
}



/* account settings modal */
.notion-space-settings {
  font-family: 'CustomFontCJK-Bold', 'CustomFontLatin', ui-sans-serif, sans-serif !important;
  font-variant-ligatures: no-common-ligatures;
}
}

Reviews

No reviews yet.