-
Notifications
You must be signed in to change notification settings - Fork 14
Advanced Usage
David Furnes edited this page May 6, 2014
·
1 revision
You can also integrate Neue into your own SCSS/JavaScript build process. For SCSS, include Neue's main SCSS file and set where your local copy of Neue is located:
$neue-path: "bower_components/neue"; // used by URL helper functions
@include "bower_components/neue/scss/neue";
You can also include only Neue's helper mixins, variables, and functions by including only helpers.scss
:
$neue-path: "bower_components/neue"; // used by URL helper functions
@include "bower_components/neue/scss/helpers";
For JavaScript, you can include Neue as an AMD module using RequireJS. Add Neue to your path and include the "main"
module (or selectively include specific modules that you need):
require.config({
paths: {
"neue": "bower_components/neue/js"
}
});
require("neue/main");
Be sure to include the bundled js/vendor/modernizr.js
in your page's <head>
.