@joanroucoux/cairn-ui 0.8.0 → 0.8.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +69 -0
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.2
4
+
5
+ ### Changed
6
+
7
+ - The npm README opens with the Cairn UI banner.
8
+
9
+ ## 0.8.1
10
+
11
+ ### Added
12
+
13
+ - The npm page now carries a README: what the package is, how to install it, the stylesheets and the `@source`
14
+ line to add, the `fonts.css` setup and the per-folder imports.
15
+ - The Storybook is published at https://joanroucoux.github.io/cairn-ui/ on every push to `main`.
16
+ - A GitHub Release is created for every `vX.Y.Z` tag, with the matching section of this changelog as its notes.
17
+
18
+ ### Changed
19
+
20
+ - Stories and specs use fictional data. No component or style changes.
21
+
3
22
  ## 0.8.0
4
23
 
5
24
  ### Breaking
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ ![Cairn UI: Components and tokens behind Cairn.](https://raw.githubusercontent.com/JoanRoucoux/cairn-ui/main/docs/github/banner-light.png)
2
+
3
+ # @joanroucoux/cairn-ui
4
+
5
+ A monochrome, accessible Angular design system, built for [Cairn](https://github.com/JoanRoucoux/cairn).
6
+
7
+ Browse every component, live, in the [Storybook](https://joanroucoux.github.io/cairn-ui/).
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ pnpm add @joanroucoux/cairn-ui
13
+ ```
14
+
15
+ Peer dependencies: `@angular/common` and `@angular/core`, version 22. The styles use Tailwind CSS 4, which the consuming
16
+ application provides.
17
+
18
+ ## Setup
19
+
20
+ Import three stylesheets, in order, and register the package as a Tailwind source (templates in `node_modules` are
21
+ not scanned by default):
22
+
23
+ ```css
24
+ @import 'tailwindcss';
25
+ @import '@joanroucoux/cairn-ui/styles/tokens.css';
26
+ @import '@joanroucoux/cairn-ui/styles/theme.css';
27
+ @import '@joanroucoux/cairn-ui/styles/motion.css';
28
+ @source '../node_modules/@joanroucoux/cairn-ui';
29
+ ```
30
+
31
+ `fonts.css` self-hosts Rubik and must not be imported through the Tailwind entry above: its `@font-face` rules use
32
+ `url(./fonts/...)` paths relative to the file, and Tailwind's CSS-first pipeline does not rebase them. Add it to the
33
+ `styles` array of `angular.json` instead:
34
+
35
+ ```json
36
+ "styles": ["src/styles.css", "node_modules/@joanroucoux/cairn-ui/styles/fonts.css"]
37
+ ```
38
+
39
+ An application that does not use Tailwind can import `@joanroucoux/cairn-ui/styles/tokens.css` alone: it is a pure
40
+ token sheet.
41
+
42
+ ## Usage
43
+
44
+ The package root exports nothing. Each component folder is its own entry point, so your bundler only ships what you
45
+ import:
46
+
47
+ ```ts
48
+ import { Component } from '@angular/core';
49
+
50
+ import { UiBadge } from '@joanroucoux/cairn-ui/badge';
51
+ import { UiButton } from '@joanroucoux/cairn-ui/button';
52
+
53
+ @Component({
54
+ selector: 'app-example',
55
+ imports: [UiButton, UiBadge],
56
+ template: `
57
+ <ui-badge>Synced</ui-badge>
58
+ <button ui-button>Save</button>
59
+ `,
60
+ })
61
+ export class Example {}
62
+ ```
63
+
64
+ ## More
65
+
66
+ - [Repository README](https://github.com/JoanRoucoux/cairn-ui#readme): the component list, design principles and development guide
67
+ - [Changelog](https://github.com/JoanRoucoux/cairn-ui/blob/main/projects/ui/CHANGELOG.md)
68
+
69
+ MIT licensed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joanroucoux/cairn-ui",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Cairn UI — a monochrome, accessible Angular design system.",
5
5
  "keywords": [
6
6
  "angular",