-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from RobinNagpal/theme-via-js
Set theme using javascript
- Loading branch information
Showing
14 changed files
with
145 additions
and
117 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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,116 @@ | ||
export interface ThemeValue { | ||
primaryColor: string; | ||
bgColor: string; | ||
textColor: string; | ||
linkColor: string; | ||
headingColor: string; | ||
borderColor: string; | ||
headerBg: string; | ||
blockBg: string; | ||
} | ||
|
||
export enum CssTheme { | ||
AaveTheme = 'AaveTheme', | ||
ArbitrumTheme = 'ArbitrumTheme', | ||
BalancerTheme = 'BalancerTheme', | ||
CompoundTheme = 'CompoundTheme', | ||
FuseTheme = 'FuseTheme', | ||
GlobalTheme = 'GlobalTheme', | ||
KlerosTheme = 'KlerosTheme', | ||
OptimismTheme = 'OptimismTheme', | ||
UniswapTheme = 'UniswapTheme', | ||
} | ||
export type ThemeKey = keyof typeof CssTheme; | ||
|
||
export const themes: Record<keyof typeof CssTheme, ThemeValue> = { | ||
AaveTheme: { | ||
primaryColor: '#2EBAC6', | ||
bgColor: '#1B2030', | ||
textColor: '#f1f1f3', | ||
linkColor: '#f1f1f3', | ||
headingColor: '#f1f1f3', | ||
borderColor: '#d1d5da', | ||
headerBg: '#383D51', | ||
blockBg: '#383D51', | ||
}, | ||
ArbitrumTheme: { | ||
primaryColor: '#1B4ADD', | ||
bgColor: '#0A0A0A', | ||
textColor: '#f8fafc', | ||
linkColor: '#ffffff', | ||
headingColor: '#ffffff', | ||
borderColor: '#4971E9', | ||
headerBg: '#0A0A0A', | ||
blockBg: '#1D2C52', | ||
}, | ||
BalancerTheme: { | ||
primaryColor: '#3183ff', | ||
bgColor: '#0A0A0A', | ||
textColor: '#f8fafc', | ||
linkColor: '#ffffff', | ||
headingColor: '#ffffff', | ||
borderColor: '#0751bf', | ||
headerBg: '#0A0A0A', | ||
blockBg: '#1D2C52', | ||
}, | ||
CompoundTheme: { | ||
primaryColor: '#00AD79', | ||
bgColor: '#0D131A', | ||
textColor: '#f1f1f3', | ||
linkColor: '#f1f1f3', | ||
headingColor: '#f1f1f3', | ||
borderColor: '#d1d5da', | ||
headerBg: '#1D2833', | ||
blockBg: '#323432', | ||
}, | ||
FuseTheme: { | ||
primaryColor: '#000000', | ||
bgColor: '#FFFFFF', | ||
textColor: '#000000', | ||
linkColor: '#333333', | ||
headingColor: '#000000', | ||
borderColor: '#BBBBBB', | ||
headerBg: '#EEEEEE', | ||
blockBg: '#EEEEEE', | ||
}, | ||
GlobalTheme: { | ||
primaryColor: '#384aff', | ||
bgColor: '#ffffff', | ||
textColor: '#57606a', | ||
linkColor: '#111111', | ||
headingColor: '#111111', | ||
borderColor: '#d0d7de', | ||
headerBg: '#F5F9FF', | ||
blockBg: '#F5F9FF', | ||
}, | ||
KlerosTheme: { | ||
primaryColor: '#4d00b4', | ||
bgColor: '#ffffff', | ||
textColor: '#000000', | ||
linkColor: '#000000', | ||
headingColor: '#4d00b4', | ||
borderColor: '#cccccc', | ||
headerBg: '#fbf9fe', | ||
blockBg: 'transparent', | ||
}, | ||
OptimismTheme: { | ||
primaryColor: '#ff0420', | ||
bgColor: '#1e1313', | ||
textColor: '#f1f1f3', | ||
linkColor: '#f1f1f3', | ||
headingColor: '#f1f1f3', | ||
borderColor: '#fb9191', | ||
headerBg: '#1e1313', | ||
blockBg: '#2f2d2d', | ||
}, | ||
UniswapTheme: { | ||
primaryColor: '#6f6cbd', | ||
bgColor: '#212429', | ||
textColor: '#c2c5ca', | ||
linkColor: '#ffffff', | ||
headingColor: '#6f6cbd', | ||
borderColor: '#909294', | ||
headerBg: '#3B3A60FF', | ||
blockBg: '#3B3A60FF', | ||
}, | ||
}; |
1 change: 1 addition & 0 deletions
1
src/components/timelines/View/V2OneSide/V2OneSideTimelineView.module.scss
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,3 +1,4 @@ | ||
|
||
.styledLink { | ||
color: var(--primary-color); | ||
cursor: pointer; | ||
|
f070b29
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.
Successfully deployed to the following URLs:
dodao-ui – ./
fuse.university
dodao.academy
aave.academy
makerchat.org
academy.dodao.io
thendc.academy
lifeinsure.tips
dodao.io
arbitrumchat.org
kleros.dodao.io
cryptogelato.com
balancer.academy
optimismchat.org
empowerher.academy
arbitrum.education
compound.education
uniswapbot.click
optimism.university
uniswap.university
creditunion.academy
y-tau-beryl.vercel.app
www.dodao.io
www.aave.academy
www.makerchat.org
www.lifeinsure.tips
www.dodao.academy
www.thendc.academy
www.fuse.university
www.arbitrumchat.org
www.balancer.academy
www.cryptogelato.com
www.optimismchat.org
www.uniswapbot.click
www.empowerher.academy
www.compound.education
www.uniswap.university
www.arbitrum.education
www.creditunion.academy
dodao-ui-robinnagpal-s-team.vercel.app
www.optimism.university
dodao-ui-git-main-robinnagpal-s-team.vercel.app