npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2025 โ€“ย Pkg Stats / Ryan Hefner

create-ng-tailwind

v3.1.0

Published

๐Ÿš€ A CLI tool to give starter template for angular project with tailwind css

Downloads

379

Readme

Create Angular + Tailwind

npm version License: MIT Node.js Version Downloads

๐Ÿš€ A CLI tool to give starter template for angular project with tailwind css


โœจ Features

  • ๐ŸŽฏ Angular 20+ - Latest version with standalone components and signals
  • ๐ŸŽจ Tailwind CSS v4 - Utility-first CSS framework preconfigured
  • ๐Ÿš€ SEO Optimized - Meta tags, Open Graph, Twitter Cards, structured data, robots.txt
  • ๐ŸŒ i18n Translation - English & Arabic with RTL support
  • ๐ŸŽฎ Interactive UI - Toast notifications, Modal dialogs, and components
  • ๐Ÿ—๏ธ Zero Configuration - Everything set up and ready to go

Quick Start

Using npx (Recommended)

Run the following command and follow the prompts:

npx create-ng-tailwind my-awesome-app

Using npm

Install globally and use:

npm install -g create-ng-tailwind
create-ng-tailwind my-awesome-app

What happens next?

The CLI will guide you through:

  1. Choosing a template (Minimal or Starter)
  2. Configuring Server-Side Rendering (optional)
  3. Setting up zoneless application (optional)
  4. Selecting AI tools integration (optional)

After setup completes:

cd my-awesome-app
npm install
ng serve

Your app will be running at http://localhost:4200 ๐ŸŽ‰

๐Ÿ—๏ธ Project Structure

my-app/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ core/                  # Core services and interceptors
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ services/          # Auth, API, SEO, Toast, Modal, etc.
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ interceptors/      # HTTP interceptors
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ guards/            # Route guards
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ i18n/              # Translation service
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ utils/             # Structured data utilities
โ”‚   โ”‚   โ”œโ”€โ”€ shared/                # Shared components and utilities
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ components/        # Button, Card, Toast, Modal
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ pipes/             # Truncate, TimeAgo
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ directives/        # ClickOutside, Tooltip
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ models/            # TypeScript interfaces
โ”‚   โ”‚   โ”œโ”€โ”€ features/              # Feature modules
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ home/              # Home page
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ about/             # About page
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ contact/           # Contact page
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ auth/              # Authentication pages
โ”‚   โ”‚   โ”œโ”€โ”€ layout/                # Layout components
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ header/            # Navigation header
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ footer/            # Footer component
โ”‚   โ”‚   โ”œโ”€โ”€ app.config.ts          # App configuration
โ”‚   โ”‚   โ”œโ”€โ”€ app.routes.ts          # Routing configuration
โ”‚   โ”‚   โ””โ”€โ”€ app.ts                 # Main app component
โ”‚   โ”œโ”€โ”€ styles.css                 # Tailwind CSS imports
โ”‚   โ””โ”€โ”€ main.ts                    # Bootstrap
โ”œโ”€โ”€ public/
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”‚   โ”œโ”€โ”€ i18n/                  # Translation files (en.json, ar.json)
โ”‚   โ”‚   โ””โ”€โ”€ images/                # OG images, logos
โ”‚   โ”œโ”€โ”€ robots.txt                 # SEO robots file
โ”‚   โ”œโ”€โ”€ favicon.svg                # Favicon
โ”‚   โ””โ”€โ”€ android-chrome-*.svg       # PWA icons
โ”œโ”€โ”€ .postcssrc.json                # PostCSS configuration
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ ...

๐ŸŽฏ Starter Template Features

The Starter Template includes 25+ production-ready features:

Core Services

  • AuthService - Authentication & user management
  • ApiService - Centralized HTTP request handling
  • SeoService - Comprehensive SEO management (meta tags, Open Graph, Twitter Cards, structured data)
  • ToastService - Notification system (success, error, warning, info)
  • ModalService - Dialog system with confirm & alert
  • LoadingService - Global loading state with signals
  • CacheService - Response caching with TTL
  • StorageService - LocalStorage wrapper with type safety
  • i18nService - Internationalization management

SEO Optimization (Simple & Ready to Use)

  • SEO Service - Just 2 methods: updateMeta() and addStructuredData()
  • Meta Tags - Title, description, keywords (auto-configured on all pages)
  • Social Sharing - Open Graph & Twitter Cards (pre-configured)
  • Structured Data - Organization & WebSite schemas (included)
  • Canonical URLs - Auto-updated on route changes
  • Assets - robots.txt, favicon set, OG image placeholder
  • Extensible - Easy to add more schemas as needed

UI Components

  • ButtonComponent - Variants: primary, secondary, danger
  • CardComponent - Flexible container with title & shadow
  • LoadingSpinnerComponent - Animated loading indicator
  • ToastComponent - Auto-dismiss notifications
  • ModalComponent - Accessible dialog with sizes

Utilities

  • Pipes - Truncate, TimeAgo
  • Directives - ClickOutside, Tooltip
  • HTTP Interceptors - Auth, Error handling, Loading, Caching
  • TypeScript Path Aliases - Clean imports with @core/*, @shared/*, @features/*

Internationalization

  • Complete i18n Support - English & Arabic with RTL support
  • Language Switcher - Built-in header component
  • Translation Files - JSON-based translation system

Additional Features

  • Routing - Pre-configured with lazy loading
  • Authentication Pages - Login, Register, Forgot Password
  • Example Pages - Home, About, Contact with reactive forms
  • PWA Support - Service worker configuration
  • Linting & Formatting - ESLint + Prettier + simple-git-hooks (pre-commit linting)
  • Modern Stack - Tailwind v4, TypeScript, Signals

๐ŸŽจ Tailwind CSS v4

This tool uses Tailwind CSS v4 with the official PostCSS approach:

  • โœ… Modern PostCSS Plugin - @tailwindcss/postcss
  • โšก LightningCSS - Fast CSS processing
  • ๐ŸŽจ Modern CSS Features - Nesting, variables, and more built-in
  • ๐Ÿš€ Simplified Build - No preprocessors needed

Note: Tailwind v4 does not support SCSS, Sass, or Less. Modern CSS provides all the features you need!

๐ŸŽจ Comprehensive Theming System

The starter template includes a powerful Tailwind v4 theming system using the @theme directive:

Theme Colors:

  • primary - Main brand color (with full 50-950 scale)
  • secondary - Secondary brand color (with full 50-950 scale)
  • accent - Accent/highlight color (with full 50-950 scale)
  • success - Success states (green)
  • danger - Error/danger states (red)
  • warning - Warning states (yellow/orange)
  • info - Informational states (blue)

Customization: Simply edit src/styles.css and change the color values in the @theme block. All components automatically update!

@theme {
  --color-primary-500: #3b82f6;  /* Change this to your brand color */
  --color-secondary-500: #06b6d4;
  --color-accent-500: #a855f7;
  /* ... complete color scales included */
}

Usage in templates:

<div class="bg-primary-600 text-white">Primary button</div>
<div class="bg-secondary-500">Secondary element</div>
<p class="text-danger-600">Error message</p>

All UI components, pages, and layouts use these theme colors, making it easy to rebrand your entire application by changing a few color values!

๐Ÿ“„ License

MIT License - see the LICENSE file included in the package.

๐Ÿ™ Support & Community

If you find this tool helpful, please consider:

  • โญ Star the package on npm
  • ๐Ÿ”„ Share with your developer friends
  • ๐Ÿ“ง Contact: [email protected]

NPM