@obosbbl/grunnmuren-tailwind 0.3.0 → 0.3.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/package.json +1 -1
- package/tailwind-base.cjs +4 -1
package/package.json
CHANGED
package/tailwind-base.cjs
CHANGED
|
@@ -157,7 +157,10 @@ const snackbar = plugin(function ({ addComponents, theme }) {
|
|
|
157
157
|
});
|
|
158
158
|
});
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
const defaultOpts = { useLegacyFont: false, fontBasePath: '/fonts' };
|
|
161
|
+
|
|
162
|
+
module.exports = (userOptions) => {
|
|
163
|
+
const opts = userOptions ? { ...defaultOpts, ...userOptions } : defaultOpts;
|
|
161
164
|
let fontFamily = 'OBOSFont';
|
|
162
165
|
let fonts = obosFonts;
|
|
163
166
|
if (opts.useLegacyFont) {
|