Skip to content

vesparny/preact-glam

Repository files navigation

preact-glam

A tiny glamorous implementation for preact

Travis David npm npm JavaScript Style Guide MIT License

The current size of preact-glam/dist/preact-glam.umd.min.js is:

gzip size

IMPORTANT NOTE ABOUT SIZE: Because preact-glam depends on glamor, you should consider the full size you'll be adding to your application if you don't already have glamor.

Install

This project uses node and npm. Go check them out if you don't have them locally installed.

$ yarn add preact-glam

Then with a module bundler like rollup or webpack, use as you would anything else:

// using ES6 modules
import glam from 'preact-glam'

// using CommonJS modules
var glam = require('preact-glam')

The UMD build is also available on unpkg:

<script src="https://unpkg.com/preact-glam/dist/preact-glam.umd.js"></script>

You can find the library on window.preactGlam.

Usage

Please refer to glamorous-tiny.

It should support all the features supported by glamorous-tiny (with the exception of theming support).

Tests

$ yarn run test

MIT License © Alessandro Arnodo

About

A tiny glamorous version for preact

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published