Launcher themes
A theme changes how the Leyline launcher looks: colours, corners, fonts and art. It never changes what the launcher does. Players pick one under Settings › Themes, and find more under Mods & Addons › Discover › Themes. Ctrl+Shift+Backspace always goes back to the built-in look.
Make a theme pack
A theme pack is a folder (or a .zip of one) with:
my-theme/
theme.json what it is
theme.css the one stylesheet
preview.png optional: shown on the theme's card (png or webp, up to 1 MB)
images/… optional: png, webp, svg
fonts/… optional: woff2
LICENSE.txt optional: README, LICENSE, LICENCE, CREDITS or OFL (.txt or .md)Nothing else. No JavaScript, ever, and no HTML. The whole pack is at most 5 MB and 64 files, and files sit at most two folders down.
theme.json
{
"id": "night-owl",
"name": "Night Owl",
"author": "TODO(owner)",
"version": "1.0.0",
"licence": "MIT",
"preview": "preview.png",
"kind": "dark",
"description": "Deep blue, soft corners."
}| Field | Needed | Rule |
|---|---|---|
id | yes | 3–32 lower-case letters, digits and single dashes, starting with a letter; not a built-in's id. A Workshop pack's id is its Workshop id (mod:<id>). |
name, author, version, licence | yes | text (licence: an SPDX id such as MIT or CC-BY-4.0) |
kind | yes | what the pack builds on: dark or light (older packs' rounded-dark and classic read as dark, rounded-light as light) |
preview | no | a png or webp in the pack |
description | no | up to 300 characters |
theme.css
kind picks the starting look; your CSS goes on top of it.
dark / light. The look reads every colour, corner, font and border from --t-* custom properties. Most packs only set these:
:root {
--t-bg: #0b1020; /* the window */
--t-bg-image: none; /* or url("images/bg.webp") */
--t-chrome: #0f1530; /* title bar, side bar, play bar */
--t-surface: #121933; /* panels and cards */
--t-surface-2: #182143; /* inputs, cards inside panels */
--t-raised: #202b55; /* buttons, hover */
--t-border: #283563;
--t-border-strong: #3a4a85;
--t-border-w: 1px;
--t-text: #eef1ff;
--t-text-2: #cdd4f2; /* body copy */
--t-muted: #a4acd0; /* hints, labels */
--t-accent: #8ab4ff; /* PLAY, the picked tab, links */
--t-accent-strong: #a9c7ff; /* hover on the accent */
--t-on-accent: #0b1020; /* text on the accent */
--t-accent-soft: rgba(138, 180, 255, 0.15);
--t-accent-2: #a58bff; /* the second colour: the account letter, PLAY's gradient */
--t-mark-opacity: 0.13; /* the Leyline mark behind the Home card */
--t-ok: #5ad58a; --t-warn: #f2c14e; --t-bad: #ff8a80; --t-danger: #e5484d;
--t-radius: 12px; --t-radius-sm: 10px; --t-radius-xs: 6px;
--t-font: "Owl Sans", Inter, system-ui, sans-serif;
--t-font-display: var(--t-font); /* headings */
--t-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}Panels and cards float on the website's backdrop picture as a translucent, blurred layer. Their tokens are built from the ones above, so most packs never touch them; set them to change that layer:
:root {
--t-panel: rgba(18, 25, 51, 0.82); /* pages' panels and Home's cards */
--t-panel-border: #4a5a95; /* their brighter 1px border */
--t-panel-head: rgba(255, 255, 255, 0.05); /* the header strip behind a panel's title */
--t-panel-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
--t-panel-blur: 14px;
--t-card: rgba(32, 43, 85, 0.88); /* cards inside a panel (mods, realms) */
--t-card-border: #3a4a85;
--t-gold: #f1cf86; --t-gold-bg: rgba(217, 164, 65, 0.12); --t-gold-border: rgba(217, 164, 65, 0.45); /* the client version chip */
--t-backdrop-wash: linear-gradient(180deg, rgba(11, 13, 20, 0.46), rgba(11, 13, 20, 0.74) 80%);
--t-backdrop: none; /* no website picture behind this theme (or url("images/bg.webp")) */
}
@font-face { font-family: "Owl Sans"; src: url("fonts/owl-sans.woff2") format("woff2"); }Keep text readable: aim for a contrast of at least 4.5:1 for --t-text, --t-text-2 and --t-muted on --t-surface, and for --t-on-accent on --t-accent.
Plain rules may target any element of the launcher (.titlebar, .side, .nav.on, .panel, .btn, .card, .playbar, .play, and so on). html[data-theme="<your id>"] is set while your pack is on.
What the checker allows
Leyline parses theme.css and rebuilds it from an allowlist. Anything outside it refuses the whole pack, with the reason shown:
- Rules: plain rules,
@media,@supports,@font-face,@keyframes. No@import,@namespace,@charsetor any other at-rule, and no nesting. - Properties: any custom property (
--anything), plus colours, backgrounds, borders, corners, shadows, filters, fonts and text styling, padding, margin, gap, sizes, transforms, transitions, animations, masks and scrollbar colours. Not allowed:display,position,visibility,z-index,pointer-events,top/left/inset, andcontentother than"",noneornormal(a theme cannot add words). url()only names a png, webp, svg or woff2 file inside the pack (url("images/bg.webp")). Nohttp:,https:,//,data:,file:or...@font-facesrcmust be a woff2 in the pack.- Never:
expression,javascript:,behavior,-moz-binding,image-set,attr(), backslash escapes,<, or HTML comments. - Files: checked by their first bytes as well as their names. An svg may not have scripts,
on…=handlers,<foreignObject>, entities or any link outside itself.
The pack is checked when it is installed and again every time it loads. The launcher's window only loads scripts that ship with the app, fonts from itself or data:, and images from itself, data: or the website's own origin (https://leylinelauncher.com and its old name https://play.openvanilla.app, for its backdrop picture); a pack's url() can only name its own files, so a theme can't load anything from the internet.
Try it
Settings › Themes › INSTALL FROM A FOLDER… and pick your folder (or INSTALL FROM A ZIP…). Press PREVIEW to try it (KEEP or UNDO), or USE. Install it again after each change. If a rule is refused, the message says which one and why.
Publish a theme pack
Put your pack in a public repo, then use Add your project on the Workshop (/wrath/mods/submit) with the category Launcher themes. Players find it under Discover › Themes, get the zip from your repo and use INSTALL FROM A ZIP.
Theme packs are open content (CSS, images, fonts): no game files and no game art. Use only art and fonts you made or may share, and say their licence.
See Publishing for how a Workshop link is listed.
These pages are in the repo at docs/leyline. Source