File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ def resolve_css_vars(shadcn_config: dict) -> dict {
8484 radius_value = RADII_MAP.get(radius_name);
8585 if radius_value {
8686 light_vars[" radius" ] = radius_value;
87+ dark_vars[" radius" ] = radius_value;
8788 }
8889 }
8990
Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ def:pub get_theme(
106106 global_css = generate_global_css(font, css_vars);
107107 font_info = FONT_DATA.get(font, FONT_DATA[" figtree" ]);
108108
109+ # Include all component names so --init can install them
110+ registry = load_registry();
111+ default_components: list = sorted (list (registry.get(" components" , {}).keys()));
112+
109113 return {
110114 " global_css" : global_css,
111115 " jac_shadcn_config" : {
@@ -122,8 +126,22 @@ def:pub get_theme(
122126 " clsx" : " ^2.1.1" ,
123127 " tailwind-merge" : " ^3.5.0" ,
124128 " tw-animate-css" : " ^1.4.0" ,
129+ " class-variance-authority" : " ^0.7.1" ,
130+ " radix-ui" : " ^1.4.3" ,
131+ " @base-ui/react" : " ^1.2.0" ,
132+ " shadcn" : " ^3.8.5" ,
125133 font_info[" npm" ]: " *"
126- }
134+ },
135+ " npm_dev_deps" : {
136+ " @jac-client/dev-deps" : " 1.0.0" ,
137+ " @tailwindcss/vite" : " latest" ,
138+ " tailwindcss" : " latest"
139+ },
140+ " vite_config" : {
141+ " plugins" : [" tailwindcss()" ],
142+ " lib_imports" : [" import tailwindcss from '@tailwindcss/vite'" ]
143+ },
144+ " default_components" : default_components
127145 };
128146}
129147
You can’t perform that action at this time.
0 commit comments