📜 ⬆️ ⬇️

My Material Design Framework

image

Hello! Today I decided to talk about my small project, namely about the HTML framework in the style of Material Design. You can download it from GitHub: link . It works best on Webkit browsers. Now take a closer look.

After connecting the material.css and material.js to the document, add the following script to the header:

function main () { setTheme ("Blue"); setAccentColor("Pink"); } 

This code will set the primary and secondary color of the document. What it is and what color schemes are available can be found in the official manual .
')
Now you can start adding items to the page. The library contains the main elements described by the Material Design concept, here they are:


Here only part of the elements is presented, the rest can be seen in this demo document: link . If anyone is interested in this framework, I will write another article about other available elements and additional functionality of the bibliotek.

PS When writing the framework, I used materials from the sites:

WebReference.ru
Modern JavaScript Tutorial
Material design Guidelines

Source: https://habr.com/ru/post/323420/


All Articles