feat: use Hack font for monospace text

This commit is contained in:
thecodrr
2022-07-09 21:26:32 +05:00
parent fd77b0d9b3
commit b64a3a0b29
12 changed files with 81 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
cp ./node_modules/katex/dist/katex.min.css $(realpath ./styles/)
cp -r ./node_modules/katex/dist/fonts/ $(realpath ./styles/)
cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css
ln -s $(realpath ./src/styles.css) $(realpath ./styles/)
cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css
cp $(realpath ./src/fonts.css) $(realpath ./styles/)/fonts.css
cp $(realpath ./src/styles.css) $(realpath ./styles/)/styles.css
yarn tsc --watch

View File

@@ -1,9 +1,11 @@
rm -rf dist/
cp ./node_modules/katex/dist/katex.min.css $(realpath ./styles/)
cp -r ./node_modules/katex/dist/fonts/ $(realpath ./styles/)
cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css
ln -s $(realpath ./src/styles.css) $(realpath ./styles/)
cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css
cp $(realpath ./src/fonts.css) $(realpath ./styles/)/fonts.css
cp $(realpath ./src/styles.css) $(realpath ./styles/)/styles.css
yarn tsc --module commonjs --outDir ./dist/cjs --target es2015
yarn tsc --module esnext --outDir ./dist/es --target es6

View File

@@ -0,0 +1,37 @@
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: "Hack";
src: url("fonts/hack-regular.woff2") format("woff2"),
url("fonts/hack-regular.woff") format("woff");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-bold.woff2") format("woff2"),
url("fonts/hack-bold.woff") format("woff");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-italic.woff2") format("woff2"),
url("fonts/hack-italic.woff") format("woff");
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-bolditalic.woff2") format("woff2"),
url("fonts/hack-bolditalic.woff") format("woff");
font-weight: 700;
font-style: italic;
}

View File

@@ -0,0 +1,37 @@
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: "Hack";
src: url("fonts/hack-regular.woff2") format("woff2"),
url("fonts/hack-regular.woff") format("woff");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-bold.woff2") format("woff2"),
url("fonts/hack-bold.woff") format("woff");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-italic.woff2") format("woff2"),
url("fonts/hack-italic.woff") format("woff");
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "Hack";
src: url("fonts/hack-bolditalic.woff2") format("woff2"),
url("fonts/hack-bolditalic.woff") format("woff");
font-weight: 700;
font-style: italic;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.