diff --git a/assets/build.js b/assets/build.js index 251058b..de3a66b 100644 --- a/assets/build.js +++ b/assets/build.js @@ -25,6 +25,7 @@ esbuild outfile: "../priv/static/assets/app.js", minify: productionBuild, watch: !productionBuild, + external: ["*.ttf"], plugins: [ postCSSPlugin({ plugins: [postcssImport, tailwindcss, autoprefixer], diff --git a/assets/css/app.css b/assets/css/app.css index ddd93d5..97f5f1b 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -3,11 +3,18 @@ @import "tailwindcss/components"; @import "tailwindcss/utilities"; +@font-face { + font-family: "JetBrains Mono"; + src: url(/fonts/jetbrains_mono_variable.ttf); + font-weight: 100 1000; + font-stretch: 25% 151%; +} + * { font-family: "JetBrains Mono", monospace; color: white; - font-size: 14px; - font-weight: bold; + font-size: 14px; + font-weight: bold; } html, @@ -17,7 +24,7 @@ body { } a:hover { - color: #ff9800 + color: #ff9800; } header { @@ -29,31 +36,31 @@ code { } code { - white-space: pre; - font-size: 14px; - font-weight: bold; + white-space: pre; + font-size: 14px; + font-weight: bold; } textarea { - font-size: 14px; - font-weight: bold; + font-size: 14px; + font-weight: bold; } .alert { - width: 100%; - text-align: center; + width: 100%; + text-align: center; } .alert-info { - background-color: #1ed98e; - color: black; - font-weight: bold; + background-color: #1ed98e; + color: black; + font-weight: bold; } .alert-danger { - background-color: #ff9800; - color: black; - font-weight: bold; + background-color: #ff9800; + color: black; + font-weight: bold; } -@import './highlight.css'; \ No newline at end of file +@import "./highlight.css"; diff --git a/assets/static/fonts/jetbrains_mono_variable.ttf b/assets/static/fonts/jetbrains_mono_variable.ttf new file mode 100644 index 0000000..430cff0 Binary files /dev/null and b/assets/static/fonts/jetbrains_mono_variable.ttf differ diff --git a/lib/ketbin_web/templates/layout/app.html.eex b/lib/ketbin_web/templates/layout/app.html.eex index 1a416f7..fecad96 100644 --- a/lib/ketbin_web/templates/layout/app.html.eex +++ b/lib/ketbin_web/templates/layout/app.html.eex @@ -6,9 +6,6 @@ Katbin "/> - - -