Installation - CDN

Install Inkline using the official JSDelivr CDN integration. The content delivery network (CDN) provides super fast asset delivery from a server that is closest to you.

The quickest way to get started, with minimal setup, is to add the files from a CDN.

If you're not using using package managers and build systems and you want to add Inkline to your project, you can import the compiled files from:

<link href="https://cdn.jsdelivr.net/npm/@inkline/inkline/dist/inkline.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@inkline/inkline/dist/inkline.js"></script>

Starter Template

To quickly test Inkline, copy the code below into your index.html or try it out live on StackBlitz (opens new window). This will pull the latest version of Vue and Inkline, allowing you to start playing around with Vue and Inkline's components.

Be sure to have your pages set up with the latest design and development standards, using an HTML5 doctype and including a viewport meta tag for proper responsive behavior.

The files can be browsed and downloaded from a CDN such as unpkg (opens new window) or jsDelivr (opens new window). The various different files are explained later but you would typically want to download both a development build and a production build.

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link href="https://unpkg.com/@inkline/inkline@next/inkline.css" rel="stylesheet">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
<div id="app">
    <i-container>
        <i-row>
            <i-column>
                <h1>
                    Welcome to Inkline!
                </h1>
                <p>
                    This is your starter page. Make sure to read the documentation to learn about what Inkline has to offer.
                </p>
                <i-button color="primary" href="https://inkline.io/docs/introduction">
                    Read Documentation
                </i-button>
            </i-column>
        </i-row>
    </i-container>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="https://unpkg.com/@inkline/inkline@next"></script>
<script>
    const { createApp } = Vue;

    const components = {};
    Object.keys(Inkline).forEach((key) => {
        if (/I[A-Z]/.test(key)) {
            components[key] = Inkline[key];
        }
    });

    const app = createApp()
        .use(Inkline.Inkline, { components })
        .mount('#app')
</script>
</body>
</html>
Try on StackBlitz - Inkline
Try on StackBlitz
chevron-down