profectus-docs/assets/api_modules_data_themes.md.6eb6114d.js

1 line
7.6 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as t,c as e,o as a,N as d}from"./chunks/framework.0799945b.js";const u=JSON.parse('{"title":"Module: data/themes","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/data/themes.md","lastUpdated":null}'),l={name:"api/modules/data/themes.md"},o=d('<h1 id="module-data-themes" tabindex="-1">Module: data/themes <a class="header-anchor" href="#module-data-themes" aria-label="Permalink to &quot;Module: data/themes&quot;"></a></h1><h2 id="enumerations" tabindex="-1">Enumerations <a class="header-anchor" href="#enumerations" aria-label="Permalink to &quot;Enumerations&quot;"></a></h2><h3 id="themes" tabindex="-1">Themes <a class="header-anchor" href="#themes" aria-label="Permalink to &quot;Themes&quot;"></a></h3><p>• <strong>Themes</strong>: <code>Object</code></p><p>An enum of all available themes and their internal IDs. The keys are their display names.</p><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>Aqua</code></td><td style="text-align:left;"><code>&quot;aqua&quot;</code></td></tr><tr><td style="text-align:left;"><code>Classic</code></td><td style="text-align:left;"><code>&quot;classic&quot;</code></td></tr><tr><td style="text-align:left;"><code>Nordic</code></td><td style="text-align:left;"><code>&quot;nordic&quot;</code></td></tr><tr><td style="text-align:left;"><code>Paper</code></td><td style="text-align:left;"><code>&quot;paper&quot;</code></td></tr></tbody></table><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/data/themes.ts#L73" target="_blank" rel="noreferrer">profectus/src/data/themes.ts:73</a></p><h2 id="interfaces" tabindex="-1">Interfaces <a class="header-anchor" href="#interfaces" aria-label="Permalink to &quot;Interfaces&quot;"></a></h2><h3 id="theme" tabindex="-1">Theme <a class="header-anchor" href="#theme" aria-label="Permalink to &quot;Theme&quot;"></a></h3><p>• <strong>Theme</strong>: <code>Object</code></p><p>An object representing a theme the player can use to change the look of the game.</p><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th><th style="text-align:left;">Description</th></tr></thead><tbody><tr><td style="text-align:left;"><code>floatingTabs</code></td><td style="text-align:left;"><code>boolean</code></td><td style="text-align:left;">Whether or not tabs should &quot;float&quot; in the center of their container.</td></tr><tr><td style="text-align:left;"><code>mergeAdjacent</code></td><td style="text-align:left;"><code>boolean</code></td><td style="text-align:left;">Whether or not adjacent features should merge together - removing the margin between them, and only applying the border radius to the first and last elements in the row or column.</td></tr><tr><td style="text-align:left;"><code>showPin</code></td><td style="text-align:left;"><code>boolean</code></td><td style="text-align:left;">Whether or not to show a pin icon on pinned tooltips.</td></tr><tr><td style="text-align:left;"><code>variables</code></td><td style="text-align:left;"><a href="./themes#themevars"><code>ThemeVars</code></a></td><td style="text-align:left;">The values of the theme&#39;s CSS variables.</td></tr></tbody></table><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/data/themes.ts#L24" target="_blank" rel="noreferrer">profectus/src/data/themes.ts:24</a></p><hr><h3 id="themevars" tabindex="-1">ThemeVars <a class="header-anchor" href="#themevars" aria-label="Permalink to &quot;ThemeVars&quot;"></a></h3><p>• <strong>ThemeVars</strong>: <code>Object</code></p><p>A object of all CSS variables determined by the current theme.</p><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>--accent1</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--accent2</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--accent3</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--background</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--border-radius</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--bought</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--danger</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--feature-foreground</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--feature-margin</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--foreground</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--highlighted</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--link</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--locked</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--modal-border</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--outline</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--points</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--raised-background</code></td><td style="text-align:left;"><code>string</code></td></tr><tr><td style="text-align:left;"><code>--tooltip-background</code></td><td style="text-align:left;"><code>string</code></td></tr></tbody></table><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/data/themes.ts#L2" target="_blank" rel="noreferrer">profectus/src/data/themes.ts:2</a></p><h2 id="variables" tabindex="-1">Variables <a class="header-anchor" href="#variables" aria-label="Permalink to &quot;Variables&quot;"></a></h2><h3 id="default" tabindex="-1">default <a class="header-anchor" href="#default" aria-label="Permalink to &quot;default&quot;"></a></h3><p>• <strong>default</strong>: <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a>&lt;<a href="./themes#themes"><code>Themes</code></a>, <a href="./themes#theme"><code>Theme</code></a>&gt;</p><p>A dictionary of all available themes.</p><h4 id="defined-in-3" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-3" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/data/themes.ts#L81" target="_blank" rel="noreferrer">profectus/src/data/themes.ts:81</a></p>',28),r=[o];function n(s,i,c,h,f,g){return a(),e("div",null,r)}const y=t(l,[["render",n]]);export{u as __pageData,y as default};