Skip to content

ammaaraslam/react-gradients-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Gradients API

Welcome to the react-gradients-api repository. This repository houses an API built for the React Gradients play at ReactPlay.io.

Note:- Although it was built for use in the React Gradients play, the API does not contain any play specific properties. So feel free to use in your own application!

API Endpoints

These are the currently available endpoints:

  • /gradients
    • GET - This method is used retrieve all gradients from the API.
    • POST - This method is used to add a new gradient to the database. Required properties for the POST method:
      {
         "name": "Name of the Gradient",
         "css": "CSS code for the gradient.",
         "tailwind": "TailwindCSS code for the gradient",
         "colors": ["A list containing all the colors used in the gradient"]
      },
      Example:
      {
          "name": "Flamingo",
          "css": "linear-gradient(to right, #f472b6, #db2777)",
          "tailwind": "bg-gradient-to-r from-pink-400 to-pink-600",
          "colors": ["#f472b6", "#db2777"]
      },

      Note:- Please make sure to add all your colors in the form of HEX. Please use this converter if you have used any other format.

Contributing

If you face any issues or have feature requests, don't hesitate to create issue on this repository.

Support me!

If you find this project to be useful, consider buying me a coffee and following me on Twitter, GitHub, Hashnode and Showwcase.

Thank You!

Thank you so much for taking the time to read this. If you liked and find this API to be useful, please do share about it and tag me @itsammaar_7.

And also, make sure to star this repository, check out my play and contribute and become a part of the ReactPlay community.

About

An API with a collection of gradients for the React Gradients play in ReactPlay.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published