create-strayl-web-app 1.0.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.
Files changed (78) hide show
  1. package/dist/index.js +59 -0
  2. package/dist/index.js.map +1 -0
  3. package/package.json +39 -0
  4. package/template/README.md +290 -0
  5. package/template/components.json +24 -0
  6. package/template/package.json +56 -0
  7. package/template/public/favicon.ico +0 -0
  8. package/template/public/google-logo.svg +6 -0
  9. package/template/public/logo-dark.ico +0 -0
  10. package/template/public/logo-dark.webp +0 -0
  11. package/template/public/logo-light.ico +0 -0
  12. package/template/public/logo-light.webp +0 -0
  13. package/template/public/manifest.json +16 -0
  14. package/template/public/robots.txt +3 -0
  15. package/template/src/components/Header.tsx +76 -0
  16. package/template/src/components/language-switcher.tsx +38 -0
  17. package/template/src/components/theme-provider.tsx +14 -0
  18. package/template/src/components/themed-logo.tsx +44 -0
  19. package/template/src/components/ui/accordion.tsx +69 -0
  20. package/template/src/components/ui/alert-dialog.tsx +169 -0
  21. package/template/src/components/ui/alert.tsx +80 -0
  22. package/template/src/components/ui/autocomplete.tsx +301 -0
  23. package/template/src/components/ui/avatar.tsx +46 -0
  24. package/template/src/components/ui/badge.tsx +60 -0
  25. package/template/src/components/ui/breadcrumb.tsx +112 -0
  26. package/template/src/components/ui/button.tsx +73 -0
  27. package/template/src/components/ui/card.tsx +244 -0
  28. package/template/src/components/ui/checkbox-group.tsx +16 -0
  29. package/template/src/components/ui/checkbox.tsx +60 -0
  30. package/template/src/components/ui/collapsible.tsx +45 -0
  31. package/template/src/components/ui/combobox.tsx +415 -0
  32. package/template/src/components/ui/command.tsx +264 -0
  33. package/template/src/components/ui/dialog.tsx +196 -0
  34. package/template/src/components/ui/empty.tsx +127 -0
  35. package/template/src/components/ui/field.tsx +74 -0
  36. package/template/src/components/ui/fieldset.tsx +29 -0
  37. package/template/src/components/ui/form.tsx +17 -0
  38. package/template/src/components/ui/frame.tsx +82 -0
  39. package/template/src/components/ui/group.tsx +97 -0
  40. package/template/src/components/ui/input-group.tsx +101 -0
  41. package/template/src/components/ui/input.tsx +66 -0
  42. package/template/src/components/ui/kbd.tsx +28 -0
  43. package/template/src/components/ui/label.tsx +28 -0
  44. package/template/src/components/ui/menu.tsx +310 -0
  45. package/template/src/components/ui/meter.tsx +67 -0
  46. package/template/src/components/ui/number-field.tsx +160 -0
  47. package/template/src/components/ui/pagination.tsx +136 -0
  48. package/template/src/components/ui/popover.tsx +104 -0
  49. package/template/src/components/ui/preview-card.tsx +55 -0
  50. package/template/src/components/ui/progress.tsx +81 -0
  51. package/template/src/components/ui/radio-group.tsx +36 -0
  52. package/template/src/components/ui/scroll-area.tsx +64 -0
  53. package/template/src/components/ui/select.tsx +180 -0
  54. package/template/src/components/ui/separator.tsx +23 -0
  55. package/template/src/components/ui/sheet.tsx +203 -0
  56. package/template/src/components/ui/sidebar.tsx +743 -0
  57. package/template/src/components/ui/skeleton.tsx +16 -0
  58. package/template/src/components/ui/slider.tsx +74 -0
  59. package/template/src/components/ui/spinner.tsx +18 -0
  60. package/template/src/components/ui/switch.tsx +27 -0
  61. package/template/src/components/ui/table.tsx +126 -0
  62. package/template/src/components/ui/tabs.tsx +87 -0
  63. package/template/src/components/ui/textarea.tsx +51 -0
  64. package/template/src/components/ui/toast.tsx +269 -0
  65. package/template/src/components/ui/toggle-group.tsx +102 -0
  66. package/template/src/components/ui/toggle.tsx +45 -0
  67. package/template/src/components/ui/toolbar.tsx +83 -0
  68. package/template/src/components/ui/tooltip.tsx +65 -0
  69. package/template/src/hooks/use-mobile.ts +21 -0
  70. package/template/src/lib/i18n.ts +70 -0
  71. package/template/src/lib/utils.ts +6 -0
  72. package/template/src/routeTree.gen.ts +68 -0
  73. package/template/src/router.tsx +17 -0
  74. package/template/src/routes/__root.tsx +62 -0
  75. package/template/src/routes/index.tsx +71 -0
  76. package/template/src/styles.css +121 -0
  77. package/template/tsconfig.json +28 -0
  78. package/template/vite.config.ts +30 -0
@@ -0,0 +1,121 @@
1
+ @import "tailwindcss";
2
+ @import "tw-animate-css";
3
+
4
+ @custom-variant dark (&:is(.dark *));
5
+ @variant dark (&:where(.dark, .dark *));
6
+
7
+ @theme inline {
8
+ /* Color mappings */
9
+ --color-background: var(--background);
10
+ --color-foreground: var(--foreground);
11
+ --color-card: var(--card);
12
+ --color-card-foreground: var(--card-foreground);
13
+ --color-primary: var(--primary);
14
+ --color-primary-foreground: var(--primary-foreground);
15
+ --color-secondary: var(--secondary);
16
+ --color-secondary-foreground: var(--secondary-foreground);
17
+ --color-muted: var(--muted);
18
+ --color-muted-foreground: var(--muted-foreground);
19
+ --color-accent: var(--accent);
20
+ --color-accent-foreground: var(--accent-foreground);
21
+ --color-destructive: var(--destructive);
22
+ --color-destructive-foreground: var(--destructive-foreground);
23
+ --color-border: var(--border);
24
+ --color-input: var(--input);
25
+ --color-ring: var(--ring);
26
+ --color-popover: var(--popover);
27
+ --color-popover-foreground: var(--popover-foreground);
28
+
29
+ /* Semantic colors */
30
+ --color-info: var(--info);
31
+ --color-info-foreground: var(--info-foreground);
32
+ --color-success: var(--success);
33
+ --color-success-foreground: var(--success-foreground);
34
+ --color-warning: var(--warning);
35
+ --color-warning-foreground: var(--warning-foreground);
36
+
37
+ /* Fonts */
38
+ --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
39
+ --font-mono: "Geist Mono Variable", ui-monospace, monospace;
40
+ --font-bitcount: "Bitcount Prop Single Variable", sans-serif;
41
+
42
+ /* Radius */
43
+ --radius-sm: calc(var(--radius) - 4px);
44
+ --radius-md: calc(var(--radius) - 2px);
45
+ --radius-lg: var(--radius);
46
+ --radius-xl: calc(var(--radius) + 4px);
47
+ --animate-skeleton: skeleton 2s -1s infinite linear;
48
+ @keyframes skeleton {
49
+ to {
50
+ background-position: -200% 0;
51
+ }
52
+ }
53
+ }
54
+
55
+ /* Light theme (default) */
56
+ :root {
57
+ --radius: 0.625rem;
58
+ --background: #f5f5f5;
59
+ --foreground: #262626;
60
+ --card: #ffffff;
61
+ --card-foreground: #262626;
62
+ --popover: #ffffff;
63
+ --popover-foreground: #262626;
64
+ --primary: #262626;
65
+ --primary-foreground: #fafafa;
66
+ --secondary: rgba(0, 0, 0, 0.04);
67
+ --secondary-foreground: #262626;
68
+ --muted: rgba(0, 0, 0, 0.04);
69
+ --muted-foreground: #737373;
70
+ --accent: rgba(0, 0, 0, 0.04);
71
+ --accent-foreground: #262626;
72
+ --destructive: #ef4444;
73
+ --destructive-foreground: #b91c1c;
74
+ --border: rgba(0, 0, 0, 0.08);
75
+ --input: rgba(0, 0, 0, 0.1);
76
+ --ring: #a3a3a3;
77
+ --info: #3b82f6;
78
+ --info-foreground: #1d4ed8;
79
+ --success: #10b981;
80
+ --success-foreground: #047857;
81
+ --warning: #f59e0b;
82
+ --warning-foreground: #b45309;
83
+ }
84
+
85
+ /* Dark theme */
86
+ .dark {
87
+ --background: #171717;
88
+ --foreground: #f5f5f5;
89
+ --card: #262626;
90
+ --card-foreground: #f5f5f5;
91
+ --popover: #262626;
92
+ --popover-foreground: #f5f5f5;
93
+ --primary: #f5f5f5;
94
+ --primary-foreground: #262626;
95
+ --secondary: rgba(255, 255, 255, 0.04);
96
+ --secondary-foreground: #f5f5f5;
97
+ --muted: rgba(255, 255, 255, 0.04);
98
+ --muted-foreground: #a3a3a3;
99
+ --accent: rgba(255, 255, 255, 0.04);
100
+ --accent-foreground: #f5f5f5;
101
+ --destructive: #f87171;
102
+ --destructive-foreground: #fca5a5;
103
+ --border: rgba(255, 255, 255, 0.06);
104
+ --input: rgba(255, 255, 255, 0.08);
105
+ --ring: #737373;
106
+ --info: #3b82f6;
107
+ --info-foreground: #60a5fa;
108
+ --success: #10b981;
109
+ --success-foreground: #34d399;
110
+ --warning: #f59e0b;
111
+ --warning-foreground: #fbbf24;
112
+ }
113
+
114
+ @layer base {
115
+ * {
116
+ @apply border-border outline-ring/50;
117
+ }
118
+ body {
119
+ @apply bg-background text-foreground font-sans antialiased;
120
+ }
121
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "include": ["**/*.ts", "**/*.tsx"],
3
+ "compilerOptions": {
4
+ "target": "ES2022",
5
+ "jsx": "react-jsx",
6
+ "module": "ESNext",
7
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
8
+ "types": ["vite/client"],
9
+
10
+ /* Bundler mode */
11
+ "moduleResolution": "bundler",
12
+ "allowImportingTsExtensions": true,
13
+ "verbatimModuleSyntax": false,
14
+ "noEmit": true,
15
+
16
+ /* Linting */
17
+ "skipLibCheck": true,
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true,
23
+ "baseUrl": ".",
24
+ "paths": {
25
+ "@/*": ["./src/*"]
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,30 @@
1
+ import { defineConfig } from 'vite'
2
+ import { devtools } from '@tanstack/devtools-vite'
3
+ import { tanstackStart } from '@tanstack/react-start/plugin/vite'
4
+ import viteReact from '@vitejs/plugin-react'
5
+ import viteTsConfigPaths from 'vite-tsconfig-paths'
6
+ import { fileURLToPath, URL } from 'url'
7
+
8
+ import tailwindcss from '@tailwindcss/vite'
9
+ import { nitro } from 'nitro/vite'
10
+
11
+ const config = defineConfig({
12
+ resolve: {
13
+ alias: {
14
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
15
+ },
16
+ },
17
+ plugins: [
18
+ devtools(),
19
+ nitro(),
20
+ // this is the plugin that enables path aliases
21
+ viteTsConfigPaths({
22
+ projects: ['./tsconfig.json'],
23
+ }),
24
+ tailwindcss(),
25
+ tanstackStart(),
26
+ viteReact(),
27
+ ],
28
+ })
29
+
30
+ export default config