ThemeStore Store Docs FAQ
Documentation

Theme format

The top level of a theme document: version, metadata, pages, links, icon settings and trust.

On this page

A theme is a single JSON object. This page describes its top level; the elements inside a page are on element properties.

json
{
  "version": 2,
  "dslVersion": "1.0",
  "meta": { "name": "…", "description": "…", "tags": ["dark"] },
  "pages": [ … ],
  "pageLinks": [ … ],
  "defaultPageId": "home",
  "globalVariables": { "feed_filter": "" },
  "iconShape": "squircle",
  "iconPack": "",
  "autoFillNewApps": true
}

Top level#

FieldDefaultMeaning
version1Format generation. 2 means pageLinks is authoritative; see pages and links. Write 2 in anything new.
dslVersion"1.0"Which generation of the formula language the theme was written against. It is a declaration, not a request: the launcher does not switch behaviour on it, it exists so a future change to the language can tell old documents from new ones without guessing. Leave it as it is.
meta-name, description, tags.
pages[]The pages, in document order.
pageLinks[]The navigation cables.
defaultPageIdfirst pageThe page shown at launch and returned to by the home button.
globalVariables{}Your own variables and their starting values.
iconPackScale0.6Fraction of the icon box a pack glyph fills, 0.3 to 1.0.
systemIconScale1.0The same for stock icons.
iconColor""Tint for pack icons. Empty means the Material default.
iconShape"system"Mask on system icons: system, squircle, rounded, circle.
iconPack""Icon pack applied theme-wide. An id the device does not have falls back to system icons silently.
autoFillNewAppstrueAppend newly installed apps to the last auto-filling grid.
unlockAnimation"zoom"The transition from the lock screen. zoom: pages and dock come forward from a slight zoom while the background moves less, which reads as depth. none: no built-in transition; build your own with lock_state or the unlock trigger. Set it on the background page, under Unlock.
backgroundRef""The background this theme recommends: local: or store: followed by an id, or empty for none. Only a recommendation; applying the theme asks whether to take it. This is the only way a theme can name a background: a picture on the background page stays a picture of that page.
backgroundTone""dark or light: the kind of background the theme is built for. When the chosen background does not match, the apply dialog says so. Empty: no hint.
statusBarIcons""light or dark icons in the status bar, or a formula that gives one of them (for a theme that changes what lies behind the bar, such as a night version). Empty: chosen from the tone of the background behind it.
networkHosts[]Hosts this theme wants to reach (["cdn.example"]). A request, not a grant: the launcher shows the list when the theme is applied and only contacts a host the user approved. Declare the ones you build at runtime — https://$region$.cdn.example/... cannot be read off the file.
trustedfalseRuntime trust. Not something you set: it is false for anything that arrived from elsewhere, and the launcher raises it only when the user takes responsibility on import. See taps, gestures and state.

Page#

FieldDefaultMeaning
id-Unique within the theme. Link and action targets use it.
name""Shown in the editor.
pageType"home"home, background, template, notifications. An old drawer page is read and turned into a normal home page with cables.
backgroundwallpaperSee below.
components[]The elements, back to front.
column, rowderivedPosition in the page grid.
backgroundClickActions""Click actions for taps on the page background.
animations""JSON array of animation entries applied to the background.
drawerGesture"inherit"Legacy. Only read from old themes and turned into a cable when the theme loads; never written again.
drawerAnimation"slide"Legacy. Only read from old themes: fade becomes a cable with the fade transition when the theme loads.
opensOnAppDragtrueMay a drag toward the screen edge flip to this page?
acceptsManyLinksfalseEvery edge takes any number of cables. For a page reached from everywhere.
overviewCol, overviewRownullWhere the page sits in the editor's overview. Presentation only; null means "arrange automatically".

Page background#

FieldDefaultMeaning
type"wallpaper"wallpaper, color, gradient, image.
value""Colour hex for color, source for image.
gradientStart, gradientEnd, gradientAngle#FF000000, #FF1a1a2e, 180The gradient.
dimColor, dimAlpha#000000, "0"A dimming layer. dimAlpha is a formula in 0-1, so a page can darken as it is swiped to.
blurRadius0Blur behind the page content.
offsetX, offsetY"0"Formulas, in dp: they move the background image inside its frame. A picture larger than the screen can travel through a page change this way, for example $0 - page_row_position * 240$. They may also read parallax_x and parallax_y for depth, for example $0 - parallax_x * 12$; the picture then needs room beyond the screen edge. Only the background moves; the pages slide over it as usual.
FieldDefaultMeaning
from, to-Page ids.
fromSide, toSide-left, right, top, bottom. The edge says where the neighbour lies, so bottom is reached by swiping up.
transition"slide"slide, plain, overlay, cover, fade, zoom.
cutfalseHistorical. An entry marked this way counts as no link at all.

Three further keys turn up in an exported file: key, fromSlot and toSlot. They are derived: fromSlot is from/fromSide, toSlot is to/toSide, and key is the pair of them in a fixed order, so the same cable written from either end has the same identity. They are written out because the model carries them; do not set them by hand, and do not expect changing one to move a cable. The four fields above are what a link actually is.

What happens to a theme in a different version#

Themes outlive the app version they were built in, in both directions: somebody opens yours on an older launcher, and you open somebody's on a newer one. The format is built so that neither case produces a broken document.

SituationWhat happens
A field the version does not knowIgnored. It is still in the file, and reappears when a version that knows it opens the theme.
A transition it does not knowFalls back to slide. The page is still reachable.
A fromSide/toSide it does not knowThe link is dropped, not guessed. An unknown edge has no place in the grid, and a cable that silently became "bottom" would move the page.
An iconPack the device does not haveSystem icons. The theme works, and looks like a different theme.
An appKey for an app that is not installedThe slot stays empty.
An old role field, without appKeyStill read.
The types app_list and scroll_containerRead as app_grid and group.

The one asymmetry: an unknown value is usually tolerated, an unknown edge never is. Everything else can fall back to something harmless; navigation cannot, because a wrong guess there moves pages around.

None of this is a reason to hand-edit a file into a version you do not have. It is a reason not to worry when somebody on last month's build opens your theme.

Unknown fields survive a read, and the store scans them anyway; the upload check runs over

the raw JSON as well as the parsed document, precisely because a field the format does not

define is where something would be hidden. See

what review checks.

Colours#

Colours are #AARRGGBB or #RRGGBB strings. Inside a formula they need quoting, because they are text: "color": "'#FFFFFF'", and conditionally "$dark_mode ? '#FFFFFFFF' : '#FF000000'$".

Documentation for launcher 0.1.0-alpha Android 12 and later last updated