Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
cooltilities
Advanced tools
Some simple, common style utilities to use with composable css-in-js libraries.
Some simple, common style utilities to use with composable css-in-js libraries like emotion and vudu.
cooltilities
returns an object with an assortment of color and layout utilities. To see them all, check out the docs.
import cooltilities from 'cooltilities'
console.log(cooltilities)
// returns {
// block: { display: 'block' },
// flex: { display: 'flex' },
// r0: { right: 0 },
// ...etc,
// }
If you'd like to generate utilities for custom colors, cooltilities
can be configured with a colors object and will return all the utilities including your custom colors.
import { generate } from 'cooltilities'
console.log(generate({ red: 'red' }))
// returns {
// block: { display: 'block' },
// flex: { display: 'flex' },
// red: { color: 'red' },
// bgRed: { backgroundColor: 'red' },
// ...etc,
// }
import c from 'cooltilities'
import { css } from 'emotion'
import styled from 'react-emotion'
const Component = styled('div')(css(c.flex, c.alignCenter, c.justifyCenter))
import c from 'cooltilities'
import v from 'vudu'
const styles = v({
component: { '@composes': [c.flex, c.alignCenter, c.justifyCenter] }
})
const Component = ({ children }) => (
<div className={styles.component}>{children}</div>
)
Documentation can be found at: https://lalena-co.github.io/cooltilities/
All documentation follows jsDoc and can be regenerated using documentation.js, by typing the following in Terminal:
npm run docs:build
Or if you'd like to keep it running while you work:
npm run docs:build:watch
FAQs
Some simple, common style utilities to use with composable css-in-js libraries.
The npm package cooltilities receives a total of 2 weekly downloads. As such, cooltilities popularity was classified as not popular.
We found that cooltilities demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.