Skip to content

Theme Options

Robert McIntosh edited this page Sep 18, 2022 · 12 revisions

Overview

Theme Options are similar to game settings and are a way for you to declare settings within libThemer.

Common Concepts

name

A short user-friendly title that gives the user an idea of this setting. This value is localized.

hint

A long user-friendly description that details what this setting is used for. This value is localized.

type

Type is a string value that currently supports the following values, color, number, font-family, background, library, choices and message.

default

This is the default value of the setting.


Example Setting

"--tidy-sidebar-padding-y": {
	"name": "lib-themer.tidySidebarPaddingY.name",
	"hint": "lib-themer.tidySidebarPaddingY.hint",
	"type": "number",
	"default": "16px"
}