daisyui-blueprint 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +118 -0
  2. package/package.json +1 -1
  3. package/server.js +1 -1
package/README.md ADDED
@@ -0,0 +1,118 @@
1
+ # daisyUI Blueprint
2
+
3
+ MCP (Model Context Protocol) server that provides AI assistants with daisyUI component snippets, conversion prompts, and Figma design integration.
4
+
5
+ ## Features
6
+
7
+ - **500+ daisyUI Snippets** - Ready-to-use code for daisyUI components, layouts, and templates provided to LLMs
8
+ - **AI Conversion Prompts** - Convert Bootstrap to daisyUI, screenshots to code, Tailwind to daisyUI, and images to themes
9
+ - **Figma Integration** - Extract design data from Figma files and convert them to daisyUI code
10
+ - **Theme Generation** - Create custom daisyUI themes from image color palettes
11
+
12
+ ## Setup
13
+
14
+ ### Prerequisites
15
+
16
+ - A valid daisyUI Blueprint license from [daisyui.com](https://daisyui.com)
17
+ - (Optional) Figma API token for Figma integration
18
+
19
+ ### Installation
20
+
21
+ Set environment variables for the MCP server:
22
+
23
+ - **`LICENSE`** (required) - Your daisyUI Blueprint license key
24
+ - **`EMAIL`** (required) - Email associated with your license
25
+ - **`FIGMA`** (optional) - Your Figma API token for Figma integration
26
+ - **`IMAGES`** (optional) - Set to `"false"` to disable image fetching (default: `"true"`)
27
+
28
+ Add this MCP server to your code editor or AI assistant client:
29
+
30
+ ```json
31
+ {
32
+ "mcpServers": {
33
+ "daisyui-blueprint": {
34
+ "command": "npx",
35
+ "args": ["-y", "daisyui-blueprint@beta"],
36
+ "env": {
37
+ "LICENSE": "your-license-key",
38
+ "EMAIL": "your-email@example.com",
39
+ "FIGMA": "your-figma-token"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ ```
45
+
46
+ ## Usage
47
+
48
+ ### 1. daisyUI Component Snippets
49
+
50
+ Request component code snippets from your AI assistant. The server provides 500+ components, layouts, and templates.
51
+
52
+ **Available Categories:**
53
+ - **Components** - Button, Card, Modal, Navbar, Dropdown, Table, Form inputs, and 50+ more
54
+ - **Layouts** - Responsive sidebars, top navbar, drawer layouts
55
+ - **Templates** - Dashboard, login form, and more
56
+ - **Themes** - Built-in themes, color utilities, custom theme creation
57
+
58
+ **Example requests:**
59
+ - "What's the XL button size in daisyUI?"
60
+ - "Make a login page with daisyUI"
61
+ - "Make a pricing card with daisyUI"
62
+ - "Create a daisyUI dashboard layout with sidebar and navbar"
63
+
64
+ The server will return the exact daisyUI code with examples and best practices.
65
+
66
+ ### 2. Conversion Prompts
67
+
68
+ Use built-in prompts to convert existing code or designs to daisyUI:
69
+
70
+ #### **Screenshot to daisyUI**
71
+ Convert any UI screenshot to daisyUI code:
72
+ 1. Provide a screenshot to your AI assistant
73
+ 2. Ask to "recreate this using daisyUI"
74
+ 3. The AI will analyze the design and generate daisyUI code matching the screenshot
75
+
76
+ #### **Bootstrap to daisyUI**
77
+ Convert Bootstrap code to daisyUI:
78
+ 1. Provide your Bootstrap HTML code
79
+ 2. Ask to "convert this Bootstrap code to daisyUI"
80
+ 3. Bootstrap classes will be replaced with daisyUI components and Tailwind utilities
81
+
82
+ #### **Tailwind to daisyUI**
83
+ Optimize Tailwind code by replacing component patterns with daisyUI:
84
+ 1. Share your Tailwind CSS code
85
+ 2. Ask to "convert this to use daisyUI components"
86
+ 3. Component-like patterns will be replaced with semantic daisyUI classes
87
+
88
+ #### **Picture to Theme**
89
+ Generate a custom daisyUI theme from any image:
90
+ 1. Upload an image with colors you like
91
+ 2. Ask to "create a daisyUI theme from this image"
92
+ 3. A custom theme CSS will be generated matching the image's color palette
93
+
94
+ ### 3. Figma Integration
95
+
96
+ Extract design data from Figma files and convert to daisyUI code.
97
+
98
+ **Setup:**
99
+ 1. Get a Figma API token from [Figma Account Settings](https://www.figma.com/developers/api#access-tokens)
100
+ 2. Add it to your environment configuration as `FIGMA`
101
+
102
+ **Usage:**
103
+ 1. Copy a Figma file or node URL (e.g., `https://www.figma.com/design/abc123/My-Design?node-id=1-2`)
104
+ 2. Ask your AI assistant to "convert this Figma design to daisyUI"
105
+ 3. The server will fetch the design structure and help generate matching daisyUI code
106
+
107
+ **Options:**
108
+ - Adjust `depth` parameter to control how deep the node tree is traversed (default: 10)
109
+ - Enable `includeImages` to fetch preview images of designs
110
+
111
+ ## License
112
+
113
+ Commercial license required. Get yours at [daisyui.com](https://daisyui.com)
114
+
115
+ ## Docs
116
+
117
+ - Documentation: [daisyui.com/blueprint](https://daisyui.com/blueprint/)
118
+ - daisyUI: [daisyui.com](https://daisyui.com/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daisyui-blueprint",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "./server.js",
6
6
  "bin": {