diff options
author | silverwind <me@silverwind.io> | 2024-03-28 09:31:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 08:31:07 +0000 |
commit | 226a82a9396dc94f362ba27bd1c9318630df74b4 (patch) | |
tree | cd4b4ff394c6e8d0e10ed700e0c3622c23c9493c /tailwind.config.js | |
parent | 7443a10fc3d722d3326a0cb7b15b208f907c72d7 (diff) | |
download | gitea-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.js | 4 |
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)', |