Skip to content

Commit 4d43798

Browse files
authored
Remove space cadet fonts 🐡 (#60)
* Remove these space cadet fonts 🐡 * Add links to hero items * Use JuliaMono as a monospace font let's see how this goes! * Update style.css * Add symbols
1 parent d9b500d commit 4d43798

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

β€Ždocs/src/.vitepress/theme/style.cssβ€Ž

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
@import url(https://fonts.googleapis.com/css?family=Space+Mono:regular,italic,700,700italic);
2-
@import url(https://fonts.googleapis.com/css?family=Space+Grotesk:regular,italic,700,700italic);
3-
41
/* Customize default theme styling by overriding CSS variables:
52
https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
63
*/
@@ -19,15 +16,19 @@ https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/var
1916

2017
/* Fonts */
2118

19+
@font-face {
20+
font-family: JuliaMono-Regular;
21+
src: url("https://cdn.jsdelivr.net/gh/cormullion/juliamono/webfonts/JuliaMono-Regular.woff2");
22+
}
23+
2224
:root {
2325
/* Typography */
2426
--vp-font-family-base: "Barlow", "Inter var experimental", "Inter var",
2527
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
2628
Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
2729

2830
/* Code Snippet font */
29-
--vp-font-family-mono: "Space Mono", Menlo, Monaco, Consolas, "Courier New",
30-
monospace;
31+
--vp-font-family-mono: JuliaMono-Regular, monospace;
3132

3233
}
3334

@@ -38,6 +39,12 @@ https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/var
3839
This is pretty bad for Julia folks reading even though copy+paste retains the same text.
3940
*/
4041
font-feature-settings: 'calt' 0;
42+
pre {
43+
font-family: JuliaMono-Light;
44+
};
45+
code {
46+
font-family: JuliaMono-Light;
47+
};
4148
}
4249

4350
/* Colors */
@@ -189,4 +196,4 @@ mjx-container > svg {
189196

190197
:root:is(.dark) .light-only {
191198
display: none;
192-
}
199+
}

β€Ždocs/src/code_example.mdβ€Ž

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,15 @@ for color in 0:15
2727
print("\e[49m", lpad(color, 3), " ")
2828
color % 8 == 7 && println()
2929
end
30-
````
30+
````
31+
32+
## Font
33+
34+
This package uses the JuliaMono font by default, but you can override this in CSS.
35+
36+
This is what some common symbols look like:
37+
38+
```julia
39+
] [ = $ ; ( @ { " ) ? . } ⊽ ⊼ ⊻ βŠ‹ ⊊ βŠ‰ ⊈ βŠ‡ βŠ† β‰₯ ≀ β‰’ ≑ β‰  ≉ β‰ˆ βˆͺ ∩ ∜ βˆ› √ ∘ ∌
40+
|> /> ^ % ` ∈
41+
```

β€Ždocs/src/index.mdβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ features:
3030
- icon: <img width="64" height="64" src="https://fredrikekre.github.io/Literate.jl/v2/assets/logo.png" />
3131
title: Literate.jl
3232
details: Parse scripts into markdown via Literate.jl
33+
link: https://github.com/fredrikekre/Literate.jl
3334
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="30" viewBox="0 0 256 256.32"><defs><linearGradient id="a" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"/><stop offset="100%" stop-color="#BD34FE"/></linearGradient><linearGradient id="b" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"/><stop offset="8.333%" stop-color="#FFDD35"/><stop offset="100%" stop-color="#FFA800"/></linearGradient></defs><path fill="url(#a)" d="M255.153 37.938 134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"/><path fill="url(#b)" d="M185.432.063 96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028 72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"/></svg>
3435
title: VUE components
3536
details: Explore the possibilities with VUE components
37+
link: https://vuejs.org/guide/essentials/component-basics
3638
---
3739
```
3840

0 commit comments

Comments
Β (0)