Browser integration

Stylify can be used directly in the browser using CDN or imported as a module.

This setup is great for a quick setup when you want for example to build a single page or dont want to use bundlers or node at all.

Integration example for browser can be found in integrations examples repository .

For production purposes, use correct version instead of the latest. Otherwise, during the request for the file, there will be an internal redirect in the CDN in order to get the correct version which will increase the page loading time.

<script src=""></script>

    // ...
    compiler: {
        // ...
import { Runtime, nativePreset } from '@stylify/stylify';

// Optional configuration
nativePreset.compiler.variables = {
    blue: 'steelblue'
// ...

new Runtime(nativePreset);

Where to go next?