arekui 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 (54) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +198 -198
  3. package/arekui.css +3279 -3279
  4. package/arekui.d.ts +328 -328
  5. package/arekui.js +450 -450
  6. package/package.json +59 -57
  7. package/scripts/build-custom.js +318 -318
  8. package/src/arekui.css +55 -55
  9. package/src/base/neo-overrides.css +317 -317
  10. package/src/base/reset.css +67 -67
  11. package/src/base/tokens.css +304 -304
  12. package/src/components/accordion.css +34 -34
  13. package/src/components/alert.css +26 -26
  14. package/src/components/badge.css +33 -33
  15. package/src/components/breadcrumb.css +33 -33
  16. package/src/components/button.css +103 -103
  17. package/src/components/card.css +24 -24
  18. package/src/components/carousel.css +14 -14
  19. package/src/components/chat.css +78 -78
  20. package/src/components/drawer.css +53 -53
  21. package/src/components/file-upload.css +51 -51
  22. package/src/components/footer.css +26 -26
  23. package/src/components/forms.css +69 -69
  24. package/src/components/hero.css +22 -22
  25. package/src/components/join.css +14 -14
  26. package/src/components/link.css +24 -24
  27. package/src/components/menu.css +56 -56
  28. package/src/components/misc.css +57 -57
  29. package/src/components/modal.css +32 -32
  30. package/src/components/navbar.css +37 -37
  31. package/src/components/pagination.css +46 -46
  32. package/src/components/popover.css +70 -70
  33. package/src/components/progress.css +19 -19
  34. package/src/components/prose.css +80 -80
  35. package/src/components/rating.css +37 -37
  36. package/src/components/scroll-top.css +36 -36
  37. package/src/components/skeleton.css +54 -54
  38. package/src/components/swap.css +45 -45
  39. package/src/components/table.css +22 -22
  40. package/src/components/tabs.css +24 -24
  41. package/src/components/tag.css +101 -101
  42. package/src/components/textured.css +34 -34
  43. package/src/components/timeline.css +34 -34
  44. package/src/components/toast.css +134 -134
  45. package/src/components/tooltip.css +24 -24
  46. package/src/utilities/borders.css +152 -152
  47. package/src/utilities/colors.css +73 -73
  48. package/src/utilities/hover.css +33 -33
  49. package/src/utilities/layout.css +100 -100
  50. package/src/utilities/neo-utilities.css +95 -95
  51. package/src/utilities/responsive.css +128 -128
  52. package/src/utilities/sizing.css +91 -91
  53. package/src/utilities/spacing.css +130 -130
  54. package/src/utilities/typography.css +94 -94
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Andika Rekatias
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Andika Rekatias
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,198 +1,198 @@
1
- # Arekui
2
-
3
- A standalone CSS framework. No dependencies, no build step. Just link and go.
4
-
5
- 34 components, 3 themes (light/dark/neobrutalism), utility classes, and a smart builder that only outputs what you use.
6
-
7
- ## Quick Start
8
-
9
- ```html
10
- <link rel="stylesheet" href="arekui.css">
11
- ```
12
-
13
- That's it. No npm required. Works in any HTML file.
14
-
15
- ### Themes
16
-
17
- ```html
18
- <html data-theme="light">
19
- <html data-theme="dark">
20
- <html data-theme="neo"> <!-- neobrutalism -->
21
- ```
22
-
23
- Falls back to system preference if no theme is set.
24
-
25
- ### Install via npm
26
-
27
- ```bash
28
- npm install arekui
29
- # or: pnpm add arekui / yarn add arekui / bun add arekui
30
- ```
31
-
32
- ## Components
33
-
34
- `ar-btn` · `ar-card` · `ar-modal` · `ar-navbar` · `ar-tabs` · `ar-accordion` · `ar-drawer` · `ar-toast` · `ar-badge` · `ar-alert` · `ar-table` · `ar-forms` (input, select, checkbox, radio, toggle, textarea) · `ar-carousel` · `ar-skeleton` · `ar-breadcrumb` · `ar-pagination` · `ar-rating` · `ar-chat` · `ar-tag` · `ar-popover` · `ar-file-upload` · `ar-scroll-top` · `ar-tooltip` · `ar-footer` · `ar-hero` · `ar-prose` · `ar-progress` · `ar-timeline` · `ar-divider` · `ar-stepper` · `ar-avatar` · `ar-swap` · `ar-link` · `ar-join`
35
-
36
- All prefixed with `ar-`. No conflicts with other frameworks.
37
-
38
- ### Buttons
39
-
40
- ```html
41
- <button class="ar-btn">Default</button>
42
- <button class="ar-btn ar-btn-primary">Primary</button>
43
- <button class="ar-btn ar-btn-outline">Outline</button>
44
- <button class="ar-btn ar-btn-ghost">Ghost</button>
45
- <button class="ar-btn ar-btn-disabled" disabled>Disabled</button>
46
- ```
47
-
48
- ### Cards
49
-
50
- ```html
51
- <div class="ar-card">
52
- <div class="ar-card-body">
53
- <h3 class="ar-card-title">Title</h3>
54
- <p>Content goes here.</p>
55
- <button class="ar-btn ar-btn-primary">Action</button>
56
- </div>
57
- </div>
58
- ```
59
-
60
- ### Modal
61
-
62
- ```html
63
- <dialog class="ar-modal">
64
- <div class="ar-modal-box">
65
- <h3>Hello</h3>
66
- <p>Modal content</p>
67
- <button data-ar-close>Close</button>
68
- </div>
69
- <form method="dialog" class="ar-modal-backdrop">
70
- <button>close</button>
71
- </form>
72
- </dialog>
73
-
74
- <button data-ar-open="my-modal">Open</button>
75
- ```
76
-
77
- ### Navbar
78
-
79
- ```html
80
- <nav class="ar-navbar ar-bg-base-200 ar-p-4">
81
- <div class="ar-navbar-start">Logo</div>
82
- <div class="ar-navbar-center">Title</div>
83
- <div class="ar-navbar-end">
84
- <button class="ar-btn">Login</button>
85
- </div>
86
- </nav>
87
- ```
88
-
89
- See `demo/index.html` for every component.
90
-
91
- ## Utilities
92
-
93
- Spacing: `ar-p-4`, `ar-m-2`, `ar-gap-4`
94
- Layout: `ar-flex`, `ar-grid`, `ar-grid-cols-3`, `ar-items-center`
95
- Typography: `ar-text-lg`, `ar-font-bold`, `ar-text-center`
96
- Colors: `ar-bg-primary`, `ar-text-base-content`
97
- Borders: `ar-rounded-lg`, `ar-shadow-md`, `ar-border`
98
- Responsive: `ar-md:grid-cols-2`, `ar-lg:flex`
99
-
100
- ## Theming
101
-
102
- Override tokens in your own CSS:
103
-
104
- ```css
105
- html[data-theme="light"] {
106
- --ar-primary: oklch(65% 0.2 250);
107
- --ar-radius-box: 1rem;
108
- }
109
- ```
110
-
111
- ### Neo Theme
112
-
113
- Hard shadows, thick borders, bold colors:
114
-
115
- ```css
116
- --ar-shadow-md: 4px 4px 0px 0px #1e293b;
117
- --ar-border-width: 3px;
118
- --ar-primary: #00AEEF;
119
- ```
120
-
121
- Use `ar-neo-*` utilities with any theme:
122
-
123
- ```html
124
- <div class="ar-neo-shadow-lg ar-neo-border">Bold shadow</div>
125
- ```
126
-
127
- ## Smart Build
128
-
129
- `arekui-build` scans your source and only includes what you use.
130
-
131
- ```bash
132
- npx arekui-build -i ./src -o ./assets
133
- ```
134
-
135
- Your HTML uses `ar-btn`, `ar-card`, and `ar-flex`? Output includes only those — not all 34 components.
136
-
137
- ### Config file (optional)
138
-
139
- ```js
140
- // arekui.config.js
141
- module.exports = {
142
- input: "./src",
143
- output: "./assets",
144
- name: "app",
145
- };
146
- ```
147
-
148
- ```bash
149
- npx arekui-build # reads config
150
- ```
151
-
152
- ### CLI flags
153
-
154
- | Flag | What it does |
155
- | ------ | -------------- |
156
- | `-i` | Directory to scan |
157
- | `-o` | Output directory |
158
- | `-n` | Output filename |
159
- | `--sourcemap` | Generate sourcemap |
160
- | `--full` | Include everything |
161
-
162
- ## JavaScript API
163
-
164
- Optional. Loads via `<script src="arekui.js">`.
165
-
166
- ```js
167
- ARStyle.setTheme("dark");
168
- ARStyle.getTheme();
169
-
170
- ARStyle.toast("Saved!", { type: "success", duration: 3000 });
171
- ARStyle.openPopover("my-popover");
172
- ARStyle.closePopover("my-popover");
173
- ARStyle.setRating(el, 4);
174
- ARStyle.getRating(el);
175
- ```
176
-
177
- ## TypeScript
178
-
179
- Types included. Full autocomplete in VS Code.
180
-
181
- ```ts
182
- import ARStyle from "arekui";
183
-
184
- ARStyle.setTheme("dark");
185
- ARStyle.toast("Hello", { type: "info" });
186
- ```
187
-
188
- ## Browser Support
189
-
190
- Modern browsers. Chrome, Edge, Firefox, Safari. Needs CSS custom properties support.
191
-
192
- ## License
193
-
194
- MIT — use it however you want.
195
-
196
- ---
197
-
198
- Made by [Andika Rekatias](https://github.com/andikarekatias)
1
+ # Arekui
2
+
3
+ A standalone CSS framework. No dependencies, no build step. Just link and go.
4
+
5
+ 34 components, 3 themes (light/dark/neobrutalism), utility classes, and a smart builder that only outputs what you use.
6
+
7
+ ## Quick Start
8
+
9
+ ```html
10
+ <link rel="stylesheet" href="arekui.css">
11
+ ```
12
+
13
+ That's it. No npm required. Works in any HTML file.
14
+
15
+ ### Themes
16
+
17
+ ```html
18
+ <html data-theme="light">
19
+ <html data-theme="dark">
20
+ <html data-theme="neo"> <!-- neobrutalism -->
21
+ ```
22
+
23
+ Falls back to system preference if no theme is set.
24
+
25
+ ### Install via npm
26
+
27
+ ```bash
28
+ npm install arekui
29
+ # or: pnpm add arekui / yarn add arekui / bun add arekui
30
+ ```
31
+
32
+ ## Components
33
+
34
+ `ar-btn` · `ar-card` · `ar-modal` · `ar-navbar` · `ar-tabs` · `ar-accordion` · `ar-drawer` · `ar-toast` · `ar-badge` · `ar-alert` · `ar-table` · `ar-forms` (input, select, checkbox, radio, toggle, textarea) · `ar-carousel` · `ar-skeleton` · `ar-breadcrumb` · `ar-pagination` · `ar-rating` · `ar-chat` · `ar-tag` · `ar-popover` · `ar-file-upload` · `ar-scroll-top` · `ar-tooltip` · `ar-footer` · `ar-hero` · `ar-prose` · `ar-progress` · `ar-timeline` · `ar-divider` · `ar-stepper` · `ar-avatar` · `ar-swap` · `ar-link` · `ar-join`
35
+
36
+ All prefixed with `ar-`. No conflicts with other frameworks.
37
+
38
+ ### Buttons
39
+
40
+ ```html
41
+ <button class="ar-btn">Default</button>
42
+ <button class="ar-btn ar-btn-primary">Primary</button>
43
+ <button class="ar-btn ar-btn-outline">Outline</button>
44
+ <button class="ar-btn ar-btn-ghost">Ghost</button>
45
+ <button class="ar-btn ar-btn-disabled" disabled>Disabled</button>
46
+ ```
47
+
48
+ ### Cards
49
+
50
+ ```html
51
+ <div class="ar-card">
52
+ <div class="ar-card-body">
53
+ <h3 class="ar-card-title">Title</h3>
54
+ <p>Content goes here.</p>
55
+ <button class="ar-btn ar-btn-primary">Action</button>
56
+ </div>
57
+ </div>
58
+ ```
59
+
60
+ ### Modal
61
+
62
+ ```html
63
+ <dialog class="ar-modal">
64
+ <div class="ar-modal-box">
65
+ <h3>Hello</h3>
66
+ <p>Modal content</p>
67
+ <button data-ar-close>Close</button>
68
+ </div>
69
+ <form method="dialog" class="ar-modal-backdrop">
70
+ <button>close</button>
71
+ </form>
72
+ </dialog>
73
+
74
+ <button data-ar-open="my-modal">Open</button>
75
+ ```
76
+
77
+ ### Navbar
78
+
79
+ ```html
80
+ <nav class="ar-navbar ar-bg-base-200 ar-p-4">
81
+ <div class="ar-navbar-start">Logo</div>
82
+ <div class="ar-navbar-center">Title</div>
83
+ <div class="ar-navbar-end">
84
+ <button class="ar-btn">Login</button>
85
+ </div>
86
+ </nav>
87
+ ```
88
+
89
+ See `demo/index.html` for every component.
90
+
91
+ ## Utilities
92
+
93
+ Spacing: `ar-p-4`, `ar-m-2`, `ar-gap-4`
94
+ Layout: `ar-flex`, `ar-grid`, `ar-grid-cols-3`, `ar-items-center`
95
+ Typography: `ar-text-lg`, `ar-font-bold`, `ar-text-center`
96
+ Colors: `ar-bg-primary`, `ar-text-base-content`
97
+ Borders: `ar-rounded-lg`, `ar-shadow-md`, `ar-border`
98
+ Responsive: `ar-md:grid-cols-2`, `ar-lg:flex`
99
+
100
+ ## Theming
101
+
102
+ Override tokens in your own CSS:
103
+
104
+ ```css
105
+ html[data-theme="light"] {
106
+ --ar-primary: oklch(65% 0.2 250);
107
+ --ar-radius-box: 1rem;
108
+ }
109
+ ```
110
+
111
+ ### Neo Theme
112
+
113
+ Hard shadows, thick borders, bold colors:
114
+
115
+ ```css
116
+ --ar-shadow-md: 4px 4px 0px 0px #1e293b;
117
+ --ar-border-width: 3px;
118
+ --ar-primary: #00AEEF;
119
+ ```
120
+
121
+ Use `ar-neo-*` utilities with any theme:
122
+
123
+ ```html
124
+ <div class="ar-neo-shadow-lg ar-neo-border">Bold shadow</div>
125
+ ```
126
+
127
+ ## Smart Build
128
+
129
+ `arekui-build` scans your source and only includes what you use.
130
+
131
+ ```bash
132
+ npx arekui-build -i ./src -o ./assets
133
+ ```
134
+
135
+ Your HTML uses `ar-btn`, `ar-card`, and `ar-flex`? Output includes only those — not all 34 components.
136
+
137
+ ### Config file (optional)
138
+
139
+ ```js
140
+ // arekui.config.js
141
+ module.exports = {
142
+ input: "./src",
143
+ output: "./assets",
144
+ name: "app",
145
+ };
146
+ ```
147
+
148
+ ```bash
149
+ npx arekui-build # reads config
150
+ ```
151
+
152
+ ### CLI flags
153
+
154
+ | Flag | What it does |
155
+ | ------ | -------------- |
156
+ | `-i` | Directory to scan |
157
+ | `-o` | Output directory |
158
+ | `-n` | Output filename |
159
+ | `--sourcemap` | Generate sourcemap |
160
+ | `--full` | Include everything |
161
+
162
+ ## JavaScript API
163
+
164
+ Optional. Loads via `<script src="arekui.js">`.
165
+
166
+ ```js
167
+ ARStyle.setTheme("dark");
168
+ ARStyle.getTheme();
169
+
170
+ ARStyle.toast("Saved!", { type: "success", duration: 3000 });
171
+ ARStyle.openPopover("my-popover");
172
+ ARStyle.closePopover("my-popover");
173
+ ARStyle.setRating(el, 4);
174
+ ARStyle.getRating(el);
175
+ ```
176
+
177
+ ## TypeScript
178
+
179
+ Types included. Full autocomplete in VS Code.
180
+
181
+ ```ts
182
+ import ARStyle from "arekui";
183
+
184
+ ARStyle.setTheme("dark");
185
+ ARStyle.toast("Hello", { type: "info" });
186
+ ```
187
+
188
+ ## Browser Support
189
+
190
+ Modern browsers. Chrome, Edge, Firefox, Safari. Needs CSS custom properties support.
191
+
192
+ ## License
193
+
194
+ MIT — use it however you want.
195
+
196
+ ---
197
+
198
+ Made by [Andika Rekatias](https://github.com/andikarekatias)