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
By default the plugin uses the `borderColors` and `borderWidths` properties from the config file to generate all of its classes. You can change that to whatever, just keep in mind if you have a `default` key in both objects, `.text-stroke` will set both the `-webkit-stroke-color` and `-webkit-stroke-width` of the element.
22
+
By default the plugin uses the `borderColor` and `borderWidth` properties from your theme to generate all of its classes. You can change that to whatever, just keep in mind if you have a `default` key in both objects, `.text-stroke` will set both the `-webkit-stroke-color` and `-webkit-stroke-width` of the element.
23
23
24
24
```js
25
-
require('tailwindcss-text-fill-stroke')({
26
-
colors: {
27
-
'red':'red',
28
-
'green':'green',
29
-
'blue':'blue',
25
+
// tailwind.config.js
26
+
{
27
+
theme: { // defaults to these values
28
+
textFillColor:theme=>theme('borderColor'),
29
+
textStrokeColor:theme=>theme('borderColor'),
30
+
textStrokeWidth:theme=>theme('borderWidth'),
31
+
paintOrder: {
32
+
'fsm': { paintOrder:'fill, stroke, markers' },
33
+
'fms': { paintOrder:'fill, markers, stroke' },
34
+
'sfm': { paintOrder:'stroke, fill, markers' },
35
+
'smf': { paintOrder:'stroke, markers, fill' },
36
+
'mfs': { paintOrder:'markers, fill, stroke' },
37
+
'msf': { paintOrder:'markers, stroke, fill' },
38
+
},
30
39
},
31
-
widths: {
32
-
default:'1px',
33
-
'sm':'2px',
34
-
'md':'4px',
35
-
'lg':'8px',
40
+
41
+
variants: { // all the following default to ['responsive']
42
+
textFillColor: ['responsive'],
43
+
textStrokeColor: ['responsive'],
44
+
textStrokeWidth: ['responsive'],
45
+
paintOrder: ['responsive'],
36
46
},
37
-
variants: [],
38
-
}),
47
+
48
+
plugins: [
49
+
require('tailwindcss-blend-mode'), // no options to configure
0 commit comments