New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ably/ui

Package Overview
Dependencies
Maintainers
0
Versions
442
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ably/ui - npm Package Compare versions

Comparing version 14.6.6-dev.f31c997 to 14.6.6-dev.f57fdcd

core/styles/colors/computed-colors-dark.json

2

core/styles/colors/utils.js

@@ -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: {

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