@pnx-mixtape/global

global component

Usage no npm install needed!

<script type="module">
  import pnxMixtapeGlobal from 'https://cdn.skypack.dev/@pnx-mixtape/global';
</script>

README

@mixtape/global

Documentation and examples: Global header and Global footer

Installation

npm install @mixtape/global --save

How to use

CSS

  • PostCSS workflow: @import '@mixtape/global';
  • Sass/Eyeglass: @import 'mixtape-global';
  • Native CSS: @import url('dist/global.css');
  • Link tag: <link href="dist/global.css" rel="stylesheet" type="text/css">

Vanilla JS

  • ES6 import: import MobileToggle from '@pnx-mixtape/global';
  • Script tag: <script src="dist/global.js" type="text/javascript"></script>

HTML

See various twig files.