Out of the box you get access to all colors in the Material Design spec through sass and javascript. These values can be used within your style sheets, your component files and on actual components via the color class system.
Each color from the spec gets converted to a background and text variant for styling within your application through a class, e.g. <div class="red">
or <span class="red--text">
. These class colors are defined here.
텍스트 색상 역시 어둡게(darken) 와 밝게(lighten) 만드는 변형(variants)을 text--{lighten|darken}-{n}
형식으로 지원합니다.
Vuetify는 추가로 어플리케이션 내에서 임포트(import) 해서 사용할 수 있는 자바스크립트 색상 팩을 지원합니다. 이는 어플리케이션 테마를 정의하는데 사용될 수도 있습니다.
While convenient, the color pack increases the CSS export size by ~30kb. Some projects may only require the default provided classes that are created at run-time from the Vuetify bootstrap. To disable this feature, you will have to manually import and build the main sass file. This will require a Sass loader and a .sass
/.scss
file entry.
Your created main.sass
file will then need to be included in your project.
You must configure your webpack setup to use sass
. If you are using a pre-made template this will already be done for you.
This can also be done within your main App.vue file. Keep in mind, depending on your project setup, this will increase build times as every time your entry file is updated, the Sass files will be re-generated.
아래 리스트는 주색상으로 묶은 메테리얼 디자인 색상 팔레트 입니다.
더 읽을 준비 되었나요? 그렇다면 아래 설명서를 더 읽어보세요!