Skip to content

Commit ab3f493

Browse files
committed
Add custom mixins support to preset
1 parent 724bd2e commit ab3f493

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/preset.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const largerThanMixin = (_mixin: string, breakpoint: string) => ({
130130

131131
interface Options {
132132
autoRem?: boolean;
133+
mixins?: Record<string, any>;
133134
}
134135

135136
module.exports = (options: Options = {}) => {
@@ -170,6 +171,7 @@ module.exports = (options: Options = {}) => {
170171
'where-not-ltr': notLtrWhereMixin,
171172
'smaller-than': smallerThanMixin,
172173
'larger-than': largerThanMixin,
174+
...(options.mixins || {}),
173175
},
174176
}),
175177
],

0 commit comments

Comments
 (0)