
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@githubocto/tailwind-vscode
Advanced tools
Defines Tailwind color classes for VS Code extension colors
Are you authoring VS Code extensions with webviews? Step right up! This is a plugin for Tailwind that exposes VS Code's theme colors as Tailwind colors — with all of the variants (bg, text, border, etc…) Now you can author styles for your extension's webviews with Tailwind and use the active VS Code theme colors.
No, this is not a plugin for VS Code! Your absolutely should check out the Tailwind CSS IntelliSense plugin, though. Not gonna lie, it's pretty fantastic.
Add via your favorite package manager.
$ npm i -D @githubocto/tailwind-vscode
$ # or yarn, I ain't gonna judge
$ yarn add -D @githubocto/tailwind-vscode
Then add the plugin to your tailwind.config.js:
module.exports = {
/* other config stuff here */
plugins: [require('@githubocto/tailwind-vscode')],
}
And style components!
<input className='bg-vscode-input-background text-vscode-input-foreground border-vscode-input-border focus:border-vscode-inputOption-activeBorder'/>
Doing a little celebratory dance in your chair is optional but encouraged.
The VS Code theme colors are represented as Tailwind colors under vscode, with hyphens subtituted for periods (foo.bar → foo-bar).
Webviews are exposed inside an <iframe>. If you open the webview's developer tools and inspect the <html>, you'll see a style property with a honking large list of CSS custom properties, also known by their rapper name, "variables".
These are injected by VS Code, and contain the style colors defined by the active VS Code theme. When a user changes the theme, the variables change. VoilĂ , themeability inside webviews.
Only, once you get used to Tailwind-y everything, using those color variables is quite jarring.
This plugin creates a vscode Tailwind color object with definitions for every VS Code theme color.
You could map these variables manually, like so:
module.exports = {
theme: {
extend: {
colors: {
vscode: {
'contrastBorder': 'var(--vscode-contrastBorder)',
'focusBorder': 'var(--vscode-focusBorder)',
'foreground': 'var(--vscode-foreground)',
'widget-shadow': 'var(--vscode-widget-shadow)'
/* … and 500 more */
But this is tedious. Use this plugin and spend your time on loftier pursuits.
MIT
FAQs
Defines Tailwind color classes for VS Code extension colors
The npm package @githubocto/tailwind-vscode receives a total of 514 weekly downloads. As such, @githubocto/tailwind-vscode popularity was classified as not popular.
We found that @githubocto/tailwind-vscode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.