Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You define which class names will be generated much like you do in the core Tail

```js
{
textSizes: {
fontSize: {
sm: {
min: '14px',
max: '20px',
Expand Down Expand Up @@ -63,15 +63,15 @@ The above settings will generate one new utility class, `.text-sm-fluid`:

### Supported properties

`textSizes`, `fontWeights`, `leading`, `tracking`, `borderWidths`, `borderRadius`, `width`, `height`, `minWidth`, `minHeight`, `maxWidth`, `maxHeight`, `padding`, `margin`, `negativeMargin`, `zIndex`, `opacity`
`fontSize`, `fontWeights`, `leading`, `tracking`, `borderWidths`, `borderRadius`, `width`, `height`, `minWidth`, `minHeight`, `maxWidth`, `maxHeight`, `padding`, `margin`, `negativeMargin`, `zIndex`, `opacity`

### Setting your values in the core Tailwind config

If you set a property to `true` it will take the settings from your core config (e.g. `module.exports.textSizes`):

```js
{
textSizes: true
fontSize: true
}
```

Expand All @@ -83,7 +83,7 @@ You can generate non-fluid utilities by defining a single value, like you would

```js
{
textSizes: {
fontSize: {
sm: '14px',
md: {
min: '16px',
Expand Down Expand Up @@ -114,7 +114,7 @@ Here is an example of using `tailwindcss-fluid` for all of your (fluid and non-f
module.exports = {
// ...

textSizes: {
fontSize: {
sm: '14px',
md: {
min: '16px',
Expand All @@ -132,12 +132,8 @@ module.exports = {

// ...

modules: {
// ...

textSizes: false // disable the core module

// ...
corePlugins: {
fontSize: false
},

plugins: [
Expand Down