@moondreamsdev/dreamer-ui 1.6.2 → 1.6.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/dist/init.js CHANGED
@@ -11,7 +11,6 @@ function extractColorsFromSource() {
11
11
  const __dirname = dirname(__filename);
12
12
  const sourceFile = join(__dirname, 'theme.css');
13
13
  const sourceContent = readFileSync(sourceFile, 'utf8');
14
- console.warn('sourceContent', sourceContent); // REMOVE
15
14
 
16
15
  // Extract the @theme library block content only
17
16
  const themeMatch = sourceContent.match(/@theme library\s*\{([\s\S]*?)\}/);
@@ -19,7 +18,14 @@ function extractColorsFromSource() {
19
18
  if (themeMatch) {
20
19
  const topLevelComment = '/** Necessary theme styles for Dreamer UI library - Customize as desired! */\n';
21
20
  const themeContent = themeMatch[1].trim();
22
- return `${topLevelComment}@theme dreamer-ui {\n${themeContent}\n}`;
21
+
22
+ // Add proper indentation to each line of theme content
23
+ const indentedThemeContent = themeContent
24
+ .split('\n')
25
+ .map(line => line.trim() ? ` ${line.trim()}` : line)
26
+ .join('\n');
27
+
28
+ return `${topLevelComment}\n@theme dreamer-ui {\n${indentedThemeContent}\n}`;
23
29
  } else {
24
30
  throw new Error('Could not find @theme library block in source file');
25
31
  }
package/dist/theme.css CHANGED
@@ -1,5 +1,5 @@
1
1
  @theme library {
2
- --color-primary: var(--color-violet-400);
2
+ --color-primary: var(--color-violet-400);
3
3
  --color-primary-foreground: var(--color-white);
4
4
  --color-secondary: var(--color-violet-200);
5
5
  --color-secondary-foreground: var(--color-black);
@@ -9,7 +9,5 @@
9
9
  --color-muted-foreground: var(--color-gray-800);
10
10
 
11
11
  --color-success: var(--color-green-500);
12
- --color-border: var(
13
- --color-slate-600
14
- ); /* for input/textarea borders and dividers — could use primary, secondary, or muted color for simplicity */
12
+ --color-border: var(--color-slate-600); /* for input/textarea borders and dividers */
15
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moondreamsdev/dreamer-ui",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },