@beeq/tailwindcss 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,13 +19,13 @@ Make sure that Tailwind CSS directives are added to your main CSS file:
|
|
|
19
19
|
## Installation 📦
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm i -D @
|
|
22
|
+
npm i -D @beeq/tailwindcss
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Usage 🚀
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
const beeqPreset = require('@
|
|
28
|
+
const beeqPreset = require('@beeq/tailwindcss');
|
|
29
29
|
|
|
30
30
|
module.exports = {
|
|
31
31
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
|
@@ -37,7 +37,7 @@ module.exports = {
|
|
|
37
37
|
or with TypeScript:
|
|
38
38
|
|
|
39
39
|
```ts
|
|
40
|
-
import { default as beeqPreset } from '@
|
|
40
|
+
import { default as beeqPreset } from '@beeq/tailwindcss';
|
|
41
41
|
|
|
42
42
|
export default {
|
|
43
43
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
|
@@ -75,12 +75,12 @@ The preset does not include the fonts by default, but you can add them in your C
|
|
|
75
75
|
The preset includes a typography plugin that adds a set of default typography styles to your application. It is not enabled by default, so you need to add it to your `tailwind.config.js` file:
|
|
76
76
|
|
|
77
77
|
```js
|
|
78
|
-
const beeqPreset = require('@
|
|
79
|
-
const { TYPOGRAPHY_DEFAULT } = require('@
|
|
78
|
+
const beeqPreset = require('@beeq/tailwindcss');
|
|
79
|
+
const { TYPOGRAPHY_DEFAULT } = require('@beeq/tailwindcss');
|
|
80
80
|
|
|
81
81
|
module.exports = {
|
|
82
82
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
|
83
|
-
presets: [require('@
|
|
83
|
+
presets: [require('@beeq/tailwindcss')],
|
|
84
84
|
...
|
|
85
85
|
plugins: [
|
|
86
86
|
plugin(function ({ addBase }) {
|
|
@@ -95,7 +95,7 @@ or via TypeScript:
|
|
|
95
95
|
|
|
96
96
|
```ts
|
|
97
97
|
import plugin from "tailwindcss/plugin";
|
|
98
|
-
import { default as beeqPreset, TYPOGRAPHY_DEFAULT } from "@
|
|
98
|
+
import { default as beeqPreset, TYPOGRAPHY_DEFAULT } from "@beeq/tailwindcss";
|
|
99
99
|
import type { Config } from "tailwindcss";
|
|
100
100
|
|
|
101
101
|
export default {
|