Deno Deploy Deno demo styles

Simple, Deno Deploy-branded styles for use in demos and examples


Usage

A minified CSS file is available to use directly in your sites by linking to this stylesheet URL. To ease the performance hit of sourcing the fonts from another domain via this CSS, we should preload those too

<link rel="preload" href="https://demo-styles.deno.deno.net/fonts/Moranga-Regular.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="https://demo-styles.deno.deno.net/fonts/Moranga-Medium.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="https://demo-styles.deno.deno.net/fonts/Recursive_Variable.woff2" as="font" type="font/woff2" crossorigin />
<link rel="stylesheet" href="https://demo-styles.deno.deno.net/styles.css">

Review the reference page to review how this stylesheet formats standard HTML elements and also for some additional utility classes which it makes available.

Syntax highlighting

Provided by highlight.js, this can be used either during the build (ideally), or client-side for simplicity in demos and examples. A custom palatte is included in the CSS provided from this site.

Add the following the the of your HTML for a client-side drop-in:

<!-- syntax highlighting  -->
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/highlight.min.js"></script>
<script>hljs.highlightAll();</script>