Aesthetic with Glamor
Provides Glamor support for
Aesthetic, a React styling library.
Requirements
Installation
npm install aesthetic aesthetic-adapter-glamor glamor --save
// Or
yarn add aesthetic aesthetic-adapter-glamor glamor
Usage
More information on how to get started can be found in the
official documentation.
import Aesthetic from 'aesthetic';
import GlamorAdapter from 'aesthetic-adapter-glamor';
const aesthetic = new Aesthetic(new GlamorAdapter());
Unified Syntax
To make use of the unified syntax, simply import the adapter from the unified path.
import GlamorAdapter from 'aesthetic-adapter-glamor/unified';
Plugins
Glamor plugins
can be added before the adapter is instantiated.
import Aesthetic from 'aesthetic';
import GlamorAdapter from 'aesthetic-adapter-glamor';
import { plugins } from 'glamor';
plugins.add(plugin);
const aesthetic = new Aesthetic(new GlamorAdapter());