Skip to content

Commit 818b0b3

Browse files
committed
refactor(readme): updated readme.md
1 parent 113d6d5 commit 818b0b3

File tree

1 file changed

+188
-50
lines changed

1 file changed

+188
-50
lines changed

README.md

Lines changed: 188 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -51,68 +51,221 @@
5151
## Table of Contents 📋
5252

5353
- [Table of Contents 📋](#table-of-contents-)
54-
- [Overview 🌏](#overview-)
55-
- [Not a standard library, but a distribution of components](#not-a-standard-library-but-a-distribution-of-components)
56-
- [Why should I use shadcn/studio? 💡](#why-should-i-use-shadcnstudio-)
57-
- [This is where shadcn/studio shines ✨](#this-is-where-shadcnstudio-shines-)
58-
- [Features ✨](#features-)
54+
- [Features ✨](#-features)
55+
- [Project Structure 🏗️](#-project-structure)
56+
- [Quick Start 🚀](#-quick-start)
57+
- [Available Commands 🧞](#-available-commands)
58+
- [Code Formatting 🎨](#-code-formatting)
59+
- [Configuration ⚙️](#-configuration)
60+
- [Dependencies 📦](#-dependencies)
61+
- [Deployment 🌐](#-deployment)
5962
- [Documentation 📚](#documentation-)
6063
- [Community 🤝](#community-)
61-
- [Credits 🤘](#credits-)
62-
- [License ©](#license-)
6364
- [Useful Links 🎁](#useful-links-)
6465
- [Social Media :earth_africa:](#social-media-earth_africa)
6566

6667
---
6768

68-
## Overview 🌏
69-
70-
**This isn't a traditional component library or a replacement for Shadcn**. Instead, it's a unique collection offers customizable variants of components, blocks, and templates. Preview, customize, and copy-paste them into your apps with ease.
71-
72-
Building on the solid foundation of the Shadcn components & blocks, we've enhanced it with custom-designed components & blocks to give you a head start. This allows you to craft, customize, and ship your projects faster and more efficiently.
73-
74-
### Not a standard library, but a distribution of components
75-
76-
Following the philosophy of Shadcn, shadcn/studio isn't a conventional "install-from-NPM" library. Rather, it's an open-source distribution of components designed for maximum adaptability. You can copy the code, modify styles, adjust logic, or integrate it with other tools—free from the limitations of typical libraries. This "open code" model empowers you to customize with confidence and creativity.
77-
7869
## Why should I use shadcn/studio? 💡
7970

8071
shadcn/ui aims to provide core components with a unique distribution system, allowing developers to copy and paste reusable, customizable UI elements directly into their codebase.
8172

8273
While this approach offers flexibility and control, it comes with some limitations: a lack of diverse component variants examples, limited theme customization options, and limited pre-built blocks. Additionally, its extensive customization options, though powerful, can sometimes feel overwhelming, especially for those seeking a more guided or streamlined experience.
8374

84-
## This is where shadcn/studio shines ✨
75+
# Shadcn + Astro — Ink Landing Page
76+
77+
A modern, responsive business landing page built with [Astro](https://astro.build/) and [ShadcnUI](https://ui.shadcn.com/).
78+
79+
This project showcases a complete business website with sections for Header, Hero, Changelog Timeline,FAQ, and call-to-action components.
80+
81+
## ✨ Features
82+
83+
- 🚀 **Built with Astro** - Fast, modern static site generation
84+
- 🎨 **Shadcn Studio Components** - Beautiful, ready-to-use Tailwind CSS components
85+
- 📱 **Fully Responsive** - Optimized for mobile, tablet, and desktop
86+
-**Optimized Performance** - Fast page loads and excellent SEO
87+
- 🔧 **TypeScript Support** - Type-safe configuration and development
88+
- 💅 **Prettier Integration** - Automatic code formatting with Tailwind class sorting
89+
- 🌙 **Tailwind CSS 4** - Latest Tailwind with modern features
90+
91+
## 🏗️ Project Structure
92+
93+
```text
94+
shadcn-studio-astro-template/
95+
├── public/ # Public static assets
96+
│ ├── favicon/ # Favicon files
97+
│ ├── images/ # Public images
98+
│ ├── _headers # Netlify Deploy Headers
99+
│ ├── robots.txt # SEO crawler rules
100+
│ └── site.webmanifest # PWA manifest
101+
102+
├── src/
103+
│ ├── assets/ # SVG and other assets
104+
│ │
105+
│ ├── components/ # Reusable UI components
106+
│ │ └── blocks/ # Block components
107+
│ │ └── layout/ # Layout components
108+
│ │ └── sections/ # Data of components
109+
│ │ └── ui/ # Base UI components
110+
│ │
111+
│ ├── layouts/ # Astro layout files
112+
│ │ ├── BlankLayout.astro # Minimal layout
113+
│ │ ├── HeadSeo.astro # SEO head layout
114+
│ │ └── Layout.astro # Main site layout
115+
│ │
116+
│ ├── lib/ # Helper libraries
117+
│ │ └── utils.ts # Utility functions
118+
│ │
119+
│ ├── pages/ # Route-based pages
120+
│ │ ├── 404.astro # 404 page
121+
│ │ ├── index.astro # Home page
122+
│ │ ├── login.astro # Login page
123+
│ │ └── rss.xml.js # RSS feed generator
124+
│ │
125+
│ ├── styles/
126+
│ │ └── global.css # Global styles
127+
│ │
128+
│ ├── utils/ # Utility functions
129+
│ │ └── seo.ts # SEO helpers
130+
│ └── consts.ts # Application constants (SEO)
131+
132+
├── astro.config.mjs # Astro configuration
133+
├── content.config.ts # Content collections config
134+
├── .env.example # Environment variable template
135+
├── components.json # shadcn/ui config
136+
├── package.json # Dependencies & scripts
137+
├── tsconfig.json # TypeScript configuration
138+
└── vercel.json # Vercel deployment config
139+
```
140+
141+
## 🚀 Quick Start
142+
143+
### Prerequisites
144+
145+
- Node.js 18, 20, or 22+
146+
- pnpm (recommended) or npm
147+
148+
### Installation
149+
150+
1. **Install dependencies:**
151+
152+
```bash
153+
pnpm install
154+
```
155+
156+
2. **Start the development server:**
157+
158+
```bash
159+
pnpm run dev
160+
```
161+
162+
The site will be available at `http://localhost:4321`
163+
164+
3. **Build for production:**
165+
166+
```bash
167+
pnpm build
168+
```
169+
170+
The built site will be in the `dist/` folder with relative asset paths for easy deployment.
171+
172+
4. **Preview the production build:**
173+
174+
```bash
175+
pnpm run preview
176+
```
177+
178+
## 🧞 Available Commands
179+
180+
The template comes with several pre-configured scripts to help you with development, building, and maintaining your project. All scripts can be run using your package manager of choice (npm, pnpm, yarn, or bun) from the root of the project.
181+
182+
| Command | Action |
183+
| :------------ | :------------------------------------------------------------------------------------------------------------------------------------- |
184+
| `dev` | Starts the Astro development server with hot-reload enabled. Your application will be available at http://localhost:4321.build |
185+
| `build` | Creates an optimized production build of your application. This command generates static files and optimizes your code for deployment. |
186+
| `preview` | Preview production site locally. Use this to test your production build locally before deploying. |
187+
| `lint` | Runs ESLint to check your code for potential errors and code quality issues. This helps maintain clean and consistent code. |
188+
| `lint:fix` | Runs ESLint and automatically fixes problems where possible. |
189+
| `format` | Formats all files using Prettier to ensure consistent code style. |
190+
| `check-types` | Checks TypeScript types to catch type errors before building or deploying. |
191+
192+
## 🎨 Code Formatting
193+
194+
This project uses **Prettier** for code formatting with the following features:
195+
196+
- **Automatic formatting on save** in VS Code
197+
- **Tailwind CSS class sorting** - Classes are automatically sorted in the recommended order
198+
- **Extra space removal** - Trailing whitespace and extra spaces are removed
199+
- **Consistent code style** - Enforced across all `.astro`, `.js`, `.ts`, and `.css` files
200+
201+
### Setup
202+
203+
1. **Install recommended VS Code extensions** (you'll be prompted when opening the project):
204+
- Prettier - Code formatter
205+
- Astro
206+
- Tailwind CSS IntelliSense
207+
- EditorConfig for VS Code
208+
209+
2. **Formatting will work automatically** on save thanks to:
210+
- `.prettierrc` - Prettier configuration
211+
- `.editorconfig` - Editor settings
212+
- `.vscode/settings.json` - VS Code workspace settings
213+
214+
3. **Manual formatting:**
215+
216+
```bash
217+
pnpm run format # Format all files
218+
```
85219

86-
An open-source & premium collection of copy-and-paste shadcn components, blocks, and templates - paired with a powerful theme generator to craft, customize, and ship faster 🚀. It provides a robust toolkit for building stunning, interactive user interfaces with ease.
220+
## ⚙️ Configuration
87221

88-
- **Open-source:** Dive into a growing, community-driven collection of copy-and-paste [shadcn/ui components]('https://shadcnstudio.com/components'), shadcn blocks, and templates.
222+
Edit `src/consts.ts` to customize your site:
89223

90-
- **Component & Blocks variants:** Access a diverse, collection of customizable [shadcn blocks](https://shadcnstudio.com/blocks) and component variants to quickly build and style your UI with ease.
224+
```typescript
225+
export const siteConfig = {
226+
creatorName: 'Shadcn Studio',
227+
demoName: 'Ink',
228+
templateName: 'Blog Landing Page'
229+
// ... more settings
230+
}
231+
```
91232

92-
- **Animated variants with Motion:** Add smooth, modern animations to your components, enhancing user experiences with minimal effort.
233+
## 📦 Dependencies
93234

94-
- **Landing pages & Dashboards:** Explore 20+ premium & free [Shadcn templates](https://shadcnstudio.com/templates) for dashboards, landing pages & more. Fully customizable & easy to use.
235+
### Main Dependencies
95236

96-
- **shadcn/ui for Figma:** Speed up your workflow with [Shadcn Figma](https://shadcnstudio.com/figma) UI components, blocks & templates — a full design library inspired by shadcn/ui.
237+
- **Astro 5.16.6** - Fast static site generator with zero JS by default
238+
- **React 19.2.3** - UI library for interactive components
239+
- **Tailwind CSS 4.1.18** - Utility-first CSS framework
240+
- **Radix UI** - Unstyled, accessible component primitives
241+
- **Class Variance Authority** - Type-safe component variant management
242+
- **@Astrojs/React** - Astro integration for React components
243+
- **@Astrojs/MDX** - MDX support for Astro
244+
- **@Astrojs/Sitemap** - Automatic sitemap generation
245+
- **@Astrojs/RSS** - RSS feed generation
97246

98-
- **Powerful theme generator:** Customize your UI instantly with [Shadcn Theme Generator](https://shadcnstudio.com/theme-generator). Preview changes in real time and create consistent, on-brand designs faster.
247+
### Key Plugins
99248

100-
- **shadcn/studio MCP:** Integrate [shadcn/studio MCP](https://shadcnstudio.com/mcp) Server directly into your favorite IDE and craft stunning shadcn/ui Components, Blocks and Pages inspired by shadcn/studio.
249+
- **lucide-react** - Beautiful, consistent icon library with 562+ React icons
250+
- **prettier-plugin-tailwindcss** - Automatic Tailwind CSS class sorting
251+
- **@tailwindcss/typography** - Professional typographic styles
252+
- **prettier-plugin-astro** - Astro code formatting support
253+
- **ESLint & TypeScript** - Code quality and type safety tools
101254

102-
- **Shadcn Figma To Code Plugin:** Convert your Figma designs into production-ready code instantly with the [Shadcn Figma Plugin](https://shadcnstudio.com/figma-plugin).
255+
## 🌐 Deployment
103256

104-
## Features ✨
257+
The production build creates static files with relative asset paths, making it easy to deploy to:
105258

106-
1. **Live Theme Generator:** See your shadcn components transform instantly as you experiment with styles in real time.
107-
2. **Color Mastery:** Play with background, text, and border hues using a sleek color picker for a unified design.
108-
3. **Typography Fine-Tuning:** Perfect your text with adjustable font sizes, weights, and transformations for a polished look.
109-
4. **Tailwind v4 Compatibility:** Effortlessly use Tailwind v4, supporting OKLCH, HSL, RGB & HEX color formats.
110-
5. **Stunning Theme Starters:** Kick off with gorgeous pre-built themes and customize light or dark modes in a breeze.
111-
6. **Hold to Save Theme:** Preserve your custom themes with a quick hold, making them easy to reuse or share later.
259+
- **GitHub Pages**
260+
- **Netlify**
261+
- **Vercel**
262+
- **Any static hosting service**
263+
264+
Simply upload the contents of the `dist/` folder after running `pnpm run build`.
112265

113266
## Documentation 📚
114267

115-
For comprehensive documentation, please visit [shadcnstudio.com](https://shadcnstudio.com/docs/getting-started/shadcn-studio-template-astro).
268+
For comprehensive documentation, please visit [shadcn/studio documentation](https://shadcnstudio.com/docs/getting-started/shadcn-studio-template-nextjs).
116269

117270
## Community 🤝
118271

@@ -121,21 +274,6 @@ Join the shadcn/studio community to discuss the library, ask questions, and shar
121274
- 🐦 [Follow us on Twitter](https://x.com/ShadCNStudio)
122275
- 🎮 [Join us on Discord](https://discord.com/invite/kBHkY7DekX)
123276

124-
## Credits 🤘
125-
126-
We are grateful for the contributions of the open-source community, particularly:
127-
128-
- [shadcn/ui](https://ui.shadcn.com/)
129-
- [tweakcn](https://tweakcn.com/) (Our Theme Generator is heavily inspired by tweakcn)
130-
131-
These projects form the backbone of shadcn/studio, allowing us to build a powerful copy-and-paste components.
132-
133-
## License ©
134-
135-
- Copyright © [ThemeSelection](https://themeselection.com/)
136-
- Licensed under [MIT](https://github.com/themeselection/shadcn-studio/blob/main/LICENSE.md)
137-
- shadcn/studio is an open-source collection of copy-and-paste shadcn components, blocks, and templates - paired with a powerful theme generator to craft, customize, and ship faster.
138-
139277
## Useful Links 🎁
140278

141279
- [Shadcn Blocks](https://shadcnstudio.com/blocks)

0 commit comments

Comments
 (0)