kiui-kit 1.0.0-beta.1
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 +192 -0
- package/README.md +183 -0
- package/dist/components.conf.css +115 -0
- package/dist/data.json +40 -0
- package/dist/index.html +41 -0
- package/dist/kiui.min.css +2 -0
- package/dist/kiui.min.js +196 -0
- package/dist/kiui.png +0 -0
- package/package.json +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes
|
|
85
|
+
direct or contributory patent infringement, then any patent
|
|
86
|
+
licenses granted to You under this License for that Work shall
|
|
87
|
+
terminate as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
124
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
125
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
126
|
+
this License, without any additional terms or conditions.
|
|
127
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
128
|
+
the terms of any separate license agreement you may have executed
|
|
129
|
+
with the Licensor regarding such Contributions.
|
|
130
|
+
|
|
131
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
132
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
133
|
+
except as required for reasonable and customary use in describing the
|
|
134
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
135
|
+
|
|
136
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed
|
|
137
|
+
to in writing, Licensor provides the Work (and each Contributor
|
|
138
|
+
provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES
|
|
139
|
+
OR CONDITIONS OF ANY KIND, either express or implied, including,
|
|
140
|
+
without limitation, any warranties or conditions of TITLE,
|
|
141
|
+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
|
|
142
|
+
|
|
143
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
144
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
145
|
+
unless required by applicable law (such as deliberate and grossly
|
|
146
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
147
|
+
liable to You for damages, including any direct, indirect, special,
|
|
148
|
+
incidental, or consequential damages of any character arising as a
|
|
149
|
+
result of this License or out of the use or inability to use the
|
|
150
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
151
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
152
|
+
other commercial damages or losses), even if such Contributor
|
|
153
|
+
has been advised of the possibility of such damages.
|
|
154
|
+
|
|
155
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
156
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
157
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
158
|
+
or other liability obligations and/or rights consistent with this
|
|
159
|
+
License. However, in accepting such obligations, You may act only
|
|
160
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
161
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
162
|
+
defend, and hold each Contributor harmless for any liability
|
|
163
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
164
|
+
of your acceptance of such warranty or additional liability.
|
|
165
|
+
|
|
166
|
+
END OF TERMS AND CONDITIONS
|
|
167
|
+
|
|
168
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
169
|
+
|
|
170
|
+
To apply the Apache License to your work, attach the following
|
|
171
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
172
|
+
replaced with your own identifying information. (Don't include
|
|
173
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
174
|
+
comment syntax for the file format. We also recommend that a
|
|
175
|
+
file or class name and description of purpose be included on the
|
|
176
|
+
same "printed page" as the copyright notice for easier
|
|
177
|
+
identification within third-party archives.
|
|
178
|
+
|
|
179
|
+
Copyright [yyyy] [name of copyright owner]
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
|
192
|
+
Copyright 2025 Kiyan Abbasi
|
package/README.md
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# 🧩 KIUI Kit
|
|
2
|
+
---
|
|
3
|
+
<img src="kiui.png">
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
A lightweight, modern Web Component UI Kit – ready to plug into your HTML projects.
|
|
7
|
+
|
|
8
|
+
> Includes responsive headers, product cards, footers, and full theming system – powered by vanilla JavaScript and TailwindCSS-inspired utility styles.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 📦 Files Overview
|
|
13
|
+
|
|
14
|
+
| File | Description |
|
|
15
|
+
| --------------------- | -------------------------------------------- |
|
|
16
|
+
| `kiui.min.js` | Core JavaScript containing Web Components |
|
|
17
|
+
| `kiui.min.css` | Main CSS for layout and design |
|
|
18
|
+
| `components.conf.css` | Theme/style config – customize colors easily |
|
|
19
|
+
| `data.json` | Dynamic content used by components |
|
|
20
|
+
| `index.html` | Live demo file – test components quickly |
|
|
21
|
+
| `kiui.png` | Default image/logo used in cards/headers |
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
## 📦 Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm i kiui-kit
|
|
28
|
+
```
|
|
29
|
+
---
|
|
30
|
+
## 🚀 How to Use
|
|
31
|
+
|
|
32
|
+
### 1. Add Files to Your Project
|
|
33
|
+
|
|
34
|
+
You can either clone this repo or copy the following files into your project:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
/your-project/
|
|
38
|
+
│
|
|
39
|
+
├── kiui.min.js
|
|
40
|
+
├── kiui.min.css
|
|
41
|
+
├── components.conf.css (optional)
|
|
42
|
+
├── data.json
|
|
43
|
+
└── your.html
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### 2. Include in Your HTML
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<!DOCTYPE html>
|
|
52
|
+
<html lang="en">
|
|
53
|
+
<head>
|
|
54
|
+
<meta charset="UTF-8" />
|
|
55
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
56
|
+
<title>KiUI Demo</title>
|
|
57
|
+
|
|
58
|
+
<!-- CSS Files -->
|
|
59
|
+
<link rel="stylesheet" href="kiui.min.css" />
|
|
60
|
+
<link rel="stylesheet" href="components.conf.css" /> <!-- Optional -->
|
|
61
|
+
|
|
62
|
+
<!-- Web Component Script -->
|
|
63
|
+
<script src="kiui.min.js" defer></script>
|
|
64
|
+
</head>
|
|
65
|
+
<body>
|
|
66
|
+
|
|
67
|
+
<!-- Header -->
|
|
68
|
+
<header>
|
|
69
|
+
<header-type-1></header-type-1>
|
|
70
|
+
<header-type-2></header-type-2>
|
|
71
|
+
<!-- ... -->
|
|
72
|
+
</header>
|
|
73
|
+
<!-- Main -->
|
|
74
|
+
<main class="container">
|
|
75
|
+
<!-- Product Card -->
|
|
76
|
+
<box-card-1
|
|
77
|
+
data-img="./kiui.png"
|
|
78
|
+
data-title="Cool Headphones"
|
|
79
|
+
data-description="Experience immersive sound quality."
|
|
80
|
+
data-price="129.99"
|
|
81
|
+
data-button-title="Buy Now"
|
|
82
|
+
data-button-link="https://example.com"
|
|
83
|
+
></box-card-1>
|
|
84
|
+
<!-- ... -->
|
|
85
|
+
</main>
|
|
86
|
+
<!-- Footer -->
|
|
87
|
+
<footer>
|
|
88
|
+
<footer-type-1></footer-type-1>
|
|
89
|
+
<footer-type-2></footer-type-2>
|
|
90
|
+
<!-- ... -->
|
|
91
|
+
</footer>
|
|
92
|
+
</body>
|
|
93
|
+
</html>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### 3. Customize with `data.json`
|
|
99
|
+
|
|
100
|
+
Change menu items, links, and footer content by editing `data.json`:
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"data": {
|
|
105
|
+
"menu": {
|
|
106
|
+
"title": ["KIUI"],
|
|
107
|
+
"items": ["Home", "products", "contact", "GitHub"],
|
|
108
|
+
"links": [
|
|
109
|
+
"#Home",
|
|
110
|
+
"#products",
|
|
111
|
+
"#contact",
|
|
112
|
+
"https://github.com/alirezaabbasi-dev"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"main":{
|
|
116
|
+
},
|
|
117
|
+
"footer": {
|
|
118
|
+
"title": "KIUI",
|
|
119
|
+
"description": "KIUI is a modern UI design system to build fast and responsive web interfaces.",
|
|
120
|
+
"footerItems": {
|
|
121
|
+
"item1": {
|
|
122
|
+
"title": "Company",
|
|
123
|
+
"items": ["About", "Contact Us", "Careers", "Blog", "Contact"],
|
|
124
|
+
"links": ["#About", "#Us", "#Careers", "#Blog", "#Contact"]
|
|
125
|
+
},
|
|
126
|
+
"item2": {
|
|
127
|
+
"title": "Support",
|
|
128
|
+
"items": ["Help Center", "Documentation", "API Reference", "Status"],
|
|
129
|
+
"links": ["#Help", "#Documentation", "#API", "#Status"]
|
|
130
|
+
},
|
|
131
|
+
"item3": {
|
|
132
|
+
"title": "Legal",
|
|
133
|
+
"items": [
|
|
134
|
+
"Privacy Policy",
|
|
135
|
+
"Terms of Service",
|
|
136
|
+
"Cookie Policy",
|
|
137
|
+
"Licenses"
|
|
138
|
+
],
|
|
139
|
+
"links": ["#Privacy", "#Terms", "#Cookie", "#Licenses"]
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
## 🛠️ Development
|
|
150
|
+
To run the project locally:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
git clone https://github.com/alirezaabbasi-dev/KIUI.git
|
|
154
|
+
cd KIUI
|
|
155
|
+
npm install
|
|
156
|
+
npm run dev:css
|
|
157
|
+
```
|
|
158
|
+
---
|
|
159
|
+
## 🎨 Theming & Styling
|
|
160
|
+
|
|
161
|
+
- To change colors, shadows, transitions, and styles:
|
|
162
|
+
Edit the `components.conf.css` file and **uncomment** the section you want to modify.
|
|
163
|
+
- You can apply your own color palette, spacing, fonts, etc.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## 🌐 Browser Support
|
|
168
|
+
|
|
169
|
+
✅ Modern Browsers (Chrome, Firefox, Edge, Safari)
|
|
170
|
+
❗ Not tested in IE (because it's 2025 😉)
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 📄 License
|
|
175
|
+
|
|
176
|
+
`Apache License Version 2.0`
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## ✨ Author
|
|
181
|
+
|
|
182
|
+
Built with ❤️ by Kiyan Abbasi.
|
|
183
|
+
Feel free to contribute or fork the project.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
🎨 Global Styles
|
|
3
|
+
- Sets base font and background color for the entire website.
|
|
4
|
+
- You can modify body background or font-family globally here.
|
|
5
|
+
============================================================================
|
|
6
|
+
body {
|
|
7
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
8
|
+
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
9
|
+
}
|
|
10
|
+
============================================================================
|
|
11
|
+
🧭 Header Section (Currently Commented Out)
|
|
12
|
+
- To enable and customize header styles, remove the comment block below.
|
|
13
|
+
- Customize navigation background, title colors, hover effects, mobile menu, etc.
|
|
14
|
+
============================================================================
|
|
15
|
+
|
|
16
|
+
.menu-background => background color of the top navigation bar
|
|
17
|
+
.menu-main-title => main title in header, color and hover behavior
|
|
18
|
+
.menu-item => individual menu items with text-transform and hover styles
|
|
19
|
+
#mobile-menu => mobile dropdown background
|
|
20
|
+
#hamburger-btn => color of hamburger toggle icon
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
============================================================================
|
|
24
|
+
🧩 Main Section - Card Components
|
|
25
|
+
- These styles define the appearance of cards (e.g. product cards, blog cards).
|
|
26
|
+
- Customize background, title, text, price section, and button appearance.
|
|
27
|
+
============================================================================
|
|
28
|
+
.card => sets card background color
|
|
29
|
+
.card-title => defines color of the card title
|
|
30
|
+
.card-description => paragraph or short text under title
|
|
31
|
+
.card-price => background color of the price label
|
|
32
|
+
.card-btn => styling of call-to-action button (e.g. "Buy Now")
|
|
33
|
+
|
|
34
|
+
============================================================================
|
|
35
|
+
🦶 Footer Section
|
|
36
|
+
- Controls styles for footer background, titles, descriptions, and email input.
|
|
37
|
+
- Adjust footer subscribe button and social icons section.
|
|
38
|
+
============================================================================
|
|
39
|
+
.footer => overall footer background and text color
|
|
40
|
+
.footer-title => main headings inside footer
|
|
41
|
+
.footer-description => descriptive text
|
|
42
|
+
.input-email => background color of email input field
|
|
43
|
+
.footer-btn-subscribe => styling for subscribe button
|
|
44
|
+
.footer-bottom-social => color of social media icons/text in footer bottom */
|
|
45
|
+
|
|
46
|
+
/* Styles code */
|
|
47
|
+
/* ============================== Header ============================== */
|
|
48
|
+
body{
|
|
49
|
+
background-color: #e0e0e0;
|
|
50
|
+
}
|
|
51
|
+
/* .menu-background {
|
|
52
|
+
background: #4e2094;
|
|
53
|
+
}
|
|
54
|
+
.menu-main-title {
|
|
55
|
+
color: rgb(255, 95, 215);
|
|
56
|
+
}
|
|
57
|
+
.menu-main-title:hover {
|
|
58
|
+
color: rgb(213, 221, 228);
|
|
59
|
+
}
|
|
60
|
+
.menu-item {
|
|
61
|
+
color: rgb(192, 160, 255);
|
|
62
|
+
text-transform: capitalize;
|
|
63
|
+
}
|
|
64
|
+
.menu-item:hover {
|
|
65
|
+
color: rgb(213, 221, 228);
|
|
66
|
+
}
|
|
67
|
+
#mobile-menu {
|
|
68
|
+
background: #e1e2e1;
|
|
69
|
+
}
|
|
70
|
+
#hamburger-btn {
|
|
71
|
+
color: rgb(135, 145, 222);
|
|
72
|
+
} */
|
|
73
|
+
/* ============================== Main ============================== */
|
|
74
|
+
/* .card{
|
|
75
|
+
background: #2b0131;
|
|
76
|
+
}
|
|
77
|
+
.card-title{
|
|
78
|
+
color: rgb(152, 77, 219);
|
|
79
|
+
}
|
|
80
|
+
.card-description{
|
|
81
|
+
color: rgb(155, 155, 155);
|
|
82
|
+
}
|
|
83
|
+
.card-price{
|
|
84
|
+
color: rgb(105, 224, 105);
|
|
85
|
+
}
|
|
86
|
+
.card-btn{
|
|
87
|
+
background: rgb(81, 30, 165);
|
|
88
|
+
color: rgb(255, 160, 215);
|
|
89
|
+
}
|
|
90
|
+
.card-btn:hover{
|
|
91
|
+
background: rgb(80, 10, 193);
|
|
92
|
+
color: rgb(241, 192, 221);
|
|
93
|
+
} */
|
|
94
|
+
|
|
95
|
+
/* ============================== Footer ============================== */
|
|
96
|
+
/* .footer {
|
|
97
|
+
background: #180238;
|
|
98
|
+
color: #cecece;
|
|
99
|
+
}
|
|
100
|
+
.footer-title {
|
|
101
|
+
color: #630ae8;
|
|
102
|
+
}
|
|
103
|
+
.footer-description {
|
|
104
|
+
color: rgb(255, 255, 255);
|
|
105
|
+
}
|
|
106
|
+
.input-email{
|
|
107
|
+
background: #471295;
|
|
108
|
+
}
|
|
109
|
+
.footer-btn-subscribe{
|
|
110
|
+
background: #711cef;
|
|
111
|
+
} */
|
|
112
|
+
/* Bottom Social */
|
|
113
|
+
/* .footer-bottom-social{
|
|
114
|
+
color: rgb(215, 146, 240);
|
|
115
|
+
} */
|
package/dist/data.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"menu": {
|
|
4
|
+
"title": ["KIUI"],
|
|
5
|
+
"items": ["Home", "products", "contact", "GitHub"],
|
|
6
|
+
"links": [
|
|
7
|
+
"#Home",
|
|
8
|
+
"#products",
|
|
9
|
+
"#contact",
|
|
10
|
+
"https://github.com/alirezaabbasi-dev"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"footer": {
|
|
14
|
+
"title": "KIUI",
|
|
15
|
+
"description": "KIUI is a modern UI design system to build fast and responsive web interfaces.",
|
|
16
|
+
"footerItems": {
|
|
17
|
+
"item1": {
|
|
18
|
+
"title": "Company",
|
|
19
|
+
"items": ["About", "Contact Us", "Careers", "Blog", "Contact"],
|
|
20
|
+
"links": ["#About", "#Us", "#Careers", "#Blog", "#Contact"]
|
|
21
|
+
},
|
|
22
|
+
"item2": {
|
|
23
|
+
"title": "Support",
|
|
24
|
+
"items": ["Help Center", "Documentation", "API Reference", "Status"],
|
|
25
|
+
"links": ["#Help", "#Documentation", "#API", "#Status"]
|
|
26
|
+
},
|
|
27
|
+
"item3": {
|
|
28
|
+
"title": "Legal",
|
|
29
|
+
"items": [
|
|
30
|
+
"Privacy Policy",
|
|
31
|
+
"Terms of Service",
|
|
32
|
+
"Cookie Policy",
|
|
33
|
+
"Licenses"
|
|
34
|
+
],
|
|
35
|
+
"links": ["#Privacy", "#Terms", "#Cookie", "#Licenses"]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" dir="ltr">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>KIUI Demo</title>
|
|
8
|
+
<link rel="shortcut icon" href="./kiui.png" type="image/png">
|
|
9
|
+
<link rel="stylesheet" href="./kiui.min.css">
|
|
10
|
+
<link rel="stylesheet" href="./components.conf.css">
|
|
11
|
+
</head>
|
|
12
|
+
|
|
13
|
+
<body>
|
|
14
|
+
<header>
|
|
15
|
+
<!--! To use one of the components below, uncomment only one -->
|
|
16
|
+
<!-- <header-type-1></header-type-1> -->
|
|
17
|
+
<header-type-2></header-type-2>
|
|
18
|
+
</header>
|
|
19
|
+
<main class="container">
|
|
20
|
+
<div id="cards-wrapper">
|
|
21
|
+
<box-card-1 data-title="just title">
|
|
22
|
+
</box-card-1>
|
|
23
|
+
<box-card-1 data-img="./kiui.png" data-title="title2" data-price="23">
|
|
24
|
+
|
|
25
|
+
</box-card-1>
|
|
26
|
+
<box-card-1 data-img="./kiui.png" data-button-title="Buy" data-title="title3" data-description="description"
|
|
27
|
+
data-price="12"></box-card-1>
|
|
28
|
+
<box-card-1 data-img="./kiui.png" data-title="title4" data-description="description" data-button-title="button"
|
|
29
|
+
data-button-link="#itsLink"></box-card-1>
|
|
30
|
+
</div>
|
|
31
|
+
</main>
|
|
32
|
+
<footer>
|
|
33
|
+
<!--* To use one of the components below, uncomment only one -->
|
|
34
|
+
<!-- <footer-type-1></footer-type-1> -->
|
|
35
|
+
<footer-type-2></footer-type-2>
|
|
36
|
+
</footer>
|
|
37
|
+
|
|
38
|
+
<script type="module" src="./kiui.min.js"></script>
|
|
39
|
+
</body>
|
|
40
|
+
|
|
41
|
+
</html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-indigo-400:oklch(67.3% .182 276.935);--color-pink-500:oklch(65.6% .241 354.308);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-6xl:72rem;--container-7xl:80rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--radius-md:.375rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in:cubic-bezier(.4,0,1,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-16{top:calc(var(--spacing)*16)}.right-0{right:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-auto{margin:auto}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-12{margin-top:calc(var(--spacing)*12)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-16{height:calc(var(--spacing)*16)}.h-42{height:calc(var(--spacing)*42)}.h-60{height:calc(var(--spacing)*60)}.h-full{height:100%}.w-2\/3{width:66.6667%}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-64{width:calc(var(--spacing)*64)}.w-87{width:calc(var(--spacing)*87)}.w-full{width:100%}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-10{gap:calc(var(--spacing)*10)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-700{border-color:var(--color-gray-700)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-white{background-color:var(--color-white)}.object-cover{object-fit:cover}.p-5{padding:calc(var(--spacing)*5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-10{padding-top:calc(var(--spacing)*10)}.pb-10{padding-bottom:calc(var(--spacing)*10)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-black{color:var(--color-black)}.text-gray-200{color:var(--color-gray-200)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-slate-300{color:var(--color-slate-300)}.text-slate-600{color:var(--color-slate-600)}.text-white{color:var(--color-white)}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}:is(.\*\:transition-all>*){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\:-translate-y-2:hover{--tw-translate-y:calc(var(--spacing)*-2);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-slate-800:hover{background-color:var(--color-slate-800)}.hover\:text-blue-400:hover{color:var(--color-blue-400)}.hover\:text-blue-500:hover{color:var(--color-blue-500)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-gray-500:hover{color:var(--color-gray-500)}.hover\:text-indigo-400:hover{color:var(--color-indigo-400)}.hover\:text-pink-500:hover{color:var(--color-pink-500)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:outline-blue-600:focus{outline-color:var(--color-blue-600)}@media (min-width:40rem){.sm\:w-80{width:calc(var(--spacing)*80)}.sm\:flex-row{flex-direction:row}.sm\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (min-width:48rem){.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:text-left{text-align:left}}@media (min-width:64rem){.lg\:px-8{padding-inline:calc(var(--spacing)*8)}}@media (prefers-color-scheme:dark){.dark\:border-gray-700{border-color:var(--color-gray-700)}.dark\:bg-gray-900{background-color:var(--color-gray-900)}.dark\:text-gray-300{color:var(--color-gray-300)}.dark\:text-gray-400{color:var(--color-gray-400)}.dark\:text-indigo-400{color:var(--color-indigo-400)}.dark\:text-white{color:var(--color-white)}}.container{margin-inline:auto}}main{margin-block:calc(var(--spacing)*24);display:flex}.menu-btn{cursor:pointer;margin:.7rem .2rem}.menu-btn,.menu-btn:after,.menu-btn:before{content:"";background:#000;border-radius:1rem;width:2rem;height:.15rem;position:relative}.menu-btn:after{position:absolute;bottom:.5rem}.menu-btn:before{position:absolute;top:.5rem}#cards-wrapper{gap:calc(var(--spacing)*6);grid-template-columns:repeat(1,minmax(0,1fr));margin-inline:auto;display:grid}@media (min-width:40rem){#cards-wrapper{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:64rem){#cards-wrapper{grid-template-columns:repeat(3,minmax(0,1fr))}}.menu-btn--show{left:50%}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
|
package/dist/kiui.min.js
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
(()=>{async function a(l="./data.json"){try{let e=await fetch(l);if(!e.ok)throw new Error("Failed to fetch data");return(await e.json()).data}catch(e){return console.error("Error loading Data:",e),null}}function h(l,e){let s=l.classList.contains("open");l.classList.contains("translate-x-full")?(l.classList.toggle("translate-x-0"),l.classList.toggle("translate-x-full")):l.classList.toggle("hidden");let[t,i]=e.children;s?(t.classList.remove("opacity-0"),t.classList.add("opacity-100"),i.classList.remove("opacity-100"),i.classList.add("opacity-0"),l.classList.remove("open")):(t.classList.remove("opacity-100"),t.classList.add("opacity-0"),i.classList.remove("opacity-0"),i.classList.add("opacity-100"),l.classList.add("open"))}var n=class extends HTMLElement{async connectedCallback(){let e=await a();if(!e)return;let s=e.menu.items.map(i=>`<li class="menu-item"><a class="transition-colors">${i}</a></li>`).join(""),t=e.menu.items.map(i=>`<li class="menu-mobile-item"><a class="transition-colors">${i}</a></li>`).join("");this.render(e.menu.title,s,t),this.setDesktopLinks(e.menu.links),this.setMobileLinks(e.menu.links),this.setupMobileToggle()}render(e,s,t){this.innerHTML=`
|
|
2
|
+
<nav class="menu-background bg-white shadow-md fixed w-full top-0 left-0 z-50">
|
|
3
|
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between h-16">
|
|
4
|
+
|
|
5
|
+
<!-- Logo -->
|
|
6
|
+
<h1 class="menu-main-title text-xl font-bold text-black transition-colors">
|
|
7
|
+
<a href="./index.html">${e}</a>
|
|
8
|
+
</h1>
|
|
9
|
+
|
|
10
|
+
<!-- Hamburger Button (Mobile) -->
|
|
11
|
+
<div class="md:hidden">
|
|
12
|
+
<button id="hamburger-btn" class="relative w-6 h-6">
|
|
13
|
+
<svg class="absolute inset-0 w-6 h-6 transition-opacity duration-300 opacity-100 hamburger-icon" fill="none" stroke="currentColor" stroke-width="2"
|
|
14
|
+
viewBox="0 0 24 24">
|
|
15
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/>
|
|
16
|
+
</svg>
|
|
17
|
+
<svg class="absolute inset-0 w-6 h-6 transition-opacity duration-300 opacity-0 close-icon" fill="none" stroke="currentColor" stroke-width="2"
|
|
18
|
+
viewBox="0 0 24 24">
|
|
19
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/>
|
|
20
|
+
</svg>
|
|
21
|
+
</button>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<!-- Desktop Menu -->
|
|
25
|
+
<ul class="menuItemsWrapper hidden md:flex gap-6 text-gray-700 font-medium *:transition-all">
|
|
26
|
+
${s}
|
|
27
|
+
</ul>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<!-- Mobile Menu -->
|
|
31
|
+
<div id="mobile-menu" class="md:hidden hidden fixed top-16 right-0 w-2/3 h-full bg-white shadow-lg px-6 py-4 flex-col gap-4 m-auto text-center">
|
|
32
|
+
<ul class="flex flex-col gap-4 text-gray-800 font-semibold">
|
|
33
|
+
${t}
|
|
34
|
+
</ul>
|
|
35
|
+
</div>
|
|
36
|
+
</nav>
|
|
37
|
+
`}setDesktopLinks(e){this.querySelectorAll(".menu-item a").forEach((t,i)=>{t.setAttribute("href",e[i]||"#")})}setMobileLinks(e){this.querySelectorAll(".menu-mobile-item a").forEach((t,i)=>{t.setAttribute("href",e[i]||"#")})}setupMobileToggle(){let e=this.querySelector("#hamburger-btn"),s=this.querySelector("#mobile-menu"),t=e;e&&s&&t&&(t.children[0].classList.add("opacity-100"),t.children[1].classList.add("opacity-0"),e.addEventListener("click",()=>h(s,t)))}},c=class extends HTMLElement{async connectedCallback(){let e=await a();if(!e)return;let s=e.menu.items.map(i=>`<li class="menu-item"><a class="transition-colors">${i}</a></li>`).join(""),t=e.menu.items.map(i=>`<li class="menu-mobile-item"><a class="transition-colors">${i}</a></li>`).join("");this.render(e.menu.title,s,t),this.setLinks(e.menu.links),this.setMobileLinks(e.menu.links),this.setupMobileToggle()}render(e,s,t){this.innerHTML=`
|
|
38
|
+
<nav class="menu-background bg-slate-900 text-white fixed top-0 left-0 w-full z-50 shadow">
|
|
39
|
+
<div class="max-w-7xl mx-auto px-4 py-4 flex items-center justify-between">
|
|
40
|
+
|
|
41
|
+
<!-- Left: Hamburger + Logo -->
|
|
42
|
+
<div class="flex items-center gap-4">
|
|
43
|
+
<button id="hamburger-btn" class="relative w-6 h-6 md:hidden">
|
|
44
|
+
<svg class="absolute inset-0 w-6 h-6 transition-opacity duration-300 opacity-100 hamburger-icon" fill="none" stroke="currentColor" stroke-width="2"
|
|
45
|
+
viewBox="0 0 24 24">
|
|
46
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/>
|
|
47
|
+
</svg>
|
|
48
|
+
<svg class="absolute inset-0 w-6 h-6 transition-opacity duration-300 opacity-0 close-icon" fill="none" stroke="currentColor" stroke-width="2"
|
|
49
|
+
viewBox="0 0 24 24">
|
|
50
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/>
|
|
51
|
+
</svg>
|
|
52
|
+
</button>
|
|
53
|
+
<a href="./index.html" class="menu-main-title transition-colors text-xl font-bold">${e}</a>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<!-- Center Menu (Desktop) -->
|
|
57
|
+
<ul class="menuItemsWrapper hidden md:flex gap-8 text-sm font-medium">
|
|
58
|
+
${s}
|
|
59
|
+
</ul>
|
|
60
|
+
|
|
61
|
+
<!-- Right Icons -->
|
|
62
|
+
<div class="hidden md:flex items-center gap-4">
|
|
63
|
+
<button title="Search">
|
|
64
|
+
<svg class="w-5 h-5 text-white hover:text-indigo-400 transition" fill="none" stroke="currentColor" stroke-width="2"
|
|
65
|
+
viewBox="0 0 24 24">
|
|
66
|
+
<circle cx="11" cy="11" r="8" />
|
|
67
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65" />
|
|
68
|
+
</svg>
|
|
69
|
+
</button>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<!-- Sidebar Menu (Mobile) -->
|
|
74
|
+
<div id="mobile-menu" class="fixed top-0 right-0 w-64 h-full bg-white text-gray-800 shadow-lg px-6 py-8 transform translate-x-full transition-transform duration-300 ease-in md:hidden z-50">
|
|
75
|
+
<ul class="flex flex-col gap-6 font-semibold text-base">
|
|
76
|
+
${t}
|
|
77
|
+
</ul>
|
|
78
|
+
</div>
|
|
79
|
+
</nav>
|
|
80
|
+
`}setLinks(e){this.querySelectorAll(".menu-item a").forEach((t,i)=>{t.setAttribute("href",e[i]||"#")})}setMobileLinks(e){this.querySelectorAll(".menu-mobile-item a").forEach((t,i)=>{t.setAttribute("href",e[i]||"#")})}setupMobileToggle(){let e=this.querySelector("#hamburger-btn"),s=this.querySelector("#mobile-menu"),t=e;e&&s&&t&&(t.children[0].classList.add("opacity-100"),t.children[1].classList.add("opacity-0"),e.addEventListener("click",()=>h(s,t)))}};customElements.define("header-type-1",n);customElements.define("header-type-2",c);var d=class extends HTMLElement{async connectedCallback(){let{img:e,title:s,description:t,price:i,buttonTitle:o,buttonLink:r}=this.dataset;this.render(e,s,t,i,o,r)}render(e,s,t,i,o,r){this.innerHTML=`
|
|
81
|
+
<!-- Product Card -->
|
|
82
|
+
<div class="card w-87 bg-white dark:bg-gray-900 rounded-2xl overflow-hidden shadow-md hover:shadow-xl hover:-translate-y-2 transition duration-300">
|
|
83
|
+
<img class="w-full h-60 object-cover" src="${e||"./kiui.png"}" alt="${s||"default alt"}" />
|
|
84
|
+
|
|
85
|
+
<div class="h-42 p-5 flex flex-col justify-between space-y-3">
|
|
86
|
+
${s?`<h2 class="card-title text-lg sm:text-xl font-semibold text-gray-800 dark:text-white">${s}</h2>`:""}
|
|
87
|
+
${t?`<p class="card-description text-sm text-gray-600 dark:text-gray-400">${t}</p>`:""}
|
|
88
|
+
|
|
89
|
+
${i||r?`<div class="flex items-center justify-between mt-4">
|
|
90
|
+
${i?`<span class="card-price text-lg font-bold text-slate-600 dark:text-indigo-400">$${i}</span>`:"<div></div>"}
|
|
91
|
+
${o?`<a href="${r}" target="_blank" rel="noopener noreferrer" class="card-btn px-4 py-2 bg-slate-600 text-white rounded-xl hover:bg-slate-800 cursor-pointer transition">${o}</a>`:""}
|
|
92
|
+
</div>`:""}
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<!-- Product Card -->
|
|
96
|
+
`}};customElements.define("box-card-1",d);var m=class extends HTMLElement{async connectedCallback(){let e=await a();e&&this.render(e.footer)}render(e){this.innerHTML=`
|
|
97
|
+
<div class="footer bg-gray-100 dark:bg-gray-900 text-gray-700 dark:text-gray-300 pt-10">
|
|
98
|
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
99
|
+
<!-- Top -->
|
|
100
|
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8 pb-10 border-b border-gray-300 dark:border-gray-700">
|
|
101
|
+
<!-- Logo + Description -->
|
|
102
|
+
<div>
|
|
103
|
+
<h2 class="footer-title text-2xl font-bold text-gray-800 dark:text-white">${e.title}</h2>
|
|
104
|
+
<p class="footer-description mt-4 text-sm text-gray-600 dark:text-gray-400">${e.description}</p>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<!-- Links -->
|
|
108
|
+
<div>
|
|
109
|
+
<h3 class="text-lg font-semibold mb-4">${e.footerItems.item1.title}</h3>
|
|
110
|
+
<ul class="space-y-2 text-sm">
|
|
111
|
+
${e.footerItems.item1.items.map((s,t)=>`<li><a href="${e.footerItems.item1.links[t]}" class="hover:underline">${s}</a></li>`).join("")}
|
|
112
|
+
</ul>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<div>
|
|
116
|
+
<h3 class="text-lg font-semibold mb-4">${e.footerItems.item2.title}</h3>
|
|
117
|
+
<ul class="space-y-2 text-sm">
|
|
118
|
+
${e.footerItems.item2.items.map((s,t)=>`<li><a href="${e.footerItems.item2.links[t]}" class="hover:underline">${s}</a></li>`).join("")}
|
|
119
|
+
</ul>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div>
|
|
123
|
+
<h3 class="text-lg font-semibold mb-4">${e.footerItems.item3.title}</h3>
|
|
124
|
+
<ul class="space-y-2 text-sm">
|
|
125
|
+
${e.footerItems.item2.items.map((s,t)=>`<li><a href="${e.footerItems.item2.links[t]}" class="hover:underline">${s}</a></li>`).join("")}
|
|
126
|
+
</ul>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<!-- Bottom -->
|
|
131
|
+
<div class="flex flex-col md:flex-row justify-between items-center py-6 gap-4">
|
|
132
|
+
<p class="text-sm">© ${new Date().getFullYear()} ${e.title}. All rights reserved.</p>
|
|
133
|
+
<div class="flex space-x-4">
|
|
134
|
+
<a href="#" class="hover:text-blue-500">
|
|
135
|
+
Telegram
|
|
136
|
+
</a>
|
|
137
|
+
<a href="#" class="hover:text-blue-400">
|
|
138
|
+
Twitter
|
|
139
|
+
</a>
|
|
140
|
+
<a href="#" class="hover:text-pink-500">
|
|
141
|
+
Instagram
|
|
142
|
+
</a>
|
|
143
|
+
<a href="#" class="hover:text-gray-500">
|
|
144
|
+
others
|
|
145
|
+
</a>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
`}},u=class extends HTMLElement{async connectedCallback(){let e=await a();e&&this.render(e.footer)}render(e){this.innerHTML=`
|
|
151
|
+
<div class="footer bg-gray-900 text-gray-200 py-12">
|
|
152
|
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
153
|
+
<div class="text-center mb-10">
|
|
154
|
+
<h2 class="footer-title text-3xl font-extrabold text-white">${e.title}</h2>
|
|
155
|
+
<p class="footer-description mt-2 text-sm text-gray-400">${e.description}</p>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<!-- Newsletter -->
|
|
159
|
+
<div class="flex flex-col sm:flex-row justify-center items-center gap-4 mb-10">
|
|
160
|
+
<input
|
|
161
|
+
type="email"
|
|
162
|
+
placeholder="Enter your email"
|
|
163
|
+
class="input-email w-full sm:w-80 px-4 py-2 rounded-md text-slate-300 outline-1 focus:outline-blue-600"
|
|
164
|
+
/>
|
|
165
|
+
<button
|
|
166
|
+
class="footer-btn-subscribe bg-blue-600 hover:bg-blue-700 text-white font-semibold px-6 py-2 rounded-md transition duration-200"
|
|
167
|
+
>
|
|
168
|
+
Subscribe
|
|
169
|
+
</button>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<!-- Links -->
|
|
173
|
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-10 text-center md:text-left border-t border-gray-700 pt-10">
|
|
174
|
+
${Object.values(e.footerItems).map(s=>`
|
|
175
|
+
<div>
|
|
176
|
+
<h3 class="text-lg font-semibold mb-4">${s.title}</h3>
|
|
177
|
+
<ul class="space-y-2 text-sm">
|
|
178
|
+
${s.items.map((t,i)=>`<li><a href="${s.links[i]}" class="hover:underline">${t}</a></li>`).join("")}
|
|
179
|
+
</ul>
|
|
180
|
+
</div>
|
|
181
|
+
`).join("")}
|
|
182
|
+
</div>
|
|
183
|
+
|
|
184
|
+
<!-- Bottom Social -->
|
|
185
|
+
<div class="footer-bottom-social mt-12 flex flex-col md:flex-row justify-between items-center text-sm text-gray-500 border-t border-gray-700 pt-6 gap-4">
|
|
186
|
+
<p>© ${new Date().getFullYear()} ${e.title}. All rights reserved.</p>
|
|
187
|
+
<div class="flex gap-4">
|
|
188
|
+
<a href="#" class="hover:text-blue-500">Telegram</a>
|
|
189
|
+
<a href="#" class="hover:text-blue-400">Twitter</a>
|
|
190
|
+
<a href="#" class="hover:text-pink-500">Instagram</a>
|
|
191
|
+
<a href="#" class="hover:text-gray-400">Others</a>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
`}};customElements.define("footer-type-1",m);customElements.define("footer-type-2",u);})();
|
package/dist/kiui.png
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "kiui-kit",
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
|
+
"description": "A set of ready-to-use HTML components like headers, footers, cards, etc.",
|
|
5
|
+
"main": "dist/kiui.min.js",
|
|
6
|
+
"style": "dist/kiui.min.css",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev:css": "npx @tailwindcss/cli -i ./src/styles/input.css -o ./src/styles/main.css --watch",
|
|
12
|
+
"build:css": "npx @tailwindcss/cli -i ./src/styles/input.css -o ./dist/kiui.min.css --minify",
|
|
13
|
+
"build:js": "esbuild ./index.js --bundle --minify --outfile=dist/kiui.min.js",
|
|
14
|
+
"build": "npm run build:js && npm run build:css"
|
|
15
|
+
},
|
|
16
|
+
"author": "Kiyan-abbasi",
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"ui",
|
|
20
|
+
"components",
|
|
21
|
+
"custom-elements",
|
|
22
|
+
"headers",
|
|
23
|
+
"footers",
|
|
24
|
+
"kiui",
|
|
25
|
+
"webcomponents"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@tailwindcss/cli": "^4.1.7",
|
|
29
|
+
"htm": "^3.1.1",
|
|
30
|
+
"tailwindcss": "^4.1.7"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"esbuild": "^0.25.5"
|
|
34
|
+
}
|
|
35
|
+
}
|