Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@radix-ui/colors
Advanced tools
@radix-ui/colors is a collection of color palettes designed for use in user interfaces. It provides a set of carefully crafted color scales that can be used to create visually appealing and accessible designs.
Color Scales
Provides a set of color scales for different colors like blue, red, and green. Each color scale has multiple shades that can be used for different UI elements.
import { blue, red, green } from '@radix-ui/colors';
const primaryColor = blue.blue9;
const errorColor = red.red9;
const successColor = green.green9;
console.log(primaryColor); // Outputs: #3b82f6
console.log(errorColor); // Outputs: #ef4444
console.log(successColor); // Outputs: #10b981
Dark Mode Support
Provides dark mode variants for each color scale, allowing for seamless integration with dark mode themes.
import { blueDark, redDark, greenDark } from '@radix-ui/colors';
const primaryColorDark = blueDark.blue9;
const errorColorDark = redDark.red9;
const successColorDark = greenDark.green9;
console.log(primaryColorDark); // Outputs: #1e40af
console.log(errorColorDark); // Outputs: #b91c1c
console.log(successColorDark); // Outputs: #047857
Accessibility
Includes color shades that are optimized for accessibility, ensuring that text and UI elements are readable for users with visual impairments.
import { blue, red, green } from '@radix-ui/colors';
const accessiblePrimary = blue.blue11;
const accessibleError = red.red11;
const accessibleSuccess = green.green11;
console.log(accessiblePrimary); // Outputs: #1e3a8a
console.log(accessibleError); // Outputs: #991b1b
console.log(accessibleSuccess); // Outputs: #065f46
Tailwind CSS is a utility-first CSS framework that includes a comprehensive set of color utilities. It provides a wide range of color scales similar to @radix-ui/colors, but also includes a full suite of other utility classes for building responsive and modern web interfaces.
Chakra UI is a component library that includes a set of color palettes designed for building accessible and themeable React applications. It offers similar color scales and dark mode support, along with a collection of pre-built components.
Material-UI is a popular React component library that follows Google's Material Design guidelines. It includes a set of color palettes and themes that can be customized, providing similar functionality to @radix-ui/colors but within the context of Material Design.
A gorgeous, accessible color system.
For full documentation, visit radix-ui.com/colors/docs.
yarn add @radix-ui/colors
FAQs
[![Radix Colors Logo](colors.png)](https://radix-ui.com/colors)
The npm package @radix-ui/colors receives a total of 417,677 weekly downloads. As such, @radix-ui/colors popularity was classified as popular.
We found that @radix-ui/colors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.