daisyui-blueprint 0.0.0-development-5 → 0.0.0-development-6
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.
- package/LICENSE.md +62 -0
- package/README.md +118 -0
- package/package.json +1 -1
- package/server.js +2 -2
package/LICENSE.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Copyright (c) 2025 daisyUI
|
|
2
|
+
|
|
3
|
+
Commercial License Agreement
|
|
4
|
+
|
|
5
|
+
By purchasing or using this "Software", you agree to this license agreement:
|
|
6
|
+
|
|
7
|
+
## Permissions
|
|
8
|
+
|
|
9
|
+
- Private use of the Software is allowed.
|
|
10
|
+
- Commercial use of the Software is allowed.
|
|
11
|
+
- Distribution of the Software is NOT allowed.
|
|
12
|
+
- Modification of the Software is NOT allowed.
|
|
13
|
+
|
|
14
|
+
## Conditions
|
|
15
|
+
|
|
16
|
+
- This license is only valid for users who have purchased the Software and possess a valid receipt from daisyUI website at https://daisyui.com
|
|
17
|
+
- License rights are non-transferable and valid only for the original purchaser with proof of purchase
|
|
18
|
+
- Reselling, sublicensing, or redistributing the Software in its original form is not allowed
|
|
19
|
+
- The Software cannot be used for any illegal or unethical purposes
|
|
20
|
+
- The Software cannot be refunded once purchased, as it is a digital product and cannot be returned once downloaded
|
|
21
|
+
- This is a perpetual license with no expiration date
|
|
22
|
+
- This agreement is governed by applicable laws
|
|
23
|
+
|
|
24
|
+
## Examples of use cases
|
|
25
|
+
|
|
26
|
+
- Allowed use cases:
|
|
27
|
+
- Using the Software to create a website for your business
|
|
28
|
+
- Using the Software to create a web application for your client
|
|
29
|
+
|
|
30
|
+
- Prohibited use cases:
|
|
31
|
+
- Modifying the Software
|
|
32
|
+
- Reselling or redistributing the Software
|
|
33
|
+
|
|
34
|
+
## Terms of Use
|
|
35
|
+
|
|
36
|
+
1. Definitions:
|
|
37
|
+
- "Software" means the software package purchased from the daisyUI Store at https://daisyui.com/store
|
|
38
|
+
- "Organization" means your company or entity and its members, not external contractors or partners
|
|
39
|
+
- "End product" means any product created using the Software
|
|
40
|
+
|
|
41
|
+
2. Usage Terms:
|
|
42
|
+
- The Software will be provided in its current state
|
|
43
|
+
- Technical support is not included in the license
|
|
44
|
+
- Updates, bug fixes, and new features are not guaranteed but may be provided at the discretion of daisyUI
|
|
45
|
+
- You may create and distribute end products using the Software
|
|
46
|
+
- You may not use the Software in any way that violates applicable laws
|
|
47
|
+
|
|
48
|
+
3. Termination:
|
|
49
|
+
- Your license remains valid as long as you follow these terms
|
|
50
|
+
- To maintain access to the Software, you need to comply with this agreement
|
|
51
|
+
|
|
52
|
+
4. Amendments:
|
|
53
|
+
- This license is valid for the current version of the Software. daisyUI reserves the right to use new license terms for future versions of the Software.
|
|
54
|
+
|
|
55
|
+
5. Intellectual Property Rights
|
|
56
|
+
- The daisyUI name, logo, website (daisyui.com), daisyUI CSS library, and all other daisyUI project properties remain the exclusive property of daisyUI
|
|
57
|
+
- This license does not grant any rights to use daisyUI's name, logo, website, or any other daisyUI property
|
|
58
|
+
- Any misuse of daisyUI's intellectual property will result in immediate license termination
|
|
59
|
+
|
|
60
|
+
## Disclaimer
|
|
61
|
+
|
|
62
|
+
THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL DAISYUI, POUYA SAADEGHI, THE AUTHORS, OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
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/)
|