diff --git a/src/React/Basic/Emotion.js b/src/React/Basic/Emotion.js index c775121..3ebf01e 100644 --- a/src/React/Basic/Emotion.js +++ b/src/React/Basic/Emotion.js @@ -36,3 +36,5 @@ exports.global = Emotion.Global; exports.css = _homogeneousDict => Emotion.css; exports.important = prop => typeof prop === "string" ? prop + " !important" : prop; + +exports.keyframes = _homogeneousDict => Emotion.keyframes; diff --git a/src/React/Basic/Emotion.purs b/src/React/Basic/Emotion.purs index 608888e..115987f 100644 --- a/src/React/Basic/Emotion.purs +++ b/src/React/Basic/Emotion.purs @@ -8,7 +8,9 @@ module React.Basic.Emotion , element , elementKeyed , css + , global , important + , keyframes , nested , merge , str @@ -134,6 +136,8 @@ foreign import css :: forall r. Homogeneous r StyleProperty => { | r } -> Style foreign import important :: StyleProperty -> StyleProperty +foreign import keyframes :: forall r. Homogeneous r StyleProperty => { | r } -> StyleProperty + nested :: Style -> StyleProperty nested = unsafeCoerce