zeus-css 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "zeus-css",
3
- "version": "1.0.9",
4
- "description": "⚡ A Premium, Zero-Emission, Fluid-Scaling CSS Framework based on Sass SCSS Engine",
5
- "author": "Stavros Lazaris",
6
- "license": "MIT",
7
- "homepage": "https://www.npmjs.com/package/zeus-css",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/zeus-css/zeus-css-framework.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/zeus-css/zeus-css-framework/issues"
14
- },
15
- "main": "./dist/zeus.css",
16
- "style": "./dist/zeus.css",
17
- "bin": {
18
- "zeus-css": "./bin/init.js"
19
- },
20
- "scripts": {
21
- "postinstall": "node ./bin/postinstall.js"
22
- },
23
- "exports": {
24
- ".": {
25
- "sass": "./scss/zeus.scss",
26
- "css": "./dist/zeus.css",
27
- "default": "./dist/zeus.css"
28
- },
29
- "./foundation": "./scss/foundation/foundation.scss",
30
- "./zeus": "./scss/zeus.scss",
31
- "./config": "./scss/zeus.config.scss",
32
- "./customize": "./scss/zeus.customize.scss",
33
- "./dist/*": "./dist/*",
34
- "./scss/*": "./scss/*",
35
- "./bin/*": "./bin/*"
36
- },
37
- "files": [
38
- "scss",
39
- "dist",
40
- "bin"
41
- ],
42
- "peerDependencies": {
43
- "sass": "^1.60.0"
44
- },
45
- "keywords": [
46
- "zeus",
47
- "css",
48
- "scss",
49
- "sass",
50
- "framework",
51
- "fluid-design",
52
- "design-tokens",
53
- "type-safe"
54
- ]
55
- }
1
+ {
2
+ "name": "zeus-css",
3
+ "version": "1.0.10",
4
+ "description": "⚡ A Premium, Zero-Emission, Fluid-Scaling CSS Framework based on Sass SCSS Engine",
5
+ "author": "Stavros Lazaris",
6
+ "license": "MIT",
7
+ "homepage": "https://www.npmjs.com/package/zeus-css",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/zeus-css/zeus-css-framework.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/zeus-css/zeus-css-framework/issues"
14
+ },
15
+ "main": "./dist/zeus.css",
16
+ "style": "./dist/zeus.css",
17
+ "bin": {
18
+ "zeus-css": "./bin/init.js"
19
+ },
20
+ "scripts": {
21
+ "postinstall": "node ./bin/postinstall.js"
22
+ },
23
+ "exports": {
24
+ ".": {
25
+ "sass": "./scss/zeus.scss",
26
+ "css": "./dist/zeus.css",
27
+ "default": "./dist/zeus.css"
28
+ },
29
+ "./foundation": "./scss/foundation/foundation.scss",
30
+ "./zeus": "./scss/zeus.scss",
31
+ "./config": "./scss/zeus.config.scss",
32
+ "./customize": "./scss/zeus.customize.scss",
33
+ "./dist/*": "./dist/*",
34
+ "./scss/*": "./scss/*",
35
+ "./bin/*": "./bin/*"
36
+ },
37
+ "files": [
38
+ "scss",
39
+ "dist",
40
+ "bin"
41
+ ],
42
+ "peerDependencies": {
43
+ "sass": "^1.60.0"
44
+ },
45
+ "keywords": [
46
+ "zeus",
47
+ "css",
48
+ "scss",
49
+ "sass",
50
+ "framework",
51
+ "fluid-design",
52
+ "design-tokens",
53
+ "type-safe"
54
+ ]
55
+ }
package/scss/API.md CHANGED
@@ -15,16 +15,24 @@ this file wins.
15
15
 
16
16
  | Import | Emits CSS? | Use in |
17
17
  |---|---|---|
18
- | `@use "zeus-css/foundation";` | Yes — full compiled framework | App root, once |
18
+ | `import "zeus-css/css";` | Yes — precompiled, default tokens only, not customizable | App root, no Sass pipeline |
19
+ | `import "zeus-css/min";` | Yes — same as above, minified | App root, no Sass pipeline, production |
20
+ | `@use "zeus-css/foundation";` | Yes — full compiled framework | App root, once, Sass pipeline |
19
21
  | `@use "zeus-css/zeus" as *;` | No — mixins/functions only | Every `.module.scss` |
20
22
  | `@use "zeus-css/config";` | No | Only if you need raw access to `$zeus-*` config variables |
21
23
  | `@use "zeus-css/customize";` | No | Only if you need raw access to `$zeus-colors` etc. without the rest of config |
22
24
 
25
+ `zeus-css/css` and `zeus-css/min` are static builds of `foundation.scss` with
26
+ default tokens baked in at publish time (`npm run build:css`) — they cannot
27
+ reflect `zeus.customize.scss` overrides. Use one of the two SCSS entry points
28
+ below instead if you need custom tokens.
29
+
23
30
  `package.json` → `files` is the authoritative list of what ships: the
24
- `foundation/**/*.scss` tree, the four entry files above, `zeus.tokens.json`,
25
- `llms.txt`, `cheatsheet.md`, `LICENSE`, `README.md`, `CHANGELOG.md`. Anything
26
- under `foundation/` not reachable through one of the two entry points (see
27
- §6) is an implementation detail even though the file ships.
31
+ `foundation/**/*.scss` tree, the six entry points above (plus their compiled
32
+ `dist/` output), `zeus.tokens.json`, `llms.txt`, `cheatsheet.md`, `LICENSE`,
33
+ `README.md`, `CHANGELOG.md`. Anything under `foundation/` not reachable
34
+ through `foundation` or `zeus` (see §6) is an implementation detail even
35
+ though the file ships.
28
36
 
29
37
  ## 2. Config variables (`zeus.config.scss`, `zeus.customize.scss`)
30
38
 
package/scss/CHANGELOG.md CHANGED
@@ -6,6 +6,8 @@ documented in [`API.md`](API.md).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.10] — 2026-08-05
10
+
9
11
  Published to npm as `zeus-css`. [`API.md`](API.md) documents the public API
10
12
  surface this changelog's semver contract is now binding against.
11
13
 
@@ -157,6 +159,14 @@ surface this changelog's semver contract is now binding against.
157
159
  `.`, `./config`, and the raw `./scss/*` passthrough — so three of the four
158
160
  documented specifiers failed to resolve against the published package.
159
161
  Explicit aliases for all four are now emitted.
162
+ - **`zeus-css/css` and `zeus-css/min` were real, shipped exports
163
+ (`package.json` → `exports`) with no entry in README or `API.md` §1** — a
164
+ dev with no Sass pipeline had no documented way to just import the
165
+ precompiled CSS, and the two specifiers carried no semver contract despite
166
+ already being public. README now leads with them for the no-build-step
167
+ path; `API.md` §1 lists both, with a note that they're static builds of
168
+ `foundation.scss` with default tokens baked in and cannot reflect
169
+ `zeus.customize.scss` overrides.
160
170
  - `$zeus-outer-padding` was declared twice in `zeus.config.scss` — an older
161
171
  `(mobile, desktop)`-shaped default (used internally to auto-derive
162
172
  `$container-bounds`) and a newer `(floor, ceil)`-shaped default (the public
package/scss/README.md CHANGED
@@ -46,9 +46,34 @@ absence costs placement, never functionality.
46
46
  npm install zeus-css
47
47
  ```
48
48
 
49
- ## Two entry points
49
+ No Sass pipeline and no customization needed? Import the precompiled CSS
50
+ once, at your app root, and skip everything below about entry points and
51
+ theming:
50
52
 
51
- Zeus ships two distinct ways to consume it — pick the right one per file.
53
+ ```tsx
54
+ // app/layout.tsx
55
+ import "zeus-css/css"; // or "zeus-css/dist/zeus.css" / "zeus-css/min" for the minified build
56
+ ```
57
+
58
+ ## Two ways to consume Zeus — pick one
59
+
60
+ These are **mutually exclusive** at the app-root level. Never load both in
61
+ the same project.
62
+
63
+ | | No Sass pipeline | Sass pipeline (Next.js, Vite, webpack `sass-loader`) |
64
+ |---|---|---|
65
+ | **Import** | `zeus-css/css` (plain compiled CSS) | `@use "zeus-css/foundation"` |
66
+ | **Customizable?** | No — ships the default token values baked in | Yes — edit `zeus.customize.scss` first (see [Theming your brand](#theming-your-brand)) |
67
+ | **Use when** | You just want the framework as-is, no build step | You want your own brand colors/type/spacing |
68
+
69
+ If you don't need custom theming, skip straight to
70
+ [Install](#install) and use the plain CSS import. If you *do* need custom
71
+ theming, use the SCSS entry point — the precompiled CSS can't reflect your
72
+ overrides, since it was built once, at publish time, with the default tokens.
73
+
74
+ ## Two entry points (SCSS pipeline)
75
+
76
+ Once you're on the SCSS path, Zeus exposes two distinct entry points — pick the right one per file.
52
77
 
53
78
  ### 1. Global stylesheet — `foundation`
54
79
 
@@ -129,10 +154,18 @@ standard Dart Sass pipeline (Next.js, Vite, webpack `sass-loader`, or the
129
154
 
130
155
  ## Theming your brand
131
156
 
157
+ > ⚠️ Only relevant if you're on the **Sass pipeline** path above. If you
158
+ > imported the plain `zeus-css/css` build, there is nothing to configure here
159
+ > — remove that import first, then follow the steps below instead. Don't use
160
+ > both.
161
+
132
162
  Every visual token — colors, typography, spacing, radii, shadows, breakpoints
133
163
  — lives in **one file**: `zeus.customize.scss`. Copy the keys you want to
134
164
  override from `zeus.token.sets.example.scss` (a reference-only file, never
135
165
  imported) into your own `zeus.customize.scss` before the `@use` chain resolves.
166
+ Then compile through `@use "zeus-css/foundation"` as shown in
167
+ [Global stylesheet — foundation](#1-global-stylesheet--foundation) — your
168
+ overrides are baked into the CSS your own Sass pipeline emits.
136
169
 
137
170
  ```scss
138
171
  // zeus.customize.scss