Sliprail themes allow you to customize the appearance and feel of the launcher. By creating a theme, you can define styles such as colors, padding, and more.
Each theme requires a manifest.json file to define its metadata. Here are all the supported fields:
main.css). This file is loaded as a standalone sheet. Avoid @import or splitting styles across multiple CSS files.All fields should be written in JSON format, ensuring correctness.
Sliprail themes are implemented by loading a main.css file. To customize the interface effectively, you should target the following structural class names:
.window: The window container that frames the entire launcher interface. This container is designed specifically for background images, allowing them to extend beyond the main content area for a seamless look. Do not set background colors on .window, as it is only intended for background images..window-foreground: A special layer for foreground decorative elements (such as character illustrations or overlays). This layer covers the entire window but does not interfere with mouse interactions..main: The primary rendering container for the launcher's content. This is where you should set background colors and other core visual styles. Note that there is only a 10px gap between this area and the outer window edge. If you add effects like shadows, keep them subtle and within this small space to avoid them being cut off or looking unnatural..search-input-box: Style the search input container. Since no placeholder is used, avoid applying placeholder-specific styles..results: The container that holds and displays all search result items..result-item: Styles for individual search result entries. To ensure the best user experience, please do not add animation or transition effects to this element. Since the list updates instantly as you type, animations can cause a noticeable delay and make the interface feel sluggish. Additionally, avoid customizing the height or adding external spacing (margins/padding) to maintain visual balance..result-item-selected: Styles for the active or highlighted search result (for example, when navigating with the keyboard)..result-item-title: Styles for the title text of each search result..result-item-subtitle: Styles for the descriptive subtitle or additional information in each result..app-icon: Styles the application icon in search results. The default size is 30px. We recommend keeping the default size, but you can modify it if necessary.Leverage these selectors in your CSS to define layouts, colors, and spacing that match your design vision.
During development, you can easily test your theme:
Once you are satisfied with your creation, you can use the GenerateThemePreview command to automatically create a high-quality preview image of your theme.
Sliprail themes are simple and consist only of CSS files and images. There are no dependencies to manage, no debugging required, and no packaging needed.
If you want other users to be able to use your theme:
manifest.json file, set the id field to the theme ID you obtained.For themes intended for personal use only:
id field in manifest.json.Users can discover and install your themes through the Sliprail store. We encourage creating high-quality themes to enhance the user experience.
Now that you know how to develop Sliprail themes, you can start creating your own and sharing them with the community.