
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
colorwindcss
Advanced tools
Need to know your colors better? Identify which Tailwind colors are used in your CSS files with `colorwindcss`!
Need to know your colors better? Identify which Tailwind colors are used in your CSS files with colorwindcss!
oklch(...) values or var(--tailwind-color) as oklch(l c h); /* --tailwind-color */.🔥 near --tailwind-color)./* Before */
.dark {
--oklch-value: oklch(0.145 0 0);
--tailwind-variable: var(--color-neutral-50);
--random-value: oklch(0.7 0.1 140);
}
/* After */
.dark {
--oklch-value: oklch(0.145 0 0); /* --color-neutral-950 */
--tailwind-variable: oklch(0.985 0 0); /* --color-neutral-50 */
--random-value: oklch(0.7 0.1 140); /* 🔥 near --color-lime-600 */
}
npx colorwindcss@latest
For a specific path, or not a CSS file:
npx colorwindcss@latest <path-to-file>
Input (globals.css):
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.922 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
}
After running:
.dark {
--background: oklch(0.145 0 0); /* --color-neutral-950 */
--foreground: oklch(0.985 0 0); /* --color-neutral-50 */
--card: oklch(0.205 0 0); /* --color-neutral-900 */
--card-foreground: oklch(0.985 0 0); /* --color-neutral-50 */
--popover: oklch(0.205 0 0); /* --color-neutral-900 */
--popover-foreground: oklch(0.985 0 0); /* --color-neutral-50 */
--primary: oklch(0.922 0 0); /* --color-neutral-200 */
--primary-foreground: oklch(0.205 0 0); /* --color-neutral-900 */
--secondary: oklch(0.269 0 0); /* --color-neutral-800 */
--secondary-foreground: oklch(0.985 0 0); /* --color-neutral-50 */
--muted: oklch(0.269 0 0); /* --color-neutral-800 */
--muted-foreground: oklch(0.708 0 0); /* --color-neutral-400 */
--accent: oklch(0.269 0 0); /* --color-neutral-800 */
--accent-foreground: oklch(0.985 0 0); /* --color-neutral-50 */
--destructive: oklch(0.704 0.191 22.216); /* --color-red-400 */
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0); /* --color-neutral-500 */
--chart-1: oklch(0.488 0.243 264.376); /* --color-blue-700 */
--chart-2: oklch(0.696 0.17 162.48); /* --color-emerald-500 */
--chart-3: oklch(0.769 0.188 70.08); /* --color-amber-500 */
--chart-4: oklch(0.627 0.265 303.9); /* --color-purple-500 */
--chart-5: oklch(0.645 0.246 16.439); /* --color-rose-500 */
--sidebar: oklch(0.205 0 0); /* --color-neutral-900 */
--sidebar-foreground: oklch(0.985 0 0); /* --color-neutral-50 */
--sidebar-primary: oklch(0.488 0.243 264.376); /* --color-blue-700 */
--sidebar-primary-foreground: oklch(0.985 0 0); /* --color-neutral-50 */
--sidebar-accent: oklch(0.269 0 0); /* --color-neutral-800 */
--sidebar-accent-foreground: oklch(0.985 0 0); /* --color-neutral-50 */
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0); /* --color-neutral-500 */
}
npm install -g colorwindcss
Then:
colorwindcss
Or for a specific path:
colorwindcss <path-to-file>
MIT – LICENSE
FAQs
Need to know your colors better? Identify which Tailwind colors are used in your CSS files with `colorwindcss`!
The npm package colorwindcss receives a total of 23 weekly downloads. As such, colorwindcss popularity was classified as not popular.
We found that colorwindcss 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.