Skip to content

Commit 9001bcd

Browse files
committed
chore: deprecate package in favor of @tailgrids/cli and add postinstall warning script
1 parent 02f3d12 commit 9001bcd

File tree

5 files changed

+94
-112
lines changed

5 files changed

+94
-112
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: 🚀 tailgrids release
22

33
on:
44
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
5+
branches: [legacy]
86

97
jobs:
108
release:

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
node_modules
2-
.DS_Store
2+
.DS_Store
3+
4+
.next
5+
.turbo
6+
.source
7+
8+
.env*
9+
!.env.example
10+
11+
dist

README.md

Lines changed: 42 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,128 +1,67 @@
1-
# Free Tailwind CSS UI Components and Blocks by TailGrids
1+
# ⚠️ This package is DEPRECATED
22

3-
TailGrids is modern day Tailwind CSS UI library of over 600 high-quality Tailwind CSS UI components and blocks, perfectly crafted for modern websites, landing pages, web applications, dashboard, ecommerce and more. This library includes all the essential UI components and elements you would expect from a top-notch UI library, ensuring a consistent design and easy-to-use, example templates, copy-paste components for HTML, React, and Vue.
3+
> **The `tailgrids` npm package has been deprecated in favor of [`@tailgrids/cli`](https://www.npmjs.com/package/@tailgrids/cli).**
44
5-
### Key Features:
5+
## Migration Guide
66

7-
- **Complete UI Library:** TailGrids boasts an impressive assortment of over 600 Tailwind CSS UI components and blocks.
8-
- **Multi-Framework Support:** TailGrids supports multiple frameworks - HTML, React, and Vue, catering to a wide array of development needs.
9-
- **Premium Quality:** Our components are designed with a consistent, modern aesthetic, ensuring high-end visual quality.
10-
- **User-Friendly:** With a simple copy-paste functionality, TailGrids accelerates the development process, saving you time and effort.
11-
- **Adaptable:** TailGrids is ideal for a variety of applications, including modern websites, landing pages, web apps, dashboards, ecommerce platforms, and more.
12-
- **Accessible Open-Source Version:** Our free version gives you access to over 200 UI components along with all core components.
13-
- **Example Templates:** 14 multi-purpose and unique example templates available in HTML and React.
7+
The new `@tailgrids/cli` package provides a modern CLI-based workflow for managing TailGrids components in your projects. Instead of installing a monolithic package, you can now initialize your project and selectively add only the components you need.
148

15-
The free open-source version of TailGrids provides 200+ UI components along with all core components, making it a valuable resource for both personal and commercial projects. Feel free to use it, and don't forget to support and inspire our team by starring this repository.
16-
17-
18-
### [🚀 Explore All Components](https://tailgrids.com/components)
19-
20-
### [🌏 Visit Website](https://tailgrids.com)
21-
22-
### [📃 Documentation](https://tailgrids.com/docs)
23-
24-
### Installing via NPM
25-
26-
Ensure you've installed [Node.js](https://nodejs.org) and [Tailwind CSS](https://tailwindcss.com) before TailGrids NPM package. Here's a quick guide to get you started with Tailgrids:
27-
28-
**1. Install the [TailGrids NPM package](https://www.npmjs.com/package/tailgrids/?ref=tailgrids.com):**
9+
### Step 1: Remove the old package
2910

3011
```bash
31-
npm i tailgrids
12+
npm uninstall tailgrids
3213
```
33-
**2. Add the TailGrids plugin to your `css` file:**
34-
35-
```css
36-
@plugin 'tailgrids/plugin'
37-
```
38-
**3. [Browse the components](https://tailgrids.com/components) and simply copy and paste the ones you like into your projects.**
39-
40-
And that's it! You're all set to start using TailGrids in your project. Happy coding!
41-
42-
### [⚡ Get PRO Version](https://tailgrids.com/pricing)
43-
44-
### [📄 Detailed Documentation and Usage Guide](https://tailgrids.com/docs)
45-
46-
### [👉 TailAdmin React](https://tailgrids.com/react)
47-
48-
### [👉 TailAdmin Vue](https://tailgrids.com/vue)
49-
50-
### [🖌️ TailGrids Figma](https://tailgrids.com/figma)
5114

15+
### Step 2: Initialize your project with the new CLI
5216

53-
## 💙 Support
54-
55-
You can always support this project and inspire us by [Starring🌟 This Repository](https://github.com/TailGrids/tailwind-ui-components)
56-
and sharing with friends. If you like the the library consider purchasing the [Pro version](https://tailgrids.com/pricing)
57-
58-
## Changelog
59-
60-
### Version 2.3.0
61-
(Mar, 2025)
62-
63-
- Updated to Tailwind CSS v4
64-
65-
66-
### Version 2.2.1
67-
(Aug, 2024)
68-
69-
- Timepicker added
70-
- Datepicker added.
71-
17+
```bash
18+
npx @tailgrids/cli@latest init
19+
```
7220

73-
### Version 2.2.0
74-
(May, 2024)
21+
This will:
22+
- Create a `tailgrids.config.json` configuration file
23+
- Generate a `tailgrids.css` file with base styles or directly override your main css file depending on your selection
24+
- Add a `cn` utility file for merging Tailwind CSS classes
25+
- Install necessary dependencies (`clsx`, `tailwind-merge`, `@tailwindcss/forms`)
7526

76-
- Added over 80 new components.
77-
- Updated the core style guide.
78-
- Revised the file structure.
79-
- Enhanced the plugin to reduce dependencies.
80-
- Updated the Tailwind CSS version along with other dependencies.
27+
### Step 3: Add components as needed
8128

82-
### Version 2.1.0
83-
(October, 2023)
29+
```bash
30+
npx @tailgrids/cli@latest add <component-id>
31+
```
8432

85-
- Introduced dark mode.
86-
- Polished existing components.
87-
- Incorporated a few core components.
88-
- Updated dependent packages.
33+
For example:
8934

90-
## Version 2.0.0
91-
(February, 2023)
35+
```bash
36+
npx @tailgrids/cli@latest add button
37+
```
9238

93-
- This major release doubled our components, introduced dark mode, and expanded our components & example templates.
94-
- 500+ Tailwind UI Components (200+ Newly Added)
95-
- 12 Templates (8 Newly Added)
96-
- Dark mode for all Components
97-
- Updated Figma File with New UI Components
98-
- 2 E-Commerce Templates
99-
- 90+ Advanced | Core, Marketing and App UI Components
100-
- 50+ Dashboard UI Components
101-
- 100+ eCommerce Components
39+
Components are copied directly into your project (usually `components/tailgrids/core/`), giving you full control to customize them.
10240

103-
## Version 1.1.0
104-
(March, 2022)
41+
### Step 4: Remove the old plugin import
10542

106-
We focused on enhancing your design experience with Figma integration and new templates.
43+
If you had the old plugin in your CSS file:
10744

108-
- 2 New Templates
109-
- Figma Source for UI Components
110-
- Responsive Buttons / Viewport
111-
- Dedicated Templates Gallery
45+
```diff
46+
- @plugin 'tailgrids/plugin'
47+
```
11248

113-
## Initial Release
114-
(February, 2022)
49+
---
11550

116-
The journey began! We launched TailGrids with a strong foundation of components and templates.
51+
## Why the change?
11752

118-
- Initial 300+ UI Components
119-
- Two Example Templates
120-
- NPM Package for Open Source Version
53+
- **Smaller footprint** — Only install the components you actually use
54+
- **Full customization** — Components live in your project, not in `node_modules`
55+
- **Modern CLI workflow** — Standardized setup with `init` and `add` commands
56+
- **Better DX** — Automatic dependency management and project configuration
12157

122-
## 🎁 License
58+
## Links
12359

124-
TailGrids Core Version is 100% Free! and open-source you can use it with your personal or commercial projects.
60+
- 📦 **New package:** [@tailgrids/cli on npm](https://www.npmjs.com/package/@tailgrids/cli)
61+
- 📃 **Documentation:** [tailgrids.com/docs](https://tailgrids.com/docs)
62+
- 🌏 **Website:** [tailgrids.com](https://tailgrids.com)
63+
- 🚀 **Components:** [tailgrids.com/components](https://tailgrids.com/components)
12564

126-
## UI Components
65+
## License
12766

128-
[![sneak-peek](https://cdn.tailgrids.com/tailgrids-components.svg)](https://tailgrids.com/components)
67+
TailGrids Core Version is 100% Free and open-source. You can use it with your personal or commercial projects.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "tailgrids",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
4+
"deprecated": "This package has been deprecated. Please use @tailgrids/cli instead: https://www.npmjs.com/package/@tailgrids/cli",
45
"main": "index.js",
56
"license": "MIT",
67
"keywords": [
@@ -55,10 +56,11 @@
5556
],
5657
"author": "TailGrids Team <hello@tailgrids.com> (https://tailgrids.com/)",
5758
"homepage": "https://tailgrids.com/",
58-
"description": "Handcrafted Library of Tailwind CSS UI Components & Blocks for HTML, React and Vue.",
59-
"bugs": "https://github.com/TailGrids/tailwind-ui-components/issues",
59+
"description": "[DEPRECATED] Use @tailgrids/cli instead. Previously: Handcrafted Library of Tailwind CSS UI Components & Blocks for HTML, React and Vue.",
60+
"bugs": "https://github.com/TailGrids/tailgrids/issues",
6061
"scripts": {
61-
"build-css": "npx @tailwindcss/cli -i ./src/tailwind.css -o ./assets/css/tailwind.css -w"
62+
"build-css": "npx @tailwindcss/cli -i ./src/tailwind.css -o ./assets/css/tailwind.css -w",
63+
"postinstall": "node scripts/deprecation-warning.js"
6264
},
6365
"devDependencies": {
6466
"@tailwindcss/postcss": "^4.0.9",
@@ -70,6 +72,6 @@
7072
},
7173
"repository": {
7274
"type": "git",
73-
"url": "https://github.com/TailGrids/tailwind-ui-components"
75+
"url": "https://github.com/TailGrids/tailgrids"
7476
}
7577
}

scripts/deprecation-warning.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env node
2+
3+
const YELLOW = '\x1b[33m';
4+
const RED = '\x1b[31m';
5+
const CYAN = '\x1b[36m';
6+
const BOLD = '\x1b[1m';
7+
const RESET = '\x1b[0m';
8+
9+
const message = `
10+
${RED}${BOLD}╔══════════════════════════════════════════════════════════════════╗
11+
║ ║
12+
║ ⚠️ DEPRECATION WARNING ║
13+
║ ║
14+
║ The "tailgrids" package has been deprecated. ║
15+
║ ║
16+
║ Please migrate to @tailgrids/cli ║
17+
║ ║
18+
╚══════════════════════════════════════════════════════════════════╝${RESET}
19+
20+
${YELLOW}To migrate:${RESET}
21+
22+
${CYAN}1.${RESET} Remove this package:
23+
${BOLD}npm uninstall tailgrids${RESET}
24+
25+
${CYAN}2.${RESET} Initialize with the new CLI:
26+
${BOLD}npx @tailgrids/cli@latest init${RESET}
27+
28+
${CYAN}3.${RESET} Add components as needed:
29+
${BOLD}npx @tailgrids/cli@latest add <component-id>${RESET}
30+
31+
${YELLOW}More info:${RESET} ${CYAN}https://www.npmjs.com/package/@tailgrids/cli${RESET}
32+
`;
33+
34+
console.warn(message);

0 commit comments

Comments
 (0)