Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
pandacss-preset-radix-colors
Advanced tools
[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![MIT License][license-shield]][license-url] [![LinkedIn][linkedin-shield]][linke
Brings Radix Colors to PandaCSS
npm install --save-dev pandacss-preset-radix-colors @radix-ui/colors
Add the preset to your PandaCSS configuration (panda.config.ts
)
import { defineConfig } from "@pandacss/dev";
// Import the preset. The name can be anything you want
import radixColorsPreset from "pandacss-preset-radix-colors";
export default defineConfig({
presets: [
radixColorsPreset(),
// Re-add the base and panda presets because otherwise
// they will be removed entirely
"@pandacss/preset-base",
"@pandacss/preset-panda",
],
});
You can add dark mode support by setting darkMode
to true
. The default condition has been set to .dark &
, which can be changed as shown below
...
presets: [
radixColorsPreset({
darkMode: true,
// darkMode: {
// condition: ".dark &"
// }
}),
],
And then you can conditionally style for dark mode using the _dark
modifier. Learn more
// Also works with cva or config recipes
css({
color: "slate.1",
// Overwrite the color when the mode is set to dark
_dark: {
color: "slate.11",
},
});
FAQs
Brings Radix Colors to 🐼 PandaCSS
The npm package pandacss-preset-radix-colors receives a total of 1,576 weekly downloads. As such, pandacss-preset-radix-colors popularity was classified as popular.
We found that pandacss-preset-radix-colors demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.