archcss 2.0.0 → 3.0.0-beta.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 (41) hide show
  1. package/{css/architect.css → dist/attribution.css} +1 -4
  2. package/{css/arch.dev.css → dist/css/main.css} +229752 -155771
  3. package/dist/index.css +317741 -0
  4. package/dist/js/plugin.js +874 -0
  5. package/dist/ui/style.css +317741 -0
  6. package/{css/@fontawesome/css/fontawesome.css → dist/webfonts/fontawesome/css/fontawessome.css} +4 -37
  7. package/{css/@fontawesome/css/fontawesome.min.css → dist/webfonts/fontawesome/css/fontawessome.min.css} +3 -3
  8. package/{css/@fontawesome → dist/webfonts/fontawesome}/js/all.js +231 -275
  9. package/dist/webfonts/fontawesome/js/all.min.js +6 -0
  10. package/dist/webfonts/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  11. package/dist/webfonts/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  12. package/dist/webfonts/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  13. package/dist/webfonts/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  14. package/dist/webfonts/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  15. package/dist/webfonts/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  16. package/dist/webfonts/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
  17. package/dist/webfonts/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
  18. package/dist/webfonts/googleapis/fonts.min.css +1 -0
  19. package/dist/webfonts/lucide/css/lucide.css +72 -0
  20. package/dist/webfonts/lucide/css/lucide.min.css +1 -0
  21. package/dist/webfonts/lucide/js/lucide.min.js +12 -0
  22. package/license.md +32 -0
  23. package/package.json +54 -19
  24. package/readme.md +88 -32
  25. package/changelog +0 -76
  26. package/css/@fontawesome/js/all.min.js +0 -6
  27. package/css/@fontawesome/webfonts/fa-brands-400.ttf +0 -0
  28. package/css/@fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  29. package/css/@fontawesome/webfonts/fa-regular-400.ttf +0 -0
  30. package/css/@fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  31. package/css/@fontawesome/webfonts/fa-solid-900.ttf +0 -0
  32. package/css/@fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  33. package/css/@fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
  34. package/css/@fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
  35. package/css/@googleapis/fonts.min.css +0 -1
  36. package/css/arch.min.css +0 -6
  37. package/index.js +0 -16
  38. package/js/dom.js +0 -1106
  39. package/licence +0 -21
  40. /package/{css/@fontawesome → dist/webfonts/fontawesome}/LICENSE.txt +0 -0
  41. /package/{css/@googleapis → dist/webfonts/googleapis}/fonts.css +0 -0
package/license.md ADDED
@@ -0,0 +1,32 @@
1
+ # Architect CSS Framework v3
2
+
3
+ ![Architect CSS Framework](https://img.shields.io/badge/ArchCSS%20Framework-v3-blueviolet?style=for-the-badge&logo=sass)
4
+ ![License: MIT](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)
5
+ ![License: MPL-2.0](https://img.shields.io/badge/license-MPL--2.0-orange?style=for-the-badge)
6
+
7
+ MIT License (for compiled assets in /dist/):
8
+ --------------------------------------------
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of the compiled CSS/JS of this software (the "Software"), to use, copy,
11
+ modify, merge, publish, distribute, sublicense, and/or sell copies of the
12
+ compiled Software, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
18
+
19
+ MPL-2.0 License (for source code in /src/):
20
+ -------------------------------------------
21
+ The source SCSS and TypeScript code are licensed under the Mozilla Public License 2.0.
22
+
23
+ You are free to use, modify, and distribute the source code, but:
24
+ - Any modified version that is distributed must also be shared under MPL-2.0.
25
+ - You must disclose your changes and include this license.
26
+
27
+ This ensures the framework stays open and benefits the community.
28
+
29
+ For commercial licensing or custom terms, contact: [Arch. CSS Dev Team](mailto:dev@archcss.com)
30
+
31
+ ---
32
+ Copyright (c) 2025 [Beba Godfried A.](https://bebagodfried.com)
package/package.json CHANGED
@@ -1,30 +1,65 @@
1
1
  {
2
2
  "name": "archcss",
3
- "version": "2.0.0",
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
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/archcss-dev/archcss.git"
3
+ "version": "3.0.0-beta.2",
4
+ "description": "Modular CSS framework based on Sass, featuring CSS utilities, a ready-to-use responsive system and an extensible structure. Designed for fast, clean and efficient integration into any modern frontend project.",
5
+ "main": "dist/index.css",
6
+ "style": "dist/index.css",
7
+ "jsdelivr": "dist/index.css",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "publishConfig": {
12
+ "tag": "beta"
12
13
  },
13
14
  "keywords": [
14
- "javascript",
15
+ "archcss",
15
16
  "opensource",
16
- "framework",
17
17
  "ui",
18
18
  "ux",
19
+ "css",
20
+ "css3",
21
+ "javascript",
22
+ "scss",
23
+ "sass",
24
+ "typescript",
25
+ "framework",
19
26
  "css-framework",
20
- "architect",
21
- "architect-ui",
22
- "archcss"
27
+ "sass-framework",
28
+ "scss-framework",
29
+ "npm",
30
+ "npm-package",
31
+ "style",
32
+ "styles",
33
+ "stylesheets",
34
+ "styles-css",
35
+ "bebagodfried"
23
36
  ],
24
- "author": "Beba Godfried",
25
- "license": "MIT",
37
+ "author": "Beba Godfried from ArchCSS Dev Team",
38
+ "license": "MIT+MPL-2.0",
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/archcss-dev/archcss.git"
42
+ },
26
43
  "bugs": {
27
- "url": "https://github.com/bebagodfried/archcss/issues"
44
+ "url": "https://github.com/archcss-dev/archcss/issues"
28
45
  },
29
- "homepage": "https://github.com/archcss-dev/archcss#readme"
30
- }
46
+ "homepage": "https://github.com/archcss-dev/archcss#readme",
47
+ "devDependencies": {
48
+ "postcss-scss": "^4.0.9",
49
+ "sass": "^1.89.2",
50
+ "stylelint": "^16.21.1",
51
+ "stylelint-config-standard": "^38.0.0",
52
+ "stylelint-config-standard-scss": "^15.0.1",
53
+ "stylelint-scss": "^6.12.1",
54
+ "typescript": "^5.8.3"
55
+ },
56
+ "scripts": {
57
+ "sass:build": "sass src/libs:dist/ --no-source-map && sass src/scss:dist/ --no-source-map && rm -rf dist/webfonts && mkdir -p dist/webfonts && cp -r src/libs/webfonts/fontawesome src/libs/webfonts/googleapis src/libs/webfonts/lucide dist/webfonts/ && node scripts/inline-fonts.mjs dist/index.css && mkdir -p dist/css dist/ui && cp dist/index.css dist/css/main.css && cp dist/index.css dist/ui/style.css && node scripts/relocate-fonts.mjs dist/css/main.css && node scripts/relocate-fonts.mjs dist/ui/style.css",
58
+ "sass:watch": "sass --watch src/scss:dist/css",
59
+ "sass:lint": "stylelint \"src/scss/**/*.scss\"",
60
+ "ts:build": "tsc",
61
+ "dev": "pnpm run sass:watch & pnpm run ts:build --watch",
62
+ "dev:build": "pnpm run sass:build && pnpm run ts:build",
63
+ "commit": "pnpm run sass:lint && pnpm run sass:build && pnpm run ts:build"
64
+ }
65
+ }
package/readme.md CHANGED
@@ -1,51 +1,107 @@
1
- <p align="center">
2
- <a href="https://archcss.com/">
3
- <img src="https://get.archcss.com/brand/archcss-logo-banner-t.png" alt="Architect CSS logo" width="" height="">
4
- </a>
5
- </p>
6
1
 
7
- <h3 align="center">Architect CSS</h3>
2
+ # Architect CSS framework V3
3
+ ![Architect CSS Framework](https://img.shields.io/badge/ArchCSS%20Framework-v3-blueviolet?style=for-the-badge&logo=sass)
4
+ ![License: MIT](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)
5
+ ![License: MPL-2.0](https://img.shields.io/badge/license-MPL--2.0-orange?style=for-the-badge)
8
6
 
9
- <p align="center">
10
- Craft dynamic, feature-rich frontend experiences with a versatile designs. Leverage a utility-first CSS framework for flexible design directly in your HTML
11
- <br>
12
- <a href="https://archcss.com"><strong>Explore Architect CSS docs »</strong></a>
13
- <br>
14
- <br>
15
- <a href="https://github.com/archcss-dev/archcss/issues/new?assignees=-&labels=bug&template=bug_report.yml">Report bug</a>
16
- ·
17
- <a href="https://github.com/archcss-dev/archcss/issues/new?assignees=&labels=feature&template=feature_request.yml">Request feature</a>
18
- </p>
7
+ > Modular CSS framework based on Sass, featuring CSS utilities, a ready-to-use responsive system and an extensible structure. Designed for fast, clean and efficient integration into any modern frontend project.
19
8
 
20
- ## Quick start
9
+ ## What's Included
21
10
 
22
- Available options:
11
+ - Compiled `CSS` from modular SCSS,
12
+ - Utility-first Sass structure applied to CSS,
13
+ - TypeScript DOM plugin for triggers and manipulation,
14
+ - Invisible CSS watermark (framework origin tracking).
23
15
 
24
- - [Download the latest release](https://github.com/archcss-dev/archcss/archive/v2.0.0.zip)
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`
16
+ ## Quick start project
17
+ ```
18
+ pnpm init
19
+ pnpm add -D sass stylelint stylelint-scss stylelint-config-standard typescript
20
+ npx tsc --init
21
+ ```
28
22
 
23
+ ## Installation
29
24
 
30
- [Previous releases](https://github.com/archcss-dev/archcss/releases) are also available for download.
25
+ 1. Using NPM
26
+ ```bash
27
+ npm install archcss
28
+ ```
31
29
 
30
+ 2. Using PNPM
31
+ ```bash
32
+ pnpm install archcss
33
+ ```
32
34
 
33
- ## Community
35
+ 3. Using Yarn
36
+ ```bash
37
+ yarn install archcss
38
+ ```
34
39
 
35
- Get updates on Architect CSS's development and chat with the project maintainers and community members.
40
+ > Note: This package only includes **compiled CSS and JS**. Source SCSS is private.
36
41
 
37
- - Ask questions and explore [our GitHub Discussions](https://github.com/archcss-dev/archcss/discussions).
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.
42
+ ## NPM Scripts
39
43
 
44
+ ### Build Sass
45
+ ```bash
46
+ pnpm run sass:build
47
+ ```
48
+ > Compile `src/scss/` into `dist/` (no sourcemaps), ship the `dist/webfonts/` assets and inline the icon font stylesheets.
40
49
 
41
- ## Creator(s)
50
+ ### Watch Sass Changes
51
+ ```bash
52
+ pnpm run sass:watch
53
+ ```
54
+ > Watch for SCSS file changes and rebuild automatically.
42
55
 
43
- **Beba Godfried A.**
56
+ ### Lint SCSS
57
+ ```bash
58
+ pnpm run sass:lint
59
+ ```
60
+ > Check Sass code style and errors using `stylelint`.
44
61
 
45
- - <https://github.com/bebagodfried>
62
+ ### Commit Before Release
63
+ ```bash
64
+ pnpm run commit
65
+ ```
66
+ > Run Sass lint and build. Fails if linting fails.
46
67
 
47
- ## Copyright and license
68
+ ## Usage Example
48
69
 
49
- Code released under the [MIT License](https://github.com/archcss-dev/archcss/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
70
+ ### Include CSS
71
+ ```html
72
+ <link rel="stylesheet" href="node_modules/archcss/dist/index.css">
73
+ ```
50
74
 
75
+ The compiled `dist/index.css` already inlines the FontAwesome and Lucide
76
+ icon stylesheets and bundles the Google Fonts imports, so a single file is
77
+ enough. The icon font files ship under `dist/webfonts/` and are referenced
78
+ with paths relative to the stylesheet, so CSS and icon fonts work in the
79
+ browser and in bundlers (Next.js, Vite, webpack) without extra config.
51
80
 
81
+ > If you only need part of it, the individual assets are available at
82
+ > `dist/webfonts/fontawesome/css/fontawessome.min.css` and
83
+ > `dist/webfonts/lucide/css/lucide.min.css`.
84
+
85
+ ### Use DOM Plugin (modals)
86
+ ```html
87
+ <button onclick="display('#modal-1')">Open Modal</button>
88
+ <div id="modal-1" class="hidden">Hello, I am modal</div>
89
+ ```
90
+
91
+ ```ts
92
+ import Modal from 'archcss/dist/js/plugin.js';
93
+ let modal = new Modal();
94
+ ```
95
+
96
+ ## License
97
+
98
+ This project is dual-licensed:
99
+
100
+ - **MIT**: applies to the compiled assets (`dist`)
101
+ - **MPL-2.0**: applies to the source code (`src/scss`, `src/ts`)
102
+
103
+ > You may use, modify, and redistribute freely. However, if you modify and distribute the **source code**, you must also publish your changes under the same MPL-2.0 license.
104
+
105
+ This ensures the framework stays open and protected.
106
+
107
+ For licensing inquiries: **dev@archcss.com**
package/changelog DELETED
@@ -1,76 +0,0 @@
1
- 1.0.0
2
- **Full Changelog**: https://github.com/archcss-dev/archcss/commits/v1.0.0
3
-
4
- 2.0
5
- [css]
6
- - new folders structure
7
- - new gradient synthax `gradient`-<color_1>-<color_2>-<color_3>
8
- - new radius synthax rounnded-<pill|full|1|2|3|4|5|6>
9
-
10
- - add 12 sass brand colors
11
- - add 3 elementor brand colors
12
- - add `scrollbar`-<0>
13
- - add `fancy` option as class for table
14
- - add `slate` color
15
- - add `font-style reset` by d-none
16
-
17
- - now support for flex order as [items-<order>] (from `1` to `12`)
18
- - now support auto color on simple brand class
19
- - now support auto uppercase and center for buttons
20
- - now support for elements visibility
21
- - now support <h1...6> `class` similar to heading title
22
-
23
- - remove `flex-span` class to [flexspan]
24
- - remove `bc`-<color> class to `brand-color`-<brand_name>-<color_number>
25
- - remove `border` as bordered class to `border`-<all>
26
- - remove `shadow` class to [box-shadow]
27
- - remove `rounded`-<sm|md|lg|xl>
28
- - remove shadow on `translate`-<top|left|bottom|right>
29
- - remove litterals gap (narrow, small, normal, large, wide)
30
-
31
- - update Font Awesome to 6.5.1
32
- - update generic `b` and `em` font-weight
33
- - update naming list-style-type as class
34
- - update `-row` elements (width: 100%)
35
- - update `-row` elements for mobile-first
36
- - update <hidden> class
37
- - update <divider> (add shadow, add opacity)
38
- - update <rounded> (now support from `1` to `12`px )
39
- - update `scrollbar` width to `3px`
40
- - update `grid` (gutter)
41
- - update `table` (width, padding) and `td`, `th` (border)
42
- - update `spacing` rest (apply to responsive)
43
- - update `positions` rest (apply to responsive)
44
- - update `spacing` (from .25rem to 3rem)
45
- - update `elements` weight (font-weight)
46
- - update `font-*` utility supported size from `7px` to `96px` as common word-processor
47
- - update global `font-size` for `h1` to `h6`
48
- - update global `font-size` classname `fs-`<size> instead of `font`-<size>
49
-
50
- - replace `flex`-<length> with `flexspan`-<length>
51
- - replace `flex-col-reverse` with [flex-column-reverse]
52
- - replace `flex flex-col-reverse` with [flex-column-reverse]
53
- - replace `flex flex-column` twith [flex-column]
54
- - replace `flex flex-row` with [flex-row] and fix items at position
55
- - replace `self`-<axis> with align-self-<axis> and (add flex: 1 !!!no more need `flexspan`/`flexspan-1`)
56
- - replace `translate-middle` with `translate-center`
57
-
58
- - fix row items position
59
- - fix margin auto property
60
- - fix padding auto property
61
- - fix/update @googleapis font
62
-
63
- [js]
64
- - update
65
- - remove history
66
- - splite GLOBALS ($_) in `getter` (get) & `setter` (set)
67
- - replace `DOM()` with `dom()`
68
- - remove attrib
69
- - replace `set_attrib()` to `set_attribute()`
70
- - update listener [on(event: string, listener: Function)]
71
- - update `display()` (now support `arrayList`) _eg: display(['#elementId1','#elementId2'])_
72
- - update `hide()` (now support `arrayList`) _eg: hide(['#elementId1','#elementId2'])_
73
- - remove `onClick()`, `onDblClick()`
74
- - replace `on_scroll()` to `at_scroll()` [on_scroll(el: string, add_list: Array<string>, rm_list: Array<string> = [], offset: number = 0)]
75
- - replace and update `popUp` to `pop` with frame object
76
- - add/update listener [scroll_to(el: string)]