@scalar/themes
Advanced tools
Comparing version 0.9.34 to 0.9.35
# @scalar/themes | ||
## 0.9.35 | ||
### Patch Changes | ||
- b26144c: fix(themes): remove variables from theme layer and move selection to default (base) theme | ||
## 0.9.34 | ||
@@ -4,0 +10,0 @@ |
import o from "./fonts.css.js"; | ||
import p from "./presets/alternate.css2.js"; | ||
import u from "./presets/bluePlanet.css2.js"; | ||
import i from "./presets/deepSpace.css2.js"; | ||
import s from "./presets/bluePlanet.css2.js"; | ||
import u from "./presets/deepSpace.css2.js"; | ||
import a from "./presets/default.css2.js"; | ||
import f from "./presets/kepler.css2.js"; | ||
import c from "./presets/mars.css2.js"; | ||
import h from "./presets/moon.css2.js"; | ||
import d 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"; | ||
import { hasObtrusiveScrollbars as E } from "./utilities/hasObtrusiveScrollbars.js"; | ||
const V = [ | ||
import i from "./presets/mars.css2.js"; | ||
import c from "./presets/moon.css2.js"; | ||
import h from "./presets/purple.css2.js"; | ||
import d from "./presets/saturn.css2.js"; | ||
import T from "./presets/solarized.css2.js"; | ||
import { migrateThemeVariables as L } from "./utilities/legacy.js"; | ||
import { hasObtrusiveScrollbars as q } from "./utilities/hasObtrusiveScrollbars.js"; | ||
const F = [ | ||
"alternate", | ||
@@ -27,3 +26,3 @@ "default", | ||
"none" | ||
], $ = { | ||
], M = { | ||
default: "Default", | ||
@@ -43,16 +42,12 @@ alternate: "Alternate", | ||
default: a, | ||
moon: h, | ||
purple: d, | ||
solarized: b, | ||
bluePlanet: u, | ||
deepSpace: i, | ||
saturn: T, | ||
moon: c, | ||
purple: h, | ||
solarized: T, | ||
bluePlanet: s, | ||
deepSpace: u, | ||
saturn: d, | ||
kepler: f, | ||
mars: c | ||
}, A = () => o, I = Object.keys(l), y = (e) => e === "none" ? "" : l[e || "default"] ?? a, K = (e, m) => { | ||
const { variables: n = !0, fonts: s = !0, layer: r = "scalar-theme" } = m ?? {}, t = [ | ||
y(e), | ||
n ? S : "", | ||
s ? o : "" | ||
].join(""); | ||
mars: i | ||
}, O = () => o, $ = Object.keys(l), b = (e) => e === "none" ? "" : l[e || "default"] ?? a, A = (e, m) => { | ||
const { fonts: n = !0, layer: r = "scalar-theme" } = m ?? {}, t = [b(e), n ? o : ""].join(""); | ||
return r ? `@layer ${r} { | ||
@@ -62,11 +57,11 @@ ${t}}` : t; | ||
export { | ||
I as availableThemes, | ||
A as getDefaultFonts, | ||
y as getThemeById, | ||
K as getThemeStyles, | ||
E as hasObtrusiveScrollbars, | ||
w as migrateThemeVariables, | ||
$ as availableThemes, | ||
O as getDefaultFonts, | ||
b as getThemeById, | ||
A as getThemeStyles, | ||
q as hasObtrusiveScrollbars, | ||
L as migrateThemeVariables, | ||
l as presets, | ||
V as themeIds, | ||
$ as themeLabels | ||
F as themeIds, | ||
M as themeLabels | ||
}; |
@@ -47,3 +47,12 @@ const a = `/* basic theme */ | ||
} | ||
/* selection colors */ | ||
.light-mode, | ||
.dark-mode { | ||
--scalar-selection-background: color-mix( | ||
in sRGB, | ||
var(--scalar-color-1) 80%, | ||
transparent | ||
); | ||
--scalar-selection-color: var(--scalar-background-1); | ||
} | ||
/* advanced */ | ||
@@ -50,0 +59,0 @@ .light-mode { |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.9.34", | ||
"version": "0.9.35", | ||
"engines": { | ||
@@ -21,0 +21,0 @@ "node": ">=18" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125188
41
3533