Copy & paste the HTML below into your web project and you’re good to go.
<link rel="stylesheet" href="https://assets.clubcollect.com/hitman/1.0.4/hitman.core.min.css"/>
<script src="https://assets.clubcollect.com/hitman/1.0.4/hitman.core.min.js"></script>
All styles for rails applications should be pulled from this styleguide. In the rare occasion extra styles are needed, a PR should be opened against this repository. The HitmanHelper needs to be added to the project for the following examples to work. Please contact a Hitman maintainer for help with this initial setup if it’s not available.
<%= stylesheet_link_tag styleguide_styles_url(:core), media: 'all' %>
<%= stylesheet_link_tag styleguide_styles_url(:rails), media: 'all' %>
Only core vendor dependencies are provided by Hitman, such as jQuery and Bootstrap.js.
<%= javascript_include_tag styleguide_scripts_url(:core) %>
<%= javascript_include_tag styleguide_scripts_url(:rails) %>
Rails apps have a single HITMAN_VERSION constant that should be present. This is best hardcoded so it is versioned along with the rest of the codebase. Updating this value will use a different version of Hitman.
It is recommended to collaborate with a Hitman maintainer when new styles are to be added, or changes need to be made. If this is not possible for some reason, or you want to experiment with something before suggesting a change, you can run a local copy of hitman directly inside your apps.
Start a new Hitman server locally from a cloned copy of this repository:
bin/hitman serve --port 3000 --live
Update the corresponding ENV var in your rails app to point to the new local server:
export HITMAN_BASE_URL="http://localhost:3000/dist"
Coming soon