
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
euphoria-colors
Advanced tools
A Euphoria.css utility library to create color classes in your CSS-to-JS projects.
This module returns a string of class names you can then inject into a page, using something like glamor.
NOTE: Currently this only works with ES6 support using Babel or Node 7.x+.
# with yarn:
yarn add euphoria-colors
# with npm
npm i -S euphoria-colors
This module can be used in many ways. For example, using glamor, you would do the following:
import { css } from 'glamor'
import colors from 'euphoria-colors'
css.insert(
colors({
primary: '#ff6600',
danger: 'crimson',
blue: 'blue',
})
)
Now you will have the following classes available to you:
// Text colors
.text-primary { color: #ff6600; }
.text-danger { color: crimson; }
.text-blue { color: blue; }
// Background colors
.bg-primary { background: #ff6600; }
.bg-danger { background: crimson; }
.bg-blue { background: blue; }
Calling colors without arguments will get you the default colors mapping, which is:
{
primary: 'lightseagreen',
success: 'forestgreen',
info: 'teal',
warning: 'orange',
danger: 'crimson',
}
MIT
Dana Woodman
FAQs
CSS-in-JS utils for colors.
We found that euphoria-colors 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.