@@ -21,6 +21,7 @@ type PropsF f =
2121 ( children ∷ Array JSX
2222 , themeVariant ∷ f (Maybe DarkOrLightMode)
2323 , onPreferredSystemThemeChange ∷ f (DarkOrLightMode -> Effect Unit)
24+ , globalStyles :: f E.Style
2425 )
2526
2627type Props =
@@ -78,14 +79,14 @@ rawComponent =
7879 [ R.div' </ { ref }
7980 /> Array.cons
8081 ( element E.global
81− { styles:
82+ { styles: (_ <>? props.globalStyles)
8283 case propsThemeVariant, systemThemeVariant of
8384 Nothing, Nothing -> Styles.global
8485 Just Styles.DarkMode, _ -> Styles.darkMode
8586 Just Styles.LightMode, _ -> Styles.lightMode
8687 Nothing, Just DarkMode -> Styles.darkMode
8788 Nothing, Just LightMode -> Styles.lightMode
88− }
89+ }
8990 )
9091 children
9192 , R.div { id: modalContainerId }