Skip to content

shadcnstudio/shadcn-astro-ink-landing-page-free

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

69 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

$brand_name-logo

shadcn/studio is an open-source collection of copy-and-paste shadcn components, blocks, and templates - paired with a powerful theme generator & AI Tools to craft, customize, and ship faster. ๐Ÿš€

shadcn/studio banner

MIT License Twitter Follow

themeselection logo

Supported by ThemeSelection , with a commitment to empowering the open-source community.


Table of Contents ๐Ÿ“‹


Why should I use shadcn/studio? ๐Ÿ’ก

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.

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.

Shadcn + Astro โ€” Ink Landing Page

This project showcases a complete business website with sections for Header, Hero, Changelog Timeline,FAQ, and call-to-action components.

โœจ Features

  • ๐Ÿš€ Built with Astro - Fast, modern static site generation
  • ๐ŸŽจ Shadcn Studio Components - Beautiful, ready-to-use Tailwind CSS components
  • ๐Ÿ“ฑ Fully Responsive - Optimized for mobile, tablet, and desktop
  • โšก Optimized Performance - Fast page loads and excellent SEO
  • ๐Ÿ”ง TypeScript Support - Type-safe configuration and development
  • ๐Ÿ’… Prettier Integration - Automatic code formatting with Tailwind class sorting
  • ๐ŸŒ™ Tailwind CSS 4 - Latest Tailwind with modern features

๐Ÿ—๏ธ Project Structure

shadcn-studio-astro-template/
โ”œโ”€โ”€ public/                    # Public static assets
โ”‚   โ”œโ”€โ”€ favicon/               # Favicon files
โ”‚   โ”œโ”€โ”€ images/                # Public images
โ”‚   โ”œโ”€โ”€ _headers               # Netlify Deploy Headers
โ”‚   โ”œโ”€โ”€ robots.txt             # SEO crawler rules
โ”‚   โ””โ”€โ”€ site.webmanifest       # PWA manifest
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ assets/                # SVG and other assets
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ components/            # Reusable UI components
โ”‚   โ”‚   โ””โ”€โ”€ blocks/            # Block components
โ”‚   โ”‚   โ””โ”€โ”€ layout/            # Layout components
โ”‚   โ”‚   โ””โ”€โ”€ sections/          # Data of components
โ”‚   โ”‚   โ””โ”€โ”€ ui/                # Base UI components
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ layouts/               # Astro layout files
โ”‚   โ”‚   โ”œโ”€โ”€ BlankLayout.astro  # Minimal layout
โ”‚   โ”‚   โ”œโ”€โ”€ HeadSeo.astro      # SEO head layout
โ”‚   โ”‚   โ””โ”€โ”€ Layout.astro       # Main site layout
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ lib/                   # Helper libraries
โ”‚   โ”‚   โ””โ”€โ”€ utils.ts           # Utility functions
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ pages/                 # Route-based pages
โ”‚   โ”‚   โ”œโ”€โ”€ 404.astro          # 404 page
โ”‚   โ”‚   โ”œโ”€โ”€ index.astro        # Home page
โ”‚   โ”‚   โ””โ”€โ”€ rss.xml.js         # RSS feed generator
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ styles/
โ”‚   โ”‚   โ””โ”€โ”€ global.css         # Global styles
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ utils/                 # Utility functions
โ”‚   โ”‚   โ””โ”€โ”€ seo.ts             # SEO helpers
โ”‚   โ””โ”€โ”€ consts.ts              # Application constants (SEO)
โ”‚
โ”œโ”€โ”€ astro.config.mjs           # Astro configuration
โ”œโ”€โ”€ content.config.ts          # Content collections config
โ”œโ”€โ”€ .env.example               # Environment variable template
โ”œโ”€โ”€ components.json            # shadcn/ui config
โ”œโ”€โ”€ package.json               # Dependencies & scripts
โ”œโ”€โ”€ tsconfig.json              # TypeScript configuration
โ””โ”€โ”€ vercel.json                # Vercel deployment config

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18, 20, or 22+
  • pnpm (recommended) or npm

Installation

  1. Install dependencies:

    pnpm install
  2. Start the development server:

    pnpm run dev

    The site will be available at http://localhost:4321

  3. Build for production:

    pnpm build

    The built site will be in the dist/ folder with relative asset paths for easy deployment.

  4. Preview the production build:

    pnpm run preview

๐Ÿงž Available Commands

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.

Command Action
dev Starts the Astro development server with hot-reload enabled. Your application will be available at http://localhost:4321
build Creates an optimized production build of your application. This command generates static files and optimizes your code for deployment.
preview Preview production site locally. Use this to test your production build locally before deploying.
lint Runs ESLint to check your code for potential errors and code quality issues. This helps maintain clean and consistent code.
lint:fix Runs ESLint and automatically fixes problems where possible.
format Formats all files using Prettier to ensure consistent code style.
check-types Checks TypeScript types to catch type errors before building or deploying.

๐ŸŽจ Code Formatting

This project uses Prettier for code formatting with the following features:

  • Automatic formatting on save in VS Code
  • Tailwind CSS class sorting - Classes are automatically sorted in the recommended order
  • Extra space removal - Trailing whitespace and extra spaces are removed
  • Consistent code style - Enforced across all .astro, .js, .ts, and .css files

Setup

  1. Install recommended VS Code extensions (you'll be prompted when opening the project):

    • Prettier - Code formatter
    • Astro
    • Tailwind CSS IntelliSense
    • EditorConfig for VS Code
  2. Formatting will work automatically on save thanks to:

    • .prettierrc - Prettier configuration
    • .editorconfig - Editor settings
    • .vscode/settings.json - VS Code workspace settings
  3. Manual formatting:

    pnpm run format        # Format all files

โš™๏ธ Configuration

Edit src/consts.ts to customize your site:

export const siteConfig = {
  creatorName: 'Shadcn Studio',
  demoName: 'Ink',
  templateName: 'Blog Landing Page'
  // ... more settings
}

๐Ÿ” SEO & Site Configuration

Configure the site's SEO and global metadata in src/consts.ts. These settings power the HeadSeo.astro layout and seo.ts helpers so pages have correct titles, descriptions, and social previews.

Recommended fields:

  • siteTitle: The site-wide default title.
  • siteDescription: Default meta description for pages.
  • siteUrl: The canonical base URL for building absolute links.
  • siteLocale: Locale string used for html/lang and Open Graph (e.g. en-US).
  • siteAuthor: Default author/creator name.
  • siteKeywords: Array of SEO keywords.
  • socialImage: Path to the default social preview image (OG/Twitter card).
  • faviconPath: Path to the favicon in /public.
  • themeColor: Theme color meta for browsers and PWA.
  • twitterHandle: Official Twitter/X handle for site cards.
  • analyticsId: Optional analytics measurement id (Google Analytics, Plausible, etc.).

Example siteConfig with SEO fields:

// Example SEO & site settings โ€” edit src/consts.ts
export const siteConfig = {
  siteTitle: 'Ink โ€” Blog Landing Page',
  siteDescription: 'A beautifully crafted Blog and product landing page built with Astro and shadcn/studio.',
  siteUrl: 'https://example.com',
  siteLocale: 'en-US',
  siteAuthor: 'Shadcn Studio',
  siteKeywords: ['Blog', 'landing page', 'astro', 'shadcn'],
  socialImage: '/images/social-preview.png',
  faviconPath: '/favicon/favicon.ico',
  themeColor: '#0ea5e9',
  twitterHandle: '@ShadcnStudio',
  analyticsId: '' // optional
}

Tips:

  • Keep siteUrl consistent with your deployed domain to ensure correct canonical and Open Graph URLs.
  • Place social preview images in public/images and reference them with absolute paths (e.g. /images/social-preview.png).

๐ŸŒ Deployment

The production build creates static files with relative asset paths, making it easy to deploy to:

  • GitHub Pages
  • Netlify
  • Vercel
  • Any static hosting service

Simply upload the contents of the dist/ folder after running pnpm run build.

Documentation ๐Ÿ“š

For comprehensive documentation, please visit shadcn/studio documentation.

Community ๐Ÿค

Join the shadcn/studio community to discuss the library, ask questions, and share your experiences:

Useful Links ๐ŸŽ

Social Media ๐ŸŒ

Releases

No releases published

Packages

 
 
 

Contributors