Getting Started
Welcome to the Cooper documentation! This guide will help you get your project up and running in minutes.
Installation
First, clone the repository to your local machine:
git clone https://github.com/Gladtek/Cooper.git
cd Cooper
Next, install the dependencies:
npm install
Running Locally
Start the development server:
npm run dev
Open your browser and navigate to http://localhost:4321 to see the site in action.
Project Structure
Hereβs a quick look at how the project is organized:
src/
βββ components/ # Reusable components
β βββ blog/ # Blog & Portfolio cards/items
β βββ common/ # Shared global tools
β βββ islands/ # Interactive React components
β βββ layout/ # Structural atoms (Section, Grid)
β βββ sections/ # Marketing blocks (Hero, Features)
β βββ ui/ # Basic UI parts (Button, Badge)
βββ content/ # Content Collections (Blog, Docs)
βββ layouts/ # Page wrappers
βββ pages/ # File-based routing
βββ styles/ # CSS & Tailwind setup
βββ site.config.ts # Global settings
Customization
Theming
You can easily customize the primary brand color and other site settings in src/site.config.ts.
// src/site.config.ts
export const siteConfig = {
name: 'Cooper',
description: 'Premium Astro Boilerplate',
primaryColor: '#C400EB', // Update this to your brand color
};
Navigation
To update the header links, modify src/components/Header.astro.
Deployment
This Boilerplate is ready to deploy to Vercel, Netlify, or any static hosting provider. Just run:
npm run build
This will generate a dist folder with your static site.
Next Steps
Check out the Components Guide to see the included premium components in action and learn how to customize them.