Current collected state Current
Observed since 20 Oct, 21:49 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Yet another CSS-in-JS library. Based on Facebook's internal styling library as seen at React Conf 2019.
npm i @-ui/styles
// 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>
)
Coming soon. Until then play with this React example on CodeSandbox
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.2.4Registry latest | 2 May 2020 | 29 | |
| 1.2.3 | 21 Apr 2020 | 28 | |
| 1.2.2 | 21 Apr 2020 | 28 | |
| 1.2.1 | 21 Apr 2020 | 28 | |
| 1.2.0 | 21 Apr 2020 | 28 | |
| 1.1.6 | 21 Apr 2020 | 28 | |
| 1.1.5 | 21 Apr 2020 | 28 | |
| 1.1.4 | 21 Apr 2020 | 28 | |
| 1.1.3 | 21 Apr 2020 | 28 | |
| 1.1.2 | 21 Apr 2020 | 28 | |
| 1.1.1 | 20 Apr 2020 | 28 | |
| 1.1.0 | 20 Apr 2020 | 28 | |
| 1.0.59 | 2 Feb 2020 | 28 | |
| 1.0.58 | 20 Jan 2020 | 28 | |
| 1.0.57 | 20 Jan 2020 | 28 | |
| 1.0.56 | 19 Jan 2020 | 28 | |
| 1.0.55 | 18 Jan 2020 | 28 | |
| 1.0.54 | 18 Jan 2020 | 28 | |
| 1.0.53 | 14 Jan 2020 | 28 | |
| 1.0.52 | 13 Jan 2020 | 28 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:49 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:dff3091aa1162102e6c6a90cc7580926899bbb84b7592d58c0290449bc89bd63