{"id":13880571,"url":"https://github.com/foundation/foundation-rails","last_synced_at":"2026-03-12T09:27:02.254Z","repository":{"id":1643365,"uuid":"2368749","full_name":"foundation/foundation-rails","owner":"foundation","description":"Foundation for Rails","archived":false,"fork":false,"pushed_at":"2024-12-02T22:58:07.000Z","size":7844,"stargazers_count":1004,"open_issues_count":11,"forks_count":378,"subscribers_count":60,"default_branch":"develop","last_synced_at":"2025-06-03T18:52:00.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"foundation.zurb.com","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"uranusjr/macdown","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foundation.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-09-12T02:25:19.000Z","updated_at":"2025-02-23T12:18:38.000Z","dependencies_parsed_at":"2023-02-10T23:15:28.956Z","dependency_job_id":"9f8dad0b-ed0f-4890-85d3-93c98bbf2a0f","html_url":"https://github.com/foundation/foundation-rails","commit_stats":{"total_commits":200,"total_committers":46,"mean_commits":"4.3478260869565215","dds":0.83,"last_synced_commit":"94508cfa5c721b2330e7f2a58436859e183a4ee7"},"previous_names":["zurb/foundation-rails"],"tags_count":80,"template":false,"template_full_name":null,"purl":"pkg:github/foundation/foundation-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foundation","download_url":"https://codeload.github.com/foundation/foundation-rails/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-rails/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261853338,"owners_count":23219845,"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":[],"created_at":"2024-08-06T08:03:13.588Z","updated_at":"2025-12-17T23:33:00.821Z","avatar_url":"https://github.com/foundation.png","language":"SCSS","funding_links":[],"categories":["Uncategorized","SCSS"],"sub_categories":["Uncategorized"],"readme":"# Foundation::Rails\n\n[![Gem Version](https://badge.fury.io/rb/foundation-rails.svg)](https://badge.fury.io/rb/foundation-rails)\n\n**Foundation::Rails** is a gem that makes it super easy to use Foundation in your upcoming Rails project.\n\n## Installation\n\nAdd these lines to your application's Gemfile:\n\n```shell\ngem 'foundation-rails'\ngem 'autoprefixer-rails'\n```\n\nAnd then execute:\n\n```shell\nbundle\n```\n\nOr install it yourself as:\n\n```shell\ngem install foundation-rails\n```\n\n### Configuring Foundation\n\nYou can run the following command to add Foundation:\n\n```shell\nrails g foundation:install\n```\n\nGenerating Haml or Slim versions of the markup can be done by appending the `--haml` or `--slim` option to the above command.\n\n### Motion UI\n\n[Motion UI](https://github.com/zurb/motion-ui) is a Sass library for creating flexible UI transitions and animations, and it comes packaged with the `foundation-rails` gem. To use Motion UI, uncomment the following lines from `foundation_and_overrides.scss`:\n\n```scss\n// @import 'motion-ui/motion-ui';\n// @include motion-ui-transitions;\n// @include motion-ui-animations;\n```\n\n## Manual Installation\n\n### Add Foundation to your CSS\n\nAppend the following line to your `app/assets/stylesheets/application.css` file:\n\n```scss\n/*= require foundation\n```\n\nIf you're planning on using Sass, then you'll want to rename `application.css` to `application.scss`. That file should then look like:\n\n```scss\n@import \"foundation_and_overrides\";\n/* Add imports of custom sass/scss files here */\n```\n\n### Add Foundation to your JS\n\nAppend the following lines to your `app/assets/javascripts/application.js` file:\n\n```js\n//= require foundation\n$(function(){ $(document).foundation(); });\n```\n\nOr if you use Turbolinks:\n\n```js\n//= require foundation\n$(document).on('turbolinks:load', function() {\n    $(function(){ $(document).foundation(); });\n});\n```\n\n### Set Viewport Width\n\nAdd the following line to the `head` of your page layout:\n\n```html\n\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /\u003e\n```\n\n## Usage\n\nRun the generator to add foundation to the asset pipeline:\n\n```shell\nrails g foundation:install [layout_name] [options]\n\nOptions:\n    [--haml]         # Generate HAML layout instead of erb\n    [--slim]         # Generate Slim layout instead of erb\nRuntime options:\n    -f, [--force]    # Overwrite files that already exist\n    -p, [--pretend]  # Run but do not make any changes\n    -q, [--quiet]    # Suppress status output\n    -s, [--skip]     # Skip files that already exist\n```\n\n## Contributing\n\n1. Fork it\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 new Pull Request\n\n## Resources\n\n* [Foundation Docs](http://foundation.zurb.com/docs)\n* [Foundation Forum](http://foundation.zurb.com/forum)\n* [Foundation Training](http://zurb.com/university/courses)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoundation%2Ffoundation-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoundation%2Ffoundation-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoundation%2Ffoundation-rails/lists"}