MCPcopy Index your code
hub / github.com/cristicretu/meshgrad

github.com/cristicretu/meshgrad @v0.0.10

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.10 ↗ · + Follow
25 symbols 52 edges 13 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🎨 Meshgrad meshgrad minzip package size meshgrad package version

Meshgrad is a tiny utility to generate native-CSS Mesh Gradients.

Demo - meshgrad.cretu.dev

Install

$ npm install meshgrad

Use

Options:

  • length: number - ammount of color stops
  • baseColor: string - hex string that specifies the root color
  • hash: number - specify a number that will generate the same position each time

Vanilla Javascript

<script type="module">
  import { generateMeshGradient } from "https://cdn.skypack.dev/meshgrad";

  // Number of color stops
  const ELEMENTS = 6;

  document.getElementById("box");
  box.style = generateMeshGradient(ELEMENTS);
</script>




Svelte

<script>
import { generateMeshGradient } from 'meshgrad';

// Number of color stops
const ELEMENTS = 6;
</script>




React JSX

import { generateJSXMeshGradient } from "meshgrad";

// Number of color stops
const ELEMENTS = 6;

export function App() {
  return 

;
}

Core symbols most depended-on inside this repo

hexToHSL
called by 4
meshgrad/src/index.ts
cn
called by 4
website/lib/classNames.ts
getPercent
called by 2
meshgrad/src/index.ts
getHashPercent
called by 2
meshgrad/src/index.ts
genStops
called by 2
meshgrad/src/index.ts
generateJSXMeshGradient
called by 2
meshgrad/src/index.ts
getColor
called by 1
meshgrad/src/index.ts
genColors
called by 1
meshgrad/src/index.ts

Shape

Function 21
Class 2
Method 2

Languages

TypeScript100%

Modules by API surface

meshgrad/src/index.ts9 symbols
website/pages/index.tsx8 symbols
website/pages/_document.tsx4 symbols
website/pages/api/hello.ts1 symbols
website/pages/_app.tsx1 symbols
website/lib/classNames.ts1 symbols
website/components/Container/Container.tsx1 symbols

For agents

$ claude mcp add meshgrad \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page