Guides
Custom JS and CSS Guide
Add custom JavaScript and CSS to your Kener instance with static files or inline CSS
Use this guide to customize Kener with your own JavaScript and CSS.
Add custom JavaScript
- Add your JS file to
static/(for examplestatic/custom.js). - Open
src/app.html. - Add your script tag before
</body>:
<script src="/custom.js"></script>
Add custom CSS
You can add CSS using either a file or inline CSS.
Option 1: CSS file
- Add your CSS file to
static/(for examplestatic/custom.css). - Open
src/app.html. - Add this in
<head>:
<link rel="stylesheet" href="/custom.css" />
If you use a subpath deployment, include the base path in the asset URL.
Example with /status base path:
<script src="/status/custom.js"></script>
<link rel="stylesheet" href="/status/custom.css" />
For subpath setup details, see Base Path Deployment.
Option 2: Inline CSS in dashboard
- Go to Manage → Customizations → Custom CSS.
- Add raw CSS.
- Click Save Custom CSS.
.my-class {
color: red;
}
Caution
Do not include <style> tags in the Custom CSS editor.
Card border radius example
Use this CSS to make all card components square (border radius 0) without Tailwind utility classes:
.rounded-3xl,
.rounded-xl,
.rounded-2xl,
.rounded-md,
.rounded-btn,
.rounded-full {
border-radius: 0 !important;
}
Verify changes
- Hard-refresh your status page.
- Open browser DevTools and confirm custom JS/CSS files load without 404 errors.
- Confirm your visual changes are applied.