npm create astro@latest -- --template basics
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
│ └── favicon.svg
├── src/
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
To learn more about the folder structure of an Astro project, refer to our guide on project structure.
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 astro ... |
Run CLI commands like astro add , astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Feel free to check our documentation or jump into our Discord server.
- 基础:16px
- 次要:14px
#000000 #F7D44c #EB7A53 #89B7DB #A8D672 #F6ECC9 #FFFFFF
#1A1A1A(深黑灰色) #F9C846(略带橙调的金黄色) #E6704D(柔和的橙红色) #82A8C9(较柔和的浅蓝色) #B5D27F(更清新的浅绿色) #F8E8B8(稍暖的米白色) #FAFAFA(略微柔和的白色)