From 7480654204fd53fc086d02556dc5b5497096c221 Mon Sep 17 00:00:00 2001 From: acd02 Date: Mon, 15 Jan 2024 10:19:55 +0100 Subject: [PATCH] feat: bump TCV to 2.0.0 --- package-lock.json | 9 +++++---- package.json | 2 +- tailwind.config.viewer.cjs | 4 +--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index f292d8e26..2e80122f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "selenium-webdriver": "^4.10.0" }, "devDependencies": { - "@adevinta/tailwind-config-viewer": "1.11.0", + "@adevinta/tailwind-config-viewer": "2.0.0", "@babel/core": "7.23.0", "@commitlint/cli": "17.8.1", "@commitlint/config-conventional": "17.8.1", @@ -120,9 +120,9 @@ } }, "node_modules/@adevinta/tailwind-config-viewer": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@adevinta/tailwind-config-viewer/-/tailwind-config-viewer-1.11.0.tgz", - "integrity": "sha512-a5Rg5mFCePQTPMZj9t69qsmwuKTHG5mwi2u8RztBSaHTIRk0wexqWbMz2BOUJSahWkt3Yb7c+ypaZnyU4PBdTQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@adevinta/tailwind-config-viewer/-/tailwind-config-viewer-2.0.0.tgz", + "integrity": "sha512-QzjSQf8VLCBHNF0SS3UvqJQUM3L40izsZfN3aVivtpga1jfXy4Of1MeooAnqEFOKKopYwcA5Hp10RaXYvTYipA==", "dev": true, "dependencies": { "@koa/router": "^9.0.1", @@ -2399,6 +2399,7 @@ }, "node_modules/@clack/prompts/node_modules/is-unicode-supported": { "version": "1.3.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 4f5ab23a6..814f1165c 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "selenium-webdriver": "^4.10.0" }, "devDependencies": { - "@adevinta/tailwind-config-viewer": "1.11.0", + "@adevinta/tailwind-config-viewer": "2.0.0", "@babel/core": "7.23.0", "@commitlint/cli": "17.8.1", "@commitlint/config-conventional": "17.8.1", diff --git a/tailwind.config.viewer.cjs b/tailwind.config.viewer.cjs index 102f7c179..7979204bb 100644 --- a/tailwind.config.viewer.cjs +++ b/tailwind.config.viewer.cjs @@ -1,13 +1,10 @@ const sparkPlugins = require('@spark-ui/tailwind-plugins') const themeUtils = require('@spark-ui/theme-utils') -const { toTailwindConfigViewer } = sparkPlugins.tailwindConfigViewerUtils - module.exports = { theme: { configViewer: { baseFontSize: 16, - themeReplacements: toTailwindConfigViewer(themeUtils.defaultTheme), misc: sparkPlugins.tailwindConfigViewerMisc, }, }, @@ -15,6 +12,7 @@ module.exports = { ...sparkPlugins.sparkConfig({ themes: { default: themeUtils.defaultTheme, + dark: themeUtils.defaultThemeDark }, }), ],