@letterstory/design 0.2.2 → 0.2.4
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/PRINCIPLES.md +4 -4
- package/README.md +2 -2
- package/package.json +3 -3
- package/tokens.css +1 -1
package/PRINCIPLES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Published copy. The source is AGENTS.md at the root of github.com/letterstory/letterstory; edit there and run design/scripts/build.mjs. -->
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# Letter design principles
|
|
4
4
|
|
|
5
5
|
## The six principles
|
|
6
6
|
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
do something agentically that the UI supports, that's a blind spot — the missing projection
|
|
57
57
|
principle 3 already names. The asymmetry runs both ways: an internal-only tool that gives
|
|
58
58
|
the team a capability customers can't reach via API (a staff dashboard, an admin-only
|
|
59
|
-
feed) is a design flaw to fix, not a shortcut to keep. Precedent
|
|
60
|
-
`src/lib/phantom-access/recent-activity.ts`
|
|
61
|
-
|
|
59
|
+
feed) is a design flaw to fix, not a shortcut to keep. Precedent:
|
|
60
|
+
`src/lib/phantom-access/recent-activity.ts`'s "what's hitting my fleet right now" feed was
|
|
61
|
+
UI-only; it is `get_recent_activity` and `letterstory insights activity` now.
|
|
62
62
|
|
|
63
63
|
6. **Every primitive launches through one workflow: Build → Access → Test → Onboard → Billing.**
|
|
64
64
|
Build the primitive; expose it through the API/MCP/CLI gateways (principle 3 — no separate
|
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# `@letterstory/design`
|
|
2
2
|
|
|
3
|
-
The cross-repo layer of
|
|
3
|
+
The cross-repo layer of Letter's design system: the **tokens** (colour, radius, font,
|
|
4
4
|
type scale), the **phantom theme registry** Lettersprite renders, and the **design
|
|
5
5
|
principles** as a shipped file. Framework-neutral data with one thin adapter per framework,
|
|
6
|
-
so every
|
|
6
|
+
so every Letter repo reads the same values and none of them copies a palette.
|
|
7
7
|
|
|
8
8
|
Zero runtime dependencies, no build step to install. Published from this directory by
|
|
9
9
|
`.github/workflows/publish-design.yml` (npm Trusted Publishing, on merge to `main`);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letterstory/design",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.4",
|
|
4
|
+
"description": "Letter design tokens, the phantom theme registry, and the design principles — one source for every Letter repo.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
|
-
"author": "
|
|
7
|
+
"author": "Letter",
|
|
8
8
|
"homepage": "https://github.com/letterstory/letterstory/tree/main/design#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
package/tokens.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* GENERATED by design/scripts/build.mjs — do not edit by hand. Source: design/tokens.json.
|
|
2
2
|
*
|
|
3
|
-
*
|
|
3
|
+
* Letter design tokens as CSS custom properties. Framework-neutral: load this
|
|
4
4
|
* stylesheet, then map the variables with the adapter for your framework
|
|
5
5
|
* (tailwind-v4.css, tailwind-v3.cjs, styled.js) or read them with var() directly.
|
|
6
6
|
* Dark values switch on a `.dark` class on an ancestor (next-themes attribute="class").
|