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

update(react-card): dark mode colors #992

Merged
merged 5 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dull-bottles-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hashicorp/react-card": minor
---

update(react-card): dark mode colors
EnMod marked this conversation as resolved.
Show resolved Hide resolved
29 changes: 24 additions & 5 deletions packages/card/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
&.light .contentContainer {
box-shadow: 0 8px 12px -8px rgba(203, 203, 205, 0.4),
0 16px 24px -16px rgba(203, 203, 205, 0.2);
box-shadow: 0 2px 2px 0 rgba(97, 104, 117, 0.05),
0 1px 1px 0 rgba(97, 104, 117, 0.05);

&:hover {
box-shadow: 0 10px 12px -8px rgba(203, 203, 205, 0.5),
Expand All @@ -35,13 +37,30 @@
}

&.dark {
--border-color: transparent;
--primary-text-color: var(--wpl-neutral-0);
--secondary-text-color: var(--wpl-neutral-400);
--background-color: var(--wpl-neutral-700);
/* dark-border-primary */
--border-color: rgba(178, 182, 189, 0.2);

/* dark-foreground-primary */
--primary-text-color: #d5d7db;

/* dark-foreground-faint */
--secondary-text-color: #b2b6bd;

/* dark-surface-interactive */
--background-color: #0d0e12;

&:hover {
--background-color: var(--wpl-neutral-600);
/* dark-surface-interactive-active */
--background-color: #1e222a;
}

& .contentContainer {
box-shadow: 0 2px 2px 0 rgba(97, 104, 117, 0.05),
0 1px 1px 0 rgba(97, 104, 117, 0.05);
}

& .thumbnail {
border-bottom: 0;
}
}
}
Expand Down