Skip to content

A demo page for testing a wide range of typesetting combos in Capital Framework.

License

Notifications You must be signed in to change notification settings

nataliafitzgerald/cf-type-testing

 
 

Repository files navigation

Capital Framework Type Testing

A demo page for testing a wide range of typesetting combos in Capital Framework.

Dependencies

  • Grunt: task runner for pulling in assets, linting and concatenating code, etc.
  • Bower: Package manager for front-end dependencies.
  • Less: CSS pre-processor.
  • Capital Framework: User interface pattern-library produced by the CFPB.

NOTE: If you're new to Capital Framework, we encourage you to start here.

Installation

  1. Install Node.js however you'd like.
  2. Install Grunt and Bower:
npm install -g grunt-cli bower
  1. Next, install the dependencies and compile the project with:
./setup.sh

NOTE: To re-install and rebuild all the site’s assets run ./setup.sh again. See the usage section on updating all the project dependencies.

Configuration

If the software is configurable, describe it in detail, either here or in other documentation to which you link.

Usage

Each time you fetch from the upstream repository (this repo), run ./setup.sh. This setup script will remove and re-install the project dependencies and rebuild the site's JavaScript and CSS assets.

To watch for changes in the source code and automatically update the running site, open a terminal and run:

grunt watch

Alternatively, if you don't want to run the full watch task, there are three available sub-tasks:

# Watch & compile CSS only
grunt watch:css

# Watch & compile JS only
grunt watch:js

# Watch & compile CSS & JS only
grunt watch:cssjs

How to test the software

After running ./setup.sh or compiling with Grunt, you can view the site in a browser by opening /dist/index.html. Alternatively, you may want to use a local server with something like python -m SimpleHTTPServer.

Known issues

Document any known significant shortcomings with the software.

Getting help

Instruct users how to get help with this software; this might include links to an issue tracker, wiki, mailing list, etc.

Use the issue tracker to follow the development conversation. If you find a bug not listed in the issue tracker, please file a bug report.

Getting involved

We welcome your feedback and contributions. See the contribution guidelines for more details.

Additionally, you may want to consider contributing to the Capital Framework, which is the front-end pattern library used in this project.


Open source licensing info

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy

Credits and references

  1. Projects that inspired you
  2. Related projects
  3. Books, papers, talks, or other sources that have meaniginful impact or influence on this project

About

A demo page for testing a wide range of typesetting combos in Capital Framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 64.4%
  • JavaScript 31.2%
  • HTML 4.0%
  • Other 0.4%