Questions tagged [materialize]

An open-sourced, modern, responsive front-end framework based on Material Design

materializecss

Its official website materializecss.com describes it as:

A modern responsive front-end framework based on Material Design.

This is an open-source framework under the MIT license. Its official git repository is hosted on Github.

The framework is maintained by a team of four students from Carnegie Mellon University. For more about them, visit http://materializecss.com/about.html#team.

The site has a beautiful section named Showcase where various websites/apps, which use this as a frontend framework, are listed which caters for other developers with a real-world example and inspiration.

Getting started guide

Getting Started is basically a learning guide - how to easily start using Materialize in one's website.

Inbuilt JavaScript plugins

  1. Collapsible
  2. Dialogs
  3. Dropdown
  4. Media
  5. Modals
  6. Parallax
  7. Pushpin
  8. ScrollFire
  9. ScrollSPy
  10. SideNav
  11. Tabs
  12. Transitions
  13. Waves

How can I compile my Sass

This section is only relevant if you work with the Sass version of Materialize.

First, you need to install Sass in your working directory:

gem install sass

When you have Sass installed on your project and you want to update your output .css file, you need to use the following command:

sass sass/materialize.scss public/style.css

NOTE: the second parameter sass/materialize.scss is the path to your .scss file, and the last parameter sass/style.css is the path to your output folder when the file .css file is located.

If you want to avoid this command every time when you do a change, you can run a watch command:

sass --watch sass/sass:public/stylesheets

NOTE: this command watches all Sass files in the SCSS directory for changes and then update the style file into our public directory.

Social Links

What is Material Design

Created and designed by Google, Material Design is a design language that combines the classic principles of successful design along with innovation and technology. Google's goal is to develop a system of design that allows for a unified user experience across all their products on any platform.

Principles of Material Design

  1. Material is the metaphor - The metaphor of material defines the relationship between space and motion. The idea is that the technology is inspired by paper and ink and is utilized to facilitate creativity and innovation. Surfaces and edges provide familiar visual cues that allow users to quickly understand the technology beyond the physical world.

  2. Bold, graphic, intentional - Elements and components such as grids, typography, color, and imagery are not only visually pleasing, but also create a sense of hierarchy, meaning, and focus. Emphasis on different actions and components create a visual guide for users.

  3. Motion provides meaning - Motion allows the user to draw a parallel between what they see on the screen and in real life. By providing both feedback and familiarity, this allows the user to fully immerse him or herself into unfamiliar technology. Motion contains consistency and continuity in addition to giving users additional subconscious information about objects and transformations.


Related tags

3559 questions
11
votes
2 answers

Materialize CSS Navbar Search is broken

Navbar search is broken on chrome 50+ using either of these versions: materialize 0.97.6 materialize 0.97.5 Code used is as described in the documentation:
11
votes
8 answers

Materialize Carousel Slider autoplay

Is there a parameter to make the materialize carousel slider to auto play? $('.carousel').carousel(); for example (this parameter doesn't work): $('.carousel').carousel({ autoplay: true }); Thank you!
Leandro Soriano
  • 669
  • 1
  • 6
  • 14
11
votes
1 answer

Materialize CSS side-nav not working

I have a basic setup of Materialize running and everything seems to be fine, except for the slide out side-nav. Here's my code. Menu:
10
votes
6 answers

How do I correctly capture Materialize-CSS datepicker value in React?

I am looking to create a form with a datepicker in my React component with materialize-css. I don't have many fields this form is capturing and the structure is fairly simple. The form returned looks like this:
Matt
  • 5,404
  • 3
  • 27
  • 39
10
votes
3 answers

How to use MaterializeCss with Vue.js?

I don't want to use Vue-Material nor Vuetify. I want to use Materialize. What I do is: npm install materialize-css@next In main.js, where my new Vue App is defined I import Materialize like this: import 'materialize-css' Somehow the javascript is…
Suisse
  • 3,467
  • 5
  • 36
  • 59
10
votes
1 answer

spring model binding with disabled input

sorry for a dumb question but i can't understand quite what happens, and if it is what i suspect.. well i am really at a loss. i am using spring boot + thymeleaf + materialize css to show and validate a form. now what i don't meet in many examples…
hello_earth
  • 1,442
  • 1
  • 25
  • 39
10
votes
3 answers

How to use materialize-css with angular

I have created an angular4 project with angular-cli. I want to materialize-css@next library. So I have installed it using npm install materialize-css@next --save so this installed "materialize-css": "^1.0.0-alpha.2", Then in the angular-cli.json I…
Sunil Garg
  • 14,608
  • 25
  • 132
  • 189
10
votes
2 answers

Integrate materialize in a Angular2 project with webpack and SCSS

As explain in the title I'm trying to integrate Materialize in my Angular 2 project. The project was generated with "AngularCli" and Im using "Webpack" and "Scss" The tuto I found are all differents I don't understand how to do it for a scss use : …
An-droid
  • 6,433
  • 9
  • 48
  • 93
10
votes
4 answers

React Router (v4) Navbar

I am using v4 of react-router-dom I need to access this.props.match in my nav bar component so I can set the active class. I'm using react-materialize. In the tag, I want to add className={this.props.match ? 'active' : ''}. However, I…
technogeek1995
  • 3,185
  • 2
  • 31
  • 52
10
votes
3 answers

Is it possible to use Materializecss without jQuery?

I would like to use materializecss without jQuery. For example, I want to do the following without the use of jQuery: $('.chips-initial').material_chip({ data: [{ tag: 'Apple', }, { tag: 'Microsoft', }, { tag:…
rjaraba
  • 103
  • 2
  • 10
10
votes
4 answers

How to use MaterializeCSS in Angular 2

I really want to use materializecss in Angular2. I followed the steps from https://www.npmjs.com/package/angular2-materialize. I'm still studying Angular2 and using angular-cli. But I don't know where to add the plugin bec. I don't know where…
LordGrim
  • 731
  • 2
  • 11
  • 22
10
votes
8 answers

Full page column in materialize css

First here is the screenshot of what is wrong with the current code and here is the code that is associated with the same
10
votes
8 answers

How do I get the Materialize select dropdown to work with React?

Adding the following template code provided by Materialize doesn't immediately work in a React component: