Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@poi/plugin-astroturf

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poi/plugin-astroturf

Use [astroturf](https://github.com/4Catalyzer/astroturf) to write CSS in JS with zero-runtime.

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@poi/plugin-astroturf

Use astroturf to write CSS in JS with zero-runtime.

Install

yarn add astroturf @poi/plugin-astroturf --dev

How to use

In your poi.config.js:

module.exports = {
  plugins: [
    {
      resolve: '@poi/plugin-astroturf',
      options: {}
    }
  ]
}

Then write css-in-js:

import { css } from 'astroturf'

const style = css`
  .title {
    font-size: 2em;
  }
`
export const App = () => {
  return <div className={style.title}>Hello world</div>
}

Check out astroturf for more usages.

Options

  • loaderOptions: astroturf/loader options
    • loaderOptions.extension: Default .module.css. You can also change it to .scss or .module.scss etc to use CSS pre-processors, but make sure that it ends with .module.xxx if you want CSS modules support.

License

MIT.

FAQs

Package last updated on 30 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc