css-skeleton
A css module compatible version of skeleton.
You will need to use react-css-modules to make use of the class names as skeleton classes are not camelCase.
It would be possible to make a version compatible to just css modules in the future.
Installation
npm install css-skeleton --save-dev
Usage
Simply import your skeleton css modules
import { base, buttons, grid } from 'css-skeleton'
Then use it for styling your elements.
<div ='container'> <div ='row'> <div ='six column'> <h2>Heading</h2> </div> <div ='six columns'> <input ='button' ='button input' /> </div> </div> </div>
Example
Check out the full working example here
import React from 'react'import CSSModules from 'react-css-modules' import base buttons grid from 'css-skeleton'let styles = Object Component { return <div ='container'> <div ='row'> <div ='six column'> <h2>Heading</h2> </div> <div ='six columns'> <input ='button' ='button input' /> </div> </div> </div> ; } Test styles;
modules
You should include the font on the page as follows if you want Raleway as is used in CSS Skeleton's examples:
- normalize
- base (this includes misc and clearing)
- grid
- typography
- links
- buttons
- forms
- lists
- code
- tables
- spacing
- utilities
- media queries (no need to import these, you just use them in your own modules)
/* Larger than mobile */{} /* Larger than phablet (also point when grid becomes active) */{} /* Larger than tablet */{} /* Larger than desktop */{} /* Larger than Desktop HD */{}