There are many ways to get started with Toolkit. Choose the one that's right for you or your project.
The easiest option would be to download the latest stable version from the official Toolkit GitHub. The current version can be found at the top of the tag list, simply click the "zip" icon.
Once downloaded, extract the zip archive and its contents. The production ready CSS and JavaScript files can be found in the dist
folder. Copy these files into a project and you're done!
The popular option would be to clone the git repository. This provides the distribution files and the source files for a more seamless integration.
Just run the following command to clone the repository.
[sudo] git clone git@github.com:titon/toolkit.git
Toolkit also comes bundled as a Bower package. Simply add toolkit
as a dependency within your project's bower.json
.
{
"dependencies": {
"toolkit": "*"
}
}
From the project root, run bower install
to download the package(s). Once downloaded, include the assets in your project.
<link href="/bower_components/toolkit/dist/toolkit.min.css" rel="stylesheet">
<script src="/bower_components/toolkit/dist/toolkit.min.js"></script>
Lastly, Toolkit comes bundled as a Node.js package. Simply add titon-toolkit
as a dependency within your project's package.json
.
{
"dependencies": {
"titon-toolkit": "*"
}
}
Then run npm install
or npm update
to download the packages.