-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
161 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Button with brand icon | ||
layout: layout-example.njk | ||
--- | ||
|
||
<a href="#" class="tna-button" role="button"> | ||
<i class="fa-brands fa-fw fa-youtube"></i> | ||
Watch on YouTube | ||
</a> |
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,26 @@ | ||
--- | ||
title: Chip list with icons | ||
layout: layout-example.njk | ||
--- | ||
|
||
<h3 class="tna-heading-m">My birthday party</h3> | ||
<ul class="tna-chip-list"> | ||
<li class="tna-chip-list__item"> | ||
<span class="tna-chip"> | ||
<i class="fa-solid fa-fw fa-people-group"></i> | ||
In-person | ||
</span> | ||
</li> | ||
<li class="tna-chip-list__item"> | ||
<span class="tna-chip"> | ||
<i class="fa-solid fa-fw fa-money-bill-wave"></i> | ||
Free | ||
</span> | ||
</li> | ||
<li class="tna-chip-list__item"> | ||
<span class="tna-chip"> | ||
<i class="fa-solid fa-fw fa-wheelchair"></i> | ||
Wheelchair accessible | ||
</span> | ||
</li> | ||
</ul> |
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,9 @@ | ||
--- | ||
title: Button with icon | ||
layout: layout-example.njk | ||
--- | ||
|
||
<a href="#" class="tna-button" role="button"> | ||
<i class="fa-solid fa-fw fa-globe"></i> | ||
Explore the collection | ||
</a> |
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,39 @@ | ||
--- | ||
layout: collection-page.njk | ||
title: Icons | ||
group: styles | ||
--- | ||
|
||
{% from "_example.njk" import example %} | ||
|
||
Use icons sparingly to reinforce call to actions and support small pieces of information such as metadata. | ||
|
||
Icons should appear alongside text at the same font size. | ||
|
||
Don't rely on icons alone to convey meaning. | ||
|
||
## Call to action icons | ||
|
||
The main call to action button on a page can use an icon to add visual impact. Avoid using icons in all call to action buttons. | ||
|
||
{{ example({ group: "styles", item: "icons", example: "icon-button", html: true, nunjucks: false, open: false, size: "xxs" }) }} | ||
|
||
## Brand icons | ||
|
||
Use brand icons to add visual information to external site links. | ||
|
||
{{ example({ group: "styles", item: "icons", example: "brand-icon-button", html: true, nunjucks: false, open: false, size: "xxs" }) }} | ||
|
||
## Displaying information with icons | ||
|
||
Use a [description list](/design-system/styles/lists/#description-lists) to show a list of fields and values. If space allows, the titles can be enhanced with icons. | ||
|
||
{{ example({ group: "styles", item: "lists", example: "description-list-icons-plain", html: true, nunjucks: false, open: false, size: "s" }) }} | ||
|
||
### Chip lists with icons | ||
|
||
For smaller lists of metadata, icons can be used inside a [chip list](/design-system/styles/lists/#chip-lists). | ||
|
||
Ensure the text in the chips would still make sense even if the icons were removed. | ||
|
||
{{ example({ group: "styles", item: "icons", example: "chip-list-icons", html: true, nunjucks: false, open: false, size: "xs" }) }} |
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,28 @@ | ||
--- | ||
title: Chip list | ||
layout: layout-example.njk | ||
--- | ||
|
||
<ul class="tna-chip-list"> | ||
<li class="tna-chip-list__item"> | ||
<span class="tna-chip">In-person</span> | ||
</li> | ||
<li class="tna-chip-list__item"> | ||
<span class="tna-chip">Free</span> | ||
</li> | ||
<li class="tna-chip-list__item"> | ||
<span class="tna-chip">Wheelchair accessible</span> | ||
</li> | ||
</ul> | ||
|
||
<ul class="tna-chip-list"> | ||
<li class="tna-chip-list__item"> | ||
<a href="#" class="tna-chip tna-chip">Spicy</a> | ||
</li> | ||
<li class="tna-chip-list__item"> | ||
<a href="#" class="tna-chip tna-chip">Vegan</a> | ||
</li> | ||
<li class="tna-chip-list__item"> | ||
<a href="#" class="tna-chip tna-chip">Fewer than 600 calories</a> | ||
</li> | ||
</ul> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,6 @@ | ||
--- | ||
title: Chip | ||
layout: layout-example.njk | ||
--- | ||
|
||
<div class="tna-chip tna-chip--plain">Online event</div> |
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,6 @@ | ||
--- | ||
title: Plain chip | ||
layout: layout-example.njk | ||
--- | ||
|
||
<span class="tna-chip">Online event</span> |
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