@dailyautomations/ui 1.0.1 → 1.2.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.
@@ -0,0 +1,166 @@
1
+ @import 'tailwindcss';
2
+ @import '../src/styles/variables.css';
3
+
4
+ @theme inline {
5
+ /* Colors - mapped from CSS variables */
6
+ --color-primary: rgb(var(--primary));
7
+ --color-primary-foreground: rgb(var(--primary-foreground));
8
+ --color-primary-hover: rgb(var(--primary-hover));
9
+ --color-primary-active: rgb(var(--primary-active));
10
+
11
+ --color-secondary: rgb(var(--secondary));
12
+ --color-secondary-foreground: rgb(var(--secondary-foreground));
13
+
14
+ --color-accent: rgb(var(--accent));
15
+ --color-accent-foreground: rgb(var(--accent-foreground));
16
+ --color-accent-hover: rgb(var(--accent-hover));
17
+ --color-accent-active: rgb(var(--accent-active));
18
+
19
+ --color-background: rgb(var(--background));
20
+ --color-foreground: rgb(var(--foreground));
21
+
22
+ --color-card: rgb(var(--card));
23
+ --color-card-foreground: rgb(var(--card-foreground));
24
+
25
+ --color-popover: rgb(var(--popover));
26
+ --color-popover-foreground: rgb(var(--popover-foreground));
27
+
28
+ --color-muted: rgb(var(--muted));
29
+ --color-muted-foreground: rgb(var(--muted-foreground));
30
+
31
+ --color-destructive: rgb(var(--destructive));
32
+ --color-destructive-foreground: rgb(var(--destructive-foreground));
33
+
34
+ --color-success: rgb(var(--success));
35
+ --color-success-foreground: rgb(var(--success-foreground));
36
+
37
+ --color-error: rgb(var(--error));
38
+ --color-error-foreground: rgb(var(--error-foreground));
39
+
40
+ --color-warning: rgb(var(--warning));
41
+ --color-warning-foreground: rgb(var(--warning-foreground));
42
+
43
+ --color-info: rgb(var(--info));
44
+ --color-info-foreground: rgb(var(--info-foreground));
45
+
46
+ --color-border: rgb(var(--border));
47
+ --color-input: rgb(var(--input));
48
+ --color-ring: rgb(var(--ring));
49
+
50
+ --color-chart-1: rgb(var(--chart-1));
51
+ --color-chart-2: rgb(var(--chart-2));
52
+ --color-chart-3: rgb(var(--chart-3));
53
+ --color-chart-4: rgb(var(--chart-4));
54
+ --color-chart-5: rgb(var(--chart-5));
55
+
56
+ /* Border Radius */
57
+ --radius-sm: calc(var(--radius) - 4px);
58
+ --radius-md: calc(var(--radius) - 2px);
59
+ --radius-lg: var(--radius);
60
+ --radius-xl: calc(var(--radius) + 4px);
61
+ --radius-2xl: calc(var(--radius) + 8px);
62
+ --radius-3xl: calc(var(--radius) + 12px);
63
+ --radius-4xl: calc(var(--radius) + 16px);
64
+
65
+ /* Font Family */
66
+ --font-sans: var(--font-sans), system-ui, -apple-system, BlinkMacSystemFont,
67
+ "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
68
+ --font-mono: var(--font-mono), "SF Mono", Monaco, "Cascadia Code",
69
+ "Roboto Mono", Consolas, monospace;
70
+
71
+ /* Animations */
72
+ --animate-dialog-in: dialog-in 0.2s ease-out;
73
+ --animate-dialog-out: dialog-out 0.2s ease-in;
74
+ --animate-fade-in: fade-in 0.2s ease-out;
75
+ --animate-fade-out: fade-out 0.2s ease-in;
76
+ --animate-slide-in-from-top: slide-in-from-top 0.3s ease-out;
77
+ --animate-slide-in-from-bottom: slide-in-from-bottom 0.3s ease-out;
78
+ --animate-slide-in-from-left: slide-in-from-left 0.3s ease-out;
79
+ --animate-slide-in-from-right: slide-in-from-right 0.3s ease-out;
80
+ }
81
+
82
+ @keyframes dialog-in {
83
+ from {
84
+ opacity: 0;
85
+ transform: translate(-50%, -48%) scale(0.96);
86
+ }
87
+ to {
88
+ opacity: 1;
89
+ transform: translate(-50%, -50%) scale(1);
90
+ }
91
+ }
92
+
93
+ @keyframes dialog-out {
94
+ from {
95
+ opacity: 1;
96
+ transform: translate(-50%, -50%) scale(1);
97
+ }
98
+ to {
99
+ opacity: 0;
100
+ transform: translate(-50%, -48%) scale(0.96);
101
+ }
102
+ }
103
+
104
+ @keyframes fade-in {
105
+ from {
106
+ opacity: 0;
107
+ }
108
+ to {
109
+ opacity: 1;
110
+ }
111
+ }
112
+
113
+ @keyframes fade-out {
114
+ from {
115
+ opacity: 1;
116
+ }
117
+ to {
118
+ opacity: 0;
119
+ }
120
+ }
121
+
122
+ @keyframes slide-in-from-top {
123
+ from {
124
+ transform: translateY(-100%);
125
+ }
126
+ to {
127
+ transform: translateY(0);
128
+ }
129
+ }
130
+
131
+ @keyframes slide-in-from-bottom {
132
+ from {
133
+ transform: translateY(100%);
134
+ }
135
+ to {
136
+ transform: translateY(0);
137
+ }
138
+ }
139
+
140
+ @keyframes slide-in-from-left {
141
+ from {
142
+ transform: translateX(-100%);
143
+ }
144
+ to {
145
+ transform: translateX(0);
146
+ }
147
+ }
148
+
149
+ @keyframes slide-in-from-right {
150
+ from {
151
+ transform: translateX(100%);
152
+ }
153
+ to {
154
+ transform: translateX(0);
155
+ }
156
+ }
157
+
158
+ * {
159
+ border-color: rgb(var(--border));
160
+ }
161
+
162
+ body {
163
+ background-color: rgb(var(--background));
164
+ color: rgb(var(--foreground));
165
+ font-feature-settings: 'rlig' 1, 'calt' 1;
166
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dailyautomations/ui",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "description": "Daily X UI component library - Purple/orange dark theme system for all Daily products",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "./styles/variables.css": "./src/styles/variables.css",
26
26
  "./styles/globals.css": "./src/styles/globals.css",
27
+ "./styles/theme.css": "./src/styles/theme.css",
27
28
  "./tailwind-preset": {
28
29
  "types": "./dist/tokens/tailwind.preset.d.ts",
29
30
  "default": "./dist/tokens/tailwind.preset.js"
@@ -32,7 +33,12 @@
32
33
  "files": [
33
34
  "dist",
34
35
  "src/styles/*.css",
36
+ "examples",
35
37
  "BRAND.md",
38
+ "CHANGELOG.md",
39
+ "INSTALLATION.md",
40
+ "MIGRATION.md",
41
+ "PAGE_STRUCTURES.md",
36
42
  "README.md"
37
43
  ],
38
44
  "scripts": {
@@ -1,19 +1,173 @@
1
1
  /**
2
- * Daily X UI - Global Styles
3
- * Base styles and Tailwind directives
2
+ * Daily X UI - Global Styles (Tailwind v4)
3
+ * CSS-first configuration using @theme inline directive
4
4
  */
5
5
 
6
- @tailwind base;
7
- @tailwind components;
8
- @tailwind utilities;
6
+ @import "tailwindcss";
7
+ @import "./variables.css";
8
+
9
+ @theme inline {
10
+ /* Colors - mapped from CSS variables */
11
+ --color-primary: rgb(var(--primary));
12
+ --color-primary-foreground: rgb(var(--primary-foreground));
13
+ --color-primary-hover: rgb(var(--primary-hover));
14
+ --color-primary-active: rgb(var(--primary-active));
15
+
16
+ --color-secondary: rgb(var(--secondary));
17
+ --color-secondary-foreground: rgb(var(--secondary-foreground));
18
+
19
+ --color-accent: rgb(var(--accent));
20
+ --color-accent-foreground: rgb(var(--accent-foreground));
21
+ --color-accent-hover: rgb(var(--accent-hover));
22
+ --color-accent-active: rgb(var(--accent-active));
23
+
24
+ --color-background: rgb(var(--background));
25
+ --color-foreground: rgb(var(--foreground));
26
+
27
+ --color-card: rgb(var(--card));
28
+ --color-card-foreground: rgb(var(--card-foreground));
29
+
30
+ --color-popover: rgb(var(--popover));
31
+ --color-popover-foreground: rgb(var(--popover-foreground));
32
+
33
+ --color-muted: rgb(var(--muted));
34
+ --color-muted-foreground: rgb(var(--muted-foreground));
35
+
36
+ --color-destructive: rgb(var(--destructive));
37
+ --color-destructive-foreground: rgb(var(--destructive-foreground));
38
+
39
+ --color-success: rgb(var(--success));
40
+ --color-success-foreground: rgb(var(--success-foreground));
41
+
42
+ --color-error: rgb(var(--error));
43
+ --color-error-foreground: rgb(var(--error-foreground));
44
+
45
+ --color-warning: rgb(var(--warning));
46
+ --color-warning-foreground: rgb(var(--warning-foreground));
47
+
48
+ --color-info: rgb(var(--info));
49
+ --color-info-foreground: rgb(var(--info-foreground));
50
+
51
+ --color-border: rgb(var(--border));
52
+ --color-input: rgb(var(--input));
53
+ --color-ring: rgb(var(--ring));
54
+
55
+ --color-chart-1: rgb(var(--chart-1));
56
+ --color-chart-2: rgb(var(--chart-2));
57
+ --color-chart-3: rgb(var(--chart-3));
58
+ --color-chart-4: rgb(var(--chart-4));
59
+ --color-chart-5: rgb(var(--chart-5));
60
+
61
+ /* Border Radius */
62
+ --radius-sm: calc(var(--radius) - 4px);
63
+ --radius-md: calc(var(--radius) - 2px);
64
+ --radius-lg: var(--radius);
65
+ --radius-xl: calc(var(--radius) + 4px);
66
+ --radius-2xl: calc(var(--radius) + 8px);
67
+ --radius-3xl: calc(var(--radius) + 12px);
68
+ --radius-4xl: calc(var(--radius) + 16px);
69
+
70
+ /* Font Family */
71
+ --font-sans: var(--font-sans), system-ui, -apple-system, BlinkMacSystemFont,
72
+ "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
73
+ --font-mono: var(--font-mono), "SF Mono", Monaco, "Cascadia Code",
74
+ "Roboto Mono", Consolas, monospace;
75
+
76
+ /* Animations */
77
+ --animate-dialog-in: dialog-in 0.2s ease-out;
78
+ --animate-dialog-out: dialog-out 0.2s ease-in;
79
+ --animate-fade-in: fade-in 0.2s ease-out;
80
+ --animate-fade-out: fade-out 0.2s ease-in;
81
+ --animate-slide-in-from-top: slide-in-from-top 0.3s ease-out;
82
+ --animate-slide-in-from-bottom: slide-in-from-bottom 0.3s ease-out;
83
+ --animate-slide-in-from-left: slide-in-from-left 0.3s ease-out;
84
+ --animate-slide-in-from-right: slide-in-from-right 0.3s ease-out;
85
+ }
86
+
87
+ @keyframes dialog-in {
88
+ from {
89
+ opacity: 0;
90
+ transform: translate(-50%, -48%) scale(0.96);
91
+ }
92
+ to {
93
+ opacity: 1;
94
+ transform: translate(-50%, -50%) scale(1);
95
+ }
96
+ }
97
+
98
+ @keyframes dialog-out {
99
+ from {
100
+ opacity: 1;
101
+ transform: translate(-50%, -50%) scale(1);
102
+ }
103
+ to {
104
+ opacity: 0;
105
+ transform: translate(-50%, -48%) scale(0.96);
106
+ }
107
+ }
108
+
109
+ @keyframes fade-in {
110
+ from {
111
+ opacity: 0;
112
+ }
113
+ to {
114
+ opacity: 1;
115
+ }
116
+ }
117
+
118
+ @keyframes fade-out {
119
+ from {
120
+ opacity: 1;
121
+ }
122
+ to {
123
+ opacity: 0;
124
+ }
125
+ }
126
+
127
+ @keyframes slide-in-from-top {
128
+ from {
129
+ transform: translateY(-100%);
130
+ }
131
+ to {
132
+ transform: translateY(0);
133
+ }
134
+ }
135
+
136
+ @keyframes slide-in-from-bottom {
137
+ from {
138
+ transform: translateY(100%);
139
+ }
140
+ to {
141
+ transform: translateY(0);
142
+ }
143
+ }
144
+
145
+ @keyframes slide-in-from-left {
146
+ from {
147
+ transform: translateX(-100%);
148
+ }
149
+ to {
150
+ transform: translateX(0);
151
+ }
152
+ }
153
+
154
+ @keyframes slide-in-from-right {
155
+ from {
156
+ transform: translateX(100%);
157
+ }
158
+ to {
159
+ transform: translateX(0);
160
+ }
161
+ }
9
162
 
10
163
  @layer base {
11
164
  * {
12
- @apply border-border;
165
+ border-color: rgb(var(--border));
13
166
  }
14
167
 
15
168
  body {
16
- @apply bg-background text-foreground;
169
+ background-color: rgb(var(--background));
170
+ color: rgb(var(--foreground));
17
171
  font-feature-settings: "rlig" 1, "calt" 1;
18
172
  }
19
173
  }
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Daily X UI - Standalone Theme Configuration
3
+ *
4
+ * Copy this @theme block into your main CSS file if you can't import globals.css directly.
5
+ * You must also import variables.css for the CSS custom properties.
6
+ *
7
+ * Usage:
8
+ * @import "tailwindcss";
9
+ * @import "@dailyautomations/ui/styles/variables.css";
10
+ * // Then paste this @theme block below
11
+ */
12
+
13
+ @theme inline {
14
+ /* Colors - mapped from CSS variables */
15
+ --color-primary: rgb(var(--primary));
16
+ --color-primary-foreground: rgb(var(--primary-foreground));
17
+ --color-primary-hover: rgb(var(--primary-hover));
18
+ --color-primary-active: rgb(var(--primary-active));
19
+
20
+ --color-secondary: rgb(var(--secondary));
21
+ --color-secondary-foreground: rgb(var(--secondary-foreground));
22
+
23
+ --color-accent: rgb(var(--accent));
24
+ --color-accent-foreground: rgb(var(--accent-foreground));
25
+ --color-accent-hover: rgb(var(--accent-hover));
26
+ --color-accent-active: rgb(var(--accent-active));
27
+
28
+ --color-background: rgb(var(--background));
29
+ --color-foreground: rgb(var(--foreground));
30
+
31
+ --color-card: rgb(var(--card));
32
+ --color-card-foreground: rgb(var(--card-foreground));
33
+
34
+ --color-popover: rgb(var(--popover));
35
+ --color-popover-foreground: rgb(var(--popover-foreground));
36
+
37
+ --color-muted: rgb(var(--muted));
38
+ --color-muted-foreground: rgb(var(--muted-foreground));
39
+
40
+ --color-destructive: rgb(var(--destructive));
41
+ --color-destructive-foreground: rgb(var(--destructive-foreground));
42
+
43
+ --color-success: rgb(var(--success));
44
+ --color-success-foreground: rgb(var(--success-foreground));
45
+
46
+ --color-error: rgb(var(--error));
47
+ --color-error-foreground: rgb(var(--error-foreground));
48
+
49
+ --color-warning: rgb(var(--warning));
50
+ --color-warning-foreground: rgb(var(--warning-foreground));
51
+
52
+ --color-info: rgb(var(--info));
53
+ --color-info-foreground: rgb(var(--info-foreground));
54
+
55
+ --color-border: rgb(var(--border));
56
+ --color-input: rgb(var(--input));
57
+ --color-ring: rgb(var(--ring));
58
+
59
+ --color-chart-1: rgb(var(--chart-1));
60
+ --color-chart-2: rgb(var(--chart-2));
61
+ --color-chart-3: rgb(var(--chart-3));
62
+ --color-chart-4: rgb(var(--chart-4));
63
+ --color-chart-5: rgb(var(--chart-5));
64
+
65
+ /* Border Radius */
66
+ --radius-sm: calc(var(--radius) - 4px);
67
+ --radius-md: calc(var(--radius) - 2px);
68
+ --radius-lg: var(--radius);
69
+ --radius-xl: calc(var(--radius) + 4px);
70
+ --radius-2xl: calc(var(--radius) + 8px);
71
+ --radius-3xl: calc(var(--radius) + 12px);
72
+ --radius-4xl: calc(var(--radius) + 16px);
73
+
74
+ /* Font Family */
75
+ --font-sans: var(--font-sans), system-ui, -apple-system, BlinkMacSystemFont,
76
+ "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
77
+ --font-mono: var(--font-mono), "SF Mono", Monaco, "Cascadia Code",
78
+ "Roboto Mono", Consolas, monospace;
79
+
80
+ /* Animations */
81
+ --animate-dialog-in: dialog-in 0.2s ease-out;
82
+ --animate-dialog-out: dialog-out 0.2s ease-in;
83
+ --animate-fade-in: fade-in 0.2s ease-out;
84
+ --animate-fade-out: fade-out 0.2s ease-in;
85
+ --animate-slide-in-from-top: slide-in-from-top 0.3s ease-out;
86
+ --animate-slide-in-from-bottom: slide-in-from-bottom 0.3s ease-out;
87
+ --animate-slide-in-from-left: slide-in-from-left 0.3s ease-out;
88
+ --animate-slide-in-from-right: slide-in-from-right 0.3s ease-out;
89
+ }