nexoreui-cli 1.7.0 → 1.7.1
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/index.js +52 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4634,6 +4634,15 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
|
4634
4634
|
updated = true;
|
|
4635
4635
|
}
|
|
4636
4636
|
}
|
|
4637
|
+
if (!viteContent.includes("@tailwindcss/vite")) {
|
|
4638
|
+
let updatedVite = `import tailwindcss from '@tailwindcss/vite'
|
|
4639
|
+
` + viteContent;
|
|
4640
|
+
if (updatedVite.includes("plugins: [")) {
|
|
4641
|
+
updatedVite = updatedVite.replace(/plugins:\s*\[/, "plugins: [tailwindcss(), ");
|
|
4642
|
+
fs4.writeFileSync(vitePath, updatedVite, "utf8");
|
|
4643
|
+
updated = true;
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4637
4646
|
break;
|
|
4638
4647
|
}
|
|
4639
4648
|
}
|
|
@@ -4652,13 +4661,25 @@ function injectThemeCss(baseDir, cssRelativePath, themeName, radiusValue) {
|
|
|
4652
4661
|
--color-foreground: var(--foreground);
|
|
4653
4662
|
--color-card: var(--card);
|
|
4654
4663
|
--color-card-foreground: var(--card-foreground);
|
|
4664
|
+
--color-popover: var(--popover);
|
|
4665
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
4655
4666
|
--color-primary: var(--primary);
|
|
4656
4667
|
--color-primary-foreground: var(--primary-foreground);
|
|
4668
|
+
--color-secondary: var(--secondary);
|
|
4669
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
4670
|
+
--color-muted: var(--muted);
|
|
4671
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
4672
|
+
--color-accent: var(--accent);
|
|
4673
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
4674
|
+
--color-destructive: var(--destructive);
|
|
4675
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
4657
4676
|
--color-border: var(--border);
|
|
4677
|
+
--color-input: var(--input);
|
|
4678
|
+
--color-ring: var(--ring);
|
|
4658
4679
|
--radius-lg: var(--radius);
|
|
4659
4680
|
--radius-md: calc(var(--radius) - 2px);
|
|
4660
4681
|
--radius-sm: calc(var(--radius) - 4px);
|
|
4661
|
-
--font-sans: system-ui, -apple-system, sans-serif;
|
|
4682
|
+
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
4662
4683
|
}
|
|
4663
4684
|
|
|
4664
4685
|
:root {
|
|
@@ -4666,10 +4687,25 @@ function injectThemeCss(baseDir, cssRelativePath, themeName, radiusValue) {
|
|
|
4666
4687
|
--foreground: hsl(240 10% 3.9%);
|
|
4667
4688
|
--card: hsl(0 0% 100%);
|
|
4668
4689
|
--card-foreground: hsl(240 10% 3.9%);
|
|
4690
|
+
--popover: hsl(0 0% 100%);
|
|
4691
|
+
--popover-foreground: hsl(240 10% 3.9%);
|
|
4669
4692
|
--primary: ${palette.light};
|
|
4670
4693
|
--primary-foreground: hsl(0 0% 100%);
|
|
4694
|
+
--secondary: hsl(240 4.8% 95.9%);
|
|
4695
|
+
--secondary-foreground: hsl(240 5.9% 10%);
|
|
4696
|
+
--muted: hsl(240 4.8% 95.9%);
|
|
4697
|
+
--muted-foreground: hsl(240 3.8% 46.1%);
|
|
4698
|
+
--accent: hsl(240 4.8% 95.9%);
|
|
4699
|
+
--accent-foreground: hsl(240 5.9% 10%);
|
|
4700
|
+
--destructive: hsl(0 84.2% 60.2%);
|
|
4701
|
+
--destructive-foreground: hsl(0 0% 98%);
|
|
4671
4702
|
--border: hsl(240 5.9% 90%);
|
|
4703
|
+
--input: hsl(240 5.9% 90%);
|
|
4704
|
+
--ring: ${palette.light};
|
|
4672
4705
|
--radius: ${radius}rem;
|
|
4706
|
+
--glow-radius: 12px;
|
|
4707
|
+
--glow-strength: 0.15;
|
|
4708
|
+
--glow-color: ${palette.rgb};
|
|
4673
4709
|
}
|
|
4674
4710
|
|
|
4675
4711
|
.dark {
|
|
@@ -4677,10 +4713,25 @@ function injectThemeCss(baseDir, cssRelativePath, themeName, radiusValue) {
|
|
|
4677
4713
|
--foreground: hsl(0 0% 98%);
|
|
4678
4714
|
--card: hsl(240 10% 3.9%);
|
|
4679
4715
|
--card-foreground: hsl(0 0% 98%);
|
|
4716
|
+
--popover: hsl(240 10% 3.9%);
|
|
4717
|
+
--popover-foreground: hsl(0 0% 98%);
|
|
4680
4718
|
--primary: ${palette.dark};
|
|
4681
4719
|
--primary-foreground: hsl(0 0% 100%);
|
|
4720
|
+
--secondary: hsl(240 3.7% 15.9%);
|
|
4721
|
+
--secondary-foreground: hsl(0 0% 98%);
|
|
4722
|
+
--muted: hsl(240 3.7% 15.9%);
|
|
4723
|
+
--muted-foreground: hsl(240 5% 64.9%);
|
|
4724
|
+
--accent: hsl(240 3.7% 15.9%);
|
|
4725
|
+
--accent-foreground: hsl(0 0% 98%);
|
|
4726
|
+
--destructive: hsl(0 62.8% 30.6%);
|
|
4727
|
+
--destructive-foreground: hsl(0 0% 98%);
|
|
4682
4728
|
--border: hsl(240 3.7% 15.9%);
|
|
4729
|
+
--input: hsl(240 3.7% 15.9%);
|
|
4730
|
+
--ring: ${palette.dark};
|
|
4683
4731
|
--radius: ${radius}rem;
|
|
4732
|
+
--glow-radius: 20px;
|
|
4733
|
+
--glow-strength: 0.35;
|
|
4734
|
+
--glow-color: ${palette.rgb};
|
|
4684
4735
|
}
|
|
4685
4736
|
`;
|
|
4686
4737
|
if (fs4.existsSync(cssAbsolutePath)) {
|