@nexub/brand 2.0.0 → 2.1.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/README.md +20 -1
- package/assets/mobile/account-android-background.png +0 -0
- package/assets/mobile/account-android-foreground.png +0 -0
- package/assets/mobile/account-android-monochrome.png +0 -0
- package/assets/mobile/account-ios.png +0 -0
- package/assets/mobile/admin-android-background.png +0 -0
- package/assets/mobile/admin-android-foreground.png +0 -0
- package/assets/mobile/admin-android-monochrome.png +0 -0
- package/assets/mobile/admin-ios.png +0 -0
- package/assets/mobile/command-hub-android-background.png +0 -0
- package/assets/mobile/command-hub-android-foreground.png +0 -0
- package/assets/mobile/command-hub-android-monochrome.png +0 -0
- package/assets/mobile/command-hub-ios.png +0 -0
- package/assets/mobile/commerce-android-background.png +0 -0
- package/assets/mobile/commerce-android-foreground.png +0 -0
- package/assets/mobile/commerce-android-monochrome.png +0 -0
- package/assets/mobile/commerce-ios.png +0 -0
- package/assets/mobile/contracts-android-background.png +0 -0
- package/assets/mobile/contracts-android-foreground.png +0 -0
- package/assets/mobile/contracts-android-monochrome.png +0 -0
- package/assets/mobile/contracts-ios.png +0 -0
- package/assets/mobile/founder-hub-android-background.png +0 -0
- package/assets/mobile/founder-hub-android-foreground.png +0 -0
- package/assets/mobile/founder-hub-android-monochrome.png +0 -0
- package/assets/mobile/founder-hub-ios.png +0 -0
- package/assets/mobile/leap-android-background.png +0 -0
- package/assets/mobile/leap-android-foreground.png +0 -0
- package/assets/mobile/leap-android-monochrome.png +0 -0
- package/assets/mobile/leap-ios.png +0 -0
- package/assets/mobile/nexub-android-background.png +0 -0
- package/assets/mobile/nexub-android-foreground.png +0 -0
- package/assets/mobile/nexub-android-monochrome.png +0 -0
- package/assets/mobile/nexub-ios.png +0 -0
- package/assets/mobile/payhub-android-background.png +0 -0
- package/assets/mobile/payhub-android-foreground.png +0 -0
- package/assets/mobile/payhub-android-monochrome.png +0 -0
- package/assets/mobile/payhub-ios.png +0 -0
- package/assets/mobile/people-android-background.png +0 -0
- package/assets/mobile/people-android-foreground.png +0 -0
- package/assets/mobile/people-android-monochrome.png +0 -0
- package/assets/mobile/people-ios.png +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ pnpm add @nexub/brand
|
|
|
16
16
|
| `app-icon-<product>.svg`, `-192.png`, `-512.png` | Each Nexub app's tile, same tile with its own glyph: `command-hub` (a hub of agents), `admin` (a shield), `people` (two people), `payhub` (a banknote), `commerce` (a shopping bag), `contracts` (a signed page), `leap` (a leap forward), `founder-hub` (a rocket). |
|
|
17
17
|
| `app-icon[-<product>]-light.svg` | Every tile again in white glass, for light themes. The black tiles are for dark themes. |
|
|
18
18
|
| `favicon.ico` | 16, 32 and 48 px, from `app-icon.svg`. |
|
|
19
|
+
| `mobile/<product>-ios.png` | iOS app icon: 1024 px, full bleed, opaque (iOS draws the corners). `<product>` is `nexub` for the hub or a product id. |
|
|
20
|
+
| `mobile/<product>-android-{foreground,background,monochrome}.png` | Android adaptive icon layers (432 px), glyph inside the safe zone; `monochrome` for Android 13+ themed icons. |
|
|
19
21
|
|
|
20
22
|
Every file is at `@nexub/brand/<file>` (the package maps `./*` to `assets/*`).
|
|
21
23
|
|
|
@@ -64,6 +66,23 @@ import accountIcon from '@nexub/brand/app-icon-account.svg';
|
|
|
64
66
|
|
|
65
67
|
For the Account app, use the `app-icon-account*` files in those places.
|
|
66
68
|
|
|
69
|
+
## Expo / React Native apps
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"expo": {
|
|
74
|
+
"icon": "./node_modules/@nexub/brand/assets/mobile/payhub-ios.png",
|
|
75
|
+
"android": {
|
|
76
|
+
"adaptiveIcon": {
|
|
77
|
+
"foregroundImage": "./node_modules/@nexub/brand/assets/mobile/payhub-android-foreground.png",
|
|
78
|
+
"backgroundImage": "./node_modules/@nexub/brand/assets/mobile/payhub-android-background.png",
|
|
79
|
+
"monochromeImage": "./node_modules/@nexub/brand/assets/mobile/payhub-android-monochrome.png"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
67
86
|
## Plain static serving (no bundler)
|
|
68
87
|
|
|
69
88
|
Copy the files next to your HTML as part of your deploy step, using the same `cpSync` line with your output folder (for example `dist/brand`). Then reference them as `/brand/<file>` exactly as above. Self-hosting keeps them same-origin, so a strict CSP (`img-src 'self'`) needs no changes.
|
|
@@ -76,7 +95,7 @@ Every product gets the same tile with its own glyph. Don't edit the tile itself.
|
|
|
76
95
|
|
|
77
96
|
1. Draw the glyph as an SVG fragment in the 512 × 512 tile space and save it as `glyphs/<product>.svg`. Keep it inside roughly x/y 90–422, the area the Nexub mark uses. Gradients go in a `<defs>` inside the fragment; use `id="glyph"` (see `glyphs/account.svg`).
|
|
78
97
|
2. Add `{ id: '<product>', glyph: read('glyphs/<product>.svg'), halo: '<hex>' }` to `PRODUCTS` in `scripts/build-assets.mjs`. `halo` tints the glow behind the glyph.
|
|
79
|
-
3. Run `pnpm --filter @nexub/brand build:assets` and commit `assets/app-icon-<product>*` (it also writes the `-light.svg` tile).
|
|
98
|
+
3. Run `pnpm --filter @nexub/brand build:assets` and commit `assets/app-icon-<product>*` and `assets/mobile/<product>-*` (it also writes the `-light.svg` tile and the mobile icon set).
|
|
80
99
|
|
|
81
100
|
Use mid-tone gradient colours for a glyph (roughly Tailwind's 300 to 700 shades), so it reads on both the black and the white tile.
|
|
82
101
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexub/brand",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Official Nexub brand files: the Nexub mark (colour and mono SVG), app icon tiles, PNG icons and favicon.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/Nexub-AI/nexub-ds#readme",
|