-
Notifications
You must be signed in to change notification settings - Fork 11
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
Button colors #149
base: main
Are you sure you want to change the base?
Button colors #149
Conversation
❌ Deploy Preview for hover-design failed.
|
export const [defaultButtonTheme, defaultButtonVars]: ButtonTheme = createTheme( | ||
{ | ||
color: "#FFFFFF", | ||
backgroundColor: "#1AB5EB", | ||
borderColor: "none", | ||
hoverBackgroundColor: "#008FCB", | ||
hoverColor: "#FFFFFF", | ||
hoverBorderColor: "none", | ||
focusBackgroundColor: "#1AB5EB40", | ||
focusColor: "#FFFFFF", | ||
focusBorderColor: "#C6EDFB", | ||
disabledBackgroundColor: "#8CDAF5", | ||
disabledColor: "#FFFFFF", | ||
disabledBorderColor: "none", | ||
} | ||
); | ||
|
||
export const [lightButtonTheme, lightButtonVars]: ButtonTheme = createTheme({ | ||
color: "#1AB5EB", | ||
backgroundColor: "#F9F9F9", | ||
borderColor: "#DDDDDD", | ||
hoverBackgroundColor: "#F0F0F0", | ||
hoverColor: "#008FCB", | ||
hoverBorderColor: "none", | ||
focusBackgroundColor: "#F9F9F9", | ||
focusColor: "#1AB5EB", | ||
focusBorderColor: "#C6EDFB", | ||
disabledBackgroundColor: "#F9F9F9", | ||
disabledColor: "#1AB5EB", | ||
disabledBorderColor: "#DDDDDD", | ||
}); | ||
|
||
export const [ghostButtonTheme, ghostButtonVars]: ButtonTheme = createTheme({ | ||
color: "#1AB5EB", | ||
backgroundColor: "none", | ||
borderColor: "none", | ||
hoverBackgroundColor: "#0000000D", | ||
hoverColor: "#008FCB", | ||
hoverBorderColor: "none", | ||
focusBackgroundColor: "none", | ||
focusColor: "#1AB5EB", | ||
focusBorderColor: "#C6EDFB", | ||
disabledBackgroundColor: "none", | ||
disabledColor: "#1AB5EB", | ||
disabledBorderColor: "", | ||
}); | ||
|
||
export const [hallowButtonTheme, hallowButtonVars]: ButtonTheme = createTheme({ | ||
color: "#1AB5EB", | ||
backgroundColor: "none", | ||
borderColor: "#1AB5EB", | ||
hoverBackgroundColor: "none", | ||
hoverColor: "#1AB5EB", | ||
hoverBorderColor: "#AAAAAA", | ||
focusBackgroundColor: "none", | ||
focusColor: "#101010", | ||
focusBorderColor: "#C6EDFB", | ||
disabledBackgroundColor: "none", | ||
disabledColor: "#878787", | ||
disabledBorderColor: "#EEEEEE", | ||
}); |
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.
- Move the colors to a constants file. we have the styles folder, just make a colors.ts and store colors there
- these themes should be used globally not only for button, define this in
theme/index.ts
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
LGTM thanks! will merge after i finalize the tokens
No description provided.