diff --git a/lib/src/HalstackContext.tsx b/lib/src/HalstackContext.tsx
index d974208ee..e4680df64 100644
--- a/lib/src/HalstackContext.tsx
+++ b/lib/src/HalstackContext.tsx
@@ -1,6 +1,6 @@
import React, { useMemo } from "react";
import Color from "color";
-import { createGlobalStyle } from "styled-components";
+import styled from "styled-components";
import {
AdvancedTheme,
OpinionatedTheme,
@@ -395,19 +395,20 @@ type HalstackProviderPropsType = {
const HalstackProvider = ({ theme, advancedTheme, labels, children }: HalstackProviderPropsType): JSX.Element => {
const parsedTheme = useMemo(
() => (theme ? parseTheme(theme) : advancedTheme ? parseAdvancedTheme(advancedTheme) : componentTokens),
- [theme, advancedTheme],
+ [theme, advancedTheme]
);
const parsedLabels = useMemo(() => (labels ? parseLabels(labels) : defaultTranslatedComponentLabels), [labels]);
return (
-
-
- {children}
-
+
+
+ {children}
+
+
);
};
-const GlobalStyle = createGlobalStyle`
+const Halstack = styled.div`
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap");
`;