Aesthetic
Aesthetic is a powerful type-safe, framework agnostic, CSS-in-JS library for styling components, whether it be with plain objects, importing style sheets, or simply referencing external class names. Simply put, Aesthetic is an abstraction layer for the compilation of styles via third-party libraries, all the while providing customizability, theming, additional features, and a unified syntax.
;;; aesthetic.configure; // Register a themeaesthetic.registerTheme'light', ; // Register a style sheet definition for a componentaesthetic.registerStyleSheet'button',; // Parse the styles and generate CSS class names;;
React
Supports both an HOC and hook styled React API!
;; ;
Requirements
- IE 11+
Installation
yarn add aesthetic
// Or
npm install aesthetic