Skip to content

Themes (.orskin v2)

An .orskin is OpenROM’s official skin package. It is a plain ZIP archive with an .orskin extension, so any ZIP tool can open it. Installing a skin never requires compiling code.

Version 2 turns .orskin from a colour palette into a full skinning engine:

Pillar What it adds
A Dynamic runtime fonts (font.ttf / font.otf) applied without a restart
B Animated GIF wallpapers and dropzones
C Custom sidebar icon packs
D Modular navigation via hiddenTabs

Every v2 field is optional; a v1 bundle keeps working unchanged.

my-theme.orskin
├── skin.json # required manifest
├── wallpaper.gif # optional .gif/.png/.jpg/.jpeg/.webp
├── dropzone.gif # optional .gif/.png
├── font.ttf # optional .ttf/.otf
├── icons/ # optional sidebar overrides
│ ├── home.png
│ ├── tools.png
│ └── settings.png
├── preview.png # optional listing image
└── README.md # optional notes and credits

skin.json must sit at the archive root. Asset names are matched case-sensitively after normalising \ to /. Hidden files, symlinks and entries that escape the archive root are rejected on import.

Exports are deterministic: entries are sorted and written with a fixed timestamp, so identical inputs produce byte-identical files.

{
"id": "cyberpunk-neon",
"name": "Cyberpunk Neon",
"author": "Your Name",
"version": "2.0.0",
"specVersion": 2,
"mode": "dark",
"hasCustomFont": true,
"fontFileName": "font.ttf",
"hasCustomIcons": true,
"hasCustomDropzone": true,
"hiddenTabs": ["dreamcast"],
"ui": {
"borderRadius": 12.0,
"wallpaperOpacity": 0.2,
"wallpaperBlur": 5.0
},
"colors": {
"background": "#0d0e15",
"surface": "#161926",
"card": "#1e2235",
"accent": "#e94560",
"accentSecondary": "#00f0ff",
"text": "#ffffff",
"textMuted": "#8b949e",
"border": "#2d334d"
},
"openrom": {
"sidebarBg": "#0b0c12",
"terminalBg": "#05060a",
"terminalText": "#00e676",
"fontFamily": "Sans-Serif",
"layout": "sidebar_left"
}
}
Field Type Required Notes
id string yes Sanitised to [a-z0-9_-]; used as the install folder name.
name string yes Display name.
author string no Defaults to Unknown.
version string no SemVer. Defaults to 1.0.0.
specVersion int no Current revision is 2.
mode string no dark (default) or light.
hasCustomFont bool no Hint that the bundle ships a runtime font.
fontFileName string no Font file name inside the bundle.
hasCustomIcons bool no Hint that icons/ is present.
hasCustomDropzone bool no Hint that a dropzone.* image is present.
hiddenTabs array no Tab ids to hide; unknown ids are ignored.
ui object no Geometry, see below.
colors object yes Portable palette.
openrom object no Namespaced OpenROM extensions.

The has* flags are advisory hints for fast asset lookup; import still resolves assets by canonical filename, so a bundle with a missing flag works.

Values are #RRGGBB or #AARRGGBB. Malformed values fall back to the default palette instead of failing the import.

Key Applies to
background Window background
surface Panels, dialogs, inputs
card Cards
accent Primary highlight and CTAs
accentSecondary Optional second accent
text Primary text
textMuted Secondary text
border Explicit border colour (derived when absent)

The openrom object adds sidebarBg, terminalBg, terminalText, fontFamily and layout (sidebar_left or sidebar_right).

Key Default Clamp
borderRadius 12 0–24
wallpaperOpacity 0.15 0.0–1.0
wallpaperBlur 0 0.0–20.0

Writers targeting both v1 and v2 readers should emit the ui block and mirror the three values at the top level.

Place wallpaper.<ext> at the root for the background and dropzone.<ext> for the drag-and-drop illustration. Recognised extensions are .gif, .webp, .png, .jpg, .jpeg (dropzones: .gif, .png).

On import the assets are extracted next to skin.json and referenced from there, so a skin keeps working after the archive is moved or deleted. Animated GIF and WebP wallpapers loop automatically. Without a custom dropzone the built-in icon is used.

Ship one font.ttf or font.otf at the archive root. OpenROM registers it as the SkinCustomFont family and applies it to the whole theme without a restart. A corrupt font is ignored and the palette’s fontFamily takes over; the rest of the skin still loads.

The icons/ folder maps PNG files to navigation tabs by filename:

icons/home.png
icons/tools.png
icons/settings.png

Icons render at 24×24 logical pixels in their natural colours. Unknown names are ignored, and tabs without an override keep their built-in icon — a partial pack is valid.

hiddenTabs accepts these canonical ids:

Tab id Screen
home Convert / queue
patcher Patcher
tools Tools
dreamcast Dreamcast
plugins Plugins
settings Settings
about About
theme Theme Editor

Hidden tabs disappear from the sidebar and the compact bottom bar. If the active tab is hidden, navigation clamps to the first visible tab so the UI can never strand itself.

Limit Value
Entries per archive 512
Archive size 64 MB
Single entry 32 MB

Zip-Slip protection, symlink rejection and null-byte rejection are enforced. A failed import removes the partial directory.

  1. Build a palette in Settings → Theme Editor, or hand-write skin.json.
  2. Pick a wallpaper, dropzone and font; toggle the tabs to show or hide.
  3. Export with Settings → Export .orskin.
  4. Share the file, or publish it to the Marketplace under the Themes category.

Users install skins via Settings → Import .orskin, the Theme Editor, or by dropping the file onto the window.