@dataengineeringformachinelearning/viking-ui 1.0.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 ADDED
@@ -0,0 +1,49 @@
1
+ # @dataengineeringformachinelearning/viking-ui
2
+
3
+ **Viking-UI** is DEML's clinical Angular design system — lab-coat aesthetics on THEME.md tokens.
4
+
5
+ - **8px grid** spacing (`--space-1` … `--space-8`)
6
+ - **16px** main content / **14px** UI chrome typography
7
+ - **Crayola blue** (`#2176ff`) primary, **blue-bell** (`#33a1fd`) accents
8
+ - Zero-dependency components (`viking-*` selectors, `--viking-*` tokens)
9
+ - WCAG 2.1 AA focus rings, axe-core tested templates
10
+
11
+ Inspired by [Flux UI](https://fluxui.dev) composability and [Spartan](https://spartan.ng) headless patterns — implemented natively for Angular without Radix/CDK UI deps.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install @dataengineeringformachinelearning/viking-ui
17
+ ```
18
+
19
+ Peer dependencies: `@angular/core` ^22, `@angular/common` ^22, `@angular/forms` ^22.
20
+
21
+ ## Usage
22
+
23
+ ```typescript
24
+ import { VikingButton, VikingField, VikingInput } from '@dataengineeringformachinelearning/viking-ui';
25
+ ```
26
+
27
+ Load static CSS for non-Angular surfaces (marketing, Django templates):
28
+
29
+ ```html
30
+ <link rel="stylesheet" href="/assets/design-tokens.css" />
31
+ <link rel="stylesheet" href="/assets/viking-ui.css" />
32
+ ```
33
+
34
+ ## Build
35
+
36
+ ```bash
37
+ npm run build:viking-ui
38
+ npm run build:viking-ui-css
39
+ npm run serve:viking-ui-showcase
40
+ ```
41
+
42
+ ## Publish
43
+
44
+ Requires membership in the npm org `dataengineeringformachinelearning` (scope `@dataengineeringformachinelearning`).
45
+
46
+ ```bash
47
+ cd frontend && npm run build:viking-ui
48
+ cd dist/viking-ui && npm publish --access public --otp=YOUR_CODE
49
+ ```