Configuration
In this section, we'll look at how you can further customize and configure the default layout.
CSS Variables
By default, we provide CSS variables which let you focus on simply setting your brand color. You can set all the variables yourself like so:
- First, replace the
vars.css
import from your docs layout file with your own CSS file:
- Finally, copy the CSS variables
from GitHub and paste them in your
kit-docs.css
file.
Fonts
By default, we use the Inter font but you can provide your own like so:
- First, remove the fonts folder if you added it during installation:
- Finally, load your own fonts (see our fonts file for reference) and set the font family CSS variables like so:
Change Directory
By default, the fonts directory is set to src/fonts
. You can change the location by setting
a new alias like so:
Language (I18N)
You can translate any words used in the layout like so:
You can find all our default translations on GitHub.
Navbar
Disable
Set the scroll-padding-top
CSS variable if you're providing your own navbar so headings are
positioned correctly when loading URL's with a hash:
Slots
Links
Context
Sidebar
Slots
Links
Simple Links
You can also create a sidebar using shorthand like so:
The config above will be resolved to this:
Icons
See unplugin-icons for how to load and use icons.