Skip to content

Iconify Custom Icons #1010

@RKAN

Description

@RKAN

Hello,

i want to know if i can use custom icons with nuxt/ui. Im already using "egoist/tailwindcss-icons" in other projects and i have a custom generated jsons for the icons. How i can tell nuxt ui too use this icons?

In my other Project where i use "egoist/tailwindcss-icons'" directy im just setting this values in the tailwind config:

import { getIconCollections, iconsPlugin } from '@egoist/tailwindcss-icons';
import fontAwesomeProRegular from './icons/fa-pro-regular.json';
...
    plugins: [
        iconsPlugin({
            collections: {
                'fa-pro-regular': fontAwesomeProRegular,
                ...getIconCollections(['mdi'])
            }
        })
    ]

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions