mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
feat: use Hack font for monospace text
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
cp ./node_modules/katex/dist/katex.min.css $(realpath ./styles/)
|
cp ./node_modules/katex/dist/katex.min.css $(realpath ./styles/)
|
||||||
cp -r ./node_modules/katex/dist/fonts/ $(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
|
cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css
|
||||||
|
cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css
|
||||||
ln -s $(realpath ./src/styles.css) $(realpath ./styles/)
|
cp $(realpath ./src/fonts.css) $(realpath ./styles/)/fonts.css
|
||||||
|
cp $(realpath ./src/styles.css) $(realpath ./styles/)/styles.css
|
||||||
|
|
||||||
yarn tsc --watch
|
yarn tsc --watch
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
rm -rf dist/
|
rm -rf dist/
|
||||||
|
|
||||||
cp ./node_modules/katex/dist/katex.min.css $(realpath ./styles/)
|
cp ./node_modules/katex/dist/katex.min.css $(realpath ./styles/)
|
||||||
cp -r ./node_modules/katex/dist/fonts/ $(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
|
cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css
|
||||||
|
cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css
|
||||||
ln -s $(realpath ./src/styles.css) $(realpath ./styles/)
|
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 commonjs --outDir ./dist/cjs --target es2015
|
||||||
yarn tsc --module esnext --outDir ./dist/es --target es6
|
yarn tsc --module esnext --outDir ./dist/es --target es6
|
||||||
|
|||||||
37
packages/editor/src/fonts.css
Normal file
37
packages/editor/src/fonts.css
Normal 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;
|
||||||
|
}
|
||||||
37
packages/editor/styles/fonts.css
Normal file
37
packages/editor/styles/fonts.css
Normal 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;
|
||||||
|
}
|
||||||
BIN
packages/editor/styles/fonts/hack-bold.woff
Normal file
BIN
packages/editor/styles/fonts/hack-bold.woff
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-bold.woff2
Normal file
BIN
packages/editor/styles/fonts/hack-bold.woff2
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-bolditalic.woff
Normal file
BIN
packages/editor/styles/fonts/hack-bolditalic.woff
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-bolditalic.woff2
Normal file
BIN
packages/editor/styles/fonts/hack-bolditalic.woff2
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-italic.woff
Normal file
BIN
packages/editor/styles/fonts/hack-italic.woff
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-italic.woff2
Normal file
BIN
packages/editor/styles/fonts/hack-italic.woff2
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-regular.woff
Normal file
BIN
packages/editor/styles/fonts/hack-regular.woff
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-regular.woff2
Normal file
BIN
packages/editor/styles/fonts/hack-regular.woff2
Normal file
Binary file not shown.
Reference in New Issue
Block a user