@lumaui/tokens 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.
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Auto-generated manifest of classes used by @lumaui/angular components
3
+ * DO NOT EDIT - This file is regenerated during build
4
+ *
5
+ * This file exists so Tailwind can detect which classes are used
6
+ * without requiring @source directive in user's CSS
7
+ */
8
+
9
+ export const LUMA_COMPONENT_CLASSES = [
10
+ 'active:lm-bg-button-danger-bg-active',
11
+ 'active:lm-bg-button-primary-bg-active',
12
+ 'bg-transparent',
13
+ 'border',
14
+ 'disabled:cursor-not-allowed',
15
+ 'disabled:opacity-50',
16
+ 'focus-visible:lm-ring-button-focus',
17
+ 'focus:outline-none',
18
+ 'font-medium',
19
+ 'hover:lm-bg-button-danger-bg-hover',
20
+ 'hover:lm-bg-button-ghost-bg-hover',
21
+ 'hover:lm-bg-button-outline-bg-hover',
22
+ 'hover:lm-bg-button-primary-bg-hover',
23
+ 'hover:lm-border-button-outline-border-hover',
24
+ 'inline-flex',
25
+ 'items-center',
26
+ 'justify-center',
27
+ 'leading-snug',
28
+ 'lm-bg-button-danger-bg',
29
+ 'lm-bg-button-ghost-bg',
30
+ 'lm-bg-button-primary-bg',
31
+ 'lm-bg-card-background',
32
+ 'lm-bg-card-nested',
33
+ 'lm-bg-card-preview',
34
+ 'lm-bg-card-shadow',
35
+ 'lm-border-button-outline-border',
36
+ 'lm-border-card-nested',
37
+ 'lm-border-card-preview',
38
+ 'lm-border-card-shadow',
39
+ 'lm-border-neutral-60',
40
+ 'lm-p-card',
41
+ 'lm-rounded-button',
42
+ 'lm-rounded-card-nested',
43
+ 'lm-rounded-card-preview',
44
+ 'lm-rounded-card-shadow',
45
+ 'lm-rounded-lg',
46
+ 'lm-shadow-card-shadow',
47
+ 'lm-text-button-danger-text',
48
+ 'lm-text-button-ghost-text',
49
+ 'lm-text-button-outline-text',
50
+ 'lm-text-button-primary-text',
51
+ 'lm-text-primary',
52
+ 'lm-text-secondary',
53
+ 'lm-text-size-base',
54
+ 'mb-1',
55
+ 'mb-5',
56
+ 'px-[var(--luma-button-padding-x-lg)]',
57
+ 'px-[var(--luma-button-padding-x-md)]',
58
+ 'px-[var(--luma-button-padding-x-sm)]',
59
+ 'py-[var(--luma-button-padding-y-lg)]',
60
+ 'py-[var(--luma-button-padding-y-md)]',
61
+ 'py-[var(--luma-button-padding-y-sm)]',
62
+ 'relative',
63
+ 'text-2xl',
64
+ 'text-base',
65
+ 'text-lg',
66
+ 'text-sm',
67
+ 'text-xs',
68
+ 'transition-[color_var(--luma-button-transition-duration)_var(--luma-button-transition-timing)]',
69
+ 'w-full'
70
+ ];
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Luma Design System - Complete CSS
3
+ *
4
+ * This file includes:
5
+ * - All design tokens (colors, spacing, typography, etc.)
6
+ * - All Tailwind utilities for Luma components
7
+ * - Internal @source directive (no need to add @source in your project!)
8
+ *
9
+ * Usage in your styles.css:
10
+ * @import 'tailwindcss';
11
+ * @import '@lumaui/tokens';
12
+ *
13
+ * For dark theme support, also add:
14
+ * @import '@lumaui/tokens/dark.css';
15
+ */
16
+
17
+ /* Tell Tailwind to scan the component class manifest */
18
+ @source "./luma-classes.js";
19
+
20
+ /* Import all tokens and utilities */
21
+ @import './luma.css';
@@ -49,8 +49,6 @@
49
49
  --luma-card-nested-border: oklch(0.25 0.008 265);
50
50
  --luma-card-preview-background: oklch(0.20 0.005 265);
51
51
  --luma-card-preview-border: oklch(0.25 0.008 265);
52
- --luma-card-gradient-from: oklch(0.25 0.01 265 / 0.6);
53
- --luma-card-gradient-to: oklch(0.2 0.008 265 / 0.6);
54
52
  --luma-card-background: oklch(0.17 0.005 265);
55
53
  --luma-card-box-shadow: 0px 2px 0 0px oklch(0 0 0 / 0.3);
56
54
  --luma-code-background: oklch(0.08 0.005 265);
package/build/luma.css CHANGED
@@ -110,8 +110,6 @@
110
110
  --luma-card-preview-background: oklch(0.99 0 0);
111
111
  --luma-card-preview-border: oklch(0.92 0.008 265);
112
112
  --luma-card-preview-radius: 12px;
113
- --luma-card-gradient-from: oklch(0.92 0.005 0 / 0.6);
114
- --luma-card-gradient-to: oklch(0.96 0.003 0 / 0.6);
115
113
  --luma-card-background: oklch(1 0 0);
116
114
  --luma-card-padding: 1.5rem;
117
115
  --luma-card-box-shadow: 0px 2px 0 0px #e4e4e4;
@@ -534,16 +532,6 @@
534
532
  }
535
533
 
536
534
  /* Card Legacy Utilities (gradient wrapper) */
537
- @utility lm-from-card-gradient-from {
538
- --tw-gradient-from: var(--luma-card-gradient-from);
539
- --tw-gradient-to: rgb(255 255 255 / 0);
540
- --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
541
- }
542
-
543
- @utility lm-to-card-gradient-to {
544
- --tw-gradient-to: var(--luma-card-gradient-to);
545
- }
546
-
547
535
  @utility lm-bg-card-background {
548
536
  background-color: var(--luma-card-background);
549
537
  }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@lumaui/tokens",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Design tokens for Luma UI - Neo-Minimal design system",
5
5
  "type": "module",
6
- "main": "./build/luma.css",
6
+ "main": "./build/luma-complete.css",
7
7
  "exports": {
8
- ".": "./build/luma.css",
9
- "./styles.css": "./build/luma.css",
8
+ ".": "./build/luma-complete.css",
9
+ "./styles.css": "./build/luma-complete.css",
10
+ "./tokens": "./build/luma.css",
10
11
  "./dark.css": "./build/luma-dark.css",
11
12
  "./styles/dark.css": "./build/luma-dark.css"
12
13
  },
@@ -15,9 +16,10 @@
15
16
  "README.md"
16
17
  ],
17
18
  "scripts": {
18
- "build": "npm run build:light && npm run build:dark",
19
+ "build": "npm run build:light && npm run build:dark && npm run build:manifest",
19
20
  "build:light": "style-dictionary build --config config.js",
20
21
  "build:dark": "style-dictionary build --config config.dark.js",
22
+ "build:manifest": "npx ts-node --esm ../../tools/generate-class-manifest.ts",
21
23
  "watch": "npm run build && npm run watch:light & npm run watch:dark",
22
24
  "watch:light": "style-dictionary build --config config.js --watch",
23
25
  "watch:dark": "style-dictionary build --config config.dark.js --watch"
@@ -41,11 +43,11 @@
41
43
  "author": "Luma UI Team",
42
44
  "repository": {
43
45
  "type": "git",
44
- "url": "https://github.com/pureartisan/lumo.git",
46
+ "url": "https://github.com/lumaui/luma-ui.git",
45
47
  "directory": "packages/tokens"
46
48
  },
47
- "homepage": "https://github.com/pureartisan/lumo#readme",
49
+ "homepage": "https://github.com/lumaui/luma-ui#readme",
48
50
  "bugs": {
49
- "url": "https://github.com/pureartisan/lumo/issues"
51
+ "url": "https://github.com/lumaui/luma-ui/issues"
50
52
  }
51
53
  }