@lumaui/angular 0.1.1 → 0.1.3
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 +34 -26
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -9,54 +9,62 @@ Angular components for **Luma UI** - a Neo-Minimal design system built with calm
|
|
|
9
9
|
- Type-safe variants with class-variance-authority
|
|
10
10
|
- Angular 19+ standalone components
|
|
11
11
|
- Tailwind CSS v4 compatible
|
|
12
|
+
- **Fully customizable via CSS tokens**
|
|
12
13
|
|
|
13
|
-
##
|
|
14
|
+
## Customization
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
All components are **fully customizable** through CSS custom properties (tokens). Override any design token in your CSS to match your brand:
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
:root {
|
|
20
|
+
/* Customize button colors */
|
|
21
|
+
--luma-button-primary-bg: oklch(0.6 0.15 250);
|
|
22
|
+
--luma-button-primary-bg-hover: oklch(0.55 0.14 250);
|
|
23
|
+
|
|
24
|
+
/* Customize card styles */
|
|
25
|
+
--luma-card-background: oklch(0.98 0 0);
|
|
26
|
+
--luma-card-radius: 16px;
|
|
27
|
+
|
|
28
|
+
/* Customize spacing and typography */
|
|
29
|
+
--luma-button-padding-x-md: 1.5rem;
|
|
30
|
+
--luma-button-padding-y-md: 0.75rem;
|
|
31
|
+
}
|
|
17
32
|
```
|
|
18
33
|
|
|
19
|
-
|
|
34
|
+
This token-based architecture means you can adapt every aspect of the design system - colors, spacing, borders, shadows, and more - without modifying component code.
|
|
20
35
|
|
|
21
|
-
|
|
36
|
+
## Prerequisites
|
|
22
37
|
|
|
23
|
-
|
|
24
|
-
npm install class-variance-authority
|
|
25
|
-
```
|
|
38
|
+
### Install Tailwind CSS
|
|
26
39
|
|
|
27
|
-
|
|
40
|
+
Before installing Luma UI, you need to set up Tailwind CSS v4 in your Angular project.
|
|
28
41
|
|
|
29
|
-
|
|
42
|
+
Follow the official guide: **[Tailwind CSS Angular Installation](https://tailwindcss.com/docs/installation/framework-guides/angular)**
|
|
30
43
|
|
|
31
|
-
|
|
44
|
+
## Installation
|
|
32
45
|
|
|
33
|
-
|
|
46
|
+
After Tailwind CSS is configured, install Luma UI:
|
|
34
47
|
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
plugins: {
|
|
38
|
-
'@tailwindcss/postcss': {},
|
|
39
|
-
},
|
|
40
|
-
};
|
|
48
|
+
```bash
|
|
49
|
+
npm install @lumaui/angular
|
|
41
50
|
```
|
|
42
51
|
|
|
43
|
-
|
|
52
|
+
> **Note:** `@lumaui/tokens` and `@lumaui/core` are installed automatically as dependencies.
|
|
53
|
+
|
|
54
|
+
## Setup
|
|
55
|
+
|
|
56
|
+
### Import Styles
|
|
44
57
|
|
|
45
58
|
Add to your `styles.css`:
|
|
46
59
|
|
|
47
60
|
```css
|
|
48
61
|
@import 'tailwindcss';
|
|
49
|
-
@import '@lumaui/tokens
|
|
62
|
+
@import '@lumaui/tokens';
|
|
50
63
|
|
|
51
64
|
/* Optional: Dark theme support */
|
|
52
|
-
@import '@lumaui/tokens/
|
|
53
|
-
|
|
54
|
-
/* If automatic content detection doesn't pick up node_modules, add: */
|
|
55
|
-
@source "../node_modules/@lumaui";
|
|
65
|
+
@import '@lumaui/tokens/dark.css';
|
|
56
66
|
```
|
|
57
67
|
|
|
58
|
-
> **Note:** Tailwind v4 uses CSS-based configuration instead of `tailwind.config.js`. The `@source` directive is only needed if Luma classes aren't being detected automatically.
|
|
59
|
-
|
|
60
68
|
## Usage
|
|
61
69
|
|
|
62
70
|
### Button
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumaui/angular",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Angular components for Luma UI - Neo-Minimal design system",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@lumaui/core": "
|
|
6
|
+
"@lumaui/core": "^0.1.2",
|
|
7
|
+
"@lumaui/tokens": "^0.1.2",
|
|
7
8
|
"tslib": "^2.3.0"
|
|
8
9
|
},
|
|
9
10
|
"peerDependencies": {
|