Shareable react-jss preset to be used in CivicSource client applications
npm install react-jss-preset-civicsourcereact-jss Presetreact-jss preset to be used in CivicSource client applications
npm install react-jss-preset-civicsource -S
`
Usage
`jsx
import useSheet from "react-jss-preset-civicsource";
const styles = {
fancy: {
outline: "3px solid #0f0"
}
};
const Widget = ({
children,
sheet: { classes },
...props
}) => (
{children}
);
export default useSheet(Widget, styles, { meta: __filename });
`
$3
When making changes, be sure to follow semantic versioning.
* Any change to this preset or any of its dependencies which alters the signature of useSheet` should be a major version bump.