Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
2
Maintainers
8
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

4teamwork vuetify preset


Version published
Weekly downloads
15
increased by400%
Maintainers
8
Install size
85.6 kB
Created
Weekly downloads
 

Readme

Source

@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

FAQs

Last updated on 19 Aug 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc