summaryrefslogtreecommitdiffstats
path: root/tailwind.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-28 09:31:07 +0100
committerGitHub <noreply@github.com>2024-03-28 08:31:07 +0000
commit226a82a9396dc94f362ba27bd1c9318630df74b4 (patch)
treecd4b4ff394c6e8d0e10ed700e0c3622c23c9493c /tailwind.config.js
parent7443a10fc3d722d3326a0cb7b15b208f907c72d7 (diff)
downloadgitea-226a82a9396dc94f362ba27bd1c9318630df74b4.tar.gz
gitea-226a82a9396dc94f362ba27bd1c9318630df74b4.zip
Migrate font-family to tailwind (#30118)
Enable us to use tailwind's [`font-family`](https://tailwindcss.com/docs/font-family) classes as well as remove `gt-mono` in favor of `tw-font-mono`. I also merged the "compensation" to one selector, previously this was two different values 0.9em and 0.95em. I did not declare a `serif` font because I don't think there will ever be a use case for those. Command ran: ```sh perl -p -i -e 's#gt-mono#tw-font-mono#g' web_src/js/**/* templates/**/*
Diffstat (limited to 'tailwind.config.js')
-rw-r--r--tailwind.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tailwind.config.js b/tailwind.config.js
index 5bce37e023..d49e9d7a1c 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -68,6 +68,10 @@ export default {
'3xl': '24px',
'full': 'var(--border-radius-circle)', // 50%
},
+ fontFamily: {
+ sans: 'var(--fonts-regular)',
+ mono: 'var(--fonts-monospace)',
+ },
fontWeight: {
light: 'var(--font-weight-light)',
normal: 'var(--font-weight-normal)',