From 78a33d4aa45bbdbcb4c9cb6ea3b751f4f991735d Mon Sep 17 00:00:00 2001 From: Konstantin Chernenko Date: Tue, 30 May 2023 21:32:20 +0200 Subject: Use JetBrains Sans as default font (#3017) --- .../resources/dokka/styles/font-jb-sans-auto.css | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 plugins/base/src/main/resources/dokka/styles/font-jb-sans-auto.css (limited to 'plugins/base/src/main/resources/dokka/styles/font-jb-sans-auto.css') diff --git a/plugins/base/src/main/resources/dokka/styles/font-jb-sans-auto.css b/plugins/base/src/main/resources/dokka/styles/font-jb-sans-auto.css new file mode 100644 index 00000000..95d8ef83 --- /dev/null +++ b/plugins/base/src/main/resources/dokka/styles/font-jb-sans-auto.css @@ -0,0 +1,32 @@ +/* Light weight */ +@font-face { + font-family: 'JetBrains Sans'; + src: url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-Light.woff2') format('woff2'), url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-Light.woff') format('woff'); + font-weight: 300; + font-style: normal; +} +/* Regular weight */ +@font-face { + font-family: 'JetBrains Sans'; + src: url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-Regular.woff2') format('woff2'), url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-Regular.woff') format('woff'); + font-weight: 400; + font-style: normal; +} +/* SemiBold weight */ +@font-face { + font-family: 'JetBrains Sans'; + src: url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-SemiBold.woff2') format('woff2'), url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans-SemiBold.woff') format('woff'); + font-weight: 600; + font-style: normal; +} + +@supports (font-variation-settings: normal) { + @font-face { + font-family: 'JetBrains Sans'; + src: url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans.woff2') format('woff2 supports variations'), + url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans.woff2') format('woff2-variations'), + url('https://resources.jetbrains.com/storage/jetbrains-sans/JetBrainsSans.woff') format('woff-variations'); + font-weight: 100 900; + font-style: normal; + } +} -- cgit