@privateaim/client-vue-theme 0.11.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/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2024 PrivateAIM
190
+ Copyright 2020 - 2023 Peter Placzek
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,27 @@
1
+ import clientWebKitTheme, { merge } from "@authup/client-web-kit-theme";
2
+
3
+ //#region src/index.d.ts
4
+ /**
5
+ * App-level theme. Layers PrivateAIM app-specific concerns (Bootstrap-compat
6
+ * class shims, heading scale, brand tokens) on top of the kit theme.
7
+ *
8
+ * Consumers register both themes — order matters: the kit-level theme
9
+ * first so its element class strings are the baseline, then the app
10
+ * theme so its overrides win:
11
+ *
12
+ * import clientWebKitTheme from '@authup/client-web-kit-theme';
13
+ * import clientVueTheme from '@privateaim/client-vue-theme';
14
+ *
15
+ * app.use(vuecs, {
16
+ * themes: [clientWebKitTheme(), clientVueTheme()],
17
+ * });
18
+ *
19
+ * Reskinning (palette swap, dark mode) is handled by redefining
20
+ * `--vc-color-*` variables — `setColorPalette()` from
21
+ * `@vuecs/theme-tailwind` or toggling `.dark` on `<html>` works without
22
+ * any theme configuration here.
23
+ */
24
+ declare function clientVueTheme(): import("@vuecs/core").Theme;
25
+ //#endregion
26
+ export { clientWebKitTheme, clientVueTheme as default, merge };
27
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;AASmF;;;;AAsB7C;;;;;;;;;;;;;;iBAAd,cAAA,0BAAc,KAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,33 @@
1
+ import { defineTheme, extend } from "@vuecs/core";
2
+ import clientWebKitTheme, { merge } from "@authup/client-web-kit-theme";
3
+ //#region src/index.ts
4
+ /**
5
+ * App-level theme. Layers PrivateAIM app-specific concerns (Bootstrap-compat
6
+ * class shims, heading scale, brand tokens) on top of the kit theme.
7
+ *
8
+ * Consumers register both themes — order matters: the kit-level theme
9
+ * first so its element class strings are the baseline, then the app
10
+ * theme so its overrides win:
11
+ *
12
+ * import clientWebKitTheme from '@authup/client-web-kit-theme';
13
+ * import clientVueTheme from '@privateaim/client-vue-theme';
14
+ *
15
+ * app.use(vuecs, {
16
+ * themes: [clientWebKitTheme(), clientVueTheme()],
17
+ * });
18
+ *
19
+ * Reskinning (palette swap, dark mode) is handled by redefining
20
+ * `--vc-color-*` variables — `setColorPalette()` from
21
+ * `@vuecs/theme-tailwind` or toggling `.dark` on `<html>` works without
22
+ * any theme configuration here.
23
+ */
24
+ function clientVueTheme() {
25
+ return defineTheme({ elements: {
26
+ tableHeadCell: { classes: { root: "px-3 font-medium" } },
27
+ pagination: { classes: { link: extend("enabled:hover:bg-primary-600! enabled:hover:text-on-primary! enabled:hover:border-primary-600! enabled:focus-visible:bg-primary-600! enabled:focus-visible:text-on-primary! enabled:focus-visible:border-primary-600!") } }
28
+ } });
29
+ }
30
+ //#endregion
31
+ export { clientWebKitTheme, clientVueTheme as default, merge };
32
+
33
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright (c) 2024-2026.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport { defineTheme, extend } from '@vuecs/core';\n\nexport { default as clientWebKitTheme, merge } from '@authup/client-web-kit-theme';\n\n/**\n * App-level theme. Layers PrivateAIM app-specific concerns (Bootstrap-compat\n * class shims, heading scale, brand tokens) on top of the kit theme.\n *\n * Consumers register both themes — order matters: the kit-level theme\n * first so its element class strings are the baseline, then the app\n * theme so its overrides win:\n *\n * import clientWebKitTheme from '@authup/client-web-kit-theme';\n * import clientVueTheme from '@privateaim/client-vue-theme';\n *\n * app.use(vuecs, {\n * themes: [clientWebKitTheme(), clientVueTheme()],\n * });\n *\n * Reskinning (palette swap, dark mode) is handled by redefining\n * `--vc-color-*` variables — `setColorPalette()` from\n * `@vuecs/theme-tailwind` or toggling `.dark` on `<html>` works without\n * any theme configuration here.\n */\nexport default function clientVueTheme() {\n return defineTheme({\n elements: {\n tableHeadCell: { classes: { root: 'px-3 font-medium' } },\n /*\n * Hovering / focusing a page button previews the active-page\n * paint (\"click → this page\"). `extend()` appends to the\n * theme-tailwind base `link` classes; the `!` suffix wins over\n * per-variant hover utilities the same way the stock\n * `linkActive` classes do. `enabled:` keeps disabled\n * first/prev/next/last buttons unpainted.\n */\n pagination: {\n classes: {\n link: extend(\n 'enabled:hover:bg-primary-600! enabled:hover:text-on-primary! enabled:hover:border-primary-600! ' +\n 'enabled:focus-visible:bg-primary-600! enabled:focus-visible:text-on-primary! enabled:focus-visible:border-primary-600!',\n ),\n },\n },\n },\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAwB,iBAAiB;CACrC,OAAO,YAAY,EACf,UAAU;EACN,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,EAAE;EASvD,YAAY,EACR,SAAS,EACL,MAAM,OACF,uNAEJ,EACJ,EACJ;CACJ,EACJ,CAAC;AACL"}
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@privateaim/client-vue-theme",
3
+ "type": "module",
4
+ "version": "0.11.0",
5
+ "description": "PrivateAIM theme for vuecs components, built on top of @vuecs/theme-tailwind.",
6
+ "license": "Apache-2.0",
7
+ "exports": {
8
+ "./package.json": "./package.json",
9
+ ".": {
10
+ "types": "./dist/index.d.mts",
11
+ "style": "./src/index.css",
12
+ "import": "./dist/index.mjs"
13
+ },
14
+ "./index.css": "./src/index.css",
15
+ "./src/index.css": "./src/index.css"
16
+ },
17
+ "module": "./dist/index.mjs",
18
+ "types": "./dist/index.d.mts",
19
+ "files": [
20
+ "dist",
21
+ "src/index.css"
22
+ ],
23
+ "scripts": {
24
+ "build": "rimraf ./dist && tsdown"
25
+ },
26
+ "keywords": [
27
+ "privateaim",
28
+ "vuecs",
29
+ "theme",
30
+ "tailwindcss",
31
+ "ui-theme"
32
+ ],
33
+ "author": {
34
+ "name": "Peter Placzek",
35
+ "email": "contact@tada5hi.net",
36
+ "url": "https://github.com/tada5hi"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/PrivateAim/hub.git",
41
+ "directory": "packages/client-vue-theme"
42
+ },
43
+ "bugs": {
44
+ "url": "https://github.com/PrivateAim/hub/issues"
45
+ },
46
+ "homepage": "https://github.com/PrivateAim/hub#readme",
47
+ "dependencies": {
48
+ "@authup/client-web-kit-theme": "^1.0.0-beta.48",
49
+ "@vuecs/design": "^1.0.4",
50
+ "@vuecs/theme-tailwind": "^4.0.0"
51
+ },
52
+ "peerDependencies": {
53
+ "@vuecs/core": "^3.x",
54
+ "@vuecs/design": "^1.x",
55
+ "@vuecs/theme-tailwind": "^4.x",
56
+ "tailwindcss": "^4.x"
57
+ },
58
+ "publishConfig": {
59
+ "access": "public"
60
+ }
61
+ }
package/src/index.css ADDED
@@ -0,0 +1,501 @@
1
+ /*!
2
+ * @privateaim/client-vue-theme — app-level layer on top of
3
+ * `@authup/client-web-kit-theme`.
4
+ *
5
+ * Cascade order (apps consume this file; the kit theme's cascade
6
+ * is included transitively):
7
+ * 1. tailwindcss — via the kit theme
8
+ * 2. @vuecs/design — via the kit theme
9
+ * 3. @vuecs/theme-tailwind — via the kit theme
10
+ * 4. privateaim tokens — project palette / chrome / typography
11
+ * 5. privateaim compat layer — Bootstrap-shaped class shims (@apply'd
12
+ * from Tailwind utilities). Phased out
13
+ * as templates migrate to <VCButton> /
14
+ * <VCAlert> / etc.
15
+ */
16
+
17
+ /*
18
+ * Kit-theme CSS cascade — consumed from npm.
19
+ *
20
+ * `@authup/client-web-kit-theme` 1.0.0-beta.48 fixed the beta.44
21
+ * packaging bug (published `src/index.css` imported stylesheets missing
22
+ * from the tarball) that previously forced hub to inline this cascade.
23
+ * The published `index.css` brings tailwindcss + @vuecs/design +
24
+ * @vuecs/theme-tailwind, the authup kit-component styles
25
+ * (tokens/picker/auth/realm/login — formerly
26
+ * `@authup/client-web-kit/dist/style.css`, which beta.48 no longer
27
+ * ships), the `.dark` class `@custom-variant`, and `@source` scopes for
28
+ * the kit's own class strings.
29
+ *
30
+ * The two stylesheets under styles/kit-*.css stay vendored: upstream
31
+ * dropped list.css / form-validation.css from the theme entirely, and
32
+ * hub's copies carry vc-* class-name deltas on top.
33
+ */
34
+ @layer theme, vuecs, authup, base, components, utilities;
35
+
36
+ @import "@authup/client-web-kit-theme/index.css";
37
+
38
+ /*
39
+ * Only the theme's own sources are scanned here. Dependency trees
40
+ * (@vuecs/*, @authup/client-web-kit) must be declared by the CONSUMING
41
+ * app (see apps/client-ui/assets/css/tailwind.css) — npm hoisting decides
42
+ * where those packages physically live relative to the app, so
43
+ * node_modules-relative globs anchored at this package silently miss
44
+ * them (and previously did: the @authup globs here resolved to
45
+ * nonexistent paths).
46
+ */
47
+ @source ".";
48
+
49
+ @import "./styles/kit-list.css";
50
+ @import "./styles/kit-form-validation.css";
51
+
52
+ /* ------------------------------------------------------------------
53
+ PrivateAIM design tokens
54
+ Override `--vc-color-*` (or palette names via setColorPalette()) to
55
+ reskin the entire UI without touching component class strings.
56
+ ------------------------------------------------------------------ */
57
+ @layer base {
58
+ /*
59
+ * PrivateAIM chrome + brand tokens. Two shapes:
60
+ *
61
+ * 1. Chrome (header, navbar, sidebar, navbar dropdowns) flips with
62
+ * mode. Light-mode defaults alias `--vc-color-bg-elevated` /
63
+ * `-fg` / `-border` etc. so the chrome reads as a light surface
64
+ * distinct from the page-content bg. The `.dark` block below
65
+ * restores hub's historical warm-dark chrome palette so the
66
+ * chrome stays the recognizable dark grey.
67
+ *
68
+ * 2. Brand accents (coral, teal, purple, blue, rust) carry hub's
69
+ * identity and are hard-coded; they read fine on both light and
70
+ * dark backgrounds. They are used as text/accent colors on
71
+ * chrome surfaces, so they flip alongside the chrome they sit on.
72
+ */
73
+ :root {
74
+ /* Chrome — light-mode defaults, alias semantic vuecs tokens */
75
+ --privateaim-chrome-bg: var(--vc-color-bg-elevated);
76
+ --privateaim-chrome-bg-elevated: var(--vc-color-bg-muted);
77
+ --privateaim-chrome-fg: var(--vc-color-fg);
78
+ --privateaim-chrome-fg-muted: var(--vc-color-fg-muted);
79
+ --privateaim-chrome-border: var(--vc-color-border);
80
+ /* Chrome edge where it meets the content — `-bottom` for top chrome
81
+ (header / sidebar-header), `-top` for bottom chrome (footer).
82
+ Light mode: a soft drop shadow so the fixed chrome reads as
83
+ raised above the content (the dark inset band used in dark mode
84
+ would be a muddy grey stripe on a light surface). */
85
+ --privateaim-chrome-edge-shadow-bottom: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
86
+ --privateaim-chrome-edge-shadow-top: 0 -2px 8px 0 rgba(0, 0, 0, 0.06);
87
+ --privateaim-chrome-edge-shadow-right: 2px 0 8px 0 rgba(0, 0, 0, 0.06);
88
+
89
+ /* Brand accents — unchanged across modes */
90
+ --privateaim-brand-coral: #FF5B5B;
91
+ --privateaim-brand-teal: #4ECDC4;
92
+ --privateaim-brand-purple: #6259ca;
93
+ --privateaim-brand-blue: #2776dc;
94
+ --privateaim-brand-rust: #a6592d;
95
+
96
+ /*
97
+ * Primary palette → hub brand coral. Overrides the vuecs primary
98
+ * scale (which @vuecs/design aliases to blue); theme-tailwind
99
+ * bridges `--color-primary-*` from these, so every `primary`
100
+ * utility/component (buttons, active states, rings) adopts the
101
+ * brand coral. Tints/shades are color-mixed from the brand var so
102
+ * the whole scale stays in sync with it; the pure brand sits at
103
+ * 600 — the shade buttons and active states use.
104
+ */
105
+ --vc-color-primary-50: color-mix(in oklab, var(--privateaim-brand-coral) 8%, white);
106
+ --vc-color-primary-100: color-mix(in oklab, var(--privateaim-brand-coral) 16%, white);
107
+ --vc-color-primary-200: color-mix(in oklab, var(--privateaim-brand-coral) 32%, white);
108
+ --vc-color-primary-300: color-mix(in oklab, var(--privateaim-brand-coral) 52%, white);
109
+ --vc-color-primary-400: color-mix(in oklab, var(--privateaim-brand-coral) 74%, white);
110
+ --vc-color-primary-500: color-mix(in oklab, var(--privateaim-brand-coral) 90%, white);
111
+ --vc-color-primary-600: var(--privateaim-brand-coral);
112
+ --vc-color-primary-700: color-mix(in oklab, var(--privateaim-brand-coral) 82%, black);
113
+ --vc-color-primary-800: color-mix(in oklab, var(--privateaim-brand-coral) 64%, black);
114
+ --vc-color-primary-900: color-mix(in oklab, var(--privateaim-brand-coral) 50%, black);
115
+ --vc-color-primary-950: color-mix(in oklab, var(--privateaim-brand-coral) 32%, black);
116
+ }
117
+
118
+ /*
119
+ * Dark-mode overrides. Two distinct moves:
120
+ *
121
+ * a) Restore hub's historical warm-dark chrome palette so the dark
122
+ * chrome stays the recognizable dark grey rather than vuecs's
123
+ * `bg-elevated` value, which would blend into the page-content bg.
124
+ *
125
+ * b) Soften the content background. `@vuecs/design`'s `.dark` puts
126
+ * `--vc-color-bg` at neutral-900 (~20.5% L) — near-black — which
127
+ * feels harsh against hub's warm dark chrome. Lift it so the
128
+ * content surface pairs with the chrome as a gentle tonal step.
129
+ */
130
+ .dark {
131
+ --privateaim-chrome-bg: rgb(64, 67, 78);
132
+ --privateaim-chrome-bg-elevated: #32333B;
133
+ --privateaim-chrome-fg: #ffffff;
134
+ --privateaim-chrome-fg-muted: #aeb2b7;
135
+ --privateaim-chrome-border: #333333;
136
+ /* Recessed band — hub's historical raised-dark-chrome edge. The
137
+ sidebar's right edge stays shadow-free: the chrome/content tonal
138
+ step carries the separation in dark mode. */
139
+ --privateaim-chrome-edge-shadow-bottom: 0 -6px 0 0 rgba(0, 0, 0, 0.3) inset;
140
+ --privateaim-chrome-edge-shadow-top: 0 6px 0 0 rgba(0, 0, 0, 0.3) inset;
141
+ --privateaim-chrome-edge-shadow-right: none;
142
+
143
+ /*
144
+ * Content surface — soft dark that pairs with the warm chrome
145
+ * (#40434E) as a gentle tonal step. @vuecs/design's dark `--vc-color-fg`
146
+ * is light (neutral-200), so the surface MUST stay dark; the prior
147
+ * `neutral-400` (a light-mid grey) left light text on light grey
148
+ * (~1.7:1, unreadable). Content sits a touch darker than the chrome so
149
+ * the sidebar/header read as raised panels.
150
+ */
151
+ --vc-color-bg: #2a2d35;
152
+ --vc-color-bg-muted: #343742;
153
+ --vc-color-border: #3e414c;
154
+
155
+ /*
156
+ * Warning / danger surfaces — tinted panels (alert-warning,
157
+ * alert-danger, list no-more / empty markers). Hand-tuned
158
+ * mid-lightness, low-chroma tones: the palette deep ends
159
+ * (orange-950 / red-950) read brown/black against the soft dark
160
+ * content surface. Border sits a step lighter than the fill
161
+ * (edge highlight); panel text is a hue-matched near-white.
162
+ */
163
+ --privateaim-warning-surface: oklch(0.55 0.06 66.93);
164
+ --privateaim-warning-surface-border: oklch(0.65 0.08 66.93);
165
+ --privateaim-warning-surface-fg: oklch(0.97 0.02 66.93);
166
+
167
+ --privateaim-danger-surface: oklch(0.45 0.11 22.78);
168
+ --privateaim-danger-surface-border: oklch(0.55 0.13 22.78);
169
+ --privateaim-danger-surface-fg: oklch(0.97 0.015 22.78);
170
+
171
+ --privateaim-info-surface: oklch(0.5 0.08 237);
172
+ --privateaim-info-surface-border: oklch(0.6 0.1 237);
173
+ --privateaim-info-surface-fg: oklch(0.97 0.015 237);
174
+
175
+ /*
176
+ * Standalone warning / danger text (`.text-warning` /
177
+ * `.text-danger`) — same hues as the surfaces, lifted to stay
178
+ * readable on the dark content background (the surface values
179
+ * themselves land below ~3:1 as text).
180
+ */
181
+ --privateaim-warning-text: oklch(0.75 0.1 66.93);
182
+ --privateaim-danger-text: oklch(0.7 0.14 22.78);
183
+ --privateaim-info-text: oklch(0.75 0.12 237);
184
+ }
185
+
186
+ /*
187
+ * Tailwind v4 preflight resets every heading to inherit the parent
188
+ * font-size. Restore the heading size scale here once, project-wide.
189
+ * Font-family + font-weight come from styles/root.css.
190
+ */
191
+ h1 { @apply text-4xl; }
192
+ h2 { @apply text-3xl; }
193
+ h3 { @apply text-2xl; }
194
+ h4 { @apply text-xl; }
195
+ h5 { @apply text-lg; }
196
+ h6 { @apply text-base; }
197
+
198
+ /*
199
+ * Tailwind v4 preflight sets `svg { display: block }`, which breaks
200
+ * inline icon-next-to-text layouts. `@iconify/vue` tags every
201
+ * rendered SVG with `class="iconify ..."` — scope the override to
202
+ * those so full-bleed `<svg>` illustrations keep `display: block`.
203
+ */
204
+ svg.iconify {
205
+ display: inline-block;
206
+ vertical-align: -0.125em;
207
+ }
208
+
209
+ /*
210
+ * Pin Iconify icons inside nav-links to a fixed 1rem box. Without
211
+ * this the SVG sizes against the inherited font-size (which varies
212
+ * between the navbar's smaller letter-spaced text and elsewhere),
213
+ * and the width="0.75em" / width="1em" attributes from @iconify/vue
214
+ * render at different pixel widths depending on context, breaking
215
+ * cross-axis alignment of sibling nav items. Pre-migration the
216
+ * anchor `<i>` icons were size-pinned via
217
+ * `.navbar-gadgets > li > a i { font-size: 16px }` in core/navbar.css;
218
+ * the SVG path needs the equivalent.
219
+ */
220
+ .vc-nav-link svg.iconify {
221
+ width: 1rem;
222
+ height: 1rem;
223
+ }
224
+
225
+ /*
226
+ * Tailwind v4 preflight resets `<hr>` margins to 0. Restore vertical
227
+ * rhythm + a muted divider color project-wide.
228
+ */
229
+ hr {
230
+ margin-top: 1rem;
231
+ margin-bottom: 1rem;
232
+ border-color: var(--vc-color-border);
233
+ }
234
+
235
+ /*
236
+ * Plain text-alignment helpers. Hub's templates use `text-left` /
237
+ * `text-right` directly (carried over from the Bootstrap era); both
238
+ * collide with Tailwind utilities of the same name, so keep them in
239
+ * `@layer base` where the utility layer still wins when both apply.
240
+ */
241
+ .text-left { text-align: left; }
242
+ .text-right { text-align: right; }
243
+ }
244
+
245
+ /* ------------------------------------------------------------------
246
+ Bootstrap-compat layer
247
+ Provides the Bootstrap-shaped utility / component class names that
248
+ hub's pre-Tailwind templates still reference. Each rule `@apply`s
249
+ Tailwind utilities — same visual contract, no `bootstrap` dep, and
250
+ the rules disappear automatically when the last caller is rewritten
251
+ to a `<VC*>` component.
252
+ ------------------------------------------------------------------ */
253
+ @layer components {
254
+ /* Buttons --------------------------------------------------------- */
255
+ .btn {
256
+ @apply inline-flex items-center justify-center gap-1 rounded-md
257
+ border border-transparent px-3 py-1.5 text-sm font-medium
258
+ transition-colors cursor-pointer
259
+ focus-visible:outline-2 focus-visible:outline-offset-2
260
+ focus-visible:outline-primary-500
261
+ disabled:opacity-50 disabled:cursor-not-allowed;
262
+ }
263
+ .btn-xs { @apply px-1.5! py-1.25! text-xs!; }
264
+ .btn-sm { @apply px-2! py-1! text-xs!; }
265
+ .btn-md { @apply px-2! py-1! text-base!; }
266
+ .btn-lg { @apply px-4! py-2! text-base!; }
267
+ .btn-block { @apply block w-full; }
268
+
269
+ .btn-primary { @apply bg-primary-600 text-on-primary hover:bg-primary-700; }
270
+ .btn-secondary { @apply bg-bg-elevated text-fg hover:bg-bg-muted; }
271
+ .btn-success { @apply bg-success-600 text-on-success hover:bg-success-700; }
272
+ .btn-danger { @apply bg-error-600 text-on-error hover:bg-error-700; }
273
+ .btn-warning { @apply bg-warning-500 text-on-warning hover:bg-warning-600; }
274
+ /* btn-info is reachable only via dynamic `btn-${classSuffix}`
275
+ (F*Command components) — keep it despite zero static users. */
276
+ .btn-info { @apply bg-info-500 text-on-info hover:bg-info-600; }
277
+ .btn-dark { @apply bg-fg text-bg hover:opacity-80; }
278
+
279
+ /* Semantic color aliases — status/approval components build
280
+ `text-${suffix}` / `bg-${suffix}` / `btn-${suffix}` dynamically
281
+ (FProcessStatus, F*ApprovalStatus, F*Command, …), which the Tailwind
282
+ scanner cannot see; these map the Bootstrap-era bare names onto the
283
+ token scale. `bg-dark` / `bg-secondary` pair with white `text-light`
284
+ chips, so they pin the RAW neutral scale (mode-stable) rather than
285
+ the flipped semantic `fg` token. */
286
+ .text-primary { @apply text-primary-600; }
287
+ .text-success { @apply text-success-600; }
288
+ .text-warning { @apply text-warning-600; }
289
+ .text-danger { @apply text-error-600; }
290
+ .text-info { @apply text-info-600; }
291
+ .text-dark { @apply text-fg; }
292
+ .text-light { @apply text-white; }
293
+
294
+ /* Dark mode — the 600 weights are tuned for light surfaces and turn
295
+ harsh/dim on the dark content bg; lift warning/danger/info to the
296
+ hand-tuned text tokens (same hues as the alert surfaces). */
297
+ .dark .text-warning { color: var(--privateaim-warning-text); }
298
+ .dark .text-danger { color: var(--privateaim-danger-text); }
299
+ .dark .text-info { color: var(--privateaim-info-text); }
300
+
301
+ .bg-primary { @apply bg-primary-600; }
302
+ .bg-success { @apply bg-success-600; }
303
+ .bg-warning { @apply bg-warning-500; }
304
+ /* 500 (not 600) — Tailwind red-600 reads much harsher than the old
305
+ Bootstrap #dc3545 on the white-text node execution status banner
306
+ (the only `bg-danger` consumer); 500 matches bg-warning's weight. */
307
+ .bg-danger { @apply bg-error-500; }
308
+ .bg-secondary { background-color: var(--vc-color-neutral-500); }
309
+ .bg-dark { background-color: var(--vc-color-neutral-800); }
310
+
311
+ .btn-outline-primary { @apply border-primary-600 text-primary-600 hover:bg-primary-600 hover:text-on-primary; }
312
+ .btn-outline-secondary { @apply border-border text-fg hover:bg-bg-muted; }
313
+ .btn-outline-danger { @apply border-error-600 text-error-600 hover:bg-error-600 hover:text-on-error; }
314
+ .btn-outline-info { @apply border-info-500 text-info-600 hover:bg-info-500 hover:text-on-info; }
315
+ .btn-outline-dark { @apply border-fg text-fg hover:bg-fg hover:text-bg; }
316
+
317
+ /* Grid — Bootstrap-style 12-col layout via flex (not CSS grid). */
318
+ .row { @apply flex flex-wrap; margin-left: -0.5rem; margin-right: -0.5rem; }
319
+ .col { @apply flex-1 basis-0 px-2; }
320
+ .col-1 { @apply w-1/12 px-2; }
321
+ .col-2 { @apply w-2/12 px-2; }
322
+ .col-3 { @apply w-3/12 px-2; }
323
+ .col-4 { @apply w-4/12 px-2; }
324
+ .col-5 { @apply w-5/12 px-2; }
325
+ .col-6 { @apply w-6/12 px-2; }
326
+ .col-7 { @apply w-7/12 px-2; }
327
+ .col-8 { @apply w-8/12 px-2; }
328
+ .col-9 { @apply w-9/12 px-2; }
329
+ .col-10 { @apply w-10/12 px-2; }
330
+ .col-11 { @apply w-11/12 px-2; }
331
+ .col-12 { @apply w-full px-2; }
332
+
333
+ /* Responsive columns — md+ breakpoint (hub uses col-sm, col-md, col-lg variants). */
334
+ .col-sm { @apply px-2 sm:flex-1 sm:basis-0; }
335
+ .col-sm-4 { @apply w-full px-2 sm:w-4/12; }
336
+ .col-md { @apply px-2 md:flex-1 md:basis-0; }
337
+ .col-md-3 { @apply w-full px-2 md:w-3/12; }
338
+ .col-md-4 { @apply w-full px-2 md:w-4/12; }
339
+ .col-md-6 { @apply w-full px-2 md:w-6/12; }
340
+ .col-lg-6 { @apply w-full px-2 lg:w-6/12; }
341
+
342
+ .container { @apply mx-auto w-full max-w-screen-lg px-4; }
343
+ .container-fluid { @apply w-full px-4; }
344
+
345
+ /* Cards — the full mechanism (base + variants, all variable-driven)
346
+ lives in styles/card.css, imported below into @layer components. */
347
+
348
+ /* Alerts ---------------------------------------------------------
349
+ The tinted variants use raw palette steps that do NOT flip with
350
+ the mode — in dark mode the light `*-50` fills glare against the
351
+ dark surface, so each variant carries a deep-end dark recipe
352
+ (950 fill / 900 border / 300 text). `.alert-dark` builds on
353
+ semantic tokens and adapts on its own. */
354
+ .alert { @apply relative mb-3 rounded-md border px-4 py-3; }
355
+ .alert-sm { @apply px-3 py-2 text-sm; }
356
+ .alert-primary { @apply border-primary-200 bg-primary-50 text-primary-700 dark:border-primary-900 dark:bg-primary-950 dark:text-primary-300; }
357
+ .alert-success { @apply border-success-200 bg-success-50 text-success-700 dark:border-success-900 dark:bg-success-950 dark:text-success-300; }
358
+ /* Orange scale (not the amber `warning` tokens) — amber's dark end
359
+ reads brown; orange keeps the warm tone in both modes. */
360
+ .alert-warning { @apply border-orange-200 bg-orange-50 text-orange-700; }
361
+ .alert-danger { @apply border-error-200 bg-error-50 text-error-700; }
362
+ .alert-info { @apply border-info-200 bg-info-50 text-info-700; }
363
+ .alert-dark { @apply border-border bg-bg-elevated text-fg; }
364
+
365
+ /* Warning / danger / info dark recipes use the hand-tuned surface
366
+ tokens (see the `.dark` token block above) — the palette deep
367
+ ends the other variants use read brown/black/near-navy. */
368
+ .dark .alert-warning {
369
+ background-color: var(--privateaim-warning-surface);
370
+ border-color: var(--privateaim-warning-surface-border);
371
+ color: var(--privateaim-warning-surface-fg);
372
+ }
373
+ .dark .alert-danger {
374
+ background-color: var(--privateaim-danger-surface);
375
+ border-color: var(--privateaim-danger-surface-border);
376
+ color: var(--privateaim-danger-surface-fg);
377
+ }
378
+ .dark .alert-info {
379
+ background-color: var(--privateaim-info-surface);
380
+ border-color: var(--privateaim-info-surface-border);
381
+ color: var(--privateaim-info-surface-fg);
382
+ }
383
+
384
+ /* Badges --------------------------------------------------------- */
385
+ .badge {
386
+ @apply inline-flex items-center rounded-full px-2 py-0.5
387
+ text-xs font-medium;
388
+ }
389
+
390
+ /* Progress — Bootstrap-shaped track + bar (analysis build/exec/
391
+ distribution steps, master-image card). The bar's color comes from a
392
+ `bg-*` utility on the markup and its width from an inline style; this
393
+ only restores the structure Bootstrap used to provide. */
394
+ .progress {
395
+ /* `bg-bg` (the base content surface) + a border, NOT `bg-bg-muted`:
396
+ the track is mostly consumed inside `.card-grey` whose `--card-bg`
397
+ IS `bg-bg-muted`, so a muted track vanished into the card. The
398
+ darker base fill reads as a recessed groove and the border keeps
399
+ the shape detectable on any surface. */
400
+ @apply flex h-4 overflow-hidden rounded-md border border-border bg-bg text-xs;
401
+ }
402
+ .progress-bar {
403
+ @apply flex flex-col justify-center overflow-hidden whitespace-nowrap
404
+ text-center text-white;
405
+ transition: width 0.5s ease;
406
+ }
407
+
408
+ /* Nav / navbar --------------------------------------------------- */
409
+ .nav { @apply flex flex-wrap; }
410
+ .nav-item { @apply list-none; }
411
+ .nav-link { @apply block px-3 py-2 text-fg hover:text-primary-600 no-underline; }
412
+ .nav-link.active { @apply text-primary-600; }
413
+ .navbar { @apply flex flex-wrap items-center justify-between; }
414
+ .navbar-nav { @apply flex flex-col list-none; }
415
+ .navbar-toggler { @apply rounded border border-border px-2 py-1; }
416
+ .navbar-collapse { @apply grow basis-full items-center; }
417
+
418
+ .navbar-collapse:not(.show) { @apply hidden; }
419
+ .navbar-expand-md .navbar-collapse { @apply md:flex!; }
420
+ .navbar-expand-md .navbar-nav { @apply md:flex-row!; }
421
+ .navbar-expand-md { @apply md:flex-nowrap md:justify-start; }
422
+
423
+ /* Forms — minimal shims (vuecs SFCs own the real form styles) ---- */
424
+ .form-group { @apply mb-3; }
425
+ .form-switch { @apply inline-flex items-center gap-2; }
426
+
427
+ /* Pagination — joined-tab look over theme-tailwind's per-button
428
+ rounded-md. */
429
+ .vc-pagination .vc-pagination-link {
430
+ @apply !rounded-none;
431
+ margin-left: -1px;
432
+ }
433
+ .vc-pagination > :first-child .vc-pagination-link {
434
+ @apply !rounded-l-md;
435
+ margin-left: 0;
436
+ }
437
+ .vc-pagination > :last-child .vc-pagination-link {
438
+ @apply !rounded-r-md;
439
+ }
440
+
441
+ /* Form validation visual state. */
442
+ .is-valid {
443
+ @apply border-success-600 ring-1 ring-success-500;
444
+ }
445
+
446
+ /* Dropdowns — Bootstrap-style toggle/menu (also used by the
447
+ navbar/sidebar chrome). The `hidden` on `.dropdown-menu` is
448
+ load-bearing; the toggle's click handler flips `.show`. */
449
+ .dropdown { @apply relative; }
450
+ .dropdown-toggle { @apply cursor-pointer; }
451
+ .dropdown-menu {
452
+ @apply absolute top-full left-0 z-50 hidden min-w-40 rounded-md
453
+ border border-border bg-bg py-1 shadow-md;
454
+ }
455
+ .dropdown-menu-end { @apply left-auto right-0; }
456
+ .dropdown-menu.show { @apply block; }
457
+ .dropdown-item {
458
+ @apply block w-full cursor-pointer border-0 bg-transparent
459
+ px-3 py-1 text-left text-sm text-fg hover:bg-bg-muted;
460
+ }
461
+ .dropdown-item.active {
462
+ @apply bg-primary-600 text-on-primary hover:bg-primary-700;
463
+ }
464
+ .dropdown-divider { @apply my-1 h-px bg-border; }
465
+
466
+ /* Modal — INNER chrome only. The backdrop / positioning shell is
467
+ owned by Reka / <VCModalContent> (@vuecs/overlays); hub mounts
468
+ VCModal compound directly. These rules style the structural
469
+ classes still carried on the markup inside <VCModalContent>
470
+ (.modal-header / .modal-body / .modal-footer / .modal-title /
471
+ .btn-close). */
472
+ .modal-header { @apply flex items-center justify-between border-b border-border px-4 py-3; }
473
+ .modal-title { @apply font-semibold; }
474
+ .modal-body { @apply px-4 py-3; }
475
+ .modal-footer { @apply flex items-center justify-end gap-2 border-t border-border px-4 py-3; }
476
+ .btn-close {
477
+ @apply cursor-pointer border-0 bg-transparent text-fg-muted
478
+ hover:text-fg;
479
+ }
480
+ }
481
+
482
+ /* ------------------------------------------------------------------
483
+ PrivateAIM app styles — chrome (header, navbar, sidebar, body)
484
+ + project utilities + login chrome. Layered LAST so app-specific
485
+ selectors win over the Tailwind utility / compat layers when the
486
+ classes overlap.
487
+ ------------------------------------------------------------------ */
488
+ @import "./styles/root.css";
489
+ @import "./styles/colors.css";
490
+ @import "./styles/domain.css";
491
+ @import "./styles/card.css";
492
+ @import "./styles/vue-layout-navigation.css";
493
+ @import "./styles/vue-form-wizard.css";
494
+ @import "./styles/core/header.css";
495
+ @import "./styles/core/navbar.css";
496
+ @import "./styles/core/body.css";
497
+ @import "./styles/core/sidebar.css";
498
+
499
+ /* Pagination hover/focus preview lives in the JS theme —
500
+ `clientVueTheme()` (src/index.ts) extends the pagination `link` theme
501
+ classes instead of fighting `@layer utilities` from here. */