3.0.1 • Published 4 years ago

stylis-plugin-logical v3.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

stylis-plugin-logical

Stylis plugin allowing the use of CSS Logical Properties and Values.

Disclaimer: Supports only stylis v3

codesandbox example

Usage

add stylis-plugin-logical to your project

npm install stylis-plugin-logical

with emotion v10

import { jsx, css, CacheProvider } from "@emotion/core";
import createCache from "@emotion/cache";
import stylisPluginLogical from "stylis-plugin-logical";


const cache = createCache({
  stylisPlugins: [stylisPluginLogical()]
});

function Root({children}) {
  return (
    <CacheProvider value={cache}>
      {children}
    </CacheProvider>
  )
}

codesandbox example