Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scalar/themes

Package Overview
Dependencies
Maintainers
8
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/themes - npm Package Compare versions

Comparing version 0.7.6 to 0.7.9

18

CHANGELOG.md
# @scalar/themes
## 0.7.9
### Patch Changes
- 45dc04b: fix: can’t release packages
## 0.7.8
### Patch Changes
- 05e2e27: chore: add provenance statement
## 0.7.7
### Patch Changes
- d4fa19b: feat: allow multiple configs for nuxt
## 0.7.6

@@ -4,0 +22,0 @@

65

dist/index.js
import './index.css';
import { defineComponent as e, openBlock as o, createBlock as d, resolveDynamicComponent as b, withCtx as g, createTextVNode as i, toDisplayString as u, unref as l, createElementBlock as _, Fragment as w, createCommentVNode as t, onMounted as y, useCssModule as k, renderSlot as p } from "vue";
import { defineComponent as e, openBlock as o, createBlock as d, resolveDynamicComponent as b, unref as l, createElementBlock as v, Fragment as h, createCommentVNode as t, withCtx as x, createTextVNode as _, toDisplayString as w, onMounted as y, useCssModule as g, renderSlot as i } from "vue";
const S = `/* basic theme */

@@ -539,3 +539,3 @@ :root {

}
`, m = `/* basic theme */
`, u = `/* basic theme */
.light-mode {

@@ -772,3 +772,3 @@ --scalar-background-1: #fff;

}
`, z = `/* basic theme */
`, M = `/* basic theme */
:root {

@@ -925,3 +925,3 @@ --scalar-text-decoration: underline;

}
`, M = `.light-mode {
`, z = `.light-mode {
color-scheme: light;

@@ -1296,8 +1296,3 @@ --scalar-color-1: #000000;

setup(n) {
return (a, r) => (o(), d(b("style"), null, {
default: g(() => [
i(u(l(B)), 1)
]),
_: 1
}));
return (a, r) => (o(), d(b("style"), { innerHTML: l(B) }, null, 8, ["innerHTML"]));
}

@@ -1311,7 +1306,7 @@ }), X = /* @__PURE__ */ e({

setup(n) {
return (a, r) => (o(), _(w, null, [
return (a, r) => (o(), v(h, null, [
a.withDefaultFonts ? (o(), d(F, { key: 0 })) : t("", !0),
a.id !== "none" ? (o(), d(b("style"), { key: 1 }, {
default: g(() => [
i(u(l(q)(a.id, { layer: "scalar-theme" })), 1)
default: x(() => [
_(w(l(q)(a.id, { layer: "scalar-theme" })), 1)
]),

@@ -1323,3 +1318,3 @@ _: 1

});
function f(n, a) {
function k(n, a) {
y(() => {

@@ -1335,8 +1330,8 @@ if (!document.body)

setup(n) {
const { reset: a } = k();
return f("#headlessui-portal-root", a), (r, c) => p(r.$slots, "default", { styles: l(a) });
const { reset: a } = g();
return k("#headlessui-portal-root", a), (r, c) => i(r.$slots, "default", { styles: l(a) });
}
}), E = "_reset_12vhc_3", R = {
}), E = "_reset_12vhc_3", L = {
reset: E
}, v = (n, a) => {
}, p = (n, a) => {
const r = n.__vccOpts || n;

@@ -1346,12 +1341,12 @@ for (const [c, s] of a)

return r;
}, N = {
$style: R
}, j = /* @__PURE__ */ v(A, [["__cssModules", N]]), L = /* @__PURE__ */ e({
}, R = {
$style: L
}, j = /* @__PURE__ */ p(A, [["__cssModules", R]]), H = /* @__PURE__ */ e({
__name: "ScrollbarStyles",
setup(n) {
const { scrollbars: a } = k();
return f("#headlessui-portal-root", a), (r, c) => p(r.$slots, "default", { styles: l(a) });
const { scrollbars: a } = g();
return k("#headlessui-portal-root", a), (r, c) => i(r.$slots, "default", { styles: l(a) });
}
}), H = "_scrollbars_1mr8w_3", O = {
scrollbars: H,
}), N = "_scrollbars_1mr8w_3", O = {
scrollbars: N,
"cm-scroller": "_cm-scroller_1mr8w_4",

@@ -1362,10 +1357,10 @@ "custom-scroll": "_custom-scroll_1mr8w_5",

$style: O
}, K = /* @__PURE__ */ v(L, [["__cssModules", G]]), h = [
}, K = /* @__PURE__ */ p(H, [["__cssModules", G]]), m = [
["--theme-", "--scalar-"],
["--sidebar-", "--scalar-sidebar-"]
], V = h.map(([n]) => n);
], V = m.map(([n]) => n);
function W(n) {
return V.some((r) => n.includes(r)) ? (console.warn(
"DEPRECATION WARNING: It looks like you're using legacy CSS variables in your custom CSS string. Please migrate them to use the updated prefixes. See https://github.com/scalar/scalar#theme-prefix-changes"
), h.reduce((r, [c, s]) => r.replaceAll(c, s), n)) : n;
), m.reduce((r, [c, s]) => r.replaceAll(c, s), n)) : n;
}

@@ -1384,6 +1379,6 @@ const Y = {

none: ""
}, x = {
}, f = {
alternate: S,
default: m,
moon: M,
default: u,
moon: z,
purple: P,

@@ -1395,7 +1390,7 @@ solarized: I,

kepler: T,
mars: z
}, Q = Object.keys(x), q = (n, a) => {
mars: M
}, Q = Object.keys(f), q = (n, a) => {
if (n === "none")
return "";
const r = x[n || "default"] ?? m;
const r = f[n || "default"] ?? u;
return a != null && a.layer ? `@layer ${a.layer} {

@@ -1411,4 +1406,4 @@ ${r}}` : r;

W as migrateThemeVariables,
x as presets,
f as presets,
Y as themeLabels
};

@@ -8,2 +8,7 @@ {

"bugs": "https://github.com/scalar/scalar/issues/new/choose",
"repository": {
"type": "git",
"url": "https://github.com/scalar/scalar.git",
"directory": "packages/themes"
},
"keywords": [

@@ -14,3 +19,3 @@ "css",

],
"version": "0.7.6",
"version": "0.7.9",
"engines": {

@@ -36,7 +41,2 @@ "node": ">=18"

"module": "./dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/scalar/scalar.git",
"directory": "packages/default-theme"
},
"devDependencies": {

@@ -43,0 +43,0 @@ "@vitejs/plugin-vue": "^5.0.4",

@@ -6,3 +6,3 @@ # Scalar Themes

[![License](https://img.shields.io/npm/l/%40scalar%2Fthemes)](https://www.npmjs.com/package/@scalar/themes)
[![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/8HeZcRGPFS)
[![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)

@@ -9,0 +9,0 @@ ## Installation

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc