Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font-Awesome Config Example #10

Closed
Megachill opened this issue Jul 5, 2023 · 5 comments · Fixed by #14
Closed

Font-Awesome Config Example #10

Megachill opened this issue Jul 5, 2023 · 5 comments · Fixed by #14

Comments

@Megachill
Copy link

Please show how to add fontawesome to this.

@userquin
Copy link
Member

userquin commented Jul 5, 2023

Something like this? I'll try to add support for icons (I use UnoCSS preset icons and so I don't need this)

import { defineNuxtPlugin } from '#app'
// Ensure your project is capable of handling css files
// THIS SHOULD BE ADDED TO THE HEAD or HERE OR CSS? 
// import '@fortawesome/fontawesome-free/css/all.css'
import { aliases, fa } from 'vuetify/iconsets/fa'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.hook('vuetify:configuration', ({ vuetifyOptions }) => {
    // update vuetifyOptions
   vuetifyOptions.icons = {
      defaultSet: 'fa',
      aliases,
      sets: { fa },
    },
  })
})

@userquin
Copy link
Member

userquin commented Jul 5, 2023

maybe you can also add it to the module configuration, you need to solve the css part

@userquin
Copy link
Member

userquin commented Jul 5, 2023

Anyway PR welcome

@userquin
Copy link
Member

userquin commented Jul 5, 2023

I'll try to update the playground to show how to use UnoCSS Preset Icons.

This was referenced Jul 5, 2023
@userquin
Copy link
Member

userquin commented Jul 9, 2023

I need to change src/runtime/vuetify.ts plugin before publishing 0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants