Skip to content

nwalkewicz/mat-colors-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

mat-colors-css

This repository contains a stylesheet that has all of the Material Design colors converted to CSS variables.

Basic Use

To use the stylesheet, download the CSS file and link to it: <link rel="stylesheet" href="mat-colors.css">.

To use a particular color (for example, Blue A700), format your element as such:

div {

	background-color: var(--clr-mat-blue-a700);
}

...which will use the #2962ff color.

Light and Dark Variants

To use a light or dark variant of a color, simply add "l" or "d" to the end of the variable name. For example: var(--clr-mat-blue-a700l) will represent #768fff.

About

Material Color Tool in a handy CSS file!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published