archcss 2.0.0 → 3.0.0
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/changelog +92 -3
- package/css/{arch.dev.css → arch.css} +229748 -155773
- package/css/{architect.css → attribution.css} +1 -4
- package/index.js +1 -1
- package/js/plugin.js +874 -0
- package/package.json +3 -1
- package/readme.md +144 -21
- package/{css/@fontawesome/css/fontawesome.css → webfonts/fontawesome/css/fontawessome.css} +5221 -2686
- package/webfonts/fontawesome/css/fontawessome.min.css +8104 -0
- package/webfonts/fontawesome/webfonts/fa-brands-400.ttf +0 -0
- package/webfonts/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- package/webfonts/fontawesome/webfonts/fa-regular-400.ttf +0 -0
- package/webfonts/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- package/webfonts/fontawesome/webfonts/fa-solid-900.ttf +0 -0
- package/webfonts/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- package/webfonts/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
- package/webfonts/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
- package/{css/@googleapis → webfonts/googleapis}/fonts.css +1 -1
- package/webfonts/googleapis/fonts.min.css +71 -0
- package/webfonts/lucide/css/lucide.css +72 -0
- package/webfonts/lucide/css/lucide.min.css +1 -0
- package/webfonts/lucide/js/lucide.min.js +12 -0
- package/css/@fontawesome/LICENSE.txt +0 -165
- package/css/@fontawesome/css/fontawesome.min.css +0 -9
- package/css/@fontawesome/js/all.js +0 -6026
- package/css/@fontawesome/js/all.min.js +0 -6
- package/css/@fontawesome/webfonts/fa-brands-400.ttf +0 -0
- package/css/@fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- package/css/@fontawesome/webfonts/fa-regular-400.ttf +0 -0
- package/css/@fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- package/css/@fontawesome/webfonts/fa-solid-900.ttf +0 -0
- package/css/@fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- package/css/@fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
- package/css/@fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
- package/css/@googleapis/fonts.min.css +0 -1
- package/css/arch.min.css +0 -6
- package/js/dom.js +0 -1106
- /package/{licence → license} +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "archcss",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "The Architect CSS, is utility-first CSS framework that allows you to quickly create and design your websites and applications with flexible, easy-to-use classes without writing any custom CSS.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"style": "css/arch.css",
|
|
7
|
+
"jsdelivr": "css/arch.css",
|
|
6
8
|
"scripts": {
|
|
7
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
10
|
},
|
package/readme.md
CHANGED
|
@@ -1,51 +1,174 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://archcss.com/">
|
|
3
|
-
<img src="https://get.archcss.com/brand/
|
|
3
|
+
<img src="https://get.archcss.com/brand/banner/banner.webp" alt="Architect CSS logo" height="320" width="640">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
<
|
|
7
|
+
<h2 align="center">Architect CSS</h2>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
|
|
11
|
-
<br>
|
|
12
|
-
<a href="https://archcss.com"><strong>Explore Architect CSS docs »</strong></a>
|
|
10
|
+
<b>Utility-first CSS framework for building fast, flexible, and modern UIs directly in your HTML.</b>
|
|
13
11
|
<br>
|
|
12
|
+
<a href="https://archcss.com"><strong>Explore Documentation »</strong></a>
|
|
14
13
|
<br>
|
|
15
14
|
<a href="https://github.com/archcss-dev/archcss/issues/new?assignees=-&labels=bug&template=bug_report.yml">Report bug</a>
|
|
16
15
|
·
|
|
17
16
|
<a href="https://github.com/archcss-dev/archcss/issues/new?assignees=&labels=feature&template=feature_request.yml">Request feature</a>
|
|
18
17
|
</p>
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
<p align="center">
|
|
20
|
+
<a href="https://www.npmjs.com/package/archcss"><img src="https://img.shields.io/npm/v/archcss.svg?style=flat-square" alt="npm version"></a>
|
|
21
|
+
<a href="https://github.com/archcss-dev/archcss/blob/main/license"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="MIT License"></a>
|
|
22
|
+
<a href="https://cdn.jsdelivr.net/npm/archcss"><img src="https://data.jsdelivr.com/v1/package/npm/archcss/badge" alt="jsdelivr"></a>
|
|
23
|
+
</p>
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
---
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
- Clone the repo: `git clone https://github.com/archcss-dev/archcss.git`
|
|
26
|
-
- Install with [npm](https://www.npmjs.com/): `npm install archcss@v2.0.0`
|
|
27
|
-
- Import from [jsdelivr](https://jsdelivr.com/): `https://cdn.jsdelivr.net/npm/archcss`
|
|
27
|
+
## Features
|
|
28
28
|
|
|
29
|
+
- **Utility-first architecture**: Compose any layout and design directly in your HTML without custom CSS.
|
|
30
|
+
- **Mobile-first responsive design**: Clean breakpoint variants (sm:, md:, lg:, xl:, xxl:).
|
|
31
|
+
- **State variants**: Built-in hover:, focus:, and active: pseudo-variants for colors, borders, and shadows.
|
|
32
|
+
- **Modern CSS Grid & Flexbox**: Complete flexbox controls, equal-width columns (grid-cols-*), and responsive auto-fit/fill scales (grid-fill-*, grid-fit-*).
|
|
33
|
+
- **Rich color & gradient palette**: Extensive theme colors, bidirectional tints/shades, alpha opacity utilities, directional gradients, and 3-color linear gradients.
|
|
34
|
+
- **TypeScript DOM Plugin**: Fast, lightweight helper methods for modals, triggers, smooth scrolling, and clipboard copying.
|
|
35
|
+
- **Bundled Icon Fonts**: Local Lucide Icons and FontAwesome webfonts included out of the box.
|
|
29
36
|
|
|
30
|
-
|
|
37
|
+
---
|
|
31
38
|
|
|
39
|
+
## What's Included
|
|
32
40
|
|
|
33
|
-
|
|
41
|
+
```text
|
|
42
|
+
archcss/
|
|
43
|
+
├── css/
|
|
44
|
+
│ ├── arch.css # Full compiled CSS framework
|
|
45
|
+
│ └── attribution.css # Standalone origin watermark
|
|
46
|
+
├── js/
|
|
47
|
+
│ └── plugin.js # Compiled TypeScript DOM plugin
|
|
48
|
+
├── webfonts/
|
|
49
|
+
│ ├── fontawesome/ # FontAwesome CSS, min.css, and webfonts
|
|
50
|
+
│ ├── googleapis/ # Google Fonts CSS and min.css
|
|
51
|
+
│ └── lucide/ # Lucide icon fonts, CSS, min.css, and JS
|
|
52
|
+
├── index.js # Package entrypoint
|
|
53
|
+
├── package.json
|
|
54
|
+
└── changelog
|
|
55
|
+
```
|
|
34
56
|
|
|
35
|
-
|
|
57
|
+
---
|
|
36
58
|
|
|
37
|
-
|
|
38
|
-
- Developers should use the keyword `archcss` on packages which modify or add to the functionality of Architect CSS when distributing through [npm](https://www.npmjs.com/browse/keyword/archcss) or similar delivery mechanisms for maximum discoverability.
|
|
59
|
+
## Installation
|
|
39
60
|
|
|
61
|
+
### 1. Package Manager
|
|
40
62
|
|
|
41
|
-
|
|
63
|
+
Install ArchCSS via npm, pnpm, or yarn:
|
|
42
64
|
|
|
43
|
-
|
|
65
|
+
```bash
|
|
66
|
+
# npm
|
|
67
|
+
npm install archcss
|
|
68
|
+
|
|
69
|
+
# pnpm
|
|
70
|
+
pnpm add archcss
|
|
71
|
+
|
|
72
|
+
# yarn
|
|
73
|
+
yarn add archcss
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 2. CDN (jsDelivr)
|
|
77
|
+
|
|
78
|
+
Link the stylesheet and optional scripts directly in your HTML:
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<!-- ArchCSS Core Stylesheet -->
|
|
82
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/archcss/css/arch.css">
|
|
83
|
+
|
|
84
|
+
<!-- Optional: Lucide Icons -->
|
|
85
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/archcss/webfonts/lucide/css/lucide.min.css">
|
|
86
|
+
|
|
87
|
+
<!-- Optional: ArchCSS DOM Plugin -->
|
|
88
|
+
<script src="https://cdn.jsdelivr.net/npm/archcss/js/plugin.js"></script>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### 3. Git Clone or Download
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
git clone https://github.com/archcss-dev/archcss.git
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
You can also download [the latest release archive](https://github.com/archcss-dev/archcss/releases).
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Usage Examples
|
|
44
102
|
|
|
45
|
-
|
|
103
|
+
### 1. HTML with Utility Classes
|
|
46
104
|
|
|
47
|
-
|
|
105
|
+
```html
|
|
106
|
+
<div class="flex items-center justify-between p-3 bg-light rounded-5 border-1 border-light">
|
|
107
|
+
<h2 class="font-20 fw-700 text-dark m-0">Architect CSS</h2>
|
|
108
|
+
<button class="bg-primary text-light px-3 py-1 rounded-full hover:bg-primary-200 transition-all">
|
|
109
|
+
Get Started
|
|
110
|
+
</button>
|
|
111
|
+
</div>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### 2. Responsive Grid
|
|
115
|
+
|
|
116
|
+
```html
|
|
117
|
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-2">
|
|
118
|
+
<div class="p-3 bg-white rounded-5 shadow-sm">Card 1</div>
|
|
119
|
+
<div class="p-3 bg-white rounded-5 shadow-sm">Card 2</div>
|
|
120
|
+
<div class="p-3 bg-white rounded-5 shadow-sm">Card 3</div>
|
|
121
|
+
</div>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### 3. DOM Plugin
|
|
125
|
+
|
|
126
|
+
Use the included DOM plugin helpers in your scripts:
|
|
127
|
+
|
|
128
|
+
```html
|
|
129
|
+
<!-- Trigger modal display -->
|
|
130
|
+
<button onclick="display('#my-modal')">Open Modal</button>
|
|
131
|
+
|
|
132
|
+
<!-- Modal element -->
|
|
133
|
+
<div id="my-modal" class="hidden fixed inset-0 flex items-center justify-center bg-dark-alpha-50">
|
|
134
|
+
<div class="bg-white p-4 rounded-10 shadow-lg">
|
|
135
|
+
<p class="m-0 text-dark">Hello from ArchCSS!</p>
|
|
136
|
+
<button class="mt-2 px-3 py-1 bg-secondary text-light rounded-5" onclick="hide('#my-modal')">
|
|
137
|
+
Close
|
|
138
|
+
</button>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
```javascript
|
|
144
|
+
// Copy to clipboard helper
|
|
145
|
+
strcopy('npm install archcss', () => {
|
|
146
|
+
console.log('Copied to clipboard!');
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// Smooth scroll to an element with offset
|
|
150
|
+
scroll_to('#features', 60);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Community & Support
|
|
156
|
+
|
|
157
|
+
- Read the documentation: [https://archcss.com](https://archcss.com)
|
|
158
|
+
- Ask questions and share feedback in [GitHub Discussions](https://github.com/archcss-dev/archcss/discussions)
|
|
159
|
+
- Report bugs or request features via [GitHub Issues](https://github.com/archcss-dev/archcss/issues)
|
|
160
|
+
- If publishing packages that extend Architect CSS on npm, include the `archcss` keyword for discoverability.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Creator
|
|
165
|
+
|
|
166
|
+
**Beba Godfried A.**
|
|
167
|
+
- GitHub: [@bebagodfried](https://github.com/bebagodfried)
|
|
168
|
+
- Website: [https://archcss.com](https://archcss.com)
|
|
48
169
|
|
|
49
|
-
|
|
170
|
+
---
|
|
50
171
|
|
|
172
|
+
## License
|
|
51
173
|
|
|
174
|
+
Code released under the [MIT License](https://github.com/archcss-dev/archcss/blob/main/license). Documentation released under [Creative Commons BY 3.0](https://creativecommons.org/licenses/by/3.0/).
|