Skip to content

Commit

Permalink
Add accent9 color
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnei committed May 29, 2024
1 parent 2cadf8d commit 7430e75
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ const css = (
}),

"call-to-action": () => ({
border: `1px solid ${config.colors.happy7}`,
color: config.colors.happy6BwInverted,
backgroundColor: config.colors.happy6,
border: `1px solid ${config.colors.happy8}`,
color: config.colors.happy7BwInverted,
backgroundColor: config.colors.happy7,
"&:hover, &:focus-visible": {
border: `1px solid ${config.colors.happy8}`,
backgroundColor: config.colors.happy7,
color: config.colors.happy7BwInverted,
border: `1px solid ${config.colors.happy9}`,
backgroundColor: config.colors.happy8,
color: config.colors.happy8BwInverted,
},
}),
});
Expand Down
4 changes: 4 additions & 0 deletions src/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ html[data-color-scheme="light-high-contrast"] {
--color-danger5: #a50613;
--color-danger5-bw-inverted: #fff;

--color-accent9: #000099;
--color-accent9-bw-inverted: #fff;
--color-accent8: #000099;
--color-accent8-bw-inverted: #fff;
--color-accent7: #000099;
Expand Down Expand Up @@ -151,6 +153,8 @@ html[data-color-scheme="dark-high-contrast"] {
--color-danger5: #eb1722;
--color-danger5-bw-inverted: #fff;

--color-accent9: #a6ffea;
--color-accent9-bw-inverted: #000;
--color-accent8: #a6ffea;
--color-accent8-bw-inverted: #000;
--color-accent7: #a6ffea;
Expand Down
8 changes: 8 additions & 0 deletions src/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ export type ColorConfig = {
happy7BwInverted: string;
happy8: string;
happy8BwInverted: string;
happy9: string;
happy9BwInverted: string;

accent9: string;
accent9BwInverted: string;
accent8: string;
accent8BwInverted: string;
accent7: string;
Expand Down Expand Up @@ -100,7 +104,11 @@ export const DEFAULT_CONFIG: AppkitConfig = {
happy7BwInverted: "var(--color-accent7-bw-inverted)",
happy8: "var(--color-accent8)",
happy8BwInverted: "var(--color-accent8-bw-inverted)",
happy9: "var(--color-accent9)",
happy9BwInverted: "var(--color-accent9-bw-inverted)",

accent9: "var(--color-accent9)",
accent9BwInverted: "var(--color-accent9-bw-inverted)",
accent8: "var(--color-accent8)",
accent8BwInverted: "var(--color-accent8-bw-inverted)",
accent7: "var(--color-accent7)",
Expand Down

0 comments on commit 7430e75

Please sign in to comment.