-
Notifications
You must be signed in to change notification settings - Fork 83
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
Finalize theme token updates #551
Merged
MisRob
merged 11 commits into
learningequality:develop
from
LianaHarris360:finalize-theme-tokens
Mar 4, 2024
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b0700e1
init theming updates
marcellamaki eb34119
Additional theme updates/fixes, and beginning of component color udpates
marcellamaki 7066760
Update brand default colors and finalize token colors across KDS comp…
LianaHarris360 591308f
Theme fixes, component documentation and changelog updates
LianaHarris360 bb4e662
Update changelog file
LianaHarris360 15d5175
Remove changelog update until after complete review
LianaHarris360 7d773a7
Remove testing change from buttons documentation page
LianaHarris360 9450389
Update colors doc page, add yellow and blue to color palette
LianaHarris360 f4f646d
Update textbox fill and label color
LianaHarris360 ad4984d
Add updates to changelog
LianaHarris360 7cc8a28
Modify UI input colors to align with theme updates
LianaHarris360 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
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
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
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,70 +1,66 @@ | ||
export const defaultTokenMapping = { | ||
// Branded UI colors | ||
primary: 'brand.primary.v_400', | ||
primaryDark: 'brand.primary.v_700', | ||
appBar: 'brand.primary.v_400', | ||
appBarDark: 'brand.primary.v_700', | ||
appBarFullscreen: 'palette.grey.v_900', | ||
appBarFullscreenDark: 'black', | ||
link: 'brand.primary.v_400', | ||
linkDark: 'brand.primary.v_700', | ||
loading: 'brand.secondary.v_200', | ||
focusOutline: 'brand.secondary.v_200', | ||
primary: 'brand.primary.v_1000', | ||
primaryDark: 'brand.primary.v_1100', | ||
secondary: 'brand.secondary.v_1000', | ||
secondaryDark: 'brand.secondary.v_1100', | ||
appBar: 'brand.secondary.v_800', | ||
appBarDark: 'palette.black', | ||
link: 'brand.primary.v_1000', | ||
loading: 'palette.grey.v_800', | ||
focusOutline: 'palette.lightblue.v_800', | ||
|
||
// Generic UI colors | ||
text: 'palette.grey.v_900', | ||
textDisabled: 'palette.grey.v_300', | ||
annotation: 'palette.grey.v_700', | ||
text: 'palette.black', | ||
textDisabled: 'palette.grey.v_200', | ||
annotation: 'palette.grey.v_600', | ||
textInverted: 'palette.white', | ||
surface: 'palette.white', | ||
fineLine: '#dedede', | ||
fineLine: 'palette.grey.v_100', | ||
|
||
// general semantic colors | ||
error: 'palette.red.v_800', | ||
success: 'palette.green.v_700', | ||
error: 'palette.red.v_1100', | ||
incorrect: 'palette.red.v_1100', | ||
success: 'palette.green.v_1100', | ||
correct: 'palette.green.v_1100', | ||
|
||
// Kolibri-specific semantic colors | ||
progress: 'palette.lightblue.v_500', | ||
mastered: 'palette.amber.v_500', | ||
correct: 'palette.green.v_600', | ||
incorrect: 'palette.red.v_800', | ||
coachContent: 'palette.lightblue.v_800', | ||
superAdmin: 'palette.amber.v_600', | ||
progress: 'palette.lightblue.v_1000', | ||
mastered: 'brand.secondary.v_1000', | ||
warning: 'brand.secondary.v_1000', | ||
incomplete: 'brand.secondary.v_1000', | ||
coachContent: 'palette.lightblue.v_1100', | ||
superAdmin: 'brand.secondary.v_1000', | ||
|
||
// content colors | ||
exercise: 'palette.cyan.v_600', | ||
video: 'palette.indigo.v_700', | ||
audio: 'palette.pink.v_400', | ||
document: 'palette.deeporange.v_600', | ||
html5: 'palette.yellow.v_800', | ||
practice: 'brand.primary.v_800', | ||
watch: 'palette.lightblue.v_800', | ||
listen: 'palette.pink.v_1000', | ||
read: 'palette.red.v_1000', | ||
explore: 'palette.orange.v_1000', | ||
create: 'palette.green.v_1000', | ||
reflect: 'brand.secondary.v_1000', | ||
topic: 'palette.grey.v_800', | ||
slideshow: 'palette.green.v_400', | ||
}; | ||
|
||
// set some arbitrary colors | ||
// set core brand colors | ||
export const defaultBrandColors = { | ||
// blues | ||
primary: { | ||
v_50: '#f0e7ed', | ||
v_100: '#dbc3d4', | ||
v_200: '#c59db9', | ||
v_300: '#ac799d', | ||
v_400: '#996189', | ||
v_500: '#874e77', | ||
v_600: '#7c4870', | ||
v_700: '#6e4167', | ||
v_800: '#5f3b5c', | ||
v_900: '#4b2e4d', | ||
v_200: '#D9E1FD', | ||
v_400: '#B4C3FB', | ||
v_600: '#8EA4F9', | ||
v_800: '#6986F7', | ||
v_1000: '#4368F5', | ||
v_1100: '#2547F3', | ||
}, | ||
// yellows | ||
secondary: { | ||
v_50: '#e3f0ed', | ||
v_100: '#badbd2', | ||
v_200: '#8dc5b6', | ||
v_300: '#62af9a', | ||
v_400: '#479e86', | ||
v_500: '#368d74', | ||
v_600: '#328168', | ||
v_700: '#2c715a', | ||
v_800: '#26614d', | ||
v_900: '#1b4634', | ||
v_200: '#FFF5CC', | ||
v_400: '#FFEA99', | ||
v_600: '#FFE066', | ||
v_800: '#FFD533', | ||
v_1000: '#FFCB00', | ||
v_1100: '#E5B700', | ||
}, | ||
}; |
Oops, something went wrong.
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.
Could we please document all tokens on Colors page such as
appBar
and possibly others that are missing? I can't find it at https://deploy-preview-551--kolibri-design-system.netlify.app/colors/# It seems some of them were forgotten before, it'd be helpful to include them now as we're upgrading though.