Skip to content

Commit 036f840

Browse files
matmenclaude
andcommitted
Logo: README header, docs favicon, toolbar icon and link previews
media/ holds the new logo assets (SVGs with text as paths, favicon.ico, apple-touch-icon, social preview, Discord icon). The README's heading is the wordmark with tagline (light and dark by <picture>, absolute URLs so it shows on npm and JSR too) and the Documentation badge carries the mark. The docs get the favicon and the mark in the toolbar (typedoc's favicon and customCss), and scripts/docs.js adds a real description, Open Graph/Twitter tags with the social preview, /favicon.ico and /apple-touch-icon.png, and swaps the README's <picture> for two images following the docs' own theme setting instead of the OS's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BsU2GAqbnFSNaYDBGD1Km2
1 parent 6786914 commit 036f840

21 files changed

Lines changed: 137 additions & 5 deletions

‎README.md‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
# ImageScript
2-
##### zero-dependency JavaScript image manipulation
1+
<h1 align="center">
2+
<picture>
3+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/matmen/ImageScript/master/media/wordmark-tagline-dark.svg">
4+
<img alt="ImageScript: Pure TypeScript image processing that runs everywhere" src="https://raw.githubusercontent.com/matmen/ImageScript/master/media/wordmark-tagline.svg" width="640">
5+
</picture>
6+
</h1>
7+
38
[![Discord Server](https://img.shields.io/discord/691713541262147687.svg?label=Discord&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2&style=for-the-badge)](https://discord.gg/8hPrwAH)
4-
[![Documentation](https://img.shields.io/badge/Documentation-informational?style=for-the-badge)](https://imagescript.dev/)
9+
[![Documentation](https://img.shields.io/badge/Documentation-informational?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgcm9sZT0iaW1nIiBhcmlhLWxh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I1NiIgaGVpZ2h0PSI1NiIgcng9IjEwIiBmaWxsPSIjZmZmIi8+PHJlY3QgeD0iMjI4IiB5PSIyOTIiIHdpZHRoPSI1NiIgaGVpZ2h0PSI1NiIgcng9IjEwIiBmaWxsPSIjZmZmIi8+PHJlY3QgeD0iMjkyIiB5PSIyOTIiIHdpZHRoPSI1NiIgaGVpZ2h0PSI1NiIgcng9IjEwIiBmaWxsPSIjZmZmIi8+PC9zdmc+Cg==)](https://imagescript.dev/)
510
[![Github](https://img.shields.io/badge/Github-Repository-181717?logo=github&style=for-the-badge)](https://github.com/matmen/ImageScript)
611
[![NPM](https://nodei.co/npm/imagescript.png)](https://www.npmjs.com/package/imagescript)
712

‎media/README.md‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# ImageScript logo assets
2+
3+
The `{■}` mark: curly braces around a 3×3 pixel mosaic. All text is converted to paths, so the SVGs render
4+
the same everywhere without fonts (Inter ExtraBold + JetBrains Mono Medium/Regular were used).
5+
6+
## Files
7+
8+
| File | Use |
9+
|---|---|
10+
| `favicon.svg`, `favicon.ico` (16/32/48), `favicon-16/32/48.png` | imagescript.dev favicon |
11+
| `apple-touch-icon.png` (180, full bleed) | iOS home screen |
12+
| `icon-192.png`, `icon-512.png`, `icon-1024.png` | web manifest, general use |
13+
| `icon.svg` / `icon-dark-ring.svg` | app-style tile; the ring variant separates it from dark backgrounds |
14+
| `mark-transparent.svg` / `-dark.svg` | mark without tile, for light / dark backgrounds |
15+
| `mark-mono-black.svg` / `-white.svg` | single colour (print, stamps, shields.io `logo=`) |
16+
| `wordmark.svg` / `-dark.svg` (+ `.png` @2x) | icon + name, e.g. docs header |
17+
| `wordmark-tagline.svg` / `-dark.svg` (+ `.png` @2x) | icon + name + description, README header |
18+
| `social-preview.png` / `.svg` (1280×640) | GitHub social preview and `og:image` |
19+
| `discord-icon.png` (512, safe inside the circle crop) | Discord server icon |
20+
21+
## Colours
22+
23+
| | Hex |
24+
|---|---|
25+
| tile / ink | `#141821` |
26+
| braces on dark | `#F2F4F8` |
27+
| "Script" (light / dark bg) | `#3178C6` / `#6FA8FF` |
28+
| mosaic | `#FFC857` `#FF8C61` `#E85D8C` `#8E6CEF` `#4C7DF0` |
29+
30+
## Where they're used
31+
32+
- README header: `wordmark-tagline.svg` / `-dark.svg` by absolute URL, so it also shows on npm and JSR; the
33+
Documentation badge has `mark-mono-white.svg` inlined as its logo
34+
- docs (imagescript.dev): `favicon.svg` and `docs.css` through `typedoc.json`; `scripts/docs.js` copies
35+
`favicon.ico`, `apple-touch-icon.png` and `social-preview.png` to the site's root and adds the description and
36+
Open Graph tags to every page
37+
- set by hand: `social-preview.png` as the repository's social preview (Settings → General → Social preview),
38+
`discord-icon.png` as the Discord server's icon

‎media/apple-touch-icon.png‎

4.4 KB
Loading

‎media/discord-icon.png‎

11.2 KB
Loading

‎media/docs.css‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* typedoc's custom CSS for imagescript.dev (assets/custom.css, next to assets/favicon.svg) */
2+
3+
/* the mark before the title in the toolbar */
4+
.tsd-page-toolbar .title {
5+
display: inline-flex;
6+
align-items: center;
7+
gap: 0.5em;
8+
}
9+
10+
.tsd-page-toolbar .title::before {
11+
content: "";
12+
flex: none;
13+
width: 1.5em;
14+
height: 1.5em;
15+
background: url(favicon.svg) center / contain no-repeat;
16+
}
17+
18+
/* the README's wordmark following typedoc's theme setting rather than the OS's (scripts/docs.js splits it in two) */
19+
.wordmark-dark {
20+
display: none;
21+
}
22+
23+
:root[data-theme="dark"] .wordmark-light {
24+
display: none;
25+
}
26+
27+
:root[data-theme="dark"] .wordmark-dark {
28+
display: inline;
29+
}
30+
31+
@media (prefers-color-scheme: dark) {
32+
:root[data-theme="os"] .wordmark-light {
33+
display: none;
34+
}
35+
36+
:root[data-theme="os"] .wordmark-dark {
37+
display: inline;
38+
}
39+
}

‎media/favicon.ico‎

14.7 KB
Binary file not shown.

‎media/favicon.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎media/icon-dark-ring.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎media/icon.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎media/mark-mono-black.svg‎

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)