@aeolus-fleet/ui 0.36.1 → 0.37.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/README.md +1 -0
- package/dist/atoms/button.js +2 -2
- package/dist/atoms/button.js.map +1 -1
- package/dist/brand.css +89 -0
- package/dist/theme.css +2 -0
- package/dist/tokens.css +15 -13
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ Before 1.0.0 the API may change between minor releases.
|
|
|
6
6
|
|
|
7
7
|
- `@aeolus-fleet/ui`: every part, such as the app header, the app switcher, the avatar menu, the command palette and the atoms they stand on.
|
|
8
8
|
- `@aeolus-fleet/ui/tokens.css`: the single copy of the design tokens, light on `:root` and dark on `.dark`.
|
|
9
|
+
- `@aeolus-fleet/ui/brand.css`: the single copy of the brand tokens (colour, type and motion from the brandbook), light on `:root` and dark on `.dark`, with reduced motion standing still at the rest frame. Its story, Brand/Tokens, shows every token in both modes. The apps' look stays in `tokens.css`.
|
|
9
10
|
- `@aeolus-fleet/ui/theme.css`: the tokens mapped onto Tailwind v4. An app imports Tailwind and `tw-animate-css`, then this file, and scans the package with `@source`.
|
|
10
11
|
|
|
11
12
|
Its peers are React, Base UI, lucide, `class-variance-authority`, `clsx`, `tailwind-merge` and `@aeolus-fleet/common` at the same version, for types. How the parts look and when to use which: [docs/design/conventions.md](../../docs/design/conventions.md).
|
package/dist/atoms/button.js
CHANGED
|
@@ -17,9 +17,9 @@ const buttonVariants = cva("inline-flex shrink-0 items-center justify-center gap
|
|
|
17
17
|
destructive: 'bg-destructive text-destructive-foreground hover:opacity-90',
|
|
18
18
|
},
|
|
19
19
|
size: {
|
|
20
|
-
xs: 'h-(--size-control-xs) gap-1.5 px-
|
|
20
|
+
xs: 'h-(--size-control-xs) gap-1.5 px-3 text-meta',
|
|
21
21
|
sm: 'h-(--size-control-sm) px-3 text-meta',
|
|
22
|
-
md: 'h-(--size-control) px-3
|
|
22
|
+
md: 'h-(--size-control) px-3 text-body',
|
|
23
23
|
touch: 'h-(--size-control-touch) rounded-lg px-4 text-body-touch',
|
|
24
24
|
},
|
|
25
25
|
isIconOnly: {
|
package/dist/atoms/button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/atoms/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,cAAc,GAAG,GAAG,CACxB,4ZAA4Z,EAC5Z;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,2DAA2D;YACpE,SAAS,EAAE,wFAAwF;YACnG,KAAK,EAAE,wEAAwE;YAC/E,WAAW,EAAE,6DAA6D;SAC3E;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/atoms/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,cAAc,GAAG,GAAG,CACxB,4ZAA4Z,EAC5Z;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,2DAA2D;YACpE,SAAS,EAAE,wFAAwF;YACnG,KAAK,EAAE,wEAAwE;YAC/E,WAAW,EAAE,6DAA6D;SAC3E;QACD,IAAI,EAAE;YACJ,E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AAC,yCAAyC,GAAG,CAAC,CAAC,CAAC,IAAI,EACnG,QAAQ,IACO,CACnB,CAAC;AACJ,CAAC"}
|
package/dist/brand.css
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The Aeolus brand tokens: colour, type and motion from the brandbook
|
|
3
|
+
* (sections Colour, Type and Motion). The single copy, light on :root and
|
|
4
|
+
* dark on .dark, as tokens.css. The apps' own look stays in tokens.css.
|
|
5
|
+
*/
|
|
6
|
+
:root {
|
|
7
|
+
/* Light. Slate is the only brand colour; the rest are neutrals. */
|
|
8
|
+
--brand-slate: #1A3860;
|
|
9
|
+
--brand-text: #142033;
|
|
10
|
+
--brand-text-secondary: #56667C;
|
|
11
|
+
--brand-line: #DAE2EC;
|
|
12
|
+
--brand-ground: #F3F6F9;
|
|
13
|
+
--brand-surface: #FFFFFF;
|
|
14
|
+
|
|
15
|
+
/* Meaning, both modes. Never as decoration. */
|
|
16
|
+
--brand-sea: #2BA3C9;
|
|
17
|
+
--brand-coral: #FF6F4E;
|
|
18
|
+
--brand-coral-text: #AE3820;
|
|
19
|
+
--brand-amber: #E8A93A;
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* Type. Bricolage for headlines, big numbers and moments; Geist for
|
|
23
|
+
* everything you read and do; Geist Mono for ship names, ids and times.
|
|
24
|
+
* An app that loads a font under its own name sets the variable.
|
|
25
|
+
*/
|
|
26
|
+
--brand-font-display: var(--font-bricolage-grotesque, "Bricolage Grotesque"), "Trebuchet MS", system-ui, sans-serif;
|
|
27
|
+
--brand-font-text: var(--font-geist-sans, "Geist"), system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
28
|
+
--brand-font-mono: var(--font-geist-mono, "Geist Mono"), ui-monospace, Menlo, monospace;
|
|
29
|
+
--brand-display-weight: 800;
|
|
30
|
+
--brand-display-size-min: 44px;
|
|
31
|
+
--brand-display-size-max: 72px;
|
|
32
|
+
--brand-heading-weight: 700;
|
|
33
|
+
--brand-heading-size-min: 24px;
|
|
34
|
+
--brand-heading-size-max: 38px;
|
|
35
|
+
--brand-number-weight: 700;
|
|
36
|
+
--brand-text-weight-min: 400;
|
|
37
|
+
--brand-text-weight-max: 600;
|
|
38
|
+
--brand-text-size-min: 14px;
|
|
39
|
+
--brand-text-size-max: 16px;
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
* Motion. Events happen once and rest; only states loop, --brand-loop times.
|
|
43
|
+
* A loop starts and ends on its rest frame.
|
|
44
|
+
*/
|
|
45
|
+
--brand-event-min: 600ms;
|
|
46
|
+
--brand-event-max: 1400ms;
|
|
47
|
+
--brand-breath-min: 3s;
|
|
48
|
+
--brand-breath-max: 6s;
|
|
49
|
+
--brand-story-min: 4s;
|
|
50
|
+
--brand-story-max: 5s;
|
|
51
|
+
--brand-drift-min: 7s;
|
|
52
|
+
--brand-drift-max: 18s;
|
|
53
|
+
--brand-urgent: 600ms;
|
|
54
|
+
--brand-loop: infinite;
|
|
55
|
+
--brand-settle: cubic-bezier(.3, 1.6, .5, 1);
|
|
56
|
+
--brand-glide: cubic-bezier(.35, 0, .25, 1);
|
|
57
|
+
--brand-sway: ease-in-out;
|
|
58
|
+
--brand-steady: linear;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Dark is navy, its own palette, never an inverted light mode. */
|
|
62
|
+
.dark {
|
|
63
|
+
--brand-slate: #B6D5F4;
|
|
64
|
+
--brand-text: #E9EEF6;
|
|
65
|
+
--brand-text-secondary: #9DABC2;
|
|
66
|
+
--brand-line: #26335C;
|
|
67
|
+
--brand-ground: #0D1428;
|
|
68
|
+
--brand-surface: #141D38;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/*
|
|
72
|
+
* With reduced motion on, everything stands still at its rest frame: every
|
|
73
|
+
* timing takes no time and a loop runs once, so an animation with fill-mode
|
|
74
|
+
* both shows its last frame.
|
|
75
|
+
*/
|
|
76
|
+
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
:root {
|
|
78
|
+
--brand-event-min: 0s;
|
|
79
|
+
--brand-event-max: 0s;
|
|
80
|
+
--brand-breath-min: 0s;
|
|
81
|
+
--brand-breath-max: 0s;
|
|
82
|
+
--brand-story-min: 0s;
|
|
83
|
+
--brand-story-max: 0s;
|
|
84
|
+
--brand-drift-min: 0s;
|
|
85
|
+
--brand-drift-max: 0s;
|
|
86
|
+
--brand-urgent: 0s;
|
|
87
|
+
--brand-loop: 1;
|
|
88
|
+
}
|
|
89
|
+
}
|
package/dist/theme.css
CHANGED
|
@@ -81,6 +81,8 @@
|
|
|
81
81
|
--text-meta--line-height: var(--text-meta--line-height);
|
|
82
82
|
--text-body: var(--text-body);
|
|
83
83
|
--text-body--line-height: var(--text-body--line-height);
|
|
84
|
+
--text-prose: var(--text-prose);
|
|
85
|
+
--text-prose--line-height: var(--text-prose--line-height);
|
|
84
86
|
--text-section: var(--text-section);
|
|
85
87
|
--text-section--line-height: var(--text-section--line-height);
|
|
86
88
|
--text-body-touch: var(--text-body-touch);
|
package/dist/tokens.css
CHANGED
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
--shadow-sm:0 1px 2px oklch(0.2 0.02 257 / 0.06);
|
|
46
46
|
--shadow-md:0 2px 6px oklch(0.2 0.02 257 / 0.08);
|
|
47
47
|
--shadow-lg:0 16px 40px oklch(0.2 0.02 257 / 0.16), 0 2px 8px oklch(0.2 0.02 257 / 0.08);
|
|
48
|
-
--radius:
|
|
48
|
+
--radius:6px;
|
|
49
49
|
--radius-xs:4px;
|
|
50
|
-
--radius-sm:
|
|
51
|
-
--radius-md:
|
|
52
|
-
--radius-lg:
|
|
50
|
+
--radius-sm:4px;
|
|
51
|
+
--radius-md:6px;
|
|
52
|
+
--radius-lg:8px;
|
|
53
53
|
--radius-xl:12px;
|
|
54
54
|
--radius-2xl:18px;
|
|
55
55
|
--radius-full:9999px;
|
|
@@ -60,8 +60,10 @@
|
|
|
60
60
|
--text-caption--line-height:16px;
|
|
61
61
|
--text-meta:13px;
|
|
62
62
|
--text-meta--line-height:18px;
|
|
63
|
-
--text-body:
|
|
64
|
-
--text-body--line-height:
|
|
63
|
+
--text-body:13px;
|
|
64
|
+
--text-body--line-height:18px;
|
|
65
|
+
--text-prose:14px;
|
|
66
|
+
--text-prose--line-height:20px;
|
|
65
67
|
--text-section:15px;
|
|
66
68
|
--text-section--line-height:20px;
|
|
67
69
|
--text-body-touch:15px;
|
|
@@ -72,8 +74,8 @@
|
|
|
72
74
|
--text-heading--line-height:24px;
|
|
73
75
|
--text-heading-touch:20px;
|
|
74
76
|
--text-heading-touch--line-height:26px;
|
|
75
|
-
--text-title:
|
|
76
|
-
--text-title--line-height:
|
|
77
|
+
--text-title:20px;
|
|
78
|
+
--text-title--line-height:26px;
|
|
77
79
|
--text-title-touch:24px;
|
|
78
80
|
--text-title-touch--line-height:30px;
|
|
79
81
|
--text-metric:28px;
|
|
@@ -82,12 +84,12 @@
|
|
|
82
84
|
--text-id--line-height:16px;
|
|
83
85
|
--text-code:13px;
|
|
84
86
|
--text-code--line-height:20px;
|
|
85
|
-
--size-control-xs:
|
|
86
|
-
--size-control-sm:
|
|
87
|
-
--size-control:
|
|
87
|
+
--size-control-xs:24px;
|
|
88
|
+
--size-control-sm:28px;
|
|
89
|
+
--size-control:32px;
|
|
88
90
|
--size-control-touch:44px;
|
|
89
|
-
--size-row-header:
|
|
90
|
-
--size-row:
|
|
91
|
+
--size-row-header:32px;
|
|
92
|
+
--size-row:40px;
|
|
91
93
|
--size-sidebar:256px;
|
|
92
94
|
--size-rail:64px;
|
|
93
95
|
--size-header:56px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeolus-fleet/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.1",
|
|
4
4
|
"description": "The UI parts every Aeolus web app shows: atoms, molecules and organisms, props only, and the design tokens.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aeolus"
|
|
@@ -22,13 +22,14 @@
|
|
|
22
22
|
"default": "./dist/index.js"
|
|
23
23
|
},
|
|
24
24
|
"./tokens.css": "./dist/tokens.css",
|
|
25
|
-
"./theme.css": "./dist/theme.css"
|
|
25
|
+
"./theme.css": "./dist/theme.css",
|
|
26
|
+
"./brand.css": "./dist/brand.css"
|
|
26
27
|
},
|
|
27
28
|
"files": [
|
|
28
29
|
"dist"
|
|
29
30
|
],
|
|
30
31
|
"scripts": {
|
|
31
|
-
"build": "tsc --project tsconfig.build.json && cp src/tokens.css src/theme.css dist/",
|
|
32
|
+
"build": "tsc --project tsconfig.build.json && cp src/tokens.css src/theme.css src/brand.css dist/",
|
|
32
33
|
"typecheck": "tsc --project tsconfig.json",
|
|
33
34
|
"storybook": "storybook dev --port 6007",
|
|
34
35
|
"build-storybook": "storybook build --output-dir storybook-static",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"postpack": "rm LICENSE"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"@aeolus-fleet/common": "0.
|
|
40
|
+
"@aeolus-fleet/common": "0.37.1",
|
|
40
41
|
"@base-ui/react": "^1.8.0",
|
|
41
42
|
"class-variance-authority": "^0.7.1",
|
|
42
43
|
"clsx": "^2.1.1",
|
|
@@ -46,6 +47,9 @@
|
|
|
46
47
|
"tailwind-merge": "^3.7.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
50
|
+
"@fontsource-variable/bricolage-grotesque": "^5.3.0",
|
|
51
|
+
"@fontsource-variable/geist": "^5.3.0",
|
|
52
|
+
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
49
53
|
"@storybook/addon-vitest": "^10.6.1",
|
|
50
54
|
"@storybook/react-vite": "^10.6.1",
|
|
51
55
|
"@tailwindcss/vite": "^4.3.3",
|