Skip to content

Commit 6094438

Browse files
authored
Integrate shadcn (#156)
* chore: update dependencies and version; refactor styles and components - Bump version to 1.4.0-alpha.1 in package.json - Add new dependencies: @fontsource-variable/noto-sans, lucide-react, radix-ui, shadcn, and tw-animate-css - Refactor Breadcrumbs, ThemeToggle, Dialog, Header, MenuButton, and Theme components for improved styling and consistency - Update CSS variables for light and dark themes in index.css - Enhance utility functions in css.ts for better class name handling * feat: integrate theme management with system preferences and update default settings * refactor: update theme type to use ThemeValue for consistency * docs: enhance documentation for ThemeValue type in Theme component * feat: integrate shadcn/ui component library into documentation * feat: add shadcn Components Guide to documentation * feat: update iconography section to include Lucide alongside Font Awesome
1 parent 5849b77 commit 6094438

20 files changed

Lines changed: 5100 additions & 263 deletions

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ The application production technology stack includes:
4141

4242
- React - core web user interface library
4343
- React Router Dom - declarative component routing
44+
- shadcn/ui - common component library
4445
- TanStack Query - asynchronous state management, caching, and data fetching
4546
- Axios - http client
4647
- React Hook Form - form management, validation, error handling, custom fields, etc.
4748
- TailwindCSS - utility first CSS framework
4849
- React Spring - animations
49-
- Font Awesome - iconography
50+
- Font Awesome + Lucide - iconography
5051
- Google Fonts - typography
5152
- React i18next - internationalization
5253
- Zod - schema based validation
@@ -208,13 +209,15 @@ Build a static version the [Storybook][storybook] UI which may be deployed to a
208209
- [Vite][vite]
209210
- [React][react]
210211
- [React Router][reactrouter]
212+
- [shadcn/ui][shadcn]
211213
- [TanStack][tanstack]
212214
- [Axios][axios]
213215
- [React Hook Form][reacthookform]
214216
- [Zod][zod]
215217
- [Tailwind CSS][tailwind]
216218
- [Class Variance Authority][cva]
217219
- [Font Awesome][fontawesome]
220+
- [Lucide][lucide]
218221
- [React Spring][reactspring]
219222
- [React i18next][reacti18next]
220223
- [Recharts][recharts]
@@ -228,11 +231,13 @@ Build a static version the [Storybook][storybook] UI which may be deployed to a
228231
[react]: https://react.dev 'React'
229232
[reactrouter]: https://reactrouter.com/ 'React Router'
230233
[vite]: https://vitejs.dev/ 'Vite'
234+
[shadcn]: https://ui.shadcn.com/ 'shadcn/ui'
231235
[axios]: https://axios-http.com/ 'Axios'
232236
[reacthookform]: https://www.react-hook-form.com/ 'React Hook Form'
233237
[tailwind]: https://tailwindcss.com/ 'Tailwind CSS'
234238
[cva]: https://cva.style/ 'Class Variance Authority'
235239
[fontawesome]: https://fontawesome.com/ 'Font Awesome'
240+
[lucide]: https://lucide.dev/icons/ 'Lucide'
236241
[tanstack]: https://tanstack.com/ 'TanStack'
237242
[testing-library]: https://testing-library.com/ 'Testing Library'
238243
[ghactions]: https://docs.github.com/en/actions 'GitHub Actions'

components.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "radix-nova",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/index.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"rtl": false,
15+
"aliases": {
16+
"components": "src/common/components",
17+
"utils": "src/common/utils/css",
18+
"ui": "src/common/components/shadcn",
19+
"lib": "src/common/utils",
20+
"hooks": "src/common/hooks"
21+
},
22+
"menuColor": "default",
23+
"menuAccent": "subtle",
24+
"registries": {}
25+
}

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Welcome to the project documentation for the React Starter project. This directo
77
- [DevOps Guide](./DEVOPS_GUIDE.md): GitHub Actions workflows, CI/CD, and automation.
88
- [Configuration Guide](./CONFIGURATION_GUIDE.md): Application and infrastructure configuration, environment variables, and validation.
99
- [Infrastructure Guide](./INFRASTRUCTURE_GUIDE.md): AWS CDK Infrastructure as Code.
10+
- [shadcn Components Guide](./SHADCN_GUIDE.md): Using and configuring shadcn/ui components.
1011

1112
<br/>
1213

0 commit comments

Comments
 (0)