
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
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.
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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.