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
13
votes
6 answers

Materialize Date Picker automatically hide after opening problem on chrome

Materialize datepicker works fine in other browsers and old versions of Google Chrome but it doesn't work properly in new version of Google Chrome JS $('.datepicker').pickadate({ selectMonths: true, //…
Alperen Akti
  • 309
  • 2
  • 10
13
votes
7 answers

Is it possible to export React single page website as HTML?

I have a single page web application using React and materialize-css and I would like to export it as static HTML and CSS so that it is possible to easily edit HTML for the purpose of prototyping. Is it possible to export at least a snapshot of…
Marcin
  • 279
  • 1
  • 4
  • 13
13
votes
2 answers

How to Make a materialize CSS button's width same as col s12?

I want to make the Submit button's length same as the input field above it.
Pratik Saha
  • 301
  • 1
  • 3
  • 9
13
votes
3 answers

Is Materialize Navbar height adjustment possible?

Is it possible to adjust the height of the Navbar in Materialize? 64px is a bit too much for my site. I was going for 30px before I decided to materialize it.
Predrag Stojadinović
  • 3,439
  • 6
  • 34
  • 52
13
votes
7 answers

Materialize inputs not triggering onChange in React?

I have a Materialize input like so: It is being correctly initialised by Materialize, but not firing onChange when the value of the datepicker changes. What am I doing…
j_d
  • 2,818
  • 9
  • 50
  • 91
13
votes
3 answers

How to force npm to use the jquery 2.1.1

I am asking this question as a beginner on node-npm. My current node_modules has a query version 2.2.0. But in the same project i am using materialize-css which has a datepicker component. This component runs on jquery 2.1.1. My question is…
Prakhar
  • 1,065
  • 3
  • 16
  • 30
13
votes
9 answers

How to create autocomplete form with MaterializeCss?

I am looking for autocomplete form for MaterializeCss, any plugins for this? i has try to use select2 but that's css not looks good
Donny Gunawan
  • 363
  • 1
  • 6
  • 21
12
votes
9 answers

TypeError: $(...).sideNav is not a function

I am trying to use Materialize theme to make a side bar in JSF with Spring. And I imported the Materialize's js and css, but it comes out an error TypeError: $(...).sideNav is not a function. I don't know why, and I tried in a normal HTML file, and…
Capslock10
  • 796
  • 2
  • 16
  • 37
12
votes
4 answers

change the color of tab text and the underline in materialize framework

The default color of materialize tabs are pinkish. Also the underline for the active tab. I want to customize that and add some styles. How do I do that?
Kruthika C S
  • 729
  • 1
  • 7
  • 18
12
votes
5 answers

is there any way to change the caption of buttons from capital letters to small letters, in materializedcss?

I'm using materialized css to design my personal website. when I use the button, its caption is always shown in capital letters. I tried to change it but failed to do so. can anyone help me out with this, please?
G.D
  • 141
  • 1
  • 1
  • 7
12
votes
4 answers

Spacing Between Rows with Materialize CSS

Using MaterializeCSS, how can I adjust/remove the vertical spacing between rows? Example code:
foobar
Crash Override
  • 1,337
  • 3
  • 13
  • 26
11
votes
8 answers

Chrome Update 73 - Materialize CSS JS trigger error

After the latest Chrome Update 73, the date pickers, time pickers and dropdowns for Materialize CSS 0.100.2 isn't working anymore, it flickers when you click on it and then disappears. Any idea how to fix this?
doer123456789
  • 369
  • 1
  • 7
  • 22
11
votes
1 answer

m is not defined materialize css

I always get error "M is not defined" el is not defined codepen sample if you open console, you will see the error I first load jquery.min.js then load materialize.min.js .css then load my script.js below. M is not recognized, which it…
hoogw
  • 4,982
  • 1
  • 37
  • 33
11
votes
6 answers

Change the default color of materialize.css input fields. I have attached screenshot

I have tried to add custom css, but not worked. I need to change the color of text after selecting the input fields.
Dipayan Das
  • 161
  • 1
  • 1
  • 6
11
votes
4 answers

How to change the size of a modal materializecss

sorry if the question is very simple but I'm new using materializeCss As I can increase the height and width of a modal materializecss ??
Cristian
  • 191
  • 1
  • 2
  • 14