3.0.51 • Published 1 year ago

@pinegrow/vuetify-plugin v3.0.51

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Pinegrow Vuetify Plugin

npm version npm downloads License

Vuetify plugin for Pinegrow ⚡️

Pinegrow Vuetify Plugin provides customized visual controls, design panel for theming and other rich visual features customized for your Vuetify experience.

Note:

  • This plugin is generally used in conjunction with the Pinegrow Vite Plugin or with the meta-framework specific Pinegrow modules for Iles, Nuxt and Astro.
  • To use Vuetify in Pinegrow apps, you require an active Vuetify Addon subscription.
  •  Learn more about Vue Designer

Features

  • 🎨  Visually live-design your Vite-powered Vuetify apps (Vue, Nuxt, Iles, Astro, etc)
  • ⚙️  Smartly integrates into your Vite workflow in dev-mode only
  •   Clean code 😃, No lock-in - You are in control of your projects and development workflow ❤️

Quick Setup

  1. Install: Add @pinegrow/vuetify-plugin to your project
# Using npm
npm install -D @pinegrow/vuetify-plugin

# Using pnpm
pnpm add -D @pinegrow/vuetify-plugin
  1. Configure: Add vuetify along with configPath and cssPath as options to liveDesigner in your config. To turn off visual helpers for Vuetify utility classes, set utilities: false.
//vite.config.[js,ts]

export default defineConfig({
	plugins: [
		liveDesigner({
			// For options, refer to https://www.npmjs.com/package/@pinegrow/vite-plugin
			//...
			vuetify: {
				/* PinegrowVuetifyModuleOptions (for more details, refer to Options section below) */
				/* Please ensure that you update the filenames and paths to accurately match those used in your project. */
				configPath: 'vuetify.config.ts', // or file where vuetify is created
				// utilities: false,
				// restartOnConfigUpdate: true,
				restartOnThemeUpdate: true,
			},
		}),
		//...
	],
	//...
})
//nuxt.config.ts

export default defineNuxtConfig({
	modules: [
		'@pinegrow/nuxt-module',
		//...
	],
	pinegrow: {
		liveDesigner: {
			// For options, refer to https://www.npmjs.com/package/@pinegrow/vite-plugin
			//...
			vuetify: {
				/* PinegrowVuetifyModuleOptions (for more details, refer to Options section below) */
				/* Please ensure that you update the filenames and paths to accurately match those used in your project. */
				configPath: 'vuetify.config.ts', // or file where vuetify is created
				// utilities: false,
				// restartOnConfigUpdate: true,
				restartOnThemeUpdate: true,
			},
		},
	},
	//...
})
//iles.config.ts

import type { LiveDesignerOptions } from '@pinegrow/vite-plugin'
export default defineConfig({
  modules: [
    [
      '@pinegrow/iles-module',
      {
        liveDesigner: {
          // For options, refer to https://www.npmjs.com/package/@pinegrow/vite-plugin
          //...
          vuetify: {
            /* PinegrowVuetifyModuleOptions (for more details, refer to Options section below) */
            /* Please ensure that you update the filenames and paths to accurately match those used in your project. */
            configPath: 'vuetify.config.ts', // or file where vuetify is created
            // utilities: false,
            // restartOnConfigUpdate: true,
            restartOnThemeUpdate: true,
          },
        } as LiveDesignerOptions,
      },
    ],
    //...
  ],
  //...
})
//astro.config.[mjs]

import { defineConfig } from 'astro/config'
import vue from '@astrojs/vue'
import Pinegrow from '@pinegrow/astro-module'

export default defineConfig({
	integrations: [
		vue(),
		Pinegrow({
			liveDesigner: {
				// For options, refer to https://www.npmjs.com/package/@pinegrow/vite-plugin
				//...
				vuetify: {
					/* PinegrowVuetifyModuleOptions (for more details, refer to Options section below) */
					/* Please ensure that you update the filenames and paths to accurately match those used in your project. */
					configPath: 'vuetify.config.ts', // or file where vuetify is created
					// utilities: false,
					// restartOnConfigUpdate: true,
					restartOnThemeUpdate: true,
				},
			},
		}),
		//...
	],
	//...
})
  1. Now, open your project in your Pinegrow app (currently only Vue Designer). ✨

  2. Theme Customization (optional) - Pinegrow Vuetify addon enables easy theming based on colors, fonts and background images. Theme files are saved at the location specified by the themePath option (default: src/themes/pg-vuetify/tokens.cjs,mjs). To use the theme, follow the instructions in the Config Panel of your Pinegrow app (currently only Vue Designer) under @pinegrow/vuetify-plugin package.

Options

interface PinegrowVuetifyModuleOptions {
	/**
	 * Absolute or relative path of the vuetify configuration file.
	 */
	configPath: string | any

	/**
	 * Absolute or relative path of the vuetify entry css file.
	 */
	cssPath?: string | any

	/**
	 * Absolute or relative path of the vuetify theme file.
	 * @default 'src/themes/pg-vuetify/tokens.[cjs,mjs]'
	 * @default 'themes/pg-vuetify/tokens.[cjs,mjs]' // Nuxt
	 * Set to false to turn off theming via Design Panel
	 */
	themePath?: string | boolean

	/**
	 * Turn off visual controls for Vuetify utility classes
	 * @default true
	 */
	utilities?: boolean

	/**
	 * Restart on vuetify config file updates
	 * @default false
	 */
	restartOnConfigUpdate?: boolean

	/**
	 * Restart on vuetify theme file updates
	 * @default false
	 */
	restartOnThemeUpdate?: boolean
}

interface PinegrowVuetifyModule {
	/**
	 * Pinegrow Vuetify Module Options, added within liveDesigner in vite/nuxt/iles/astro config files
	 */
	vuetify: PinegrowVuetifyModuleOptions
}

License

MIT License

Copyright (c) Pinegrow

3.0.51

1 year ago

3.0.50

1 year ago

3.0.49

1 year ago

3.0.47

1 year ago

3.0.48

1 year ago

3.0.46

1 year ago

3.0.12

2 years ago

3.0.13

2 years ago

3.0.10

2 years ago

3.0.11

2 years ago

3.0.16

2 years ago

3.0.17

2 years ago

3.0.15

2 years ago

3.0.0-beta.51

2 years ago

3.0.0-beta.52

2 years ago

3.0.0-beta.56

2 years ago

3.0.0-beta.57

2 years ago

3.0.0-beta.58

2 years ago

3.0.0-beta.59

2 years ago

3.0.45

2 years ago

3.0.43

2 years ago

3.0.44

2 years ago

3.0.41

2 years ago

3.0.42

2 years ago

3.0.40

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

3.0.23

2 years ago

3.0.24

2 years ago

3.0.21

2 years ago

3.0.22

2 years ago

3.0.27

2 years ago

3.0.28

2 years ago

3.0.25

2 years ago

3.0.26

2 years ago

3.0.20

2 years ago

3.0.18

2 years ago

3.0.19

2 years ago

3.0.9

2 years ago

3.0.34

2 years ago

3.0.35

2 years ago

3.0.32

2 years ago

3.0.33

2 years ago

3.0.38

2 years ago

3.0.39

2 years ago

3.0.36

2 years ago

3.0.37

2 years ago

3.0.30

2 years ago

3.0.31

2 years ago

3.0.29

2 years ago

3.0.0-beta.50

2 years ago

3.0.0-beta.40

2 years ago

3.0.0-beta.41

2 years ago

3.0.0-beta.44

2 years ago

3.0.0-beta.45

2 years ago

3.0.0-beta.46

2 years ago

3.0.0-beta.47

2 years ago

3.0.0-beta.48

2 years ago

3.0.0-beta.49

2 years ago

3.0.0-beta.33

2 years ago

3.0.0-beta.34

2 years ago

3.0.0-beta.35

2 years ago

3.0.0-beta.36

2 years ago

3.0.0-beta.37

2 years ago

3.0.0-beta.38

2 years ago

3.0.0-beta.39

2 years ago

3.0.0-beta.24

2 years ago

3.0.0-beta.25

2 years ago

3.0.0-beta.26

2 years ago

3.0.0-beta.27

2 years ago

3.0.0-beta.28

2 years ago

3.0.0-beta.29

2 years ago

3.0.0-beta.30

2 years ago

3.0.0-beta.31

2 years ago

3.0.0-beta.32

2 years ago

3.0.0-beta.23

2 years ago

3.0.0-beta.22

2 years ago

3.0.0-beta.7

3 years ago

3.0.0-beta.9

3 years ago

3.0.0-beta.8

3 years ago

3.0.0-beta.20

3 years ago

3.0.0-beta.21

2 years ago

3.0.0-beta.19

3 years ago

3.0.0-beta.10

3 years ago

3.0.0-beta.11

3 years ago

3.0.0-beta.12

3 years ago

3.0.0-beta.13

3 years ago

3.0.0-beta.14

3 years ago

3.0.0-beta.15

3 years ago

3.0.0-beta.17

3 years ago

3.0.0-beta.18

3 years ago

3.0.0-beta.3

3 years ago

3.0.0-beta.2

3 years ago

3.0.0-beta.5

3 years ago

3.0.0-beta.4

3 years ago

3.0.0-beta.6

3 years ago

3.0.0-beta.1

3 years ago

3.0.0-alpha.19

3 years ago

3.0.0-alpha.21

3 years ago

3.0.0-alpha.20

3 years ago

3.0.0-alpha.23

3 years ago

3.0.0-alpha.7

3 years ago

3.0.0-alpha.9

3 years ago

3.0.0-alpha.8

3 years ago

3.0.0-alpha.13

3 years ago

3.0.0-alpha.15

3 years ago

3.0.0-alpha.18

3 years ago

3.0.0-alpha.17

3 years ago

3.0.0-alpha.10

3 years ago

3.0.0-alpha.12

3 years ago

3.0.0-alpha.11

3 years ago

3.0.0-alpha.1

3 years ago

3.0.0-alpha.3

3 years ago

3.0.0-alpha.2

3 years ago

3.0.0-alpha.5

3 years ago

3.0.0-alpha.4

3 years ago

3.0.0-alpha.6

3 years ago

3.0.0-alpha.0

3 years ago