Skip to content

GuMengYu/md3-theme-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MD3 Theme Generator

A md3 dynamic color generation tool, derived from reverse engineering of Material Theme Builder

Modified from KalilDev/material_theme_reverse

Install

npm install md3-theme-generator

Usage

import { generatePaletteFromURL } from 'md3-theme-generator'

const imageUrl = 'https://files.catbox.moe/g2lwbi.jpg';

const palette = await generatePaletteFromURL(imageUrl)
console.log(palette)

const theme = palette.save()
console.log(theme)