Socket
Socket
Sign inDemoInstall

@theme-ui/css

Package Overview
Dependencies
79
Maintainers
4
Versions
427
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.2-scale-tuples.0 to 0.16.2

dist/theme-ui-css.worker.esm.js

1

dist/declarations/src/index.d.ts

@@ -41,2 +41,3 @@ import type { CSSObject, ThemeUIStyleObject, Theme } from './types';

readonly background: "colors";
readonly accentColor: "colors";
readonly backgroundColor: "colors";

@@ -43,0 +44,0 @@ readonly borderColor: "colors";

@@ -90,2 +90,3 @@ /**

background: 'colors',
accentColor: 'colors',
backgroundColor: 'colors',

@@ -92,0 +93,0 @@ borderColor: 'colors',

@@ -94,2 +94,3 @@ 'use strict';

background: 'colors',
accentColor: 'colors',
backgroundColor: 'colors',

@@ -96,0 +97,0 @@ borderColor: 'colors',

@@ -94,2 +94,3 @@ 'use strict';

background: 'colors',
accentColor: 'colors',
backgroundColor: 'colors',

@@ -96,0 +97,0 @@ borderColor: 'colors',

@@ -90,2 +90,3 @@ /**

background: 'colors',
accentColor: 'colors',
backgroundColor: 'colors',

@@ -92,0 +93,0 @@ borderColor: 'colors',

9

package.json
{
"name": "@theme-ui/css",
"version": "0.16.2-scale-tuples.0",
"version": "0.16.2",
"source": "src/index.ts",

@@ -13,2 +13,3 @@ "main": "dist/theme-ui-css.cjs.js",

"module": {
"worker": "./dist/theme-ui-css.worker.esm.js",
"browser": "./dist/theme-ui-css.browser.esm.js",

@@ -21,2 +22,3 @@ "default": "./dist/theme-ui-css.esm.js"

"module": {
"worker": "./utils/dist/theme-ui-css-utils.worker.esm.js",
"browser": "./utils/dist/theme-ui-css-utils.browser.esm.js",

@@ -45,3 +47,3 @@ "default": "./utils/dist/theme-ui-css-utils.esm.js"

"@types/react": "^18.2.12",
"@theme-ui/test-utils": "^0.16.2-scale-tuples.0"
"@theme-ui/test-utils": "^0.16.2"
},

@@ -55,3 +57,4 @@ "preconstruct": {

"envConditions": [
"browser"
"browser",
"worker"
]

@@ -58,0 +61,0 @@ }

@@ -115,2 +115,3 @@ import type {

background: 'colors',
accentColor: 'colors',
backgroundColor: 'colors',

@@ -117,0 +118,0 @@ borderColor: 'colors',

@@ -580,3 +580,3 @@ import { css, NestedScaleDict, Theme } from '../src'

test('fill and stroke and caretColor use theme.colors', () => {
test('fill, stroke, caretColor, and accentColor use theme.colors', () => {
const style = css({

@@ -586,2 +586,3 @@ fill: 'primary',

caretColor: 'primary',
accentColor: 'secondary',
})(theme)

@@ -592,2 +593,3 @@ expect(style).toEqual({

caretColor: 'tomato',
accentColor: 'cyan',
})

@@ -594,0 +596,0 @@ })

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc