Socket
Socket
Sign inDemoInstall

theme-ui

Package Overview
Dependencies
Maintainers
2
Versions
495
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theme-ui - npm Package Compare versions

Comparing version 0.2.13 to 0.2.14

2

dist/index.esm.js

@@ -10,4 +10,4 @@ import { MDXProvider } from '@mdx-js/react';

var getCSS = function getCSS(props) {
if (!props.sx && !props.css) { return undefined; }
return function (theme) {
if (!props.sx && !props.css) { return undefined; }
var styles = css(props.sx)(theme);

@@ -14,0 +14,0 @@ var raw = typeof props.css === 'function' ? props.css(theme) : props.css;

@@ -13,4 +13,4 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var getCSS = function getCSS(props) {
if (!props.sx && !props.css) { return undefined; }
return function (theme) {
if (!props.sx && !props.css) { return undefined; }
var styles = css__default(props.sx)(theme);

@@ -17,0 +17,0 @@ var raw = typeof props.css === 'function' ? props.css(theme) : props.css;

@@ -12,4 +12,4 @@ (function (global, factory) {

var getCSS = function getCSS(props) {
if (!props.sx && !props.css) { return undefined; }
return function (theme) {
if (!props.sx && !props.css) { return undefined; }
var styles = css__default(props.sx)(theme);

@@ -16,0 +16,0 @@ var raw = typeof props.css === 'function' ? props.css(theme) : props.css;

{
"name": "theme-ui",
"version": "0.2.13",
"version": "0.2.14",
"description": "Build consistent, themeable React UIs based on design system constraints and design tokens",

@@ -28,3 +28,3 @@ "main": "dist/index.js",

},
"gitHead": "8b858ae7a969e1e00b17420bf0414df1df7d54e5"
"gitHead": "b21abc700a46eb2d11bb0770c609a220d1c49924"
}
import { jsx as emotion } from '@emotion/core'
import css from '@styled-system/css'
const getCSS = props => theme => {
const getCSS = props => {
if (!props.sx && !props.css) return undefined
const styles = css(props.sx)(theme)
const raw = typeof props.css === 'function' ? props.css(theme) : props.css
return [styles, raw]
return theme => {
const styles = css(props.sx)(theme)
const raw = typeof props.css === 'function' ? props.css(theme) : props.css
return [styles, raw]
}
}

@@ -10,0 +12,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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