{"id":13637376,"url":"https://github.com/mkhairi/material-sass","last_synced_at":"2025-10-08T18:26:56.103Z","repository":{"id":28961959,"uuid":"32488139","full_name":"mkhairi/material-sass","owner":"mkhairi","description":"A rubygem of Material Design for Bootstrap 4","archived":false,"fork":false,"pushed_at":"2019-06-30T02:00:38.000Z","size":3618,"stargazers_count":55,"open_issues_count":3,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-29T14:17:13.386Z","etag":null,"topics":["bootstrap","bootstrap-material-design","bootstrap4","css","material","rails","rubygem","rubygems","rubyonrails"],"latest_commit_sha":null,"homepage":"http://daemonite.github.io/material/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkhairi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-18T22:40:45.000Z","updated_at":"2023-03-12T16:33:55.000Z","dependencies_parsed_at":"2022-08-17T17:40:57.863Z","dependency_job_id":null,"html_url":"https://github.com/mkhairi/material-sass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhairi%2Fmaterial-sass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhairi%2Fmaterial-sass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhairi%2Fmaterial-sass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkhairi%2Fmaterial-sass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkhairi","download_url":"https://codeload.github.com/mkhairi/material-sass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235515428,"owners_count":19002481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap-material-design","bootstrap4","css","material","rails","rubygem","rubygems","rubyonrails"],"created_at":"2024-08-02T00:01:16.450Z","updated_at":"2025-10-06T08:32:00.230Z","avatar_url":"https://github.com/mkhairi.png","language":"Ruby","funding_links":[],"categories":["CSS and JS"],"sub_categories":["Frameworks CSS JS"],"readme":"# Material-sass [![Gem Version](https://badge.fury.io/rb/material-sass.svg)](http://badge.fury.io/rb/material-sass)\n\n`material-sass` is a rubygems version of Material Design for Bootstrap 4\n\nOffical repo  [github.com/Daemonite/material](https://github.com/Daemonite/material)\n\nDocumentation [daemonite.github.io/material](http://daemonite.github.io/material)\n\n\n## Dependencies\n\n**Rails 5.1+**\nThe Rails JavaScript helpers has been rewritten in a new gem called rails-ujs and they use vanilla JavaScript, so jQuery is not a dependency of Rails anymore. \nSince bootstrap relies on it, install it with ```bin/yarn add jquery``` or via ```gem 'jquery-rails'```  and add ```//= require jquery``` to ```application.js```. \n\n**NOTE:** Ensure that the `sass-rails` gem is presented in your Gemfile.\n\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bootstrap',     '4.1.1'\ngem 'material-sass', '4.1.1'\n```\nAnd then run the bundler and restart your server to make the files available through the pipeline:\n\n```console\n$ bundle install\n```\n\nOr install it yourself as:\n\n```console\n$ gem install material-sass\n```\n\n## Usage\n\n### a. Sass\n\nImport Materialize styles in `app/assets/stylesheets/application.scss`:\n\n```scss\n@import \"material\";\n//ps: no need to import 'bootstrap'\n```\n\n**NOTE:** If you have just generated a new Rails application, it  may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so remove it.\n\n```console\n$ rm app/assets/stylesheets/application.css\n```\n\n### b. JavaScript\n\nRequire Material javascripts in `app/assets/javascripts/application.js`:\n\n```js\n//= require jquery\n//= require popper\n//= require bootstrap\n//= require material\n```\n\n### c. Icons\n\nInclude this line in the \u003chead\u003eportion of your HTML code\n\n``` \u003clink href=\"https://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\"\u003e ```\n\nor import this line in your application.scss\n\n``` @import \"https://fonts.googleapis.com/icon?family=Material+Icons\"; ```\n\nor install this gem for offline icons\n\n``` gem 'material_icons' ```\n\nsee [docs](https://github.com/Angelmmiguel/material_icons)\n\n## Contributing\nnote: Any changes or Pull Request regarding material assets should be made in official [material](https://github.com/Daemonite/material) repo.\n\n1. Fork it ( https://github.com/mkhairi/material-sass/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkhairi%2Fmaterial-sass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkhairi%2Fmaterial-sass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkhairi%2Fmaterial-sass/lists"}