Chameleon

openSUSE Design System for Web.

Use CDN

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-3.0/dist/css/chameleon.css"
/>

<!-- jQuery Slim -->
<script
  src="https://static.opensuse.org/chameleon-3.0/dist/js/jquery.slim.js"
  defer
></script>
<!-- Bootstrap Script -->
<script
  src="https://static.opensuse.org/chameleon-3.0/dist/js/bootstrap.bundle.js"
  defer
></script>
<!-- Chameleon Script -->
<script
  src="https://static.opensuse.org/chameleon-3.0/dist/js/chameleon.js"
  defer
></script>

If the site is based on Bootstrap 3, here is a minimal build to use:

<!-- Chameleon Style -->
<link
  rel="stylesheet"
  href="https://static.opensuse.org/chameleon-3.0/dist/css/chameleon-bs3.css"
/>

<!-- Chameleon Script -->
<script
  src="https://static.opensuse.org/chameleon-3.0/dist/js/chameleon-bs3.js"
  defer
></script>
<script
  src="https://static.opensuse.org/chameleon-3.0/dist/js/chameleon.js"
  defer
></script>

Use NPM

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";

Examples

Here are already several websites integrated with Chameleon.