-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update existing core color tokens (#1905)
* fix: update existing core color tokens * fix: update existing core color tokens * fix: updates to color function * docs: implemented branding color changes * style: implemented branding color changes * style: refactored nesting to appease stylelint * docs: created partial for colors to reduce code
- Loading branch information
1 parent
c279013
commit 10e7300
Showing
13 changed files
with
3,842 additions
and
648 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,192 +1,11 @@ | ||
<div class="colors"> | ||
<div class="colors__block color-<%= color %>-100"> | ||
<div class="colors__tokens"> | ||
<div class="colors__classname-token <%= "#{SageClassnames::SPACERS::SM_BOTTOM}" %>"> | ||
<h3 class="colors__tokens-heading">Classname Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames::TYPE_COLORS::#{color.upcase}_100" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames.TYPE_COLORS.#{color.upcase}_100" | ||
} %> | ||
</div> | ||
</div> | ||
<div class="colors__hex-token"> | ||
<h3 class="colors__tokens-heading">Hex Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens::COLOR_PALETTE[:#{color.upcase}_100]" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens.COLOR_PALETTE.#{color.upcase}_100" | ||
} %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="colors__block color-<%= color %>-200"> | ||
<div class="colors__tokens"> | ||
<div class="colors__classname-token <%= "#{SageClassnames::SPACERS::SM_BOTTOM}" %>"> | ||
<h3 class="colors__tokens-heading">Classname Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames::TYPE_COLORS::#{color.upcase}_200" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames.TYPE_COLORS.#{color.upcase}_200" | ||
} %> | ||
</div> | ||
</div> | ||
<div class="colors__hex-token"> | ||
<h3 class="colors__tokens-heading">Hex Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens::COLOR_PALETTE[:#{color.upcase}_200]" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens.COLOR_PALETTE.#{color.upcase}_200" | ||
} %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="colors__block color-<%= color %>-300"> | ||
<div class="colors__tokens"> | ||
<div class="colors__classname-token <%= "#{SageClassnames::SPACERS::SM_BOTTOM}" %>"> | ||
<h3 class="colors__tokens-heading">Classname Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames::TYPE_COLORS::#{color.upcase}_300" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames.TYPE_COLORS.#{color.upcase}_300" | ||
} %> | ||
</div> | ||
</div> | ||
<div class="colors__hex-token"> | ||
<h3 class="colors__tokens-heading">Hex Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens::COLOR_PALETTE[:#{color.upcase}_300]" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens.COLOR_PALETTE.#{color.upcase}_300" | ||
} %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="colors__block color-<%= color %>-400"> | ||
<div class="colors__tokens"> | ||
<div class="colors__classname-token <%= "#{SageClassnames::SPACERS::SM_BOTTOM}" %>"> | ||
<h3 class="colors__tokens-heading">Classname Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames::TYPE_COLORS::#{color.upcase}_400" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames.TYPE_COLORS.#{color.upcase}_400" | ||
} %> | ||
</div> | ||
</div> | ||
<div class="colors__hex-token"> | ||
<h3 class="colors__tokens-heading">Hex Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens::COLOR_PALETTE[:#{color.upcase}_400]" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens.COLOR_PALETTE.#{color.upcase}_400" | ||
} %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="colors__block color-<%= color %>-500"> | ||
<div class="colors__tokens"> | ||
<div class="colors__classname-token <%= "#{SageClassnames::SPACERS::SM_BOTTOM}" %>"> | ||
<h3 class="colors__tokens-heading">Classname Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames::TYPE_COLORS::#{color.upcase}_500" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames.TYPE_COLORS.#{color.upcase}_500" | ||
} %> | ||
</div> | ||
</div> | ||
<div class="colors__hex-token"> | ||
<h3 class="colors__tokens-heading">Hex Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens::COLOR_PALETTE[:#{color.upcase}_500]" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens.COLOR_PALETTE.#{color.upcase}_500" | ||
} %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<% if color == "primary" || color == "sage" || color == "orange" %> | ||
<% [100, 200, 300, 400, 500].each do |value| %> | ||
<%= render "color_values_body", color: color, value: value %> | ||
<% end %> | ||
<% else %> | ||
<% [5, 10, 15, 20, 30, 40, 50, 60, 70, 80, 95].each do |value| %> | ||
<%= render "color_values_body", color: color, value: value %> | ||
<% end %> | ||
<% end %> | ||
</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,38 @@ | ||
<div class="colors__block color-<%= color %>-<%= value %>"> | ||
<div class="colors__tokens"> | ||
<div class="colors__classname-token <%= "#{SageClassnames::SPACERS::SM_BOTTOM}" %>"> | ||
<h3 class="colors__tokens-heading">Classname Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames::TYPE_COLORS::#{color.upcase}_#{value}" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageClassnames.TYPE_COLORS.#{color.upcase}_#{value}" | ||
} %> | ||
</div> | ||
</div> | ||
<div class="colors__hex-token"> | ||
<h3 class="colors__tokens-heading">Hex Token</h3> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens::COLOR_PALETTE[:#{color.upcase}_#{value}]" | ||
} %> | ||
</div> | ||
<div> | ||
<%= sage_component SageCopyButton, { | ||
borderless: true, | ||
css_classes: "colors__copy-btn", | ||
value: "SageTokens.COLOR_PALETTE.#{color.upcase}_#{value}" | ||
} %> | ||
</div> | ||
</div> | ||
</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
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.