如题,想一次性修改文档树、页签、顶栏、设置...的字体,CSS 该怎么写呢?
如何修改全局字体?
相关帖子
-
-
-
-
-
参考字体插件的这种写法:
@font-face { font-family: "HarmonyOS Sans SC"; font-style: normal; src: url("../plugins/siyuan-ttf-HarmonyOS_Sans_SC-and-Twemoji/HarmonyOS_Sans_SC_Regular.woff2") format("woff2"), url("../plugins/siyuan-ttf-HarmonyOS_Sans_SC-and-Twemoji/HarmonyOS_Sans_SC_Regular.woff") format("woff"); } @font-face { font-family: 'Twitter Emoji'; font-style: normal; font-weight: 400; font-display: swap; src: url("../plugins/siyuan-ttf-HarmonyOS_Sans_SC-and-Twemoji/Twemoji-15.1.0.ttf"); } :root { --b3-font-family: "HarmonyOS Sans SC", apple-system, BlinkMacSystemFont,"Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Twitter Emoji", "Noto Color Emoji", "OpenMoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important; --b3-font-family-code: "JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, var(--b3-font-family), var(--b3-font-family-emoji) !important; --b3-font-family-emoji: 'Twitter Emoji', "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji" !important; }
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于