-
Notifications
You must be signed in to change notification settings - Fork 175
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
Studio: Audit and fix theme token updates against KDS #4459
Merged
bjester
merged 18 commits into
learningequality:hotfixes
from
akolson:studio_rebranding
Apr 17, 2024
Merged
Changes from 8 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ce82a4c
Upgrade Studio to KDS 3.0.0 (2/3)
MisRob 950565f
Upgrade Studio to KDS 3.0.0 (3/3)
MisRob 4d0ac3b
Finalize upgrade to v3+ of KDS
bjester cccd0d8
Updates grey shade usages
akolson eeabbf6
AppBar color upgrade
akolson 7b562e7
Cherry-picks theming base work
rtibbles ef04e91
updates yarn.lock
akolson 2823d9d
implements further rebrand changes
akolson 4b894b3
Removes console log
akolson bd033b1
Updates studio to use KDS library
akolson fad5f46
changes immersive bar color to black
akolson 51da497
Updates colors
akolson 15c3511
Updates KLogo
akolson 02484aa
Updates logo usages to guidelines
akolson 0cb9338
Updates logo usages to guidelines
akolson 5b686cf
Updates KDS version + warning icon color
akolson dc3a7cb
Updates warning icon color
akolson a3cf778
Fixes incorrect coach content icon color
akolson 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
27 changes: 20 additions & 7 deletions
27
contentcuration/contentcuration/frontend/shared/i18n/index.js
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
57 changes: 29 additions & 28 deletions
57
contentcuration/contentcuration/frontend/shared/vuetify/theme.js
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,35 +1,36 @@ | ||
import colors from 'vuetify/es5/util/colors'; | ||
import { themeTokens } from 'kolibri-design-system/lib/styles/theme'; | ||
import { themeBrand, themePalette, themeTokens } from 'kolibri-design-system/lib/styles/theme'; | ||
|
||
export default function theme() { | ||
const palette = themePalette(); | ||
const brand = themeBrand(); | ||
const tokens = themeTokens(); | ||
return Object.assign( | ||
{ | ||
purple: '#996189', | ||
primary: '#996189', | ||
secondary: '#8DC5B6', | ||
primaryBackground: colors.purple.lighten5, | ||
backgroundColor: colors.grey.lighten5, | ||
greyBackground: colors.grey.lighten3, | ||
greyBorder: colors.grey.lighten1, | ||
grey: colors.grey.darken1, | ||
darkGrey: colors.grey.darken2, | ||
greenSuccess: '#4db6ac', | ||
topic: colors.grey.base, | ||
video: '#283593', | ||
image: '#283593', // IDK what this is supposed to be | ||
audio: '#f06292', | ||
document: '#ff3d00', | ||
exercise: '#4db6ac', | ||
h5p: '#ff8f00', | ||
html5: '#ff8f00', | ||
zim: '#ff8f00', | ||
slideshow: '#4ece90', | ||
channelHighlightDefault: colors.grey.lighten3, | ||
draggableDropZone: '#dddddd', | ||
draggableDropOverlay: '#996189', | ||
greenHighlightBackground: '#E3F0ED', | ||
roleVisibilityCoach: '#01a9f3', | ||
secondary: brand.secondary.v_1000, | ||
primaryBackground: brand.primary.v_200, | ||
backgroundColor: palette.grey.v_50, | ||
greyBackground: palette.grey.v_200, | ||
greyBorder: palette.grey.v_400, | ||
grey: palette.grey.v_600, | ||
darkGrey: palette.grey.v_800, | ||
greenSuccess: tokens.success, | ||
topic: palette.grey.v_400, | ||
video: tokens.watch, | ||
audio: tokens.listen, | ||
document: tokens.read, | ||
exercise: tokens.practice, | ||
h5p: tokens.explore, | ||
html5: tokens.explore, | ||
zim: tokens.explore, | ||
slideshow: tokens.read, | ||
channelHighlightDefault: palette.grey.v_200, | ||
draggableDropZone: palette.grey.v_100, | ||
draggableDropOverlay: brand.primary.v_400, | ||
greenHighlightBackground: brand.secondary.v_200, | ||
roleVisibilityCoach: palette.lightblue.v_600, | ||
}, | ||
themeTokens() | ||
tokens | ||
); | ||
} | ||
|
||
console.log(themeTokens()); |
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.
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.
I added a
color
prop here as there are instances where theMainNavigationDrawer
top needs to match with theAppBar
color since its not alwaysyellow
. We actually do have a white app bar too and this prop provides the much needed flexibility.