-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update existing core color tokens #1905
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
856382e
fix: update existing core color tokens
pixelflips 4f6693c
fix: update existing core color tokens
pixelflips e51a6ed
fix: updates to color function
pixelflips 1f7c4fb
docs: implemented branding color changes
pixelflips 3d24150
style: implemented branding color changes
pixelflips 4b5b9ad
style: refactored nesting to appease stylelint
pixelflips bd48f15
docs: created partial for colors to reduce code
pixelflips File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌🏻