UNPKG

3.16 kBMarkdownView Raw
1# @beamwind/preset-tailwind
2
3> beamwind preset mirroring the [tailwind default theme](https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js)
4
5[![MIT License](https://flat.badgen.net/github/license/kenoxa/beamwind)](https://github.com/kenoxa/beamwind/blob/main/LICENSE)
6[![Latest Release](https://flat.badgen.net/npm/v/@beamwind/preset-tailwind?icon=npm&label)](https://www.npmjs.com/package/@beamwind/preset-tailwind)
7[![Github](https://flat.badgen.net/badge/icon/kenoxa%2Fbeamwind?icon=github&label)](https://github.com/kenoxa/beamwind/blob/main/packages/preset-tailwind)
8[![Typescript](https://flat.badgen.net/badge/icon/included?icon=typescript&label)](https://unpkg.com/browse/@beamwind/preset-tailwind/types/preset-tailwind.d.ts)
9[![Bundle Size](https://flat.badgen.net/bundlephobia/minzip/@beamwind/preset-tailwind?icon=packagephobia&label&color=blue)](https://bundlephobia.com/result?p=@beamwind/preset-tailwind)
10
11> [Read the docs](https://beamwind.js.org) |
12> [API](https://beamwind.js.org/packages/preset-tailwind) |
13> [Change Log](https://github.com/kenoxa/beamwind/blob/main/packages/preset-tailwind/CHANGELOG.md)
14
15---
16
17> This is a only a preset. [beamwind](https://github.com/kenoxa/beamwind/blob/main/packages/beamwind) provides a ready to use `bw` export.
18
19---
20
21<!-- prettier-ignore-start -->
22<!-- START doctoc generated TOC please keep comment here to allow auto update -->
23<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
24
25
26- [Installation](#installation)
27- [Usage](#usage)
28- [Contribute](#contribute)
29- [License](#license)
30
31<!-- END doctoc generated TOC please keep comment here to allow auto update -->
32<!-- prettier-ignore-end -->
33
34## Installation
35
36```sh
37npm install @beamwind/preset-tailwind
38```
39
40## Usage
41
42> Please refer to the [main documentation](https://beamwind.js.org#usage) for further information.
43
44```js
45import { setup } from '@beamwind/core'
46import tailwind from '@beamwind/preset-tailwind'
47
48setup(tailwind())
49```
50
51See [preset-tailwind/src/theme.ts](https://github.com/kenoxa/beamwind/blob/main/packages/preset-tailwind/src/theme.ts) and [core/src/theme.ts](https://github.com/kenoxa/beamwind/blob/main/packages/core//src/theme.ts) for the set values.
52
53## Contribute
54
55Thanks for being willing to contribute!
56
57> This project is free and open-source, so if you think this project can help you or anyone else, you may [star it on GitHub](https://github.com/kenoxa/beamwind). Feel free to [open an issue](https://github.com/kenoxa/beamwind/issues) if you have any idea, question, or you've found a bug.
58
59**Working on your first Pull Request?** You can learn how from this _free_ series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)
60
61We are following the [Conventional Commits](https://www.conventionalcommits.org) convention.
62
63### Sponsors
64
65[![Kenoxa GmbH](https://images.opencollective.com/kenoxa/9c25796/logo/68.png)](https://www.kenoxa.com) [Kenoxa GmbH](https://www.kenoxa.com)
66
67## License
68
69[MIT](https://github.com/kenoxa/beamwind/blob/main/LICENSE) © [Kenoxa GmbH](https://kenoxa.com)