You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2020. It is now read-only.
This plugin exposes quite a number of configuration options *(all optional)*, which can be passed to the plugin as an object:
52
+
This plugin exposes quite a number of configuration options which can be passed to the plugin as an object:
53
53
54
54
```js
55
55
module.exports= {
@@ -91,18 +91,47 @@ module.exports = {
91
91
// You can override any of the default styles from above
92
92
// at any given button size.
93
93
sizes: {
94
+
// Class name: `.btn-sm`
94
95
sm: {
95
96
fontSize:'.875rem',
96
97
padding:'.5rem .75rem',
97
98
},
99
+
// Class name: `.btn-lg`
98
100
lg: {
99
101
fontSize:'1.25rem',
100
102
padding:'.75rem 1.5rem',
101
103
borderRadius:'.5rem',
102
104
}
103
105
}
106
+
107
+
}),
108
+
],
109
+
}
110
+
```
111
+
112
+
Configuration is entirely optional; the plugin will use sane defaults based on Tailwind's default configuration if you don't provide any of your own overrides.
113
+
114
+
If you want to extend the plugin's default configuration instead of overriding it entirely, you can pass a function which accepts the default configuration, modifies it, and returns a new configuration object:
0 commit comments