All Projects → kdydesign → nuxt-fontagon

kdydesign / nuxt-fontagon

Licence: MIT license
Try converting svg into font easily to make icon-font automatically. The Icon-Font generator Fontagon is available on the Nuxt module.

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to nuxt-fontagon

nuxt-speedkit
nuxt-speedkit will help you to improve the lighthouse performance score (100/100) of your website.
Stars: ✭ 401 (+2127.78%)
Mutual labels:  webfonts, nuxtjs, nuxt-modules
nuxt-modules-cli
Browse Nuxt.js modules from the terminal
Stars: ✭ 25 (+38.89%)
Mutual labels:  nuxtjs, nuxt-modules
supabase
An easy way to integrate Supabase with NuxtJS
Stars: ✭ 39 (+116.67%)
Mutual labels:  nuxtjs, nuxt-modules
cloudinary-module
Integration of Cloudinary to Nuxt.js
Stars: ✭ 129 (+616.67%)
Mutual labels:  nuxtjs, nuxt-modules
fontagon
Fontagon is a great tool that easily converts svg into icon font. Fontagon-cli allows faster conversion to commands.
Stars: ✭ 18 (+0%)
Mutual labels:  icon, icon-fonts
cryptocurrency-icons-font
A webfont for cryptocurrency symbols
Stars: ✭ 21 (+16.67%)
Mutual labels:  webfonts, icon
Linearicons
Linearicons is the highest quality set of line icons, matching with minimalist UI designs in iOS.
Stars: ✭ 64 (+255.56%)
Mutual labels:  webfonts, icon
UltimateTabLayout
A library for tab layout use with viewpager. Very useful, small
Stars: ✭ 33 (+83.33%)
Mutual labels:  icon
snipcart-module
Snipcart integration with for NuxtJS
Stars: ✭ 35 (+94.44%)
Mutual labels:  nuxt-modules
nuxt-vue-multiselect
Single / multiple select plugin for Nuxt.js using vue-multiselect.
Stars: ✭ 28 (+55.56%)
Mutual labels:  nuxtjs
Woffle
Drag and drop woff and woff2 web font generator for macOS
Stars: ✭ 24 (+33.33%)
Mutual labels:  webfonts
Nuxt.tBug
🍓 一个Nuxt.js 的项目,收集前后端分离中出现的各种Bug,方便大众
Stars: ✭ 79 (+338.89%)
Mutual labels:  nuxtjs
vue-icon-font
IconFont plugin for Vuejs
Stars: ✭ 25 (+38.89%)
Mutual labels:  icon
react-svg-icon-generator
Generate React Icon Component from SVG icons to show, resize and recolor them.
Stars: ✭ 65 (+261.11%)
Mutual labels:  icon
webapp
Hospital management system web application repo
Stars: ✭ 41 (+127.78%)
Mutual labels:  nuxtjs
Noto-Sans-CJK-JP.min
Subset of the Noto Sans CJK JP for the size down.
Stars: ✭ 23 (+27.78%)
Mutual labels:  webfonts
peterthehan
My personal site and profile README.
Stars: ✭ 36 (+100%)
Mutual labels:  icon
dw-ui
Dewib UI is an open source ui library for developing HTML/CSS and JS websites. This package is developed with Vue.js and tailwindcss for NuxtJS
Stars: ✭ 21 (+16.67%)
Mutual labels:  nuxtjs
portal-web-legacy
The web client for the JOSA portal.
Stars: ✭ 15 (-16.67%)
Mutual labels:  nuxtjs
ckeditor-nuxt
CKEditor5 component for Nuxt.js framework. All free official plugins included.
Stars: ✭ 29 (+61.11%)
Mutual labels:  nuxtjs

🐾 Nuxt-Fontagon

npm version npm downloads Circle CI Codecov Standard JS License

Easy convert SVG from nuxt to icon font. Try converting svg into font easily to make icon-font automatically. The Icon-Font generator Fontagon is available on the Nuxt module.

Info

🔔 This package has been renamed from nuxt-iconfont-generator to nuxt-fontagon

Features

√ Automatically convert svg to font file when building
√ Based on the svg file name, create the CSS and Stylus, SASS, and LESS files as you want

🔔 nuxt-fontagon uses Fontagon functionality as it is. See the Fontagon documentation

Install

  1. Add nuxt-fontagon dependency to your project
# Using npm
npm install --save-dev nuxt-fontagon
# Using yarn
yarn add --dev nuxt-fontagon
  1. Add nuxt-fontagon to the buildModules section of nuxt.config.js
module.exports = {
  buildModules: [
    'nuxt-fontagon'
  ],
  iconFont: {
    /* Fontagon options */
  }
}

⚠️ If you are using nuxt < 2.9.0, use modules property instead and install it as a dependency (no --dev or --save-dev flags).

Options

files

List of SVG files.

🔔 The files option srcDir in Nuxt is root path.

  • Type: Array
  • Default: [srcDir/assets/**/*.svg]
  • required

dist

Directory for generated font files.

🔔 The dist option srcDir in Nuxt is root path.

  • Type: String
  • Default: 'srcDir/assets/font'

fontName

Specify a font name and the default name for the font file.

  • Type: String
  • Default: 'fontagon-icons'

style

stylesheet file generation type.

  • Type: String
  • Default: 'all'
  • options: 'css', 'sass', 'less', 'stylus'

styleTemplate

Specify a custom style template.

The '.hbs' extension is required because the custom template is compiled through handlebars.

If the style is 'all', only one pre-processor template is specified in the styleTemplate, it is merged with the default option and processed.

  • Type: Object
  • Default:
{
  "styleTemplate": {
      "css": "css.hbs",
      "sass": "sass.hbs",
      "less": "less.hbs",
      "stylus": "styl.hbs"
  }
}

classOptions

Additional options for CSS templates, that extends default options.

When 'baseClass' is set, it is specified by the default class name of the stylesheet, or 'classPrefix' as a sub class factor of the stylesheet.

  • Type: Object
  • Default:
{
    "baseClass": "fontagon-icons",
    "classPrefix": "ft"
  }

order

Order of src values in font-face in CSS file.

  • Type: Array
  • Default: ['eot', 'woff2', 'woff', 'ttf', 'svg']

rename

Function that takes path of file and return name of icon.

  • Type: Function
  • Default: basename of file

startCodepoint

Starting codepoint. Defaults to beginning of unicode private area.

  • Type: Number
  • Default: 0xF101

codepoints

Specific codepoints for certain icons.
Icons without codepoints will have codepoints incremented from startCodepoint skipping duplicates.

  • Type: Object
  • Default: {}

formatOptions

Specific per format arbitrary options to pass to the generator

  • Type: object
  • Default:
{
  "svg": {
    "normalize": true,
    "fontHeight": 1000
  }
}

format and matching generator:


writeFiles

It is possible to not create files and get generated fonts in object to write them to files later.
Also results object will have function generateCss([urls]) where urls is an object with future fonts urls.

  • Type: Boolean
  • Default: true

License

MIT License

Copyright (c) Dev.DY

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].