1
0
Fork
You've already forked hec-website
0
No description
  • Astro 83.6%
  • TypeScript 13.9%
  • JavaScript 1.2%
  • CSS 1%
  • HTML 0.2%
  • Other 0.1%
Find a file
2025年06月25日 21:19:16 -04:00
.github/workflows ci: remove duplicate npm run check command from build job 2024年08月28日 15:02:03 +09:00
.vscode Update useFlatConfig 2024年06月22日 12:30:39 -04:00
nginx Deploy implementation 2024年10月09日 10:26:17 +02:00
public june meeting post: add slides 2025年06月25日 21:19:16 -04:00
src june meeting post: add slides 2025年06月25日 21:19:16 -04:00
vendor Fix issue #524 : Updating robots.txt with Sitemap 2024年10月04日 02:27:24 -04:00
.dockerignore Ignored common files 2024年10月09日 10:25:53 +02:00
.editorconfig Add .editorconfig 2023年01月21日 20:19:20 -05:00
.gitattributes First commit 2022年06月23日 23:12:27 -04:00
.gitignore gitignore update for emacs files 2025年03月12日 17:42:47 -04:00
.npmrc Expose Astro dependencies for users 2022年09月11日 02:23:16 -04:00
.prettierignore Remove *.md from .prettierignore 2022年11月06日 14:42:27 -05:00
.prettierrc.cjs Update to eslint v9 2024年04月09日 01:47:10 +02:00
.stackblitzrc Basic configuration for Stackblitz 2022年09月11日 02:23:47 -04:00
astro.config.ts style: format 2024年08月28日 10:19:12 +09:00
docker-compose.yml Update versions (astro v5.1.8) 2025年01月22日 06:35:56 -05:00
Dockerfile Missing slash 2024年10月09日 10:31:07 +02:00
eslint.config.js refactor: add .astro to ignore 2024年04月28日 17:10:05 -04:00
LICENSE.md Change to MIT license 2023年01月21日 17:23:37 -05:00
netlify.toml refactor: netlify.toml to meet intent 2024年04月28日 16:39:51 -04:00
package-lock.json re-add fullcalendar node packages 2025年05月07日 11:54:54 -04:00
package.json re-add fullcalendar node packages 2025年05月07日 11:54:54 -04:00
README.md Update README.md 2025年04月22日 22:15:34 -04:00
sandbox.config.json Update sandbox.config.json 2023年08月30日 12:24:36 -04:00
tailwind.config.js Add basic animation 2024年10月13日 03:33:40 -04:00
tsconfig.json Migrate to astro v5 beta: first round 2024年10月04日 03:34:51 -04:00
vercel.json Migrate to astro v2 2023年01月21日 18:19:55 -05:00
vscode.tailwind.json Fix css custom data for tailwind 2023年01月22日 02:35:02 -05:00

🚀 AstroWind

[画像:AstroWind Lighthouse Score]

🌟 Most starred & forked Astro theme in 2022, 2023 & 2024. 🌟

AstroWind is a free and open-source template to make your website using Astro 5.0 + Tailwind CSS . Ready to start a new project and designed taking into account web best practices.

  • Production-ready scores in PageSpeed Insights reports.
  • Integration with Tailwind CSS supporting Dark mode and RTL.
  • Fast and SEO friendly blog with automatic RSS feed, MDX support, Categories & Tags, Social Share, ...
  • Image Optimization (using new Astro Assets and Unpic for Universal image CDN).
  • Generation of project sitemap based on your routes.
  • Open Graph tags for social media sharing.
  • Analytics built-in Google Analytics, and Splitbee integration.

AstroWind Theme Screenshot

onWidget License Maintained Contributions Welcome Known Vulnerabilities Stars Forks


Table of Contents

Demo

📌 https://astrowind.vercel.app/


🔔 Upcoming: AstroWind 2.0 – We Need Your Vision!

We're embarking on an exciting journey with AstroWind 2.0, and we want you to be a part of it! We're currently taking the first steps in developing this new version and your insights are invaluable. Join the discussion and share your feedback, ideas, and suggestions to help shape the future of AstroWind. Let's make AstroWind 2.0 even better, together!

Share Your Feedback in Our Discussion!


TL;DR

npm create astro@latest -- --template onwidget/astrowind

Getting started

AstroWind tries to give you quick access to creating a website using Astro 5.0 + Tailwind CSS. It's a free theme which focuses on simplicity, good practices and high performance.

Very little vanilla javascript is used only to provide basic functionality so that each developer decides which framework (React, Vue, Svelte, Solid JS...) to use and how to approach their goals.

In this version the template supports all the options in the output configuration, static, hybrid and server, but the blog only works with prerender = true. We are working on the next version and aim to make it fully compatible with SSR.

Project structure

Inside AstroWind template, you'll see the following folders and files:

/
├── public/
│ ├── _headers
│ └── robots.txt
├── src/
│ ├── assets/
│ │ ├── favicons/
│ │ ├── images/
│ │ └── styles/
│ │ └── tailwind.css
│ ├── components/
│ │ ├── blog/
│ │ ├── common/
│ │ ├── ui/
│ │ ├── widgets/
│ │ │ ├── Header.astro
│ │ │ └── ...
│ │ ├── CustomStyles.astro
│ │ ├── Favicons.astro
│ │ └── Logo.astro
│ ├── content/
│ │ ├── post/
│ │ │ ├── post-slug-1.md
│ │ │ ├── post-slug-2.mdx
│ │ │ └── ...
│ │ └-- config.ts
│ ├── layouts/
│ │ ├── Layout.astro
│ │ ├── MarkdownLayout.astro
│ │ └── PageLayout.astro
│ ├── pages/
│ │ ├── [...blog]/
│ │ │ ├── [category]/
│ │ │ ├── [tag]/
│ │ │ ├── [...page].astro
│ │ │ └── index.astro
│ │ ├── index.astro
│ │ ├── 404.astro
│ │ ├-- rss.xml.ts
│ │ └── ...
│ ├── utils/
│ ├── config.yaml
│ └── navigation.js
├── package.json
├── astro.config.ts
└── ...

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory if they do not require any transformation or in the assets/ directory if they are imported directly.

Edit AstroWind on CodeSandbox Open in Gitpod Open in StackBlitz

🧑‍🚀 Seasoned astronaut? Delete this file README.md. Update src/config.yaml and contents. Have fun!


Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:4321
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run check Check your project for errors
npm run fix Run Eslint and format codes with Prettier
npm run astro ... Run CLI commands like astro add, astro preview

Configuration

Basic configuration file: ./src/config.yaml

site:name:'Example'site:'https://example.com'base:'/'# Change this if you need to deploy to Github Pages, for exampletrailingSlash:false# Generate permalinks with or without "/" at the endgoogleSiteVerificationId:false# Or some value,# Default SEO metadatametadata:title:default:'Example'template:'%s — Example'description:'This is the default meta description of Example website'robots:index:truefollow:trueopenGraph:site_name:'Example'images:- url:'~/assets/images/default.png'width:1200height:628type:websitetwitter:handle:'@twitter_user'site:'@twitter_user'cardType:summary_large_imagei18n:language:entextDirection:ltrapps:blog:isEnabled:true# If the blog will be enabledpostsPerPage:6# Number of posts per pagepost:isEnabled:truepermalink: '/blog/%slug%' # Variables:%slug%, %year%, %month%, %day%, %hour%, %minute%, %second%, %category%robots:index:truelist:isEnabled:truepathname:'blog'# Blog main path, you can change this to "articles" (/articles)robots:index:truecategory:isEnabled:truepathname:'category'# Category main path /category/some-category, you can change this to "group" (/group/some-category)robots:index:truetag:isEnabled:truepathname:'tag'# Tag main path /tag/some-tag, you can change this to "topics" (/topics/some-category)robots:index:falseisRelatedPostsEnabled:true# If a widget with related posts is to be displayed below each postrelatedPostsCount:4# Number of related posts to displayanalytics:vendors:googleAnalytics:id:null# or "G-XXXXXXXXXX"ui:theme: 'system' # Values:"system"| "light" | "dark" | "light:only" | "dark:only"

Customize Design

To customize Font families, Colors or more Elements refer to the following files:

  • src/components/CustomStyles.astro
  • src/assets/styles/tailwind.css

Deploy

Deploy to production (manual)

You can create an optimized production build with:

npm run build

Now, your website is ready to be deployed. All generated files are located at dist folder, which you can deploy the folder to any hosting service you prefer.

Deploy to Netlify

Clone this repository on your own GitHub account and deploy it to Netlify:

Netlify Deploy button

Deploy to Vercel

Clone this repository on your own GitHub account and deploy to Vercel:

Deploy with Vercel


Frequently Asked Questions

  • Why?

  • TailNext - Free template using Next.js 14 and Tailwind CSS with the new App Router.
  • Qwind - Free template to make your website using Qwik + Tailwind CSS.

Contributing

If you have any ideas, suggestions or find any bugs, feel free to open a discussion, an issue or create a pull request. That would be very useful for all of us and we would be happy to listen and take action.

Acknowledgements

Initially created by onWidget and maintained by a community of contributors.

License

AstroWind is licensed under the MIT license — see the LICENSE file for details.