Comparing version 14.6.6-dev.f31c997 to 14.6.6-dev.f57fdcd
@@ -1,1 +0,1 @@ | ||
import computedColorsDark from"../../../../computed-colors-dark.json";import computedColorsLight from"../../../../computed-colors-light.json";export const convertTailwindClassToVar=className=>className.replace(/(text|bg|from|to)-([a-z0-9-]+)/gi,"var(--color-$2)");export const determineThemeColor=(baseTheme,currentTheme,color)=>{if(baseTheme===currentTheme){return color}else if(baseTheme==="light"){return computedColorsLight[color][currentTheme]||color}else if(baseTheme==="dark"){return computedColorsDark[color][currentTheme]||color}return color}; | ||
import computedColorsDark from"./computed-colors-dark.json";import computedColorsLight from"./computed-colors-light.json";export const convertTailwindClassToVar=className=>className.replace(/(text|bg|from|to)-([a-z0-9-]+)/gi,"var(--color-$2)");export const determineThemeColor=(baseTheme,currentTheme,color)=>{if(baseTheme===currentTheme){return color}else if(baseTheme==="light"){return computedColorsLight[color][currentTheme]||color}else if(baseTheme==="dark"){return computedColorsDark[color][currentTheme]||color}return color}; |
{ | ||
"name": "@ably/ui", | ||
"version": "14.6.6-dev.f31c997", | ||
"version": "14.6.6-dev.f57fdcd", | ||
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.", | ||
@@ -15,5 +15,3 @@ "repository": { | ||
"tailwind.extend.js", | ||
"index.d.ts", | ||
"computed-colors-dark.json", | ||
"computed-colors-light.json" | ||
"index.d.ts" | ||
], | ||
@@ -64,3 +62,3 @@ "types": "index.d.ts", | ||
"build:colors": "ts-node scripts/compute-colors.ts", | ||
"build": "yarn build:prebuild && yarn build:swc && node sprites.js && yarn build:colors && yarn build:tsc && yarn build:cleanup", | ||
"build": "yarn build:prebuild && yarn build:colors && yarn build:swc && node sprites.js && yarn build:tsc && yarn build:cleanup", | ||
"watch": "yarn build:swc -w", | ||
@@ -67,0 +65,0 @@ "format:check": "prettier -c *.{js,ts} src/**/*.{js,ts,tsx}", |
module.exports = { | ||
content: [ | ||
"./src/**/*.{js,ts,tsx,mdx,stories.tsx}", | ||
"./computed-colors-dark.json", | ||
"./computed-colors-light.json", | ||
], | ||
content: ["./src/**/*.{js,ts,tsx,mdx,stories.tsx,json}"], | ||
safelist: [{ pattern: /^hljs.*/ }], | ||
@@ -8,0 +4,0 @@ theme: { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3886351
13936