Metro UI CSS 3.0
Metro UI CSS developed with the advice of Microsoft to build the user interface and include: general styles, grid, layouts, typography, 20+ components, 300+ built-in icons. Metro UI CSS build with {LESS}. Metro UI CSS is open source and has MIT licensing model.
Documentation for v2 can be found here
easy to use
less source
mit license
Whats new in 3.0
- compatible with AngularJS and RequireJS
- full code refactoring & new components
- declarative approach to the definition of components
- framework itself monitors components, pressure via ajax
- create cool page without knowledge of javascript
- support classic approach to definition of components
The main feature in version 3 is: a declarative approach to the definition and initialization of components, and the framework itself monitors components, pressure via ajax. When a declarative definition of all component parameters are set via data-* attributes, including methods and events of the component. This approach allows to further separate html and javascript code. Now that would determine which component do not need to know javascript :). It is still possible to determine which component directly via javascript.
Simple steps to create cool pages
-
Create page with HTML5 DOCTYPE
<!DOCTYPE html>
-
Include required styles and libs
<!DOCTYPE html> <html> <head> <link href="metro.css" rel="stylesheet"> <script src="jquery.js"></script> <script src="metro.js"></script> </head> </html>
-
Use declarative style to create components
<!DOCTYPE html> <html> <head> <link href="metro.css" rel="stylesheet"> <script src="jquery.js"></script> <script src="metro.js"></script> </head> <body> <h1>Hello world!</h1> <div class="countdown" data-role="countdown" data-days="2"></div> </body> </html>
-
Enjoy the result
Hello world!