-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add spot illustration support into dialtone (#502)
* feat: add spot illustration support into dialtone * change to theme based on primary color hex rather than css class. updated docs * move theming to bottom of adding icons page * fix width issue on spot illustration footer * set auto height on spot illustration footer
- Loading branch information
1 parent
ae4d871
commit 6893861
Showing
12 changed files
with
32,385 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"name": "Browser List Callout", | ||
"file": "browser-list-callout", | ||
"vue": "SpotBrowserListCallout", | ||
"desc": "Browser List Callout" | ||
}, | ||
{ | ||
"name": "Browser Table Graph", | ||
"file": "browser-table-graph", | ||
"vue": "SpotBrowserTableGraph", | ||
"desc": "Browser Table Graph" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
layout: page-no-toc | ||
title: Spot Illustrations | ||
description: Spot illustrations are the slightly grown up version of icons with a little more detail. A spot illustration is an image that typically works in tandem with inline text to communicate a state in a more friendly way. They’re most often used in empty states, onboarding, and in-product announcements. | ||
|
||
--- | ||
<section class="d-stack16 d-px16"> | ||
{% header "h2", "Theming" %} | ||
{% paragraph %}It is possible for the primary color of your spot illustration to change with the theme. See <a href="/design/icons/adding" class="d-link link--link">Adding Icons</a> for details on how to do this.{% endparagraph %} | ||
</section> | ||
<div class="d-stack64"> | ||
<div class="d-stack16 d-p16"> | ||
{% header "h2", "Illustrations" %} | ||
<div class="d-gl-docsite-icons--large"> | ||
{% for p in svg-spot %} | ||
{% assign name = p.name %} | ||
{% assign file = p.file %} | ||
{% assign vue = p.vue %} | ||
{% assign desc = p.desc %} | ||
<div id="{{ name }}" class="dialtone-icon-grid__item"> | ||
<aside class="dialtone-icon-card js-dialtone-icon-card" data-selected="no"> | ||
<header class="dialtone-icon-card__header js-dialtone-icon-card-copy-area"> | ||
<div class="dialtone-icon-card__icon--autosize"> | ||
{% assign path = file %} | ||
{% spot path, "js-svg" %} | ||
</div> | ||
<p class="dialtone-icon-card__subtitle">{{ name }}</p> | ||
</header> | ||
<footer class="dialtone-icon-card__footer-spot-illustration js-dialtone-icon-card-footer"> | ||
<div class="dialtone-icon-card__content"> | ||
<h2 class="dialtone-icon-card__title">{{ name }}</h2> | ||
<div class="dialtone-icon-card__list"> | ||
<span class="dialtone-icon-card__list__item"> | ||
<strong>SVG:</strong> <span class="code-example">{{ file }}</span> | ||
</span> | ||
<span class="dialtone-icon-card__list__item"> | ||
<strong>Vue:</strong> <span class="code-example js-vue-file">{{ vue }}</span> | ||
</span> | ||
</div> | ||
<p class="dialtone-icon-card__description">{{ desc }}</p> | ||
</div> | ||
</footer> | ||
</aside> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="/{{ site.paths.js }}/icons.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.