@unocss/nuxt 0.24.4 → 0.25.0

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/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { AttributifyOptions } from '@unocss/preset-attributify';
4
4
  import { IconsOptions } from '@unocss/preset-icons';
5
5
  import { UserConfig } from '@unocss/core';
6
6
  import { WebFontsOptions } from '@unocss/preset-web-fonts';
7
+ import { TypographyOptions } from '@unocss/preset-typography';
7
8
 
8
9
  interface UnocssNuxtOptions extends UserConfig {
9
10
  /**
@@ -49,6 +50,12 @@ interface UnocssNuxtOptions extends UserConfig {
49
50
  * @default false
50
51
  */
51
52
  webFonts?: boolean | WebFontsOptions;
53
+ /**
54
+ * Enable typography preset and the options of it
55
+ * Only works when `presets` is not specified
56
+ * @default false
57
+ */
58
+ typography?: boolean | TypographyOptions;
52
59
  }
53
60
  declare const _default: _nuxt_schema.NuxtModule<UnocssNuxtOptions>;
54
61
 
package/dist/index.mjs CHANGED
@@ -7,6 +7,7 @@ import presetUno from '@unocss/preset-uno';
7
7
  import presetAttributify from '@unocss/preset-attributify';
8
8
  import presetIcons from '@unocss/preset-icons';
9
9
  import presetWebFonts from '@unocss/preset-web-fonts';
10
+ import presetTypography from '@unocss/preset-typography';
10
11
 
11
12
  const dir = dirname(fileURLToPath(import.meta.url));
12
13
  const index = defineNuxtModule({
@@ -34,6 +35,8 @@ const index = defineNuxtModule({
34
35
  options.presets.push(presetIcons(typeof options.icons === "boolean" ? {} : options.icons));
35
36
  if (options.webFonts)
36
37
  options.presets.push(presetWebFonts(typeof options.webFonts === "boolean" ? {} : options.webFonts));
38
+ if (options.typography)
39
+ options.presets.push(presetTypography(typeof options.typography === "boolean" ? {} : options.typography));
37
40
  }
38
41
  if (options.autoImport) {
39
42
  addPluginTemplate({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/nuxt",
3
- "version": "0.24.4",
3
+ "version": "0.25.0",
4
4
  "description": "Nuxt module for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -37,14 +37,16 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@nuxt/kit": "npm:@nuxt/kit-edge@latest",
40
- "@unocss/core": "0.24.4",
41
- "@unocss/preset-attributify": "0.24.4",
42
- "@unocss/preset-icons": "0.24.4",
43
- "@unocss/preset-uno": "0.24.4",
44
- "@unocss/preset-web-fonts": "0.24.4",
45
- "@unocss/reset": "0.24.4",
46
- "@unocss/vite": "0.24.4",
47
- "@unocss/webpack": "0.24.4"
40
+ "@unocss/core": "0.25.0",
41
+ "@unocss/preset-attributify": "0.25.0",
42
+ "@unocss/preset-icons": "0.25.0",
43
+ "@unocss/preset-typography": "0.25.0",
44
+ "@unocss/preset-uno": "0.25.0",
45
+ "@unocss/preset-web-fonts": "0.25.0",
46
+ "@unocss/reset": "0.25.0",
47
+ "@unocss/vite": "0.25.0",
48
+ "@unocss/webpack": "0.25.0",
49
+ "unocss": "0.25.0"
48
50
  },
49
51
  "devDependencies": {
50
52
  "@nuxt/schema": "npm:@nuxt/schema-edge@latest"