Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Button colors #149

wants to merge 2 commits into from

Conversation

smashbrick
Copy link
Contributor

No description provided.

@smashbrick smashbrick self-assigned this Dec 29, 2022
@netlify
Copy link

netlify bot commented Dec 29, 2022

Deploy Preview for hover-design failed.

Name Link
🔨 Latest commit 794c7bb
🔍 Latest deploy log https://app.netlify.com/sites/hover-design/deploys/63d7614ac2209e00088daf91

Comment on lines 5 to 65
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",
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Move the colors to a constants file. we have the styles folder, just make a colors.ts and store colors there
  2. these themes should be used globally not only for button, define this in theme/index.ts

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.6% 0.6% Duplication

Copy link
Contributor

@pruthvi2103 pruthvi2103 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants