nuxt-bunny-fonts
Bunny Fonts for Nuxt 3
2,965
| Install | |
|---|---|
npm install nuxt-bunny-fonts |
|
| Latest Version: | 1.1.2 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Feb 17, 2023 |
| Links: | npm |
Maintainer: dan-online
Nuxt Bunny Fonts
Bunny Fonts for Nuxt 3
Check out all the fonts you can use at Bunny Fonts
Features
- Easily use Bunny Fonts
- Automatically injects the Bunny Fonts stylesheet
- Allows for infinite fonts
Quick Setup
- Add
nuxt-bunny-fontsdependency to your project
# Using yarn
yarn add --dev nuxt-bunny-fonts
# Using pnpm
pnpm add -D nuxt-bunny-fonts
# Using npm
npm install --save-dev nuxt-bunny-fonts
- Add
nuxt-bunny-fontsto themodulessection ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-bunny-fonts'
],
bunnyFonts: {
families: {
Montserrat: [300, 400, 700],
}
}
})
That's it! You can now use Nuxt Bunny Fonts in your Nuxt app ✨
Migrate
Migrating from google-fonts to bunny-fonts is easy:
- Remove
@nuxtjs/google-fontsfrom yourmodulessection ofnuxt.config.ts - Add
nuxt-bunny-fontsto yourmodulessection ofnuxt.config.ts - Change the
googleFontsproperty tobunnyFontsin yournuxt.config.ts
export default defineNuxtConfig({
modules: [
- '@nuxtjs/google-fonts',
+ 'nuxt-bunny-fonts'
],
- googleFonts: {
+ bunnyFonts: {
families: {
Montserrat: [300, 400, 700],
}
}
})
Development
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.2 | ^3.0 | MIT | |
| 1.1.1 | ^3.0 | MIT | |
| 1.1.0 | ^3.0 | MIT | |
| 0.0.3 | ^3.0 | MIT |