Skip to content

Commit

Permalink
Fixed background and forefround in theme previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunear committed Jun 10, 2024
1 parent c8ba36e commit 7e44eb3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.components {
background-color: var(--back);
background-color: var(--background);
border-radius: 12px;
width: 100%;
padding: 24px;
Expand All @@ -10,7 +10,7 @@
}

.card {
background-color: var(--fore);
background-color: var(--foreground);
border-radius: 8px;
padding: 24px;
}
Expand Down
6 changes: 3 additions & 3 deletions apps/theme/components/Previews/Dashboard/Dashboard.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.dashboard {
background-color: var(--back);
background-color: var(--background);
width: 100%;
position: relative;
min-height: 815px;
Expand All @@ -8,7 +8,7 @@
}

.sidebar {
background-color: var(--fore);
background-color: var(--foreground);
position: absolute;
top: 0;
bottom: 0;
Expand Down Expand Up @@ -70,7 +70,7 @@
}

.card {
background-color: var(--fore);
background-color: var(--foreground);
padding: 24px;
border-radius: 8px;
}
Expand Down
10 changes: 8 additions & 2 deletions apps/theme/components/Previews/Previews.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
}

.preview {
--back: var(--grey2);
--fore: var(--grey1);
--background: var(--grey2);
--foreground: var(--grey1);

border: 1px solid #ebebeb;
width: 100%;
Expand All @@ -79,3 +79,9 @@
gap: 32px;
box-shadow: 0 0 20px 2px #ebebeb;
}

.preview[data-ds-color-mode='dark'],
.preview[data-ds-color-mode='contrast'] {
--background: var(--grey1);
--foreground: var(--grey2);
}

0 comments on commit 7e44eb3

Please sign in to comment.