1.2.3 • Published 8 years ago

reactcss v1.2.3

Weekly downloads
2,232,240
License
MIT
Repository
github
Last release
8 years ago

ReactCSS

Build Status dependency status dev dependency status License Downloads

Inline Styles in JS with support for React, React Native, Autoprefixing, Hover, Pseudo-Elements & Media Queries

Install

npm install reactcss --save

Style Object

Define a default styles for your elements:

import reactCSS from 'reactcss'

const styles = reactCSS({
  'default': {
    card: {
      background: this.props.background,
      boxShadow: '0 2px 4px rgba(0,0,0,.15)',
    },
  },
})

Pass style definitions via inline styles:

<div style={ styles.card } />

Activating Classes

Activate additional classes by passing down objects as additional parameters to reactCSS:

const styles = reactCSS({
  'default': {
    card: {
      background: '#fff',
      boxShadow: '0 2px 4px rgba(0,0,0,.15)',
    },
  },
  'zIndex-2': {
    card: {
      boxShadow: '0 4px 8px rgba(0,0,0,.15)',
    },
  },
}, {
  'zIndex-2': props.zIndex === 2,
})

Documentation

See the Full Documentation

Examples

Examples and projects built with reactCSS:

Felony - Next Level PGP Desktop App React Color - Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more Buffer App Components - A shared set of UI Components React Reactions - Use Reactions from Slack, Facebook, Pokemon, Github and Youtube

react-color@artibulles-cis/reactreact-agent-mapagent-interfacereact-color-psop-cdmicuiruleengine@artiweb.artibulles/artiweb-reactartiweb-reacthiglass-galaxyreact-color-loftyshakyweb-pdm-testweb-pdm-test1macys-starform-builder-migrationbici-datav-npm@everything-registry/sub-chunk-2626sync-commitssync-componentssync-branchessync-analyticssync-appsync-projectssync-jump-to-projectsync-local-changessync-plugin-branchessync-plugin-commitssync-plugin-jump-to-projectsync-plugin-local-changessync-plugin-projectswebcards-editorwrct-colorstarr-commonstarr-vitevico-react-color@dpwolfe/react-color@components/electron@cybroplone/circle-countdown-block@cybroplone/customizable-link-buttonethixngonewebcomponentsiv-commonkalacanvas@re-path/react-colorreact-color-vstserver-frontend-compsprinkles-uistc-react-color@arvinxu/color-picker@asurraa/sura-ui-async-mask-components@asurraa/sura-ui-color-picker@asurraa/sura-ui-week-day-picker@avocadoui/react-color@bahouse/react-color@bethrezen/react-color@captemulation/react-color@chenshuai2144/sketch-color@chaoswise/ui1225zhangqian128981semzub@adb-dev/adb-tools@digifi-los/reactappyh-react-qrbtfzubtesttodayweaver-mobilevc-webpack-vendors@fc-components/react-color@hamavb/react-color@infinitebrahmanuniverse/nolb-reactc@logirix/react-color@itsjoekent/react-color@maxaggedon/react-color@lyra/color-input@martel/react-color@nicksrandall/react-color@emotionreader/ui@evkj/xsite-editor@mayconmesquita/react-color@jaspersoft/jv-ui-components@jiaweiwu/react-color@jayfong/react-color@img-arena/img-ui-mui-theme@img-arena/ui-core@imposium-hub/react-color@jedwatson/react-color@duyank/react-color@kevksar/react-color-ksar@kevksar/react-color@kevksar/react-color-k@ritlabs/better-react-color@pake/react-color@sophya/react-color@repath-project/react-color@reservoirgenomics/resglass@sinoform/comp-custom-print-layoutmp-react-colormobibox-bloc-textschema-page-loaderreact-boundsreact-bounds-deuxreact-color-pickers
1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

0.4.6

9 years ago

0.4.5

9 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago