@rickycourtes/designrail 0.0.0-stage → 0.2.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.md +35 -0
- package/LICENSE +21 -0
- package/README.md +889 -2
- package/bin/designrail.js +11 -0
- package/kit/changes.json +16 -0
- package/kit/foundation.css +24 -0
- package/kit/foundation.js +4 -0
- package/kit/parts/base.css +34 -0
- package/kit/parts/button.css +85 -0
- package/kit/parts/card.css +35 -0
- package/kit/parts/dropdown.css +55 -0
- package/kit/parts/dropdown.js +38 -0
- package/kit/parts/field.css +67 -0
- package/kit/parts/pill.css +40 -0
- package/kit/parts/sheet.css +43 -0
- package/kit/parts/toast.css +40 -0
- package/kit/parts/toast.js +32 -0
- package/kit/tokens.css +110 -0
- package/package.json +52 -4
- package/rules/DESIGN.md +70 -0
- package/schema.json +100 -0
- package/src/audit.js +217 -0
- package/src/check.js +141 -0
- package/src/cli.js +261 -0
- package/src/contract.js +67 -0
- package/src/css.js +135 -0
- package/src/extract.js +271 -0
- package/src/fix.js +104 -0
- package/src/index.js +16 -0
- package/src/init.js +47 -0
- package/src/kit.js +99 -0
- package/src/markup.js +94 -0
- package/src/model.js +128 -0
- package/src/project.js +180 -0
- package/src/report.js +104 -0
- package/src/sources.js +145 -0
- package/src/specimens.js +94 -0
- package/src/tokens.js +55 -0
- package/src/trace.js +42 -0
- package/src/upgrade.js +69 -0
- package/src/values.js +204 -0
- package/src/worker.js +11 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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.0
|
|
7
|
+
|
|
8
|
+
The kit becomes the foundation every project builds on.
|
|
9
|
+
|
|
10
|
+
- `@rickycourtes/designrail/foundation.css` loads the default theme, the base and every part,
|
|
11
|
+
in cascade layers (`designrail.tokens`, `designrail.base`,
|
|
12
|
+
`designrail.parts`), so a project's own CSS always wins.
|
|
13
|
+
`@rickycourtes/designrail/foundation.js` exports `dropdowns` and `toast`.
|
|
14
|
+
- Every part has knobs (`--btn-bg`, `--input-rim`, `--card-pad`, `--menu-bg`,
|
|
15
|
+
`--pill-tone`…) for restyling it without editing it. New: `.btn.outline`.
|
|
16
|
+
- The default theme derives every secondary token from the core (`--surface`,
|
|
17
|
+
`--text`, `--accent`), and dark mode changes only the core, so any project
|
|
18
|
+
theme stays consistent.
|
|
19
|
+
- The tooling knows when a project builds on the foundation: its tokens
|
|
20
|
+
resolve the project's `var()`s, and nothing inside it is audited. Two new
|
|
21
|
+
`check` rules: `contract` and `part-restyle`.
|
|
22
|
+
- `upgrade` moves a project to the installed foundation version, rewriting
|
|
23
|
+
renamed tokens and classes. The project's version is recorded as
|
|
24
|
+
`foundation` in `designrail.config.json`.
|
|
25
|
+
- `add` is now `eject`: it copies a part in for the project to own, and
|
|
26
|
+
records it under `ejected`.
|
|
27
|
+
- `var(--x, fallback)` no longer counts as unresolved.
|
|
28
|
+
- Published publicly on npm as `@rickycourtes/designrail` under the MIT
|
|
29
|
+
license; a version tag publishes it (`.github/workflows/publish.yml`).
|
|
30
|
+
|
|
31
|
+
## 0.1.0
|
|
32
|
+
|
|
33
|
+
First release: `init`, `audit`, `scan`, `extract`, `fix`, `check`, `trace`,
|
|
34
|
+
`specimens`, `add`, `kit`, and a kit with tokens, base, button, field, card,
|
|
35
|
+
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.
|