@regardio/brand 1.0.2 → 1.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 +35 -41
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# Regardio Brand
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Design system and branding for the Regardio ecosystem.
|
|
4
4
|
|
|
5
|
-
Regardio Brand
|
|
6
|
-
and branded components for all Regardio applications. The package includes:
|
|
5
|
+
Regardio Brand carries the visual identity, design tokens, and branded components every Regardio application draws on. The package includes:
|
|
7
6
|
|
|
8
|
-
- **Design system**
|
|
9
|
-
- **Branded components**
|
|
10
|
-
- **Brand assets**
|
|
7
|
+
- **Design system** — colors, typography, tokens, the grid layout
|
|
8
|
+
- **Branded components** — Button and other UI primitives with the Regardio visual identity
|
|
9
|
+
- **Brand assets** — SVG files and React components for logos, icons, and sprites
|
|
11
10
|
|
|
12
11
|
## Installation
|
|
13
12
|
|
|
@@ -15,9 +14,9 @@ and branded components for all Regardio applications. The package includes:
|
|
|
15
14
|
pnpm add @regardio/brand
|
|
16
15
|
```
|
|
17
16
|
|
|
18
|
-
## Branded
|
|
17
|
+
## Branded components
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Branded components wear the Regardio identity: flat blue, no border, generous padding, Georama bold. They read the same across every Regardio application, which is the point.
|
|
21
20
|
|
|
22
21
|
```tsx
|
|
23
22
|
import { Button } from '@regardio/brand/button';
|
|
@@ -25,18 +24,17 @@ import { Button } from '@regardio/brand/button';
|
|
|
25
24
|
<Button variant="primary">Click me</Button>
|
|
26
25
|
```
|
|
27
26
|
|
|
28
|
-
## Asset
|
|
27
|
+
## Asset catalog
|
|
29
28
|
|
|
30
|
-
Run Storybook to browse the
|
|
29
|
+
Run Storybook to browse the full asset catalog:
|
|
31
30
|
|
|
32
31
|
```bash
|
|
33
32
|
pnpm storybook
|
|
34
33
|
```
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
logos, colors, and compass sprites.
|
|
35
|
+
An interactive catalog opens at `http://localhost:6006` — every icon, logo, color, and compass sprite, in one place.
|
|
38
36
|
|
|
39
|
-
## Sample
|
|
37
|
+
## Sample assets
|
|
40
38
|
|
|
41
39
|
<!-- markdownlint-disable MD033 -->
|
|
42
40
|
<p style="background:#f1eded; display: flex; gap: 16px; align-items: center; padding: 16px;">
|
|
@@ -47,26 +45,26 @@ logos, colors, and compass sprites.
|
|
|
47
45
|
</p>
|
|
48
46
|
<!-- markdownlint-enable MD033 -->
|
|
49
47
|
|
|
50
|
-
## Asset
|
|
48
|
+
## Asset categories
|
|
51
49
|
|
|
52
|
-
### SVG
|
|
50
|
+
### SVG files
|
|
53
51
|
|
|
54
|
-
Raw SVG assets
|
|
52
|
+
Raw SVG assets sit under `src/svg/`:
|
|
55
53
|
|
|
56
54
|
- **`icons/`** — Regardio logos, icons, and system symbols
|
|
57
55
|
- **`compass-base/`** — Compass sprite components (pursuits, needs, plans, circles, facets, bridges)
|
|
58
56
|
|
|
59
|
-
### React
|
|
57
|
+
### React components
|
|
60
58
|
|
|
61
59
|
Generated React components are exported from the package:
|
|
62
60
|
|
|
63
|
-
- **Icons &
|
|
64
|
-
- **System
|
|
61
|
+
- **Icons & logos** — `@regardio/brand/icons/*`
|
|
62
|
+
- **System layer icons** — `@regardio/brand/icons/system-layer-*`
|
|
65
63
|
- **Sprites** — `@regardio/brand/sprites/*`
|
|
66
64
|
|
|
67
65
|
## Usage
|
|
68
66
|
|
|
69
|
-
### React
|
|
67
|
+
### React components
|
|
70
68
|
|
|
71
69
|
```tsx
|
|
72
70
|
import { RegardioLogoColor } from "@regardio/brand/icons/regardio-logo-color";
|
|
@@ -89,8 +87,7 @@ function App() {
|
|
|
89
87
|
|
|
90
88
|
### CompassSpriteProvider
|
|
91
89
|
|
|
92
|
-
|
|
93
|
-
directly into the DOM. Include it **once** at the root of your application:
|
|
90
|
+
`CompassSpriteProvider` embeds SVG symbol definitions for every compass sprite directly in the DOM. Include it **once** at the root of the application:
|
|
94
91
|
|
|
95
92
|
```tsx
|
|
96
93
|
import { CompassSpriteProvider } from "@regardio/brand/sprites/compass-sprite-provider";
|
|
@@ -104,7 +101,7 @@ function App() {
|
|
|
104
101
|
}
|
|
105
102
|
```
|
|
106
103
|
|
|
107
|
-
|
|
104
|
+
Afterwards, `CompassSprite` references sprites by ID anywhere in the app:
|
|
108
105
|
|
|
109
106
|
```tsx
|
|
110
107
|
import { CompassSprite } from "@regardio/brand/sprites/compass-sprite";
|
|
@@ -114,22 +111,21 @@ import { CompassSprite } from "@regardio/brand/sprites/compass-sprite";
|
|
|
114
111
|
<CompassSprite id="bridge-view-enables" width={100} height={70} />
|
|
115
112
|
```
|
|
116
113
|
|
|
117
|
-
### Regardio
|
|
114
|
+
### Regardio color scheme with Tailwind CSS
|
|
118
115
|
|
|
119
|
-
Import `colors.css` to
|
|
116
|
+
Import `colors.css` to pull the Regardio palette into Tailwind CSS v4:
|
|
120
117
|
|
|
121
118
|
```css
|
|
122
119
|
@import "@regardio/brand/styles/colors.css";
|
|
123
120
|
```
|
|
124
121
|
|
|
125
|
-
|
|
126
|
-
available as Tailwind utilities. The palette includes:
|
|
122
|
+
The file defines CSS custom properties through the `@theme` directive, making every color available as a Tailwind utility. The palette covers:
|
|
127
123
|
|
|
128
|
-
- **coral**, **orange**, **yellow**, **olive**, **lime**, **green**, **teal**, **aqua**, **blue**, **violet**, **plum**, **red** — full spectrum
|
|
124
|
+
- **coral**, **orange**, **yellow**, **olive**, **lime**, **green**, **teal**, **aqua**, **blue**, **violet**, **plum**, **red** — the full spectrum
|
|
129
125
|
- **gray** — neutral tones with warm undertones
|
|
130
126
|
- **white**, **black** — base colors
|
|
131
127
|
|
|
132
|
-
Each color
|
|
128
|
+
Each color carries shades from `50` (lightest) to `950` (darkest):
|
|
133
129
|
|
|
134
130
|
```html
|
|
135
131
|
<div class="bg-coral-500 text-white">Coral background</div>
|
|
@@ -137,10 +133,9 @@ Each color has shades from `50` (lightest) to `950` (darkest):
|
|
|
137
133
|
<div class="border-violet-300">Violet border</div>
|
|
138
134
|
```
|
|
139
135
|
|
|
140
|
-
|
|
141
|
-
so the color scheme must be loaded for sprites to render correctly.
|
|
136
|
+
Compass sprites lean on these colors through Tailwind classes (for example, `fill-green-300`), so the color scheme is a prerequisite for sprites to render correctly.
|
|
142
137
|
|
|
143
|
-
### Design
|
|
138
|
+
### Design system styles
|
|
144
139
|
|
|
145
140
|
Import the complete design system (colors, tokens, typography, base styles, grid):
|
|
146
141
|
|
|
@@ -148,7 +143,7 @@ Import the complete design system (colors, tokens, typography, base styles, grid
|
|
|
148
143
|
@import "@regardio/brand/styles/index.css";
|
|
149
144
|
```
|
|
150
145
|
|
|
151
|
-
Or
|
|
146
|
+
Or pull in individual style modules:
|
|
152
147
|
|
|
153
148
|
```css
|
|
154
149
|
@import "@regardio/brand/styles/colors.css";
|
|
@@ -158,7 +153,7 @@ Or import individual style modules:
|
|
|
158
153
|
@import "@regardio/brand/styles/grid.css";
|
|
159
154
|
```
|
|
160
155
|
|
|
161
|
-
### Grid
|
|
156
|
+
### Grid system
|
|
162
157
|
|
|
163
158
|
Regardio's standard container and grid layout utilities:
|
|
164
159
|
|
|
@@ -171,7 +166,7 @@ Regardio's standard container and grid layout utilities:
|
|
|
171
166
|
</div>
|
|
172
167
|
```
|
|
173
168
|
|
|
174
|
-
See [Grid System documentation](./docs/grid-system.md) for complete usage guide.
|
|
169
|
+
See [Grid System documentation](./docs/grid-system.md) for the complete usage guide.
|
|
175
170
|
|
|
176
171
|
## Scripts
|
|
177
172
|
|
|
@@ -179,9 +174,9 @@ See [Grid System documentation](./docs/grid-system.md) for complete usage guide.
|
|
|
179
174
|
|--------|-------------|
|
|
180
175
|
| `pnpm build` | Build TypeScript to `dist/` |
|
|
181
176
|
| `pnpm dev` | Watch mode for development |
|
|
182
|
-
| `pnpm generate` | Regenerate
|
|
183
|
-
| `pnpm storybook` | Launch Storybook asset catalog |
|
|
184
|
-
| `pnpm storybook:build` | Build static Storybook site |
|
|
177
|
+
| `pnpm generate` | Regenerate React components from SVGs |
|
|
178
|
+
| `pnpm storybook` | Launch the Storybook asset catalog |
|
|
179
|
+
| `pnpm storybook:build` | Build the static Storybook site |
|
|
185
180
|
| `pnpm lint` | Run linting checks |
|
|
186
181
|
| `pnpm fix` | Auto-fix linting issues |
|
|
187
182
|
| `pnpm typecheck` | TypeScript type checking |
|
|
@@ -197,9 +192,8 @@ See [Grid System documentation](./docs/grid-system.md) for complete usage guide.
|
|
|
197
192
|
|
|
198
193
|
## License
|
|
199
194
|
|
|
200
|
-
**CC BY-SA 4.0** — Regardio Brand assets are
|
|
195
|
+
**CC BY-SA 4.0** — Regardio Brand assets are free to use and adapt.
|
|
201
196
|
|
|
202
197
|
---
|
|
203
198
|
|
|
204
|
-
*Part of the [Regardio Ensemble](https://regard.io/ensemble) toolkit for
|
|
205
|
-
shared well-being.*
|
|
199
|
+
*Part of the [Regardio Ensemble](https://regard.io/ensemble) toolkit for shared well-being.*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "@regardio/brand",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Regardio Brand Assets",
|
|
7
7
|
"homepage": "https://codeberg.org/regardio/commons/src/branch/main/packages/brand",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
],
|
|
111
111
|
"dependencies": {
|
|
112
112
|
"@fontsource-variable/georama": "5.2.8",
|
|
113
|
-
"@regardio/react": "1.0
|
|
114
|
-
"@regardio/tailwind": "1.0
|
|
113
|
+
"@regardio/react": "1.1.0",
|
|
114
|
+
"@regardio/tailwind": "1.1.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@storybook/addon-a11y": "10.3.5",
|
|
@@ -138,12 +138,12 @@
|
|
|
138
138
|
"storybook": "10.3.5",
|
|
139
139
|
"svgo": "4.0.1",
|
|
140
140
|
"tailwindcss": "4.2.4",
|
|
141
|
-
"tsdown": "0.21.
|
|
141
|
+
"tsdown": "0.21.10",
|
|
142
142
|
"tsx": "4.21.0",
|
|
143
143
|
"typescript": "6.0.3",
|
|
144
|
-
"vite": "8.0.
|
|
144
|
+
"vite": "8.0.10",
|
|
145
145
|
"vitest": "4.1.5",
|
|
146
|
-
"@regardio/dev": "2.0
|
|
146
|
+
"@regardio/dev": "2.1.0"
|
|
147
147
|
},
|
|
148
148
|
"scripts": {
|
|
149
149
|
"build": "tsdown",
|