@unocss/preset-web-fonts 0.32.7 → 0.32.8

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/package.json +4 -5
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
3
+ Copyright (c) 2021-PRESENT Anthony Fu <https://github.com/antfu>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -79,4 +79,4 @@ Refer to the [type definition](https://github.com/unocss/unocss/blob/main/packag
79
79
 
80
80
  ## License
81
81
 
82
- MIT License © 2022-PRESENT [Anthony Fu](https://github.com/antfu)
82
+ MIT License &copy; 2022-PRESENT [Anthony Fu](https://github.com/antfu)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-web-fonts",
3
- "version": "0.32.7",
3
+ "version": "0.32.8",
4
4
  "description": "Web Fonts support for Uno CSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -42,12 +42,11 @@
42
42
  ],
43
43
  "sideEffects": false,
44
44
  "dependencies": {
45
- "@unocss/core": "0.32.7",
46
- "ohmyfetch": "^0.4.15"
45
+ "@unocss/core": "0.32.8",
46
+ "ohmyfetch": "^0.4.16"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "unbuild",
50
50
  "stub": "unbuild --stub"
51
- },
52
- "readme": "# @unocss/preset-web-fonts\n\nWeb fonts support for [UnoCSS](https://github.com/unocss/unocss).\n\n## Install\n\n```bash\nnpm i -D @unocss/preset-web-fonts\n```\n\n```ts\nimport presetWebFonts from '@unocss/preset-web-fonts'\nimport presetUno from '@unocss/preset-uno'\n\nUnocss({\n presets: [\n presetUno(),\n presetWebFonts({\n provider: 'google', // default provider\n fonts: {\n // these will extend the default theme\n sans: 'Roboto',\n mono: ['Fira Code', 'Fira Mono:400,700'],\n // custom ones\n lobster: 'Lobster',\n lato: [\n {\n name: 'Lato',\n weights: ['400', '700'],\n italic: true,\n },\n {\n name: 'sans-serif',\n provider: 'none',\n },\n ],\n },\n }),\n ],\n})\n```\n\nThe following CSS will be generated\n\n```css\n@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Fira+Code&family=Fira+Mono:wght@400;700&family=Lobster&family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');\n\n/* layer: default */\n.font-lato {\n font-family: \"Lato\", sans-serif;\n}\n.font-lobster {\n font-family: \"Lobster\";\n}\n.font-mono {\n font-family: \"Fira Code\", \"Fira Mono\", ui-monospace, SFMono-Regular, Menlo,\n Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}\n.font-sans {\n font-family: \"Roboto\", ui-sans-serif, system-ui, -apple-system,\n BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\",\n sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\";\n}\n```\n\n## Providers\n\nCurrently supported Providers:\n\n- `none` - do nothing, treat the font as system font\n- `google` - [Google Fonts](https://fonts.google.com/)\n\nPR welcome to add more providers 🙌\n\n## Configuration\n\nRefer to the [type definition](https://github.com/unocss/unocss/blob/main/packages/preset-web-fonts/src/types.ts#L4) for all configurations avaliable.\n\n## License\n\nMIT License © 2022-PRESENT [Anthony Fu](https://github.com/antfu)\n"
51
+ }
53
52
  }