Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A template repo for creating theme integrations for Astro with Astro Theme Provider

NotificationsYou must be signed in to change notification settings

astrolicious/astro-theme-provider-template

Repository files navigation

This repository contains a template for creating an Astro theme integration withAstro Theme Provider.

How to Author a Theme

  1. Clone thetheme template:
git clone https://github.com/astrolicious/astro-theme-provider-template.git my-theme
  1. Navigate to the created directory and install dependencies:

Important: This repo usespnpm workspaces, you must usepnpm as your package manager

cd my-theme/pnpm install
  1. Run the playground to generate types for theme development and preview any changes:

Important: The playground always has to be running to generate types when authoring a theme

pnpm playground:dev
  1. Change the theme name: The default name inside this repo ismy-theme. It is recommended to usefind and replace to replace all occurrences ofmy-theme inside the repo with the name of your own theme. If you can't find and replace, you can manually change the name inside the following files:
    • package/package.json
    • playground/package.json (Re-install dependencies inside playground after renaming)
    • Update imports inside the/package/src folder
  2. Updatepackage.json: Addhomepage andrepository properties to your theme package (package/package.json), you should see warnings in the console that explains this further. While you are there, add or modify any other properties you may want likedescription,keywords,license,author, etc. (see:configuringpackage.json).
  3. Explore! Authoring a theme usingastro-theme-provider is similar to creating a normal Astro project. Explore the repo andcheck out the docs to learn more about how to author a theme.

About

A template repo for creating theme integrations for Astro with Astro Theme Provider

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project


    [8]ページ先頭

    ©2009-2025 Movatter.jp