Skip to content

Commit 3232963

Browse files
fix compilation warning
1 parent 6674af9 commit 3232963

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

src/lib/styles/GlobalStyle.tsx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { cssVars } from "@bosonprotocol/react-kit";
2-
import { createGlobalStyle } from "styled-components";
2+
import { createGlobalStyle, RuleSet } from "styled-components";
33

44
import barlowRegular from "../../assets/fonts/Barlow-Regular.ttf";
55
import neuropolitical_rg from "../../assets/fonts/neuropolitical_rg.ttf";
@@ -103,7 +103,24 @@ const GlobalStyle = createGlobalStyle<{
103103
: colors.white};
104104
105105
// eslint-disable-next-line @typescript-eslint/no-explicit-any
106-
${cssVars};
106+
${
107+
cssVars as RuleSet<{
108+
$withBosonStyles?: boolean;
109+
$headerBgColor?: string;
110+
$headerTextColor?: string;
111+
$primaryBgColor?: string;
112+
$secondaryBgColor?: string;
113+
$accentColor?: string;
114+
$textColor?: string;
115+
$footerBgColor?: string;
116+
$footerTextColor?: string;
117+
$fontFamily?: string;
118+
$buttonBgColor?: string;
119+
$buttonTextColor?: string;
120+
$upperCardBgColor?: string;
121+
$lowerCardBgColor?: string;
122+
}>
123+
};
107124
108125
font-size: 0.75rem;
109126
${breakpoint.xs} {

0 commit comments

Comments
 (0)