Skip to content

Commit 82b4999

Browse files
committed
theme: color and token adjustments
1 parent c2769e6 commit 82b4999

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

src/@chakra-ui/semanticTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const semanticTokens = {
5858
inverted: { _light: "gray.100", _dark: "gray.800" },
5959
},
6060
background: {
61-
base: { _light: "white", _dark: "black" },
61+
base: { _light: "white", _dark: "gray.950" },
6262
highlight: { _light: "gray.100", _dark: "gray.900" },
6363
},
6464
disabled: { _light: "gray.400", _dark: "gray.500" },

src/components/ui/buttons/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const buttonVariants = cva(
1414
variants: {
1515
variant: {
1616
solid:
17-
"text-white bg-primary-action border-transparent disabled:bg-disabled disabled:text-background hover:text-background hover:bg-primary-hover hover:shadow-button-hover active:shadow-none",
17+
"text-white bg-primary-action border-transparent disabled:bg-disabled disabled:text-background hover:text-white hover:bg-primary-action-hover hover:shadow-button-hover active:shadow-none",
1818
outline: "hover:shadow-button-hover active:shadow-none text-body",
1919
"outline-color":
2020
"hover:shadow-button-hover active:shadow-none border-primary",

src/components/ui/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const CardHighlight = React.forwardRef<
102102
>(({ className, ...props }, ref) => (
103103
<p
104104
ref={ref}
105-
className={cn("text-sm uppercase text-accent-a", className)}
105+
className={cn("text-sm uppercase text-body-medium", className)}
106106
{...props}
107107
/>
108108
))

src/styles/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124

125125
@layer base {
126126
body {
127-
@apply !bg-background font-body text-sm text-body lg:text-md;
127+
@apply !bg-background font-body text-sm !text-body lg:text-md;
128128
}
129129

130130
a {

src/styles/semantic-tokens.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--primary-hover: var(--purple-500);
2020
--primary-visited: var(--purple-700);
2121
--primary-action: var(--purple-600);
22-
--primary-action-hover: var(--purple-700);
22+
--primary-action-hover: var(--purple-500);
2323

2424
--accent-a: var(--blue-600);
2525
--accent-a-hover: var(--blue-500);
@@ -80,7 +80,7 @@
8080

8181
/* Dark mode token declarations */
8282
.dark {
83-
--body: var(--gray-50);
83+
--body: var(--gray-100);
8484
--body-medium: var(--gray-400);
8585
--body-light: var(--gray-600);
8686
--body-inverse: var(--black);
@@ -94,7 +94,6 @@
9494
--primary-low-contrast: var(--purple-900);
9595
--primary-hover: var(--purple-300);
9696
--primary-visited: var(--purple-500);
97-
--primary-action-hover: var(--purple-600);
9897
/* TODO: hover same as action in dark mode: */
9998

10099
--accent-a: var(--blue-400);

tailwind.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ const config = {
122122
"high-contrast": "hsla(var(--primary-high-contrast))",
123123
"low-contrast": "hsla(var(--primary-low-contrast))",
124124
hover: "hsla(var(--primary-hover))",
125+
visited: "hsla(var(--primary-visited))",
125126
action: "hsla(var(--primary-action))",
127+
"action-hover": "hsla(var(--primary-action-hover))",
126128
light: "hsla(var(--primary-light))" /* TODO: Migrate/deprecate */,
127129
dark: "hsla(var(--primary-dark))" /* TODO: Migrate/deprecate */,
128130
},

0 commit comments

Comments
 (0)