@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 +49 -0
- package/fesm2022/dataengineeringformachinelearning-viking-ui.mjs +5949 -0
- package/fesm2022/dataengineeringformachinelearning-viking-ui.mjs.map +1 -0
- package/package.json +38 -0
- package/src/styles/layout-shell.scss +83 -0
- package/src/styles/page-shell.scss +229 -0
- package/src/styles/static-navbar.scss +460 -0
- package/src/styles/viking-ui-bundle.scss +4 -0
- package/src/styles/viking-ui.scss +108 -0
- package/types/dataengineeringformachinelearning-viking-ui.d.ts +1374 -0
- package/viking.manifest.json +189 -0
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
|
+
```
|