Catalog npm
Back to packageRELEASE DETAILS

1.0.25

npm

@-ui/styles

Yet another CSS-in-JS library based on Facebook's internal styling library as seen at React Conf 2019

csscss-in-jsreactssrstylesstylesheetstylesheetssveltethemesthemingvue
Published11 Nov 2019
Direct dependencies24
Transitive dependenciesNot calculated

README

Current package documentation

@-ui/styles

Bundlephobia Types Code coverage Build status NPM Version MIT License

npm i @-ui/styles

Quick Start

// React example
import React from 'react'
import styles from '@-ui/styles'

styles.variables({
  colors: {
    red: '#c12',
    blue: '#09a',
    purple: '#800080',
  },
})

const style = styles({
  red: `
    color: var(--colors-red);
  `,
  blue: ({colors}) => `
    color: ${colors.blue};

    .${style('red')} {
      color: ${colors.purple};
    }
  `,
})

const Component = (props) => (
  <div className={style({blue: props.blue, red: props.red})}>
    Hello world
    <span className={style(props.blue && 'blue', props.red && 'red')}>
      Hello world
    </span>
    <span className={style('blue')}>I'm always blue</span>
    <span className={style('red')}>I'm purple when my parent is blue</span>
  </div>
)

API

Coming soon. Until then play with this React example on CodeSandbox

LICENSE

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 24

Native requirements
24 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@emotion/stylis
Environment
{
  "local_name": "@emotion/stylis",
  "alias": false,
  "peer_metadata": null
}
^0.8.4runtime
@emotion/unitless
Environment
{
  "local_name": "@emotion/unitless",
  "alias": false,
  "peer_metadata": null
}
^0.7.4runtime
trie-memoize
Environment
{
  "local_name": "trie-memoize",
  "alias": false,
  "peer_metadata": null
}
^1.0.15runtime
@-ui/styles
Environment
{
  "local_name": "@-ui/styles",
  "alias": false,
  "peer_metadata": null
}
^1.0.14development
@babel/node
Environment
{
  "local_name": "@babel/node",
  "alias": false,
  "peer_metadata": null
}
^7.7.0development
@essentials/benchmark
Environment
{
  "local_name": "@essentials/benchmark",
  "alias": false,
  "peer_metadata": null
}
^1.0.5development
@lunde/babel-preset-es
Environment
{
  "local_name": "@lunde/babel-preset-es",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
babel-eslint
Environment
{
  "local_name": "babel-eslint",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
crc
Environment
{
  "local_name": "crc",
  "alias": false,
  "peer_metadata": null
}
^3.8.0development
cross-env
Environment
{
  "local_name": "cross-env",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
eslint-import-resolver-jest
Environment
{
  "local_name": "eslint-import-resolver-jest",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
eslint-plugin-jest
Environment
{
  "local_name": "eslint-plugin-jest",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
husky
Environment
{
  "local_name": "husky",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
lint-staged
Environment
{
  "local_name": "lint-staged",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^2.6.3development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^1.26.3development
rollup-plugin-babel
Environment
{
  "local_name": "rollup-plugin-babel",
  "alias": false,
  "peer_metadata": null
}
^4.3.3development
rollup-plugin-commonjs
Environment
{
  "local_name": "rollup-plugin-commonjs",
  "alias": false,
  "peer_metadata": null
}
^10.1.0development
rollup-plugin-node-resolve
Environment
{
  "local_name": "rollup-plugin-node-resolve",
  "alias": false,
  "peer_metadata": null
}
^5.2.0development
rollup-plugin-replace
Environment
{
  "local_name": "rollup-plugin-replace",
  "alias": false,
  "peer_metadata": null
}
^2.2.0development
rollup-plugin-terser
Environment
{
  "local_name": "rollup-plugin-terser",
  "alias": false,
  "peer_metadata": null
}
^5.1.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "7d390d81c23c123d6ca3ae948fba2304f6525ac0",
  "integrity": "sha512-tAKEh+CaL/67wEFP2VO90VDdYAw3zmvnWZBkGoi+fJwt/hwVSELYGouX7O9hV63Rv/N6X/l94JwMCbvCwTh98w==",
  "tarball": "https://registry.npmjs.org/@-ui/styles/-/styles-1.0.25.tgz",
  "fileCount": 14,
  "unpackedSize": 103811,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyNiwCRA9TVsSAnZWagAAe0wP/judPyd3xBUWz4lSVQXp\nUDxH8WnwUwfQelUBo6+xuZhKG3ClC0/p1IFZ5OkS91jZQABs1ztMkVBCLf+R\nLbxKx58skR5o/t0w7CFXg5tFWc/SVylbyMN1b9KdYw4hQK3Rij3STL0wMGIg\nsx/oXeDl+Govp4T9p8fJD1YfqqfAWw9Z1DY1vFOlI0EPZ5zamoIkQBihxcVl\n8RqbD0sRASVRYRXVutE9BI36rRKcW7JK0BnDCQdzM+6+faZc9r3s44NoDIl/\nM6obD0TlHqQiW7ATwrKCz5yEAVQrg8Y8HYDYlUBR2/7LGR033Qr+IqiMwmlV\nL5yGOGrvPjSWgB7sLCEykrCaGAj9qaG58FjSJ6KxeesIBIIwKMYXPKw3WPA7\nx8RVBj/n11E2iuKCD3AbY/OfTE+QI9QnVxgYQC4NF8FRBjYMDoRqjrbsS9p6\nY58qVKpNbEeLlYCN6iXWp+JB8Bmd84VGZvxwDw0TK04r9UYo7w+ugbShHFzS\nQiKszYVN6qAEucS/cQvuf2LojVUaiJNUsRRI04T9Turc+DlQJ3tlcuLfvRbg\n27P/y1dEaqnTxSRJkcJhvPoQla1BCGttDl406GNo/I5jpTUnX1aFGmBRUP5E\nN9k5JTmCTgMeHwxhWJ1Q+Z/39B5SycYeSE0MHA0MOt3by7/p5GD9Yjo2ni26\nGASA\r\n=z4/+\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDEHmm16OTa4iLy1Aq7zIUxPFRYm6vhUF9ob1xJUynefQIgbgWxfbesh0095oriWIw8MlcrcziJB68on3iq+2pNlTA="
    }
  ]
}

Repository

PENDING
dash-ui/styles

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:d6318caa7aa89b68bd39ecf8c2e45bcd31be2ce33d64dab750a8a640e257610a

Other collected versions

1.2.42 May1.2.321 Apr1.2.221 Apr1.2.121 Apr1.2.021 Apr1.1.621 AprView all collected versions →