@paganaye/stylets
v0.1.1
Published
A small typescript library to build powerful familiar CSS stylesheets in typescript.
Readme
@paganaye/stylets
This library is only started it is not usable yet.
A small typescript library to build powerful familiar CSS stylesheets in typescript.
- Uses standard CSS properties (camelCased)
- Fully allows the entire CSS specification
- No new syntax or vocabulary to learn
- Type-safe CSS properties with autocompletion
CSS is generated directly from your component and page files.
- Easier to maintain and update styles
- Organized, readable CSS sections
- No more unused CSS
- No more multitude of class names on every element
Installation
npm install @paganaye/styletsUsage
import { createTheme } from 'stylets'
let theme = createTheme({
styles: {
body: {
backgroundColor: '#f8f8ff'
}
}
}).render();Licence
MIT
