GithubHelp home page GithubHelp logo

nft-template-svg-composite's Introduction

SVG Composite template for CandyMint

CandyMint is a platform for creating and minting NFTs. This repository contains the svg-composite template to help creators building their own assets repository.

Usage

  1. Click Use this template to create your own repository
  2. Put images in the image directory
  3. Update the layouts.yaml file
  4. Connect your repository with your collection created in the CandyMint platform

Template Structure

image
├── graphic                  # suite
│   ├── 01_circie            # layer, should be sequential
│   │   ├── circle_01.svg    # item, should be sequential
│   │   ├── circle_02.svg
│   ├── other layers...
├── other suites...
README.md
layouts.yaml
  • image/<suite>/<layer>/<item>.svg is the core structure of the SVG Composite template:
  • README.md is the README file of the repository.
  • layouts.yaml is the configuration file of the NFT items, see Anatomy for more details.

Anatomy

template: svg_composite       # template name, DO NOT change
engine: 0.1.0                 # engine version, DO NOT change
config:
  mime: image/svg+xml         # image mime type
  size:
    width: 512                # image width
    height: 512               # image height
    # ...                     # other properties used internally, DO NOT change
suites:
  - name: graphic             # suite name, should be unique and same as the directory name
    layers:
      - name: 01_circle       # layer name, should be unique and same as the directory name
        items:
          - value: circle_01       # trait value of the item, will include in the NFT metadata
            image: circle_01.svg   # file name of the item
            trait_type: circle     # trait type, can be arbitrary string, will include in the NFT metadata
            display_type: string   # display type of the trait, can be string or number, etc.
          - value: circle_02
            image: circle_02.svg
            trait_type: circle
            display_type: string
          # other items...
      # other layers...
  # other suites...

Caveats:

  • The image directory MUST contain only images.
  • The layouts.yaml file MUST be valid YAML.
  • In order to build a solid collection, the layers and their items MUST be sequential.
  • Preserving order in layouts.yaml: CandyMint allows managing multiple collection versions. When adding new images and updating the layouts.yaml, it's crucial to append new elements at the end. DO NOT rearrange the existing order of backgrounds, layers, or items. This ensure all versions function correctly.

TODO

  • Add a license

Other Templates

Relative Links

nft-template-svg-composite's People

Contributors

naqunmiemie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.