@akcelik/strct 0.1.1 → 0.3.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 +11 -1
- package/fesm2022/akcelik-strct.mjs +822 -92
- package/fesm2022/akcelik-strct.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_fonts.scss +49 -0
- package/styles/fonts/dm-sans-400.woff2 +0 -0
- package/styles/fonts/dm-sans-500.woff2 +0 -0
- package/styles/fonts/dm-sans-600.woff2 +0 -0
- package/styles/fonts/dm-sans-700.woff2 +0 -0
- package/styles/fonts/jetbrains-mono-400.woff2 +0 -0
- package/styles/fonts/jetbrains-mono-500.woff2 +0 -0
- package/styles/theme.scss +1 -0
- package/types/akcelik-strct.d.ts +229 -18
package/README.md
CHANGED
|
@@ -19,7 +19,13 @@ npm install @akcelik/strct
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
`@angular/core`, `@angular/common`, `@angular/forms` and
|
|
22
|
-
`@angular/platform-browser` are peer dependencies.
|
|
22
|
+
`@angular/platform-browser` are peer dependencies (Angular 21.2+).
|
|
23
|
+
|
|
24
|
+
> **Consuming a local build?** Install the packed tarball
|
|
25
|
+
> (`ng build strct && npm pack dist/strct`, then `npm i ../akcelik-strct-x.y.z.tgz`)
|
|
26
|
+
> rather than a `file:` symlink — a symlinked dependency resolves its own copy of
|
|
27
|
+
> `@angular/core`, which can trip an `InputSignal` brand mismatch (TS2551) across
|
|
28
|
+
> Angular patch versions.
|
|
23
29
|
|
|
24
30
|
## Theme setup
|
|
25
31
|
|
|
@@ -31,6 +37,10 @@ form-control styles):
|
|
|
31
37
|
@use '@akcelik/strct/styles/theme';
|
|
32
38
|
```
|
|
33
39
|
|
|
40
|
+
The theme **self-hosts its fonts** (DM Sans + JetBrains Mono, OFL) — they ship as
|
|
41
|
+
`woff2` under `styles/fonts/` and are referenced by `@font-face`, so there is no
|
|
42
|
+
external request and nothing else to load.
|
|
43
|
+
|
|
34
44
|
Set the scheme on the document root (or let `StrctThemeService` manage it):
|
|
35
45
|
|
|
36
46
|
```html
|