Skip to content

Commit

Permalink
fix: token typo
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingrando committed Apr 29, 2024
1 parent 5e53c7b commit f5be11f
Show file tree
Hide file tree
Showing 19 changed files with 160 additions and 160 deletions.
8 changes: 4 additions & 4 deletions src/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ $accordion_icon_size: var(--size-xl);
cursor: pointer;
outline: inherit;
display: flex;
color: var(--colors-text-body);
color: var(--color-text-body);
font-size: var(--font-size-small);
gap: var(--spacing-sm);
align-items: center;

.accordion__icon {
fill: var(--colors-text-body);
fill: var(--color-text-body);
height: var(--size-lg);
width: var(--size-lg);
}
Expand Down Expand Up @@ -107,7 +107,7 @@ $accordion_icon_size: var(--size-xl);
width: $accordion_icon_size;
fill: var(--accordion-color-header);

[aria-expanded='true'] > & {
[aria-expanded='true']>& {
transform: rotate(180deg);
}
}
Expand All @@ -124,4 +124,4 @@ $accordion_icon_size: var(--size-xl);
}
}

/* stylelint-enable no-descending-specificity */
/* stylelint-enable no-descending-specificity */
4 changes: 2 additions & 2 deletions src/components/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
.card__subheading {
@include heading-medium($font-size: var(--font-size-small));

color: var(--colors-grays-500);
color: var(--color-grays-500);
margin: 0 0 var(--spacing-md);
line-height: var(--line-heights-tight);
text-transform: uppercase;
Expand All @@ -40,4 +40,4 @@
// @include button-base;
// @include button-color-primary;
// @include button-medium;
}
}
32 changes: 16 additions & 16 deletions src/components/docs/examples/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.example {
display: flex;
flex-flow: column nowrap;
background-color: var(--colors-white);
background-color: var(--color-white);
padding: 0 !important;
// max-width: var(--max-width);
margin: 0 auto;
Expand All @@ -21,22 +21,22 @@
}

.logo-text {
fill: var(--colors-text-body);
fill: var(--color-text-body);
}

.logo-mark {
fill: var(--colors-primary-darker);
fill: var(--color-primary-darker);
}

.logo + nav {
.logo+nav {
margin-right: var(--spacing-xl);
}

.hero {
display: flex;
flex-flow: column nowrap;
justify-content: center;
color: var(--colors-white);
color: var(--color-white);
aspect-ratio: 16/7;
background-size: cover;
text-align: center;
Expand All @@ -46,7 +46,7 @@
&::after {
content: '';
position: absolute;
background: var(--colors-primary-dark);
background: var(--color-primary-dark);
top: 0;
left: 0;
bottom: 0;
Expand All @@ -55,7 +55,7 @@
opacity: 0.75;
}

> * {
>* {
z-index: 10;
position: relative;
}
Expand Down Expand Up @@ -98,7 +98,7 @@
}

.celebrating {
background: var(--colors-primary-lighter);
background: var(--color-primary-lighter);
text-align: center;
padding: var(--spacing-xxl) var(--spacing-xl);

Expand All @@ -120,8 +120,8 @@
}

.footer {
background: var(--colors-primary-darker);
color: var(--colors-white);
background: var(--color-primary-darker);
color: var(--color-white);
padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xxl);
margin-top: auto;
display: flex;
Expand All @@ -137,11 +137,11 @@
}

.logo-text {
fill: var(--colors-white);
fill: var(--color-white);
}

.logo-mark {
fill: var(--colors-primary-lighter);
fill: var(--color-primary-lighter);
}

.social-menu--footer {
Expand All @@ -150,11 +150,11 @@
}

.social-menu--footer .social-menu__link {
color: var(--colors-primary-lighter);
color: var(--color-primary-lighter);
font-size: var(--font-size-display);

&:hover {
color: var(--colors-primary-light);
color: var(--color-primary-light);
}
}

Expand All @@ -168,7 +168,7 @@
}

.footer-h3 {
color: var(--colors-primary-lighter);
color: var(--color-primary-lighter);
font-size: var(--font-size-body);
}

Expand All @@ -186,4 +186,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions src/components/docs/examples/_program.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.example {
.dynamic {
background: var(--colors-primary-lighter);
background: var(--color-primary-lighter);
text-align: center;
padding: var(--spacing-xxl) var(--spacing-xl);

Expand Down Expand Up @@ -32,4 +32,4 @@
max-width: 1000px;
margin: var(--spacing-xxl) auto 0;
}
}
}
2 changes: 1 addition & 1 deletion src/components/docs/examples/home.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
title: 'Pages/Home',
decorators: [
(story) =>
`<div style="background: var(--colors-grays-700); padding: 0;">${story()}</div>`,
`<div style="background: var(--color-grays-700); padding: 0;">${story()}</div>`,
],
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/docs/examples/program.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// title: 'Pages/Program',
// decorators: [
// (story) =>
// `<div style="background: var(--colors-grays-700); padding: 0;">${story()}</div>`,
// `<div style="background: var(--color-grays-700); padding: 0;">${story()}</div>`,
// ],
// };

Expand Down
8 changes: 4 additions & 4 deletions src/components/forms/select/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
&::after {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 9px solid var(--colors-text-body);
border-top: 9px solid var(--color-text-body);
content: ' ';
position: absolute;
top: 42%;
Expand Down Expand Up @@ -47,8 +47,8 @@
}
}

@supports (-webkit-appearance: none) or (appearance: none) or
((-moz-appearance: none) and (mask-type: alpha)) {
@supports (-webkit-appearance: none) or (appearance: none) or ((-moz-appearance: none) and (mask-type: alpha)) {

/* Show custom arrow */
.form-item__dropdown::after {
display: block;
Expand Down Expand Up @@ -78,4 +78,4 @@
border-radius: 0;
}
}
}
}
10 changes: 5 additions & 5 deletions src/components/forms/textfields/_textfields.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.form-item {
color: var(--colors-text-body);
color: var(--color-text-body);
margin-bottom: 1em;

@include clearfix;
Expand Down Expand Up @@ -59,7 +59,7 @@ legend {
}

.form-item--warning {
--input-color-label: var(--colors-warning-default);
--input-border-color: var(--colors-warning-default);
--input-color-help-text: var(--colors-warning-default);
}
--input-color-label: var(--color-warning-default);
--input-border-color: var(--color-warning-default);
--input-color-help-text: var(--color-warning-default);
}
12 changes: 6 additions & 6 deletions src/components/storybook-styles/storybook.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
}

.sb-show-main {
background: var(--colors-sb-background);
// color: var(--colors-sb-text-body);
background: var(--color-sb-background);
// color: var(--color-sb-text-body);
font-family: var(--font-family-body), serif !important;
}

.sb-title {
color: var(--colors-sb-text-heading);
color: var(--color-sb-text-heading);
text-transform: uppercase;
font-size: var(--font-size-hero);
margin: 0 0 var(--spacing-xxl);
Expand All @@ -31,7 +31,7 @@
position: absolute;
left: 0;
bottom: calc(-1 * var(--spacing-lg));
border-bottom: 10px solid var(--colors-sb-text-heading);
border-bottom: 10px solid var(--color-sb-text-heading);
width: 100px;
}
}
Expand All @@ -43,7 +43,7 @@
margin: var(--spacing-xxl) 0 var(--spacing-md);
}

#root > div {
#root>div {
padding: var(--spacing-xl);
}

Expand Down Expand Up @@ -123,4 +123,4 @@
border-radius: var(--radius-lg);
width: max-content;
padding: var(--spacing-sm) var(--spacing-lg);
}
}
4 changes: 2 additions & 2 deletions src/components/text/text/_body.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
body {
color: var(--colors-text-body);
}
color: var(--color-text-body);
}
4 changes: 2 additions & 2 deletions src/components/text/text/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

.blockquote {
border-left: 4px solid var(--colors-text-body);
border-left: 4px solid var(--color-text-body);
font-family: var(--font-families-secondary);
font-size: var(--font-size-h5);
padding: var(--spacing-lg) var(--spacing-xl);
Expand Down Expand Up @@ -50,4 +50,4 @@
pre {
margin: 0;
background-color: var(--c-background-section);
}
}
10 changes: 5 additions & 5 deletions src/components/tokens/_tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
*/

:root {
--colors-sb-background: #ffffff;
--colors-sb-text-body: #72520d;
--colors-sb-text-heading: #e29b00;
--colors-sb-visualization: #009fe4;
--color-sb-background: #ffffff;
--color-sb-text-body: #72520d;
--color-sb-text-heading: #e29b00;
--color-sb-visualization: #009fe4;
--text-field-border-width: 1px;
--text-field-radius: 0.625rem;
--text-field-border: [object Object];
Expand Down Expand Up @@ -386,4 +386,4 @@
--emulsify-components: [object Object];
--main: [object Object];
--gold: [object Object];
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div>
<h2 class="sb-title">Border Radius Tokens</h2>
<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>
<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(--color-sb-visualization);"></span>
</li>
{% endfor %}
</ul>
</div>
26 changes: 13 additions & 13 deletions src/components/tokens/border-tokens/border-tokens.twig
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div>
<h2 class="sb-title">Border Tokens</h2>
<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>
<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(--color-sb-visualization); width: 300px;"></span>
</li>
{% endfor %}
</ul>
</div>
Loading

0 comments on commit f5be11f

Please sign in to comment.