mirror of
https://github.com/seigler/dash-website
synced 2025-07-26 23:06:09 +00:00
add a style guide section, add existing colors
This commit is contained in:
parent
5207aedf80
commit
beb38babd9
11 changed files with 180 additions and 5 deletions
39
style-guide/index.html
Normal file
39
style-guide/index.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
layout: styleguide
|
||||
title: Style guide
|
||||
description: Collection of website components used on dash.org
|
||||
---
|
||||
|
||||
Here are all the pieces that make up this website.
|
||||
|
||||
{% assign colors = site.colors %}
|
||||
{% assign componentsByType = site.components | group_by:"type" %}
|
||||
|
||||
<!--
|
||||
<nav id="component-selector" class="wrap">
|
||||
<h2>Components</h2>
|
||||
<ul>
|
||||
{% for type in componentsByType %}
|
||||
<li>
|
||||
<a href="#guide-{{ type.name }}">{{ type.name | capitalize }}</a>
|
||||
<ul>
|
||||
{% for entry in type.items %}
|
||||
<a href="#guide-{{ entry.title | slugify }}">{{ entry.title }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
-->
|
||||
|
||||
<h2 id="guide-colors" class="cf">Colors</h2>
|
||||
{% for entry in colors %}
|
||||
{% include component-color.html %}
|
||||
{% endfor %}
|
||||
{% for type in componentsByType %}
|
||||
<h2 id="guide-{{ type.name }}" class="cf">{{ type.name | capitalize }}</h2>
|
||||
{% for entry in type.items %}
|
||||
{% include component.html %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue