@ng-brutalism/ui 0.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,60 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@ng-brutalism/ui` are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Breaking Changes (pre-publish, still 0.x)
11
+
12
+ - **Class names**: `Component`/`Directive` suffix dropped. `NbCardComponent` → `NbCard`, `NbButtonDirective` → `NbButton`, `NbSelectComponent` → `NbSelect`, `NbAccordionComponent` → `NbAccordion`, etc.
13
+ - **`defaultValue` removed from `<nb-accordion>`**: use `[value]="..."` for one-way initial value or `[(value)]` for two-way binding.
14
+ - **`defaultValue` and `defaultOpen` removed from `<nb-select>`**: use `[value]` / `[(value)]` and `[open]` / `[(open)]` respectively.
15
+
16
+ ### Internal
17
+
18
+ - Async code highlighting migrated to `resource()` (Angular 21 stable API).
19
+ - Router navigation state in navbar, docs-shell, and TOC migrated to `toSignal()`.
20
+ - Portfolio typewriter animation and greeting cycle migrated to `toObservable + switchMap`.
21
+ - Portfolio journey map sync migrated to `toObservable + subscribe`.
22
+ - Event handlers renamed to reflect actions rather than triggering events.
23
+
24
+ ## [0.1.0] — 2026-05-21
25
+
26
+ Initial public release.
27
+
28
+ ### Added
29
+
30
+ **Form controls**
31
+ - `NbButton`
32
+ - `NbCheckbox`
33
+ - `NbInput`
34
+ - `NbInputGroup`
35
+ - `NbLabel`
36
+ - `NbNativeSelect` (directive on native `<select>`)
37
+ - `NbSelect` (custom select component)
38
+ - `NbTextarea`
39
+
40
+ **Layout & content**
41
+ - `NbAccordion`
42
+ - `NbAvatar`
43
+ - `NbBadge`
44
+ - `NbCard`
45
+ - `NbImageCard`
46
+ - `NbMarquee`
47
+ - `NbTitle`
48
+
49
+ **Overlays**
50
+ - `NbDialog`
51
+
52
+ **Foundation**
53
+ - MIT license, Angular 21 + Tailwind v4 peer dependencies
54
+ - `styles.css` single-import entrypoint (default theme)
55
+ - `theme.css` token-only entrypoint for advanced theming
56
+ - Optional `provideNgBrutalism()` provider
57
+ - CSS custom properties as the primary theming surface
58
+
59
+ **Notes**
60
+ - Pre-1.0: minor versions may include breaking changes while APIs settle.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Khang Tran
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,109 @@
1
+ # @ng-brutalism/ui
2
+
3
+ Build loud. Stay sharp.
4
+
5
+ `@ng-brutalism/ui` gives modern Angular apps a token-driven component system
6
+ with directive-first APIs, keyboard-ready interactions, hard-edged visuals, and
7
+ Tailwind v4 ergonomics from the first import.
8
+
9
+ [![npm version](https://img.shields.io/npm/v/@ng-brutalism/ui.svg)](https://www.npmjs.com/package/@ng-brutalism/ui)
10
+ [![npm downloads](https://img.shields.io/npm/dm/@ng-brutalism/ui.svg)](https://www.npmjs.com/package/@ng-brutalism/ui)
11
+ [![CI](https://github.com/khangtrannn/ng-brutalism/actions/workflows/ci.yml/badge.svg)](https://github.com/khangtrannn/ng-brutalism/actions/workflows/ci.yml)
12
+ [![license](https://img.shields.io/npm/l/@ng-brutalism/ui.svg)](https://github.com/khangtrannn/ng-brutalism/blob/main/LICENSE)
13
+
14
+ [Documentation](https://ngbrutalism.khangtran.dev) ·
15
+ [npm](https://www.npmjs.com/package/@ng-brutalism/ui) ·
16
+ [GitHub](https://github.com/khangtrannn/ng-brutalism)
17
+
18
+ ![demo](https://raw.githubusercontent.com/khangtrannn/ng-brutalism/main/docs/assets/introduction.gif)
19
+
20
+ ## Install
21
+
22
+ Requires Node 20.19+ or 22.12+, Angular 21, and Tailwind CSS v4.
23
+
24
+ Automatic setup:
25
+
26
+ ```sh
27
+ ng add @ng-brutalism/ui
28
+ ```
29
+
30
+ The schematic installs the package, configures Tailwind CSS v4 when needed, and
31
+ adds the bundled styles to your global stylesheet.
32
+
33
+ Manual setup:
34
+
35
+ ```sh
36
+ npm install @ng-brutalism/ui
37
+ # or
38
+ pnpm add @ng-brutalism/ui
39
+ ```
40
+
41
+ Import the styles once in your global CSS:
42
+
43
+ ```css
44
+ @import 'tailwindcss';
45
+ @import '@ng-brutalism/ui/styles.css';
46
+ ```
47
+
48
+ Use a component:
49
+
50
+ ```ts
51
+ import { Component } from '@angular/core';
52
+ import { NbButton } from '@ng-brutalism/ui';
53
+
54
+ @Component({
55
+ selector: 'app-root',
56
+ imports: [NbButton],
57
+ template: `<button nbButton>Click</button>`,
58
+ })
59
+ export class App {}
60
+ ```
61
+
62
+ ## Why it stands out
63
+
64
+ - **Angular first**: Built as Angular primitives with directive APIs,
65
+ signal-friendly internals, and native interaction patterns that fit modern
66
+ Angular apps.
67
+ - **Loud by default**: Chunky borders, offset shadows, punchy color, and compact
68
+ motion make interfaces feel instantly brutalist.
69
+ - **Easy to bend**: CSS custom properties and Tailwind utilities keep theme
70
+ overrides local, visible, and predictable.
71
+
72
+ Optional — configure a subset of theme tokens from TypeScript at bootstrap.
73
+ Sets the corresponding `--nb-*` custom properties for these keys. Tokens
74
+ outside `NbThemeConfig` (e.g. `--nb-background`, `--nb-field-bg`) must still be
75
+ overridden in CSS.
76
+
77
+ ```ts
78
+ import { provideNgBrutalism } from '@ng-brutalism/ui';
79
+
80
+ bootstrapApplication(App, {
81
+ providers: [
82
+ provideNgBrutalism({
83
+ theme: {
84
+ primary: '#ffd166',
85
+ radius: '4px',
86
+ borderWidth: '3px',
87
+ },
88
+ }),
89
+ ],
90
+ });
91
+ ```
92
+
93
+ ## What it looks like
94
+
95
+ ![showcase](https://raw.githubusercontent.com/khangtrannn/ng-brutalism/main/docs/assets/showcase-portfolio.png)
96
+
97
+ ## Documentation
98
+
99
+ Full guides, component API tables, and live examples:
100
+ [https://ngbrutalism.khangtran.dev](https://ngbrutalism.khangtran.dev)
101
+
102
+ ## Status
103
+
104
+ `@ng-brutalism/ui` is pre-1.0. The component APIs are usable today, but minor
105
+ versions may include breaking changes while the library settles.
106
+
107
+ ## License
108
+
109
+ MIT