• Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔆 The colour palette, based on Google's Material Design, for use in your project.

Material Design Color

The colour palette, based on Google's Material Design, for use in your project.

Installation

  • git: git clone git://github.com/mrmlnc/material-color.git;
  • bower: bower install --save material-color
  • npm: npm install --save material-design-color;

Supported languages

Support for all popular css preprocessors:

How to use

Just import the file, whitch includes variables colors in your project.

// Less, SCSS, Stylus
@import "lib/material-color";

The build variable:

(@|$)clr-(color)-(range)

  • (@|$) - Sign of the variable in the preprocessor.
  • (color) - Color.
  • (range) - 100, 300, 700, A100 and so on. The default value of 500.

Example:

@import "lib/material-color";

.example-1 {
  background-color: @clr-blue;
}

.example-2 {
  background-color: @clr-green-700;
}

Additional variables

Additional variables for text based on Material Design Typography.

// Typography
clr-ui-display-4
clr-ui-display-3
clr-ui-display-2
clr-ui-display-1
clr-ui-headline
clr-ui-title
clr-ui-subhead-1
clr-ui-body-2
clr-ui-body-1
clr-ui-caption
clr-ui-menu
clr-ui-button

Mixin

There are provided lists of variables for looping through the colors. In order to use this functionality you must import file and call mixin(s):

@import "mixins/class-generator";

// Less
.material-color-class("red"); // another color or "all"
.material-color-class("red", background-color); // another property or empty (default: color)

// SCSS
@include material-color-class("red"); // another color or "all"
@include material-color-class("red", background-color); // another property or empty (default: color)

// Stylus
material-color-class('red'); // another color or 'all'
material-color-class('red', background-color); // another property or empty (default: color)

Thanks

Changelog

See the Releases section of our GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

More Repositories

1

fast-glob

🚀 It's a very fast and efficient glob library for Node.js
JavaScript
2,123
star
2

vscode-scss

🔌 IntelliSense for Variables, Mixins and Functions in all Sass (SCSS syntax only) files.
TypeScript
172
star
3

material-shadows

💭 Mixins for Material Design Shadows
CSS
85
star
4

emitty

A platform for finding dependencies between files and building tools for incremental compilation or build.
TypeScript
67
star
5

vscode-csscomb

🔌 VS Code plugin for CSScomb — CSS coding style formatter.
TypeScript
65
star
6

vscode-postcss-sorting

🔌 VS Code plugin to sort CSS rules content with specified order.
TypeScript
57
star
7

vscode-duplicate

🔌 Ability to duplicate files in VS Code.
TypeScript
50
star
8

vscode-stylefmt

🔌 VS Code plugin for stylefmt— Format your CSS using stylefmt.
TypeScript
45
star
9

vscode-autoprefixer

🔌 Parse CSS and add vendor prefixes automatically.
TypeScript
40
star
10

yellfy

🐺 🚧 Yellfy is a simple template for your new web application or website.
CSS
32
star
11

vscode-less

🔌 Less intellisense for Variables and Mixins in all Less files.
TypeScript
29
star
12

vscode-apache

🔌 Apache conf syntax highlighting for VS Code.
21
star
13

vscode-json5

🔌 Syntax highlighting of JSON5 files in VS Code.
20
star
14

syncy

📁 One-way synchronization of directories with glob
TypeScript
19
star
15

less-guidebook-for-beginners

📖 Книга о CSS-препроцессоре Less для начинающих и продвинутых пользователей.
19
star
16

vscode-lebab

🔌 VS Code plugin for Lebab — Lebab transpiles your ES5 code to ES2015.
TypeScript
19
star
17

hamburger-icon

🍔 A collection of mixins for creating hamburger icons.
CSS
16
star
18

posthtml-attrs-sorter

📮 Sorting of the tag attributes in the specified order.
JavaScript
15
star
19

yellfy-pug-inheritance

🐺 Determine the inheritance of Pug (Jade) templates.
TypeScript
14
star
20

tslint-config-xo

🚧 XO config for TSLint.
JavaScript
13
star
21

October-Russian-Language

📝 Полный перевод языковых файлов OctoberCMS на русский язык.
PHP
12
star
22

svg2sprite-cli

🔑 CLI interface for svg2sprite.
JavaScript
12
star
23

vscode-doiuse

🔌 Lint CSS for browser support against caniuse database.
TypeScript
11
star
24

less-mq

📎 Really simple media queries in Less.
CSS
10
star
25

svg2sprite

🎆 A very simple module to generate SVG sprites.
TypeScript
10
star
26

windows-ls

📁 Simple implementation of the ls command for windows
JavaScript
10
star
27

vscode-jade-snippets

Jade Snippets for Visual Studio Code.
10
star
28

vscode-vash

🔌 Vash integration for VS Code.
TypeScript
9
star
29

vscode-attrs-sorter

🔌 VS Code plugin for sorting of the tag attributes in the specified order.
JavaScript
8
star
30

scandir-native

A fs.scandir method with some features.
C++
8
star
31

xy-flexbox

📐 XY is a small and very flexible collection of mixins for building grids based on flexbox.
CSS
8
star
32

dotfiles

PowerShell
6
star
33

vscode-pugbeautify

🔌 Simple Pug/Jade beautify plugin for VS Code.
TypeScript
5
star
34

grunt-puglint

🐗 Grunt plugin for pug-lint (formerly Jade)
JavaScript
5
star
35

vscode-puglint

🔌 Linter and style checker for Pug (formerly Jade) as plugin for VS Code.
TypeScript
5
star
36

windows-drive-letters

💾 List of available drive letters for use.
TypeScript
4
star
37

imdisk-wrapper

📦 ImDisk wrapper to create and delete virtual disks.
JavaScript
4
star
38

chrome-vk-commentblocker

Расширение для браузера Google Chrome, которое позволяет скрывать и показывать комментарии.
TypeScript
4
star
39

series-getting-started-node

Код к статьям из серии «Начало работы с Node».
JavaScript
3
star
40

expand-placeholder

📦 Takes a string and interpolates the values.
JavaScript
3
star
41

xy-float

📐 XY (float) is a small and very flexible collection of mixins for building grids based on floating elements.
CSS
2
star
42

less-symbols-parser

A very simple and fast Less parser for Mixins, Variables and Imports.
TypeScript
2
star
43

scss-symbols-parser

A very simple and fast SCSS parser for Mixins, Functions, Variables and Imports.
TypeScript
2
star
44

vscode-slm

🔌 Slm language support for VS Code.
1
star
45

bencho

A command-line benchmarking tool.
TypeScript
1
star
46

vscode-config-resolver

Deprecated. Use «config-profiler».
TypeScript
1
star
47

gulp-example-plugin

Пример плагина для статьи «Пишем ваш первый плагин для Gulp»
JavaScript
1
star
48

yellfy-svg-sprite

🐺 svg2sprite wrapper for easy integration into the development process.
TypeScript
1
star