Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/create-vuestic/src/steps/2.addVuestic/vue-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export const addVuesticToVue3App = async () => {
let htmlSource = await readFile(htmlPath, 'utf-8')
htmlSource = insertHead(htmlSource, [
`<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro&family=Source+Sans+Pro:wght@400;700&display=swap" rel="stylesheet">`,
`<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">`
`<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">`,
`<link href="https://fonts.googleapis.com/icon?family=Material+Symbols+Outlined" rel="stylesheet">`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update IconsConfig to use material-symbols but default, instead of material icons.
I expect updating nuxt module in my project and all icons still work, even if the're symbols now.

Right now, creating new vuestic project will install Material Symbols, but we use material-icons in IconsConfig...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should release both projects simultaneously then.

])
await writeFile(htmlPath, htmlSource)
}
3 changes: 1 addition & 2 deletions packages/docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ export default defineNuxtConfig({
'Source+Code+Pro': {
wght: [400],
},
'Material+Icons': true,
'Material+Icons+Outlined': true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a quick check with docs, look fine

'Material+Symbols+Outlined': true,
},
},

Expand Down
3 changes: 2 additions & 1 deletion packages/nuxt/src/composables/use-css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import type { VuesticOptions } from "../types";

const VUESTIC_DEFAULT_FONTS = [
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;1,700&display=swap' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons&display=swap' }
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons&display=swap' },
{rel: 'stylesheet', href: '(https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined' }
]

const registerDefaultFonts = (nuxt: Nuxt) => {
Expand Down