Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
> This lib is still under construction however some components are still working.
This lib is still under construction however some components are still working.
ng-tw is a set of components to use tailwind css with angular, created with love to the community.
Add ng-tw
, tailwind
and @angular/cdk
dependency to your project:
npm install ng-tw @angular/cdk tailwindcss
We use @angular/cdk
mostly for overlay components like notification, select and others, in order to make it work on a minimum setup you'll need to import their css in your style.scss:
@import '@angular/cdk/overlay-prebuilt.css';
First you'll need to setup tailwind on your angular project, to do that you can follow the setup documentation on tailwind website.
With angular +12 the process is pretty straight forward and since this lib was made with angular +13 you shouldn't have much problems to setup tailwind.
The theme design is based on a set of colors to make it easy to use inside components.
tailwind.config.js
const colors = require('tailwindcss/colors');
module.exports = {
//...
theme: {
extend: {
colors: {
primary: { ...colors.indigo, DEFAULT: colors.indigo[500] },
secondary: { ...colors.pink, DEFAULT: colors.pink[500] },
danger: { ...colors.red, DEFAULT: colors.red[500] },
},
},
},
variants: {
extend: {
opacity: ['disabled'],
backgroundColor: ['disabled'],
},
},
//...
}
It's also important to note that you should add the disabled variant for opacity and backgroundColor.
Tailwind uses purge to make the bundle size smaller, you'll need to setup the lib in the content
section of your tailwind.config.js
to make it work
module.exports = {
//...
content: [..., './node_modules/ng-tw/**/*'],
//...
}
For more instructions and documentation:
FAQs
> This lib is still under construction however some components are still working.
The npm package ng-tw receives a total of 15 weekly downloads. As such, ng-tw popularity was classified as not popular.
We found that ng-tw 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.