Skip to content
Language22
Menu

Docs / Frameworks

Plain HTML

Use the HTML version of an item in any page: link two files and paste one block of markup. No build step, no framework.

Version
HTML
Needs
Nothing
Setup time
About 1 minute

Set up

  1. Get the files

    On the item page, switch Get it to HTML and click Download zip. Or copy each file from the Code view.

    glow-button-html.zip
    glow-button-html/
      index.html
      script.js
      style.css
  2. Link the files

    Put style.css and script.js next to your page and link them from it, once.

    your page
    <link rel="stylesheet" href="style.css" />
    <script src="script.js" defer></script>
  3. Paste the markup

    In the item's index.html, copy what sits between its copy from here and to here comments. Paste it where the item should show.

    index.html
    <button class="glow-button" type="button">
      <span class="glow-button-label">Get started</span>
    </button>

Good to know

  • Vue and Svelte: put the markup in a component's template and link the two files once, in index.html or your root layout.
  • Laravel: put the files in public/, link them in your Blade layout with asset(), and paste the markup into a Blade view.
  • WordPress: put the files in your theme and load them with wp_enqueue_style and wp_enqueue_script in functions.php, or paste the markup into a Custom HTML block.
  • script.js sets up the markup that's on the page when it runs. For markup a framework adds later, run the item's setup again: Glow Button's is window.initGlowButton().

Other frameworks