Aesthetic with JSS
Provides JSS support for
Aesthetic, a React styling library.
import aesthetic from 'aesthetic';
import JSSAdapter from 'aesthetic-adapter-jss';
import { create } from 'jss';
import preset from 'jss-preset-default';
aesthetic.configure({
adapter: new JSSAdapter(create(preset())),
});
Requirements
Installation
yarn add aesthetic aesthetic-adapter-jss jss jss-nested
// Or
npm install aesthetic aesthetic-adapter-jss jss jss-nested
The jss-nested
plugin is required.
Documentation
https://milesj.gitbook.io/aesthetic/adapters/jss