0.1.5 • Published 4 years ago

@4tw/vue-cli-plugin-vuetify-preset-4tw v0.1.5

Weekly downloads
35
License
ISC
Repository
github
Last release
4 years ago

@4tw/vue-cli-plugin-vuetify-preset-4tw

Company Preset for Vuetify.

Usage

Install:

$ yarn add @4tw/vue-cli-plugin-vuetify-preset-4tw

Vuetify version 2.2.0 and higher is required for using presets (see Vuetify's release notes).

Configure Plugin:

Locate the file where you are configuring Vuetify in your project and add the preset to the Vuetify configuration options. See Vuetify's documentation for further information on how the preset configuration is merged into the project.

// src/plugins/vuetify.js

import Vue from 'vue';
import Vuetify from 'vuetify/lib/framework';
import { preset } from '@4tw/vue-cli-plugin-vuetify-preset-4tw/preset';

Vue.use(Vuetify);

export default new Vuetify({
  preset,
});

Roboto Font:

The preset uses the default Roboto font. Currently, you have to include the font in your own project. This might change in the future

Compilation Time:

Importing Vuetify in the following way might speed up compilation time. See here for further information.

// src/plugins/vuetify.js

import Vuetify from 'vuetify/lib/framework'

Variables

You can use all of Vuetify's SASS variables inside your components' style section. Additionally you can use the variable $app-colors to access the color values used in this preset.

App Colors:

The following colors are available. To use a particular color, use the map-get mixin like this:

border: 1px solid map-get($app-colors, 'greydark');
NameUsage/Examples
primaryActionable contet like links, buttons
accentUse to emphasize importance
errorSystem errors, delete buttons
infoInformation snackbar
successSuccess messages, add buttons
warningWarning messages, warning icons
appbargreyApp-Bar background
greydarkDarker backgrounds, dividers, input fields
greylightLighter backgrounds, buttons
bodydarkMain textcolor
bodylightLight textcolor
0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago