Skip to content

Commit

Permalink
Merge pull request #8797 from owncloud/allow-font-family-in-theming
Browse files Browse the repository at this point in the history
feat: add font family to theming
  • Loading branch information
kulmann committed Apr 12, 2023
1 parent 7779a55 commit dca3034
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions theming/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ In general, the theme loader looks for a `designTokens` key inside your theme co
"designTokens": {
"breakpoints": {},
"colorPalette": {},
"fontFamily": "",
"fontSizes": {},
"sizes": {},
"spacing": {}
Expand Down Expand Up @@ -205,6 +206,18 @@ Font size variables get prepended with `--oc-font-size-`, so e.g. *"default"* cr
}
```

### Font family

You can change the font family according to your needs. The font family gets written into the `--oc-font-family` CSS variable.

```json
{
"fontFamily": ""
}
```

Please note that you also need to make the font available as a `font-face` via CSS.

### Sizes

Use sizing variables to change various UI elements, such as icon and logo appearance, table row or checkbox sizes, according to your needs.
Expand Down Expand Up @@ -330,6 +343,7 @@ An empty template for your custom theme is provided below, and you can use the i
"large": "",
"medium": ""
},
"fontFamily": "",
"sizes": {
"form-check-default": "",
"height-small": "",
Expand Down

0 comments on commit dca3034

Please sign in to comment.