All Projects → casesandberg → Reactcss

casesandberg / Reactcss

Licence: mit
💄 Inline Styles in JS

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

Projects that are alternatives of or similar to Reactcss

react-loading-icons
A TypeScript-React edition of Sam Herbert's amazing SVG Loaders.
Stars: ✭ 32 (-98%)
Mutual labels:  react-library
React Flow
Highly customizable library for building interactive node-based UIs, editors, flow charts and diagrams
Stars: ✭ 8,348 (+420.77%)
Mutual labels:  react-library
Html Inline Css Webpack Plugin
☄️ A webpack plugin for convert external stylesheet to the embedded stylesheet
Stars: ✭ 48 (-97.01%)
Mutual labels:  inline-styles
react-sketch-canvas
Freehand vector drawing component for React using SVG as canvas 🖌️
Stars: ✭ 109 (-93.2%)
Mutual labels:  react-library
react-emotion-multi-step-form
React multi-step form library with Emotion styling
Stars: ✭ 25 (-98.44%)
Mutual labels:  react-library
Responsive Html Email Signature
Template generator for (responsive) emails & email signatures ✨
Stars: ✭ 525 (-67.25%)
Mutual labels:  inline-styles
critical-plugin
⚙️ Critical plugin for webpack (https://webpack.js.org/)
Stars: ✭ 17 (-98.94%)
Mutual labels:  inline-styles
React Mentions
@mention people in a textarea
Stars: ✭ 1,341 (-16.34%)
Mutual labels:  inline-styles
React Magic
A collection of magic animations for react components.
Stars: ✭ 264 (-83.53%)
Mutual labels:  inline-styles
Polished
A lightweight toolset for writing styles in JavaScript ✨
Stars: ✭ 7,074 (+341.3%)
Mutual labels:  inline-styles
stan
🔨 Collection of front-end engineering tools
Stars: ✭ 19 (-98.81%)
Mutual labels:  react-library
vue-grid
A powerful flexbox grid system for Vue.js 2.x, built with inline-styles
Stars: ✭ 23 (-98.57%)
Mutual labels:  inline-styles
React Timekeeper
Google Keep app inspired time picker for react 🕓
Stars: ✭ 651 (-59.39%)
Mutual labels:  inline-styles
create-chakra-icons
Transform SVGs to React Chakra UI <Icon /> ✨
Stars: ✭ 80 (-95.01%)
Mutual labels:  react-library
Critical
Extract & Inline Critical-path CSS in HTML pages
Stars: ✭ 9,364 (+484.15%)
Mutual labels:  inline-styles
animated-number-react
Super easy way to animate numbers with React
Stars: ✭ 91 (-94.32%)
Mutual labels:  react-library
Css In Js Benchmarks
Stars: ✭ 360 (-77.54%)
Mutual labels:  inline-styles
React Color
🎨 Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
Stars: ✭ 10,287 (+541.73%)
Mutual labels:  inline-styles
Ui React
📖 U&I with React — UI components for you & I
Stars: ✭ 91 (-94.32%)
Mutual labels:  inline-styles
Animate Components
✨ Elemental components for doing animations in React
Stars: ✭ 908 (-43.36%)
Mutual labels:  inline-styles

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].