diff --git a/docs/_includes/svgs/palette.njk b/docs/_includes/svgs/palette.njk index 93a925318..380be36ca 100644 --- a/docs/_includes/svgs/palette.njk +++ b/docs/_includes/svgs/palette.njk @@ -1,31 +1,20 @@ {% set paletteId = palette.fileSlug or page.fileSlug %} {% set suffixes = ['-80', '', '-20'] %} -{% set width = 20 %} -{% set height = 12 %} -{% set height_core = 20 %} -{% set gap_x = 4 %} -{% set gap_y = 4 %} -{% set total_width = (width + gap_x) * hues|length %} -{% set total_height = (height + gap_y) * suffixes|length + (height_core - height) %} - - + + +
+ {% for hue in hues -%} + {% set hueIndex = loop.index %} + {% for suffix in suffixes -%} +
 
+ {%- endfor %} + {%- endfor %} +
+ + diff --git a/docs/assets/components/scoped.js b/docs/assets/components/scoped.js index e97e62096..781768ac5 100644 --- a/docs/assets/components/scoped.js +++ b/docs/assets/components/scoped.js @@ -2,8 +2,8 @@ * Low-level utility to encapsulate a bit of HTML (mainly to apply certain stylesheets to it without them leaking to the rest of the page) * Usage: */ +import { discover } from '/dist/webawesome.js'; -// Map of elements to any global