@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-tailwind",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Grunnmuren Tailwind preset",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
package/tailwind-base.cjs CHANGED
@@ -157,7 +157,10 @@ const snackbar = plugin(function ({ addComponents, theme }) {
157
157
  });
158
158
  });
159
159
 
160
- module.exports = (opts = { useLegacyFont: false, fontBasePath: '/fonts' }) => {
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) {