
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
@fusoionic/ng-tailwind-color
Advanced tools
Angular helper functions/pipe for coloring (build on top of TinyColor2)
Angular Tailwind Color Helpers/Pipes
Angular helper functions/pipe for coloring (build on top of TinyColor2)
npm i @fusoionic/ng-tailwind-color
Import TailwindModule
from @fusoionic/ng-tailwind-color
import { TailwindModule } from '@fusoionic/ng-tailwind-color';
@NgModule({
imports: [
TailwindModule.forRoot({ ... }), // inject services
TailwindModule, // inject pipes
]
})
Resolve color with pipe
<!-- Tailwind string -->
<span [style.color]="'red-500' | twHex"></span>
<!-- Tailwind string with alpha/opacity -->
<span [style.color]="'red-500/50' | twRgb"></span> <!-- 50 = 0.5 -->
import {TailwindService} from '@fusoionic/ng-tailwind-color';
export class AppComponent implements OnInit {
constructor(
private twService: TailwindService,
){}
ngOnInit(){
this.twService.resolve('red-500').darken(50).toHex();
}
}
twHex - Resolves color to HEX
twRgb - Resolves color to RGBA
twHsl - Resolves color to HSL
twHsv - Resolves color to HSV
twInvertHex - Inverts color and returns it as HEX
twInvertRgb - Inverts color and returns it as RGBA
twInvertHsl - Inverts color and returns it as HSL
twInvertHsv - Inverts color and returns it as HSV
twLightenHex - Lightens color by given amount and returns it as HEX
twLightenRgb - Lightens color by given amount and returns it as RGBA
twLightenHsl - Lightens color by given amount and returns it as HSL
twLightenHsv - Lightens color by given amount and returns it as HSV
twDarkenHex - Darkens color by given amount and returns it as HEX
twDarkenRgb - Darkens color by given amount and returns it as RGBA
twDarkenHsl - Darkens color by given amount and returns it as HSL
twDarkenHsv - Darkens color by given amount and returns it as HSV
FAQs
Angular helper functions/pipe for coloring (build on top of TinyColor2)
The npm package @fusoionic/ng-tailwind-color receives a total of 2 weekly downloads. As such, @fusoionic/ng-tailwind-color popularity was classified as not popular.
We found that @fusoionic/ng-tailwind-color demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.