create-z3 0.0.50 → 0.0.52

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 CHANGED
@@ -1731,26 +1731,48 @@ function getAdditionalProviders() {
1731
1731
  // src/installers/string-utils.ts
1732
1732
  import fs3 from "fs-extra";
1733
1733
  var DEFAULT_THEME = `:root {
1734
- --background: 100% 0.000 0;
1735
- --foreground: 3.9% 0.006 240;
1736
- --card: 100% 0.000 0;
1737
- --card-foreground: 3.9% 0.006 240;
1738
- --popover: 100% 0.000 0;
1739
- --popover-foreground: 3.9% 0.006 240;
1740
- --primary: 10% 0.003 240;
1741
- --primary-foreground: 98% 0.000 0;
1742
- --secondary: 95.9% 0.002 240;
1743
- --secondary-foreground: 10% 0.003 240;
1744
- --muted: 95.9% 0.002 240;
1745
- --muted-foreground: 46.1% 0.002 240;
1746
- --accent: 95.9% 0.002 240;
1747
- --accent-foreground: 10% 0.003 240;
1748
- --destructive: 60.2% 0.168 0;
1749
- --destructive-foreground: 98% 0.000 0;
1750
- --border: 90% 0.003 240;
1751
- --input: 90% 0.003 240;
1752
- --ring: 10% 0.003 240;
1734
+ --background: oklch(100% 0.000 0);
1735
+ --foreground: oklch(3.9% 0.006 240);
1736
+ --card: oklch(100% 0.000 0);
1737
+ --card-foreground: oklch(3.9% 0.006 240);
1738
+ --popover: oklch(100% 0.000 0);
1739
+ --popover-foreground: oklch(3.9% 0.006 240);
1740
+ --primary: oklch(10% 0.003 240);
1741
+ --primary-foreground: oklch(98% 0.000 0);
1742
+ --secondary: oklch(95.9% 0.002 240);
1743
+ --secondary-foreground: oklch(10% 0.003 240);
1744
+ --muted: oklch(95.9% 0.002 240);
1745
+ --muted-foreground: oklch(46.1% 0.002 240);
1746
+ --accent: oklch(95.9% 0.002 240);
1747
+ --accent-foreground: oklch(10% 0.003 240);
1748
+ --destructive: oklch(60.2% 0.168 0);
1749
+ --destructive-foreground: oklch(98% 0.000 0);
1750
+ --border: oklch(90% 0.003 240);
1751
+ --input: oklch(90% 0.003 240);
1752
+ --ring: oklch(10% 0.003 240);
1753
1753
  --radius: 0.5rem;
1754
+ }
1755
+
1756
+ .dark {
1757
+ --background: oklch(3.9% 0.006 240);
1758
+ --foreground: oklch(98% 0.000 0);
1759
+ --card: oklch(3.9% 0.006 240);
1760
+ --card-foreground: oklch(98% 0.000 0);
1761
+ --popover: oklch(3.9% 0.006 240);
1762
+ --popover-foreground: oklch(98% 0.000 0);
1763
+ --primary: oklch(98% 0.000 0);
1764
+ --primary-foreground: oklch(10% 0.003 240);
1765
+ --secondary: oklch(14.9% 0.003 240);
1766
+ --secondary-foreground: oklch(98% 0.000 0);
1767
+ --muted: oklch(14.9% 0.003 240);
1768
+ --muted-foreground: oklch(63.9% 0.002 240);
1769
+ --accent: oklch(14.9% 0.003 240);
1770
+ --accent-foreground: oklch(98% 0.000 0);
1771
+ --destructive: oklch(30.6% 0.122 0);
1772
+ --destructive-foreground: oklch(98% 0.000 0);
1773
+ --border: oklch(14.9% 0.003 240);
1774
+ --input: oklch(14.9% 0.003 240);
1775
+ --ring: oklch(83.9% 0.000 0);
1754
1776
  }`;
1755
1777
  function detectIndentation(line) {
1756
1778
  const match = line.match(/^(\s*)/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-z3",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "description": "CLI for scaffolding Z3 Stack applications (TanStack/Next.js + Convex + Better Auth)",
6
6
  "bin": {
@@ -34,7 +34,7 @@ type SavedTheme = z.infer<typeof postThemeValidator>
34
34
  const storageKey = "_preffered-theme"
35
35
 
36
36
  export const getThemeServerFn = createServerFn().handler(
37
- async () => (getCookie(storageKey) || "light") as SavedTheme
37
+ async () => (getCookie(storageKey) || "system") as SavedTheme
38
38
  )
39
39
 
40
40
  export const setThemeServerFn = createServerFn({ method: "POST" })
@@ -84,7 +84,7 @@ const themeScript: string = (function () {
84
84
  return undefined
85
85
  }
86
86
 
87
- const storedTheme = getCookie('_preffered-theme') ?? 'light';
87
+ const storedTheme = getCookie('_preffered-theme') ?? 'system';
88
88
  const validTheme = ['light', 'dark', 'system'].includes(storedTheme) ? storedTheme : 'light';
89
89
 
90
90
  if (validTheme === 'system') {