@rickycourtes/designrail 0.0.0-stage → 0.2.1

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.md ADDED
@@ -0,0 +1,42 @@
1
+ # Changelog
2
+
3
+ Every foundation release also has an entry in `kit/changes.json`, which
4
+ `designrail upgrade` reads to move a project forward.
5
+
6
+ ## 0.2.1
7
+
8
+ No foundation changes.
9
+
10
+ - Releases publish through npm trusted publishing (GitHub's OIDC identity)
11
+ with provenance, so the repo stores no npm token.
12
+
13
+ ## 0.2.0
14
+
15
+ The kit becomes the foundation every project builds on.
16
+
17
+ - `@rickycourtes/designrail/foundation.css` loads the default theme, the base and every part,
18
+ in cascade layers (`designrail.tokens`, `designrail.base`,
19
+ `designrail.parts`), so a project's own CSS always wins.
20
+ `@rickycourtes/designrail/foundation.js` exports `dropdowns` and `toast`.
21
+ - Every part has knobs (`--btn-bg`, `--input-rim`, `--card-pad`, `--menu-bg`,
22
+ `--pill-tone`…) for restyling it without editing it. New: `.btn.outline`.
23
+ - The default theme derives every secondary token from the core (`--surface`,
24
+ `--text`, `--accent`), and dark mode changes only the core, so any project
25
+ theme stays consistent.
26
+ - The tooling knows when a project builds on the foundation: its tokens
27
+ resolve the project's `var()`s, and nothing inside it is audited. Two new
28
+ `check` rules: `contract` and `part-restyle`.
29
+ - `upgrade` moves a project to the installed foundation version, rewriting
30
+ renamed tokens and classes. The project's version is recorded as
31
+ `foundation` in `designrail.config.json`.
32
+ - `add` is now `eject`: it copies a part in for the project to own, and
33
+ records it under `ejected`.
34
+ - `var(--x, fallback)` no longer counts as unresolved.
35
+ - Published publicly on npm as `@rickycourtes/designrail` under the MIT
36
+ license; a version tag publishes it (`.github/workflows/publish.yml`).
37
+
38
+ ## 0.1.0
39
+
40
+ First release: `init`, `audit`, `scan`, `extract`, `fix`, `check`, `trace`,
41
+ `specimens`, `add`, `kit`, and a kit with tokens, base, button, field, card,
42
+ pill, dropdown, toast and sheet.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ricky Courtes
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.