Chameleon asset files are hosted at https://static.opensuse.org to improve webpage loading speed. This is the most recommended way to use Chameleon.
<!-- Chameleon Style -->
<link
rel="stylesheet"
href="https://static.opensuse.org/chameleon-2.0/dist/css/chameleon.css"
/>
<!-- Chameleon Script Bundled with jQuery and Bootstrap -->
<script
src="https://static.opensuse.org/chameleon-2.0/dist/js/chameleon.js"
defer
></script>
If the website (WordPress, MediaWiki, etc.) already provides jQuery:
<!-- Chameleon Script Bundled with Bootstrap -->
<script
src="https://static.opensuse.org/chameleon-2.0/dist/js/chameleon-no-jquery.js"
defer
></script>
If the website (for Weblate, etc.) already provides jQuery and Bootstrap 4:
<!-- Chameleon Script -->
<script
src="https://static.opensuse.org/chameleon-2.0/dist/js/chameleon-no-bootstrap.js"
defer
></script>
If the website requires a lot of SaSS variables and mixins from Chameleon and Bootstrap, then you need to install the package locally.
npm install --save @opensuse/chameleon
Here are different build system you can use: Webpack, Gulp, Grunt, Rollup. But ways to import SCSS and JS files are similiar.
// SCSS
@import "@opensuse/chameleon";
// CJS
require("@opensuse/chameleon");
// ES6
import "@opensuse/chameleon";
src/js/data/sprite.js
Here are already several websites integrated with Chameleon.