Installation #
You can create a new project or integrate Vuestic UI into an existing application. There are three ways to create new Vuestic App. All of them mostly the same and provides the same features.
Create Vuestic #
create-vuestic
is CLI based tool to create new Vuestic App. This is a recommended way to scaffold new Vue apps with Vuestic.
create-vuestic
provides three template: Vuestic Admin, create-vue and Nuxt. Templates can be configured to use specific features like tree-shaking or AG Grid theme.
Vue CLI installation #
If you have app based on Vue CLI this is a way to install Vuestic UI. Works fine with vite or webpack. Prefer create-vuestic
for new projects
Installing Vuestic UI via the plugin would modify your package.json
and main.(js
|ts)
files, so make sure youโve committed your code before proceeding to avoid data loss.
First, make sure youโve got Vue CLI installed globally:
Notice also that the minimum supported version of Vue CLI is v4.0.0. In case youโve got an older version installed, please, consider upgrading it.
If everythingโs fine then you can finally install the plugin with the following command (donโt forget to commit):
Manual installation #
If you decide to install Vuestic UI manually, all you need to do is to install a NPM package, a couple of other necessary assets (such as fonts and CSS styles) and slightly modify your applicationโs entry point (most probably index.js
or main.js
, depending on your setup).
But first, make sure youโve got all the following prerequisites installed:
After checking the prerequisites, install Vuestic UI via npm or yarn:
Assets installation #
By default Vuestic UI uses Source Sans Pro
and Material Icons
fonts. You should manually add them into your project. In order to do so you can either:
include fonts directly in your index.html
โs <head>
element
or include them in your CSS
Modify your applicationโs entry point #
Import both the styles and the plugin into your entry file. The plugin is used to automatically register all the components, directives and other stuff globally. If you donโt want to register everything globally then check out the tree-shaking section below.