1.0.0 • Published 5 years ago

sone-vue-material v1.0.0

Weekly downloads
16
License
-
Repository
-
Last release
5 years ago

S1VM

A CSS extension to help Solutions One Design + Vue Material work perfectly together. Documentation here

Project setup

	npm install

Compiles and hot-reloads for development

	npm run serve

Compiles and minifies for production

	npm run build

Customize configuration

See Configuration Reference.

Starting a new app

  1. First, we recommend that you have the following ready environment: a. NodeJS link b. NPM link c. Ruby (to local sass compile) link d. Ruby Sass (to local sass compile) link e. windows-build-tools link

  1. Install Vue CLI 3 and use it to create your app.
	vue create my-new-app

  1. Add Vue Material to your project
	npm install vue-material --save

  1. Install sass dependences to use S1VM
	npm install sass-loader --save
	npm install node-sass --save

  1. Add all content from S1VM/src/style/ in assets/css/
	//FROM S1VM
	src/
	  style/
		layout
		theme
		_global-variables.scss
		index.scss
		layout.scss
		theme.scss

	//TO YOUR APP PROJECT
	assets/
	  css/
		layout
		theme
		_global-variables.scss
		index.scss
		layout.scss
		theme.scss

  1. (Optional) We have some high-level settings to you.

a. Use md-register-theme in theme.scss to configure the colors of your app. See the documentation here (Vue Material - Themes - Configuration)

	@include  md-register-theme(
		"default",
		(
			primary: md-get-palette-color(blue, 900),
			accent: md-get-palette-color(pink, 500)
		)
	);

b. Use _global-variables.scss to configure S1VM bg- color and general settings.

	//S1VM Settings
	$utilitiesClassNamePrefix: "s1-U";
	$forceSuffix: "-force";

	//THEME
	$app-background-color: #fafafa;