Skip to content

Commit

Permalink
Use Fixel font
Browse files Browse the repository at this point in the history
  • Loading branch information
navix committed Oct 25, 2024
1 parent a5a2ee2 commit 1ef11f3
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 24 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import starlight from '@astrojs/starlight';
export default defineConfig({
integrations: [
starlight({
customCss: ['./src/styles/theme.css', './src/styles/common.css'],
customCss: ['./src/fonts/fixel.css', './src/styles/theme.css', './src/styles/common.css'],
title: 'База знань Bluesky',
defaultLocale: 'root',
locales: {
Expand Down
Binary file added src/fonts/FixelVariable.ttf
Binary file not shown.
Binary file added src/fonts/FixelVariableItalic.ttf
Binary file not shown.
25 changes: 25 additions & 0 deletions src/fonts/fixel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
:root {
--sl-font: Segoe UI, Helvetica, Arial, sans-serif;
}

@supports (font-variation-settings: normal) {
:root {
--sl-font: FixelVariable, Segoe UI, Helvetica, Arial, sans-serif;
font-optical-sizing: auto;
}
}

@font-face {
font-display: swap;
font-family: FixelVariable;
font-style: normal;
font-weight: 100 900;
src: url('./FixelVariable.ttf') format('truetype');
}
@font-face {
font-display: swap;
font-family: FixelVariable;
font-style: italic;
font-weight: 100 900;
src: url('./FixelVariable.ttf') format('truetype');
}
46 changes: 23 additions & 23 deletions src/styles/theme.css
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
/* Dark mode colors. */
:root {
--sl-color-accent-low: #00273c;
--sl-color-accent: #0072a3;
--sl-color-accent-high: #a0d0ef;
--sl-color-white: #ffffff;
--sl-color-gray-1: #ebeef5;
--sl-color-gray-2: #c5c8d1;
--sl-color-gray-3: #9ea4b4;
--sl-color-gray-4: #525866;
--sl-color-gray-5: #333845;
--sl-color-gray-6: #222633;
--sl-color-black: #16181e;
--sl-color-accent-low: #00273c;
--sl-color-accent: #0072a3;
--sl-color-accent-high: #a0d0ef;
--sl-color-white: #ffffff;
--sl-color-gray-1: #ebeef5;
--sl-color-gray-2: #c5c8d1;
--sl-color-gray-3: #9ea4b4;
--sl-color-gray-4: #525866;
--sl-color-gray-5: #333845;
--sl-color-gray-6: #222633;
--sl-color-black: #16181e;
}
/* Light mode colors. */
:root[data-theme='light'] {
--sl-color-accent-low: #b9ddf4;
--sl-color-accent: #00557a;
--sl-color-accent-high: #003751;
--sl-color-white: #16181e;
--sl-color-gray-1: #222633;
--sl-color-gray-2: #333845;
--sl-color-gray-3: #525866;
--sl-color-gray-4: #858b9b;
--sl-color-gray-5: #bfc2ca;
--sl-color-gray-6: #ebeef5;
--sl-color-gray-7: #f5f6fa;
--sl-color-black: #ffffff;
--sl-color-accent-low: #b9ddf4;
--sl-color-accent: #00557a;
--sl-color-accent-high: #003751;
--sl-color-white: #16181e;
--sl-color-gray-1: #222633;
--sl-color-gray-2: #333845;
--sl-color-gray-3: #525866;
--sl-color-gray-4: #858b9b;
--sl-color-gray-5: #bfc2ca;
--sl-color-gray-6: #ebeef5;
--sl-color-gray-7: #f5f6fa;
--sl-color-black: #ffffff;
}

0 comments on commit 1ef11f3

Please sign in to comment.