No commit activity in last 3 years
No release in over 3 years
I wanted to use the US Web Design Standards in a project and found that I had to edit quite a bit to get it ready for Rails development; figured I could share the result to save others the hassle.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
>= 11.3.0, ~> 11.3

Runtime

>= 5.0.0.1, ~> 5.0
 Project Readme

US Web Design Standards

Hey, internet! I bundled the US Web Design Standards into a gem to make Ruby on Rails development easier for federal agencies. It took me a bit of tinkering, and wasn't something I wanted to do again, so I figured I'd share the results of the effort. As of today, I think everything works "the Ruby way," but if you find anything at all, let me know or submit a pull request and I'll make sure to keep this updated.

Installation

Add to your application's Gemfile:

gem 'us_web_design_standards_ror', '0.2.3'

then run bundle in the console, and then add the following to /app/assets/stylesheets/application.css:

*= require uswds

and add the following to /app/assets/javascripts/application.js:

//= require uswds

From there, you should be good with the CSS and JS of the U.S. Web Design Standards. Integration of the bundled fonts and images is coming in a future release.

Usage

The US Web Design Standards documentation can be found here. It behaves similarly to Bootstrap, but has some peculiarities.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Quinncuatro/USWebDesignStandardsRoRGem.

License

The gem is available as open source under the terms of the MIT License.

To-Do

- [X] Create installer to inject CSS/JS into asset pipeline

  • Make stable way to include USWDS CSS/JS into asset pipeline
  • Create stable way to inject fonts/images into asset pipeline
  • Create demo page to show implementations of various USWDS features in production
  • Clean up code so that this doesn't LOOK like my first gem