mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 01:39:26 +02:00
add support for custom fonts; closes #74
This commit is contained in:
parent
ac96fd9c96
commit
263adec70a
16 changed files with 67 additions and 7 deletions
25
docs/rice/README.md
Normal file
25
docs/rice/README.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# custom fonts
|
||||
|
||||
to change the fonts in the web-UI, first create a css file with your customizations, for example `customfonts.css`, for example in your webroot
|
||||
|
||||
add this to your copyparty config so the css file gets loaded: `--html-head='<link rel="stylesheet" href="/customfonts.css">'`
|
||||
|
||||
make your changes in the css file; this is the default values to get you started:
|
||||
|
||||
```css
|
||||
:root {
|
||||
--font-main: sans-serif;
|
||||
--font-serif: serif;
|
||||
--font-mono: 'scp';
|
||||
}
|
||||
```
|
||||
|
||||
if you are introducing a new ttf/woff font, don't forget to declare the font itself in the css file; here's one of the default fonts from `ui.css`:
|
||||
|
||||
```css
|
||||
@font-face {
|
||||
font-family: 'scp';
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'), url(deps/scp.woff2) format('woff2');
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue