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

Allows for the creation of E-Commerce sites using the Astro framework and Snipcart. Start your e-commerce business in minutes!

License

NotificationsYou must be signed in to change notification settings

lloydjatkinson/astro-snipcart

Repository files navigation

VersionDocumentationLicense: MITTwitter: lloydjatkinson

Astro Snipcart allows developers to rapidly build E-Commerce sites using the Astro framework and the Snipcart platform. Create an e-commerce site with just a few lines of HTML and Astro components!

This Astro integration contains all of the features that you need to build an e-commerce site withSnipcart, including:

  • Automatic installation of the Snipcart library
  • Zero JavaScript by default (apart from Snipcart)
  • Astro components to define products
  • Astro components for features such as displaying basket and total price
  • TypeScript based product definitions surfaced as Astro component props
  • An optional small design system providing common e-commerce components
  • 🔜Not just products, but subscription support also!

Demo

Install Astro Snipcart

This provides you with a set of Astro components that allow you to define your products and enables checkout. They do not have any visual aspects, do not imply any sort of theme, and are up to you to work with. These are how your application and Snipcart interact.

npm install @lloydjatkinson/astro-snipcart

(Optional) Install Astro Snipcart Design System

This builds upon (and depends upon Astro Snipcart) and provides an optional E-Commerce orientateddesign system which you can use all or parts of as the foundation for your E-Commerce site. In fact, you can build real-world sites as shown inthis playground demo.

npm install @lloydjatkinson/astro-snipcart-design-system

You'll then need to follow the steps to setup Tailwind and thedesign system as per the Astro Snipcart documentation

Here's a brief example of what you can do with the design system:

<Stackgap={{mobile:'small',desktop:'large'}}><Textas="h1"size="xlarge"weight="strong"tracking="tighter">        I'm some styled text!</Text><Pricecurrency="GBP"price={10}originalPrice={12}size="large"/></Stack>

Astro Snipcart

Which can be built up into real-world site designs:

Astro Snipcart

Development and build

This project is a monoepo. Additionally, it uses pnpm as it's package manager. Thepackages directory is where the source is contained.

Install

pnpm -r i

Usage

pnpm run docspnpm run playground

Format & Lint

pnpm -r formatpnpm -r lint

Run tests

pnpm -rtest

Author

👤Lloyd Atkinson

Show your support

Give a ⭐️ if this project helped you!

About

Allows for the creation of E-Commerce sites using the Astro framework and Snipcart. Start your e-commerce business in minutes!

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Contributors2

    •  
    •  

    [8]ページ先頭

    ©2009-2025 Movatter.jp