A Hugo theme to create and manage your Design System
-
You can add this theme in your themes folder. For more informations about theme installation, take a look at the Hugo official documentation.
-
You also need to copy the
default.mdfile in the theme archetype folder in the Hugo archetype folder.
The parameters listed below comes with the archetype default.md.
-
Status is used to show you the current status of a page:
draftwipreadyordeleted. -
Description used as an excerpt in the list subpages nav.
-
Menu Sidenav, the main menu of this theme.
I'm currently working on shortcodes to enhance this theme.
Page-title is defined in the archetype default.md to directly show the page title and the status label.
Example: {{<page-title>}}news-card{{</page-title>}}
You can add three kind of alerts on your pages: info, do and dont.
Example: {{<alert class="info" label="info">}}ceci est juste une information{{</alert>}}
Color-card render a block to preview a color by an HEX code. The javascript plugin Color2Color also show RGB and HSL code on each card.
Example: {{< color-card name="gray-light" color="#ccc" >}}
Code render a preview of your code. The javascript plugin Highlight.js is the current tool to highlight your code.
Example: {{<code language="html">}}your code{{</code>}}
Google-font allow you to render a preview of the fonts used in your design system.
Example: {{<google-font font="IBM Plex Sans Condensed" sizes="400,700,300,400italic,700italic,300italic">}}
A demo site for my tests is available here: https://cocky-liskov-2d8547.netlify.com/
Thanks to Netlify !
This theme is currently in beta. Help and comments are really appreciated !