Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Logos, social templates and colour tokens for the Lean Mean Clean Apps .NET temp
| Banner at the top of the organisation's own READMEs | `assets/banners/png/org.png` for `.github`, `site.png` for the website, `brand.png` for this one |
| NuGet package icon | Replace `icon.png` at the root of each template repository with `assets/logos/<template>/png/<template>-square-128.png`. The csproj already packs it as `images/icon.png`. |
| Website favicons and manifest icons | `assets/logos/<mark>/web/` |
| Icons for MCP tools, prompts and resources | `assets/icons/mcp/png/<icon>-<size>.png`, in movie, author, review and server |
| Link preview for a website | [og-image.png](assets/social/png/og-image.png) |

## The marks
Expand All @@ -44,6 +45,7 @@ Logos, social templates and colour tokens for the Lean Mean Clean Apps .NET temp

```text
assets/
icons/<template>/ Small icons for items inside a template, in svg/ and png/
logos/<mark>/svg/ SVG logos in every variant
logos/<mark>/png/ PNG logos from 16 to 1024 pixels
logos/<mark>/web/ favicon.svg, favicon.ico, apple-touch-icon.png, manifest icons
Expand Down
Binary file added assets/icons/mcp/png/author-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/author-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/author-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/author-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/author-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/movie-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/movie-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/movie-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/movie-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/movie-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/review-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/review-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/review-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/review-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/review-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/server-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/server-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/server-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/server-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/png/server-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icons/mcp/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/mcp/svg/author.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/mcp/svg/movie.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/mcp/svg/review.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/mcp/svg/server.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import path from 'node:path';
import { Resvg } from '@resvg/resvg-js';
import { neutrals, scales, org, templates } from './brand.mjs';
import { tonal, spectrum, mono, DARK_STEPS, LIGHT_STEPS, SLATE_DARK_STEPS, SLATE_LIGHT_STEPS } from './colours.mjs';
import { iconBody, iconNames, iconSvg } from './icons.mjs';
import { logoSvg, markBody } from './logo.mjs';
import { socialSvg } from './social.mjs';
import { outline } from './text.mjs';
Expand Down Expand Up @@ -221,6 +222,27 @@ for (const b of orgBanners) {
write(out('assets', 'banners', 'png', `${b.key}.png`), png(svg, 1280));
}

// ---------- Icons ----------
// One set per template that needs them, for items inside it such as MCP tools, prompts and resources.

const iconSets = [{ key: 'mcp', hue: templates.find((t) => t.key === 'mcp').hue }];

for (const set of iconSets) {
const dir = (...p) => out('assets', 'icons', set.key, ...p);
for (const name of iconNames) {
const svg = iconSvg(name, set.hue);
write(dir('svg', `${name}.svg`), svg);
for (const s of [16, 32, 64, 128, 256]) write(dir('png', `${name}-${s}.png`), png(svg, s));
}

// Every icon at three sizes, on dark and on light.
const place = (name, x, y, size) => `<g transform="translate(${x} ${y}) scale(${size / 1024})">${iconBody(name, set.hue)}</g>`;
const row = (y) => iconNames.map((name, i) => place(name, 40 + i * 160, y, 128) + place(name, 40 + i * 160, y + 140, 32) + place(name, 84 + i * 160, y + 148, 16)).join('');
const W = 680;
const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${W} 440" width="${W}" height="440"><rect width="${W}" height="220" fill="${neutrals.ink}"/><rect y="220" width="${W}" height="220" fill="${neutrals.paper}"/>${row(30)}${row(250)}</svg>\n`;
write(dir('preview.png'), png(svg, W * 2));
}

// ---------- Preview for the README ----------

{
Expand Down
39 changes: 39 additions & 0 deletions scripts/icons.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Small icons for the items inside a template, such as the tools, prompts and resources of the MCP server.
// Each one sits on the same ink tile as the logos, drawn flat in the template's hue, with the left side one shade
// lighter than the right and the paper accent standing in for the logo's core, so it reads on light and dark pages.
import { scales, neutrals } from './brand.mjs';

const shapes = {
// A film frame with a play triangle.
movie: (light, dark, accent) =>
`<path d="M212 300a56 56 0 0 1 56-56h244v536H268a56 56 0 0 1-56-56z" fill="${light}"/>` +
`<path d="M512 244h244a56 56 0 0 1 56 56v424a56 56 0 0 1-56 56H512z" fill="${dark}"/>` +
`<path d="M428 380v264l216-132z" fill="${accent}"/>`,
// A head above a pair of shoulders.
author: (light, dark, accent) =>
`<circle cx="512" cy="356" r="132" fill="${accent}"/>` +
`<path d="M512 544c-158 0-268 92-268 216v20h268z" fill="${light}"/>` +
`<path d="M512 544c158 0 268 92 268 216v20H512z" fill="${dark}"/>`,
// A star, split down the middle.
review: (light, dark) =>
`<path d="M512 196v508L316 808l38-218-158-154 218-32z" fill="${light}"/>` +
`<path d="M512 196v508l196 104-38-218 158-154-218-32z" fill="${dark}"/>`,
// Two stacked server units with a status light each.
server: (light, dark, accent) =>
[264, 544]
.map((y) =>
`<path d="M212 ${y + 48}a48 48 0 0 1 48-48h252v216H260a48 48 0 0 1-48-48z" fill="${light}"/>` +
`<path d="M512 ${y}h252a48 48 0 0 1 48 48v120a48 48 0 0 1-48 48H512z" fill="${dark}"/>` +
`<circle cx="324" cy="${y + 108}" r="44" fill="${accent}"/>`)
.join(''),
};

export const iconNames = Object.keys(shapes);

export function iconBody(name, hue) {
return `<rect width="1024" height="1024" rx="224" fill="${neutrals.ink}"/>${shapes[name](scales[hue][300], scales[hue][400], neutrals.paper)}`;
}

export function iconSvg(name, hue) {
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024" role="img" aria-label="${name}"><title>${name}</title>${iconBody(name, hue)}</svg>\n`;
}
Loading