@scalar/themes
Advanced tools
Comparing version 0.9.48 to 0.9.49
# @scalar/themes | ||
## 0.9.49 | ||
### Patch Changes | ||
- d379b81: feat(themes): expose tailwind preset as js not just ts | ||
- f67c3bc: feat: add framework themes | ||
- Updated dependencies [f67c3bc] | ||
- @scalar/types@0.0.20 | ||
## 0.9.48 | ||
@@ -4,0 +13,0 @@ |
import type { ThemeId } from '@scalar/types/legacy'; | ||
export { migrateThemeVariables } from './utilities/legacy.js'; | ||
export { hasObtrusiveScrollbars } from './utilities/hasObtrusiveScrollbars.js'; | ||
export declare const themeIds: readonly ["alternate", "default", "moon", "purple", "solarized", "bluePlanet", "deepSpace", "saturn", "kepler", "mars", "none"]; | ||
export declare const themeIds: readonly ["alternate", "default", "moon", "purple", "solarized", "bluePlanet", "deepSpace", "saturn", "kepler", "elysiajs", "fastify", "mars", "none"]; | ||
export type IntegrationThemeId = 'elysiajs' | 'fastify'; | ||
/** | ||
@@ -6,0 +7,0 @@ * Available theme IDs as a type. |
@@ -1,15 +0,17 @@ | ||
import o from "./fonts.css.js"; | ||
import p from "./presets/alternate.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 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 = [ | ||
import a from "./fonts.css.js"; | ||
import n from "./presets/alternate.css2.js"; | ||
import p from "./presets/bluePlanet.css2.js"; | ||
import f from "./presets/deepSpace.css2.js"; | ||
import o from "./presets/default.css2.js"; | ||
import i from "./presets/elysiajs.css2.js"; | ||
import u from "./presets/fastify.css2.js"; | ||
import h from "./presets/kepler.css2.js"; | ||
import c from "./presets/mars.css2.js"; | ||
import d from "./presets/moon.css2.js"; | ||
import y from "./presets/purple.css2.js"; | ||
import T from "./presets/saturn.css2.js"; | ||
import b from "./presets/solarized.css2.js"; | ||
import { migrateThemeVariables as w } from "./utilities/legacy.js"; | ||
import { hasObtrusiveScrollbars as G } from "./utilities/hasObtrusiveScrollbars.js"; | ||
const A = [ | ||
"alternate", | ||
@@ -24,5 +26,7 @@ "default", | ||
"kepler", | ||
"elysiajs", | ||
"fastify", | ||
"mars", | ||
"none" | ||
], M = { | ||
], E = { | ||
default: "Default", | ||
@@ -33,2 +37,4 @@ alternate: "Alternate", | ||
solarized: "Solarized", | ||
elysiajs: "Elysia.js", | ||
fastify: "Fastify", | ||
bluePlanet: "Blue Planet", | ||
@@ -40,15 +46,17 @@ saturn: "Saturn", | ||
none: "" | ||
}, l = { | ||
alternate: p, | ||
default: a, | ||
moon: c, | ||
purple: h, | ||
solarized: T, | ||
bluePlanet: s, | ||
deepSpace: u, | ||
saturn: d, | ||
kepler: f, | ||
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(""); | ||
}, m = { | ||
alternate: n, | ||
default: o, | ||
moon: d, | ||
elysiajs: i, | ||
fastify: u, | ||
purple: y, | ||
solarized: b, | ||
bluePlanet: p, | ||
deepSpace: f, | ||
saturn: T, | ||
kepler: h, | ||
mars: c | ||
}, I = () => a, K = Object.keys(m), S = (e) => e === "none" ? "" : m[e || "default"] ?? o, L = (e, l) => { | ||
const { fonts: s = !0, layer: r = "scalar-theme" } = l ?? {}, t = [S(e), s ? a : ""].join(""); | ||
return r ? `@layer ${r} { | ||
@@ -58,11 +66,11 @@ ${t}}` : t; | ||
export { | ||
$ as availableThemes, | ||
O as getDefaultFonts, | ||
b as getThemeById, | ||
A as getThemeStyles, | ||
q as hasObtrusiveScrollbars, | ||
L as migrateThemeVariables, | ||
l as presets, | ||
F as themeIds, | ||
M as themeLabels | ||
K as availableThemes, | ||
I as getDefaultFonts, | ||
S as getThemeById, | ||
L as getThemeStyles, | ||
G as hasObtrusiveScrollbars, | ||
w as migrateThemeVariables, | ||
m as presets, | ||
A as themeIds, | ||
E as themeLabels | ||
}; |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.9.48", | ||
"version": "0.9.49", | ||
"engines": { | ||
@@ -25,7 +25,16 @@ "node": ">=18" | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./tailwind": "./src/tailwind.ts", | ||
"./style.css": "./dist/style.css", | ||
"./presets/*.css": "./dist/presets/*.css" | ||
".": { | ||
"import": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"./tailwind": { | ||
"import": "./dist/tailwind.js", | ||
"types": "./dist/tailwind.d.ts", | ||
"default": "./dist/tailwind.js" | ||
}, | ||
"./presets/*.css": "./dist/presets/*.css", | ||
"./style.css": "./dist/style.css" | ||
}, | ||
@@ -35,8 +44,7 @@ "files": [ | ||
"CHANGELOG.md", | ||
"src/tailwind.ts", | ||
"src/pixelPreset.ts" | ||
"src/tailwind.ts" | ||
], | ||
"module": "./dist/index.js", | ||
"dependencies": { | ||
"@scalar/types": "0.0.19" | ||
"@scalar/types": "0.0.20" | ||
}, | ||
@@ -47,3 +55,3 @@ "devDependencies": { | ||
"tailwindcss": "^3.4.4", | ||
"vite": "^5.4.9", | ||
"vite": "^5.4.10", | ||
"vite-plugin-static-copy": "^1.0.2", | ||
@@ -50,0 +58,0 @@ "vitest": "^1.6.0", |
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
143624
46
4191
+ Added@scalar/types@0.0.20(transitive)
- Removed@scalar/types@0.0.19(transitive)
Updated@scalar/types@0.0.20