|
1 |
| -# Fave Tailwind Presets |
| 1 | +# Fave Tailwindcss Presets |
2 | 2 |
|
3 |
| -Fave Tailwind Presets provides a set of preset css styling inlcuding primary color that default uses by Fave. |
| 3 | +A plugin provides a set of tailwindcss presets that uses by Fave. |
4 | 4 |
|
5 | 5 | ## Presets
|
6 | 6 |
|
7 |
| -- Font Family - ```inter``` |
8 |
| -- Primary Color - ```primary-pink ``` |
9 |
| -- Theme Color |
10 |
| - - ```white ``` |
11 |
| - - ```slate-100,700``` |
12 |
| - - ```neutral-100,300,400,500,700``` |
13 |
| - - ```yellow-400``` |
14 |
| - - ```green-400``` |
15 |
| -- BoxShadow ```BoxShadow-sm,md,lg,xl,2xl,inner``` |
16 |
| -- Element Class ```.h1,.h2.h3,.body,.caption,.title``` |
| 7 | +- Font Family - `inter` |
| 8 | +- Primary Color - `primary-pink` |
| 9 | +- Theme Colors |
| 10 | + - `white` |
| 11 | + - `slate: 100, 700` |
| 12 | + - `neutral: 100, 300, 400, 500, 700` |
| 13 | + - `yellow: 400` |
| 14 | + - `green: 400` |
| 15 | +- Box Shadow `sm, md, lg, xl, 2xl, inner` |
| 16 | +- Element Class `.h1, .h2, .h3, .body, .caption, .title` |
17 | 17 |
|
18 | 18 | ## Installation
|
19 | 19 |
|
20 |
| -Fave-Preset requires tailwinds css to run. |
21 |
| - |
22 |
| -Install the dependencies and devDependencies and start connect the presets package. |
| 20 | +Install the plugin from npm |
23 | 21 |
|
24 | 22 | ```sh
|
25 |
| -cd Your Project |
26 |
| -``` |
27 |
| - |
28 |
| -Install Package |
| 23 | +# Using npm |
| 24 | +npm install -D fave-tailwindcss-presets |
29 | 25 |
|
30 |
| -```sh |
31 |
| -npm install --Fave-Preset |
32 |
| -``` |
33 |
| -or |
34 |
| -```sh |
35 |
| -yarn install --Fave-Preset |
| 26 | +# Using yarn |
| 27 | +yarn add -D fave-tailwindcss-presets |
36 | 28 | ```
|
37 | 29 |
|
38 |
| -Open ```Tailwind.Config.Js``` in your project root and include the package into your config. |
| 30 | +Then add the plugin to your `tailwind.config.js` file: |
39 | 31 |
|
40 | 32 | ```sh
|
| 33 | +// tailwind.config.js |
| 34 | +module.exports = { |
41 | 35 | presets: [
|
42 |
| - require('./fave-preset'), |
| 36 | + require('fave-tailwindcss-presets'), |
43 | 37 | ],
|
| 38 | + ... |
| 39 | +} |
44 | 40 | ```
|
45 | 41 |
|
46 |
| -Congratulation, your have already include the Fave Preset into your project. |
| 42 | +Congratulation, your have already included the Fave Tailwindcss Preset into your project. |
0 commit comments