Skip to content

Commit

Permalink
update font family class
Browse files Browse the repository at this point in the history
  • Loading branch information
caroluchoa authored Apr 8, 2024
1 parent 6eebe66 commit 318b27a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sections/Theme/Theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ export function Preview(props: Props) {
--admin-font-family: 'Albert Sans', sans-serif;
}
.admin-font-family {
font-family: var(--admin-font-family);
}
.dark {
background-color: var(--admin-color-dark-bg);
color: var(--admin-text-color-dark);
Expand Down Expand Up @@ -364,7 +368,7 @@ export function Preview(props: Props) {
</style>
<Section {...props} />
<div className={`flex flex-col gap-4 text-base w-full ${adminColorMode}`}>
<div className="font-[var(--admin-font-family)]">
<div className="admin-font-family">
Components and styles
</div>
<div className="flex flex-col w-full gap-2">
Expand Down Expand Up @@ -548,7 +552,7 @@ const PreviewContainer = (
<div
className={`border p-4 flex flex-col gap-2 grow relative ${borderClass} rounded-lg`}
>
<div className="font-[var(--admin-font-family)]">
<div className="admin-font-family">
<div className="my-1">{title}</div>
<div>
<input type="checkbox" id={checkboxId} className="sr-only" />
Expand Down

0 comments on commit 318b27a

Please sign in to comment.