A Sliprail theme is a registered theme manifest plus a CSS file and optional image assets. Themes do not export JavaScript.
manifest.jsonA theme manifest requires id, displayName, description, main, and type.
{
"id": "your-registered-theme-id",
"displayName": {
"en": "My Theme",
"zh-hans": "我的主题"
},
"description": {
"en": "A custom Sliprail launcher theme",
"zh-hans": "一个自定义 Sliprail 启动器主题"
},
"main": "main.css",
"type": "Theme",
"preview": "preview.png",
"icon": "icon.svg",
"theme": {
"appearance": "Dark",
"extend": {
"top": 24,
"right": 24,
"bottom": 24,
"left": 24
}
}
}
@importThemeLight, Dark, and FollowSystemRelative url(...) references inside main.css are resolved from the theme directory.
Use these stable class names to style the desktop launcher:
.window - The outer theme canvas. Use it for background images and decorative content around the launcher.window-foreground - A pointer-transparent foreground layer for overlays and illustrations.main - The launcher content container. Apply the main background and frame styles here.search-input-box - The search input container.results - The search result area.result-item - A result row.result-item-selected - The active result row.result-item-title - The result title.result-item-subtitle - The result subtitle.app-icon - App and window icons in result rowsThe default outer padding is 10 pixels before any theme.extend value is added. Avoid changing result row height or adding expensive transitions because the list updates continuously while the user types.
manifest.jsonAfter editing CSS, load the unpacked theme again or restart Sliprail to refresh it.
Run GenerateThemePreview while the launcher is focused to capture the current window and save a lossless WebP preview in the Downloads folder.
manifest.jsonPublished themes can appear in the Sliprail theme store. Eligible GitHub themes are checked for new commits by Sliprail's update system.
Register the theme as private, use its ID in the manifest, and load the unpacked directory or ZIP file from All Themes. Local unpacked themes remain on the current device and are not automatically synchronized.