0.16.0 • Published 4 months ago

tinijs v0.16.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

TiniJS

The integrated package of the TiniJS framework.

Install

npm i tinijs

For more, please visit: https://tinijs.dev (TODO)

Usage

  • partAttrMap
import {partAttrMap} from 'tinijs';

html`<div part=${partAttrMap({ a: true, b: false })}></div>`;
  • registerComponents()
import {registerComponents} from 'tinijs';
import {TiniButtonComponent} from '@tinijs/ui-bootstrap/components/button';

// register Tini UI components
registerComponents([TiniButtonComponent]);
  • setTheme()
import {setTheme} from 'tinijs';

setTheme({ skinId: 'dark' });
setTheme({ soulId: 'bootstrap' });
setTheme({ soulId: 'bootstrap', skinId: 'dark' });
  • Varies generators
import {generateColorVaries, generateScaleVaries} from 'tinijs';

css`

  ${generateColorVaries(({fullName, color}) => `
    .${fullName} {
      background: ${color};
    }
  `)}

  ${generateScaleVaries(({fullName, scale}) => `
    .${fullName} {
      padding: ${scale};
    }
  `)}

`;

For more detail, please visit the docs: https://tinijs.dev/docs (TODO)

Developement

  • Create a home for TiniJS: mkdir TiniJS && cd TiniJS
  • Fork the repo
  • Install dependencies: cd tinijs && npm i
  • Make changes & preview locally: npm run build && npm pack
  • Push changes & create a PR 👌

License

tinijs is released under the MIT license.

0.16.0

4 months ago

0.15.0

4 months ago

0.14.2

4 months ago

0.14.0

4 months ago

0.14.1

4 months ago

0.13.2

5 months ago

0.13.0

5 months ago

0.12.0

6 months ago

0.0.11

6 months ago

0.11.0

6 months ago

0.10.0

8 months ago

0.9.0

8 months ago

0.8.0

9 months ago

0.7.0

9 months ago