zeus-css 1.0.9 → 1.0.11
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/README.md +10 -0
- package/package.json +55 -55
- package/scss/API.md +13 -5
- package/scss/CHANGELOG.md +22 -0
- package/scss/README.md +35 -2
package/README.md
CHANGED
|
@@ -36,6 +36,16 @@ Always import it from a single **shared/root** entry point, never from an indivi
|
|
|
36
36
|
|
|
37
37
|
**TypeScript:** `import 'zeus-css/dist/zeus.css'` needs *some* ambient `declare module '*.css'` to type-check. Next.js, Vite and Nuxt scaffolds already include this by default — nothing to do. If you're on a bare TypeScript setup and see `Cannot find module 'zeus-css/dist/zeus.css'`, running `npx zeus-css init` (step 2) creates `zeus-css-env.d.ts` for you automatically.
|
|
38
38
|
|
|
39
|
+
> ⚠️ **Step 1 and Step 2 are mutually exclusive.** Use the default import
|
|
40
|
+
> (`zeus-css/dist/zeus.css`) if you don't need custom theming. If you run
|
|
41
|
+
> `npx zeus-css init` and customize your theme, **replace** the default
|
|
42
|
+
> import with `import './zeus.theme.css'` — never use both together.
|
|
43
|
+
>
|
|
44
|
+
> ```text
|
|
45
|
+
> No customization? → import 'zeus-css/dist/zeus.css'
|
|
46
|
+
> Custom theme? → npx zeus-css init, compile, import './zeus.theme.css' (replaces the Step 1 import)
|
|
47
|
+
> ```
|
|
48
|
+
|
|
39
49
|
### 2. Customize it
|
|
40
50
|
Run the init command in the folder you want the config files in (you'll see a reminder for this after `npm install` too):
|
|
41
51
|
|
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "zeus-css",
|
|
3
|
-
"version": "1.0.
|
|
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.11",
|
|
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
|
-
|
|
|
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
|
|
25
|
-
`llms.txt`, `cheatsheet.md`, `LICENSE`,
|
|
26
|
-
under `foundation/` not reachable
|
|
27
|
-
§6) is an implementation detail even
|
|
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,20 @@ documented in [`API.md`](API.md).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.0.11] — 2026-08-05
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **The published package's README (generated by `scripts/build-package.ts`,
|
|
13
|
+
not copied from this file) documented Step 1 (`zeus-css/dist/zeus.css`) and
|
|
14
|
+
Step 2 (`npx zeus-css init` + `zeus.theme.css`) with no statement that
|
|
15
|
+
they're mutually exclusive** — a dev following both in sequence ended up
|
|
16
|
+
with both imports in the same root layout. Added an explicit warning plus
|
|
17
|
+
a two-line flowchart between the two steps in that template, so the
|
|
18
|
+
generated README (and every future publish) states the replacement
|
|
19
|
+
relationship instead of leaving it implied.
|
|
20
|
+
|
|
21
|
+
## [1.0.10] — 2026-08-05
|
|
22
|
+
|
|
9
23
|
Published to npm as `zeus-css`. [`API.md`](API.md) documents the public API
|
|
10
24
|
surface this changelog's semver contract is now binding against.
|
|
11
25
|
|
|
@@ -157,6 +171,14 @@ surface this changelog's semver contract is now binding against.
|
|
|
157
171
|
`.`, `./config`, and the raw `./scss/*` passthrough — so three of the four
|
|
158
172
|
documented specifiers failed to resolve against the published package.
|
|
159
173
|
Explicit aliases for all four are now emitted.
|
|
174
|
+
- **`zeus-css/css` and `zeus-css/min` were real, shipped exports
|
|
175
|
+
(`package.json` → `exports`) with no entry in README or `API.md` §1** — a
|
|
176
|
+
dev with no Sass pipeline had no documented way to just import the
|
|
177
|
+
precompiled CSS, and the two specifiers carried no semver contract despite
|
|
178
|
+
already being public. README now leads with them for the no-build-step
|
|
179
|
+
path; `API.md` §1 lists both, with a note that they're static builds of
|
|
180
|
+
`foundation.scss` with default tokens baked in and cannot reflect
|
|
181
|
+
`zeus.customize.scss` overrides.
|
|
160
182
|
- `$zeus-outer-padding` was declared twice in `zeus.config.scss` — an older
|
|
161
183
|
`(mobile, desktop)`-shaped default (used internally to auto-derive
|
|
162
184
|
`$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
|
-
|
|
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
|
-
|
|
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
|