New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eo-css-tools

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eo-css-tools

CSS tools

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

css-tools

Simple data comparsion and composition library

build status npm bundlephobia minzip npm version

Install

# npm
npm i css-tools

# yarn
yarn add css-tools

Usage

Example
import { css } from 'YOUR_BELOWED_CSS_IN_JS_FRAMEWORK';
import { breakpoint } from 'eo-css-tools';

const style = {
  root: css`
    height: 400px;

    // Mobile portrait breakpoint
    ${breakpoint(0, 400)`
      height: 200px;
    `}

    // Tablet breakpoint
    ${breakpoint('400px', '1024px')`
      height: 300px;
    `}
  `,
};
Result
.root_xk292ls {
  height: 400px;

  @media only screen (min-width: 0px) and (max-width: 400px) {
    height: 200px;
  }

  @media only screen (min-width: 400px) and (max-width: 1024px) {
    height: 300px;
  }
}

Keywords

FAQs

Package last updated on 19 Jan 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