This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
generated from logue/vite-vue2-ts-starter
-
Notifications
You must be signed in to change notification settings - Fork 30
Using custom icons #7
Comments
What is This question looks like a question about Vuetify itself rather than a question about this template. It's better to ask questions on the official issue or Discord. I think you should at least include the following lines:
|
You could use material design icons with Vuetify |
This is the only thing you'll ever need. Ready to import as (vue,react) component, or svg or as css class background |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Any ideas on how to use custom icons?
The documentation under icons/fonts for Vuetify doesn't seem to work with this example
Vuetify Icons/Fonts Docs
`
import Vue from "vue";
import { UserVuetifyPreset } from "vuetify";
import Vuetify from "vuetify/lib";
import "@mdi/font/css/materialdesignicons.css";
import { VuetifyIcons } from "vuetify/types/services/icons";
Vue.use(Vuetify);
export const options: Partial = {
theme: {
themes: {
light: {
primary: "#0F62FE",
secondary: "#393939",
accent: "#0F62FE",
error: "#DA1E28",
info: "#0443CE",
success: "#198038",
warning: "#F1C21B",
warningOrange: "#FC832C",
},
},
},
icons: {
values: vuetifyToCarbon, // custom icons here
iconfont: "mdi",
},
};
export default new Vuetify(options);
`
Specifically trying to use carbon icons - "@carbon/icons-vue": "^10.40.0"
The text was updated successfully, but these errors were encountered: