-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(feat-stories-cleanup): in accordion and blockquote
- Loading branch information
Mari Nez
committed
Sep 27, 2024
1 parent
7da6331
commit cbd313f
Showing
16 changed files
with
253 additions
and
14 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
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,16 @@ | ||
<div> | ||
<h2 class="sb-title">Border Radius Tokens</h2> | ||
|
||
<ul class="sb-list"> | ||
{% for radius, value in _context.radius %} | ||
<li class="sb-list__item"> | ||
<span class="sb-list__label">{{radius}}</span> | ||
<span class="sb-list__value">{{value.value}}px</span> | ||
<span class="sb-list__custom-property"> | ||
<code class="sb-custom-property-name">var(--radius-{{radius}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="border-radius: {{value.value}}px; width: 75px; height: 75px; background: var(--colors-sb-visualization);"></span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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,16 @@ | ||
<div> | ||
<h2 class="sb-title">Border Tokens</h2> | ||
|
||
<ul class="sb-list"> | ||
{% for border, value in _context.border %} | ||
<li class="sb-list__item"> | ||
<span class="sb-list__label">{{border}}</span> | ||
<span class="sb-list__value">{{value.value}}px</span> | ||
<span class="sb-list__custom-property"> | ||
<code class=" sb-custom-property-name">var(--border-{{border}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="height: {{value.value}}px; background-color: var(--colors-sb-visualization); width: 300px;"></span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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,16 @@ | ||
<div> | ||
<h2 class="sb-title">Breakpoint Tokens</h2> | ||
|
||
<ul class="sb-list" style="overflow: scroll;"> | ||
{% for breakpoint, value in _context.breakpoint %} | ||
<li class="sb-list__item" style="min-width: max-content;"> | ||
<span class="sb-list__label">{{breakpoint}}</span> | ||
<span class="sb-list__value">{{value.value}}px</span> | ||
<span class="sb-list__custom-property"> | ||
<code class=" sb-custom-property-name">var(--breakpoint-{{breakpoint}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="width: {{value.value}}px; height: 25px; background: var(--colors-sb-visualization); display: block; border-radius: var(--radius-sm);"></span> | ||
</li> | ||
</li> | ||
</li> | ||
{% endfor %}</ul></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,45 @@ | ||
<div> | ||
<h2 class="sb-title">Colors</h2> | ||
|
||
{% for color, value in _context.colors %} | ||
<h2 class="sb-subtitle">{{ color }}</h2> | ||
{% if value.value is defined %} | ||
<ul class="sb-list"> | ||
<li class="sb-list__item" class="token-card"> | ||
<span class="sb-list__label">{{ color }}</span> | ||
<span class="sb-list__value">{{value.value}}</span> | ||
<span class="sb-list__custom-property"> | ||
<code class="sb-custom-property-name">var(--color-{{color}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="background-color: var(--color-{{color}});"></span> | ||
</li> | ||
</ul> | ||
{% else %} | ||
<ul class="sb-list"> | ||
{% for nestedColor, nestedValue in value %} | ||
{% if nestedValue.value is defined %} | ||
<li class="sb-list__item" class="token-card"> | ||
<span class="sb-list__label">{{ nestedColor }}</span> | ||
<span class="sb-list__value">{{nestedValue.value}}</span> | ||
<span class="sb-list__custom-property"> | ||
<code class="sb-custom-property-name">var(--color-{{ color|lower }}-{{nestedColor}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="background-color: var(--color-{{ color|lower }}-{{nestedColor}});"></span> | ||
</li> | ||
{% else %} | ||
{% for colorFamily, colorFamilyValue in nestedValue %} | ||
<li class="sb-list__item" class="token-card"> | ||
<span class="sb-list__label">{{ nestedColor }} {{ colorFamily }}</span> | ||
<span class="sb-list__value">{{ colorFamilyValue.value }}</span> | ||
<span class="sb-list__custom-property"> | ||
<code class="sb-custom-property-name">var(--color-{{ color|lower }}-{{ nestedColor }}-{{colorFamily}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="background-color: var(--color-{{ color|lower }}-{{ nestedColor }}-{{colorFamily}});"></span> | ||
</li> | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endfor %} | ||
</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,18 @@ | ||
{% set text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." %} | ||
|
||
<div> | ||
<h2 class="sb-title">Line Heights</h2> | ||
|
||
<ul class="sb-list" style="overflow: scroll;"> | ||
{% for lineHeight, value in _context.lineHeight|reverse %} | ||
<li class="sb-list__item" style="min-width: max-content;"> | ||
<span class="sb-list__label" style="width: 100px;">{{lineHeight}}</span> | ||
<span class="sb-list__value">{{value.value}}</span> | ||
<span class="sb-list__custom-property" style="width: 272px;"> | ||
<code class="sb-custom-property-name">var(--line-heights-{{lineHeight}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="max-width: 600px; line-height:var(--line-height-{{lineHeight}})">{{text}}</span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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,11 @@ | ||
<div class="motion"> | ||
<h2>Motion</h2> | ||
<div class="motion__grid"> | ||
{% for motion in motions %} | ||
<div class="motion__grid-item"> | ||
<h3>{{ motion.name }}</h3> | ||
<div class="demo-motion demo-motion--{{ motion.name|lower|replace({' ':'-'}) }}"></div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</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,16 @@ | ||
<div> | ||
<h2 class="sb-title">Opacity Tokens</h2> | ||
|
||
<ul class="sb-list"> | ||
{% for opacity, value in _context.opacity %} | ||
<li class="sb-list__item"> | ||
<span class="sb-list__label">{{opacity}}</span> | ||
<span class="sb-list__value">{{value.value}}</span> | ||
<span class="sb-list__custom-property"> | ||
<code class=" sb-custom-property-name">var(--radius-{{opacity}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="opacity: {{value.value}}; display: block; width: 50px; height: 50px; background-color: var(--colors-sb-visualization); border-radius: var(--radius-sm);"></span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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,16 @@ | ||
<div> | ||
<h2 class="sb-title">Size Tokens</h2> | ||
|
||
<ul class="sb-list"> | ||
{% for size, value in _context.size %} | ||
<li class="sb-list__item"> | ||
<span class="sb-list__label">{{size}}</span> | ||
<span class="sb-list__value">{{value.value}}px</span> | ||
<span class="sb-list__custom-property"> | ||
<code class=" sb-custom-property-name">var(--size-{{size}})</code> | ||
</span> | ||
<span class="sb-list__visualization" style="width: {{value.value}}px; height: {{value.value}}px; background-color: var(--colors-sb-visualization);"></span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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,21 @@ | ||
<div> | ||
<h2 class="sb-title">Spacing Tokens</h2> | ||
|
||
<ul class="sb-list"> | ||
{% for spacing, value in _context.spacing %} | ||
<li class="sb-list__item"> | ||
<span class="sb-list__label">{{spacing}}</span> | ||
<span class="sb-list__value">{{value.value}}px</span> | ||
<span class="sb-list__custom-property"> | ||
<code class=" sb-custom-property-name">var(--spacing-{{spacing}})</code> | ||
</span> | ||
|
||
<ul class="sb-spacing-wrapper" style="gap: {{value.value}}px; padding-left: 0;"> | ||
{% for i in [1,1,1,1,1,1,1] %} | ||
<li class="sb-list__visualization" style="width: 50px; height: 50px; background-color: var(--colors-sb-visualization);"></li> | ||
{% endfor %} | ||
</ul> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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,15 @@ | ||
<div> | ||
<h2 class="sb-title">Type Faces</h2> | ||
|
||
<ul class="sb-list"> | ||
{% for fontFamily, value in _context.fontFamily %} | ||
<li class="sb-list__item"> | ||
<span class="sb-list__value">{{value.value}}</span> | ||
<span class="sb-list__custom-property"> | ||
<code class="sb-custom-property-name">var(--font-family-{{fontFamily}})</code> | ||
</span> | ||
<h2 class="sb-list__label" style="font-family: {{value.value}};">{{fontFamily}}</h2> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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,18 @@ | ||
<div> | ||
<h2 class="sb-title">Type Scale</h2> | ||
|
||
<ul class="sb-list"> | ||
{% for fontSize, value in _context.fontSize|reverse %} | ||
<li class="sb-list__item"> | ||
<span class="sb-list__label">{{fontSize}}</span> | ||
<span class="sb-list__value">{{value.value}}px</span> | ||
<span class="sb-list__custom-property"> | ||
<code class=" sb-custom-property-name">var(--font-size-{{fontSize}})</code> | ||
</span> | ||
|
||
<p style="font-size: var(--font-size-{{fontSize}}); margin: 0;">{{fontSize|capitalize}} | ||
</p> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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,5 @@ | ||
color_variant: | ||
- 'base' | ||
- 'dark' | ||
- 'light' | ||
- 'bright' |