@scalar/themes
Advanced tools
Comparing version 0.9.12 to 0.9.13
# @scalar/themes | ||
## 0.9.13 | ||
### Patch Changes | ||
- 618285e: feat: add localStorage syncing to client app | ||
## 0.9.12 | ||
@@ -4,0 +10,0 @@ |
export { migrateThemeVariables } from './utilities/legacy'; | ||
export declare const themeIds: readonly ["alternate", "default", "moon", "purple", "solarized", "bluePlanet", "deepSpace", "saturn", "kepler", "mars", "none"]; | ||
/** | ||
* Available theme IDs as a type. | ||
*/ | ||
export type ThemeId = 'alternate' | 'default' | 'moon' | 'purple' | 'solarized' | 'bluePlanet' | 'deepSpace' | 'saturn' | 'kepler' | 'mars' | 'none'; | ||
export type ThemeId = (typeof themeIds)[number]; | ||
/** | ||
@@ -7,0 +8,0 @@ * User readable theme names / labels |
@@ -1,15 +0,27 @@ | ||
import o from "./fonts.css.js"; | ||
import a from "./fonts.css.js"; | ||
import s from "./presets/alternate.css2.js"; | ||
import u from "./presets/bluePlanet.css2.js"; | ||
import i from "./presets/deepSpace.css2.js"; | ||
import a from "./presets/default.css2.js"; | ||
import o from "./presets/default.css2.js"; | ||
import f from "./presets/kepler.css2.js"; | ||
import h from "./presets/mars.css2.js"; | ||
import c from "./presets/moon.css2.js"; | ||
import T from "./presets/purple.css2.js"; | ||
import d from "./presets/saturn.css2.js"; | ||
import c from "./presets/mars.css2.js"; | ||
import d from "./presets/moon.css2.js"; | ||
import h from "./presets/purple.css2.js"; | ||
import T from "./presets/saturn.css2.js"; | ||
import b from "./presets/solarized.css2.js"; | ||
import S from "./variables.css.js"; | ||
import { migrateThemeVariables as w } from "./utilities/legacy.js"; | ||
const $ = { | ||
const $ = [ | ||
"alternate", | ||
"default", | ||
"moon", | ||
"purple", | ||
"solarized", | ||
"bluePlanet", | ||
"deepSpace", | ||
"saturn", | ||
"kepler", | ||
"mars", | ||
"none" | ||
], A = { | ||
default: "Default", | ||
@@ -28,16 +40,16 @@ alternate: "Alternate", | ||
alternate: s, | ||
default: a, | ||
moon: c, | ||
purple: T, | ||
default: o, | ||
moon: d, | ||
purple: h, | ||
solarized: b, | ||
bluePlanet: u, | ||
deepSpace: i, | ||
saturn: d, | ||
saturn: T, | ||
kepler: f, | ||
mars: h | ||
}, A = () => o, K = Object.keys(m), y = (e) => e === "none" ? "" : m[e || "default"] ?? a, L = (e, l) => { | ||
mars: c | ||
}, I = () => a, K = Object.keys(m), y = (e) => e === "none" ? "" : m[e || "default"] ?? o, L = (e, l) => { | ||
const { variables: n = !0, fonts: p = !0, layer: r = "scalar-theme" } = l ?? {}, t = [ | ||
y(e), | ||
n ? S : "", | ||
p ? o : "" | ||
p ? a : "" | ||
].join(""); | ||
@@ -49,3 +61,3 @@ return r ? `@layer ${r} { | ||
K as availableThemes, | ||
A as getDefaultFonts, | ||
I as getDefaultFonts, | ||
y as getThemeById, | ||
@@ -55,3 +67,4 @@ L as getThemeStyles, | ||
m as presets, | ||
$ as themeLabels | ||
$ as themeIds, | ||
A as themeLabels | ||
}; |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.9.12", | ||
"version": "0.9.13", | ||
"engines": { | ||
@@ -50,3 +50,3 @@ "node": ">=18" | ||
"vue-tsc": "^2.0.13", | ||
"@scalar/build-tooling": "0.1.8" | ||
"@scalar/build-tooling": "0.1.9" | ||
}, | ||
@@ -53,0 +53,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110795
1145