logomarks 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/LICENSE +21 -0
- package/README.md +56 -2
- package/bin/logomarks.js +4 -0
- package/data/fonts/BricolageGrotesque-SemiBold.ttf +0 -0
- package/data/fonts/Cagliostro-Regular.ttf +0 -0
- package/data/fonts/Fraunces-SemiBold.ttf +0 -0
- package/data/fonts/IBMPlexMono-Regular.ttf +0 -0
- package/data/fonts/IBMPlexMono-SemiBold.ttf +0 -0
- package/data/fonts/InstrumentSans-SemiBold.ttf +0 -0
- package/data/fonts/InstrumentSerif-Regular.ttf +0 -0
- package/data/fonts/Inter-SemiBold.ttf +0 -0
- package/data/fonts/Limelight-Regular.ttf +0 -0
- package/data/fonts/OFL.txt +103 -0
- package/data/fonts/Shrikhand-Regular.ttf +0 -0
- package/data/fonts/SpaceGrotesk-SemiBold.ttf +0 -0
- package/data/index.bin +0 -0
- package/docs/api.md +31 -0
- package/docs/commands.md +412 -0
- package/docs/editing.md +61 -0
- package/docs/mcp.md +45 -0
- package/package.json +94 -4
- package/src/brand/brand.d.ts +23 -0
- package/src/brand/brand.js +29 -0
- package/src/brand/fonts.d.ts +61 -0
- package/src/brand/fonts.js +93 -0
- package/src/brand/mark.d.ts +53 -0
- package/src/brand/mark.js +151 -0
- package/src/checks/finding.d.ts +56 -0
- package/src/checks/finding.js +57 -0
- package/src/checks/fit.d.ts +5 -0
- package/src/checks/fit.js +46 -0
- package/src/checks/index.d.ts +33 -0
- package/src/checks/index.js +57 -0
- package/src/checks/specks.d.ts +5 -0
- package/src/checks/specks.js +38 -0
- package/src/checks/widths.d.ts +7 -0
- package/src/checks/widths.js +48 -0
- package/src/cli/args.d.ts +20 -0
- package/src/cli/args.js +35 -0
- package/src/cli/commands/check.d.ts +10 -0
- package/src/cli/commands/check.js +66 -0
- package/src/cli/commands/combine.d.ts +10 -0
- package/src/cli/commands/combine.js +54 -0
- package/src/cli/commands/cover.d.ts +10 -0
- package/src/cli/commands/cover.js +53 -0
- package/src/cli/commands/edit.d.ts +10 -0
- package/src/cli/commands/edit.js +70 -0
- package/src/cli/commands/find.d.ts +10 -0
- package/src/cli/commands/find.js +61 -0
- package/src/cli/commands/get.d.ts +10 -0
- package/src/cli/commands/get.js +57 -0
- package/src/cli/commands/glitch.d.ts +10 -0
- package/src/cli/commands/glitch.js +57 -0
- package/src/cli/commands/index.d.ts +15 -0
- package/src/cli/commands/index.js +24 -0
- package/src/cli/commands/kit.d.ts +10 -0
- package/src/cli/commands/kit.js +66 -0
- package/src/cli/commands/mcp.d.ts +9 -0
- package/src/cli/commands/mcp.js +36 -0
- package/src/cli/commands/mockup.d.ts +10 -0
- package/src/cli/commands/mockup.js +61 -0
- package/src/cli/commands/parts.d.ts +10 -0
- package/src/cli/commands/parts.js +44 -0
- package/src/cli/commands/sheet.d.ts +10 -0
- package/src/cli/commands/sheet.js +66 -0
- package/src/cli/commands/similar.d.ts +10 -0
- package/src/cli/commands/similar.js +111 -0
- package/src/cli/commands/social.d.ts +10 -0
- package/src/cli/commands/social.js +65 -0
- package/src/cli/commands/specks.d.ts +20 -0
- package/src/cli/commands/specks.js +103 -0
- package/src/cli/edited.d.ts +6 -0
- package/src/cli/edited.js +32 -0
- package/src/cli/files.d.ts +4 -0
- package/src/cli/files.js +27 -0
- package/src/cli/help.d.ts +20 -0
- package/src/cli/help.js +55 -0
- package/src/cli/index.d.ts +10 -0
- package/src/cli/index.js +104 -0
- package/src/cli/options.d.ts +30 -0
- package/src/cli/options.js +155 -0
- package/src/cli/report.d.ts +4 -0
- package/src/cli/report.js +28 -0
- package/src/cli/style.d.ts +4 -0
- package/src/cli/style.js +34 -0
- package/src/cover/index.d.ts +49 -0
- package/src/cover/index.js +63 -0
- package/src/edit/combine.d.ts +31 -0
- package/src/edit/combine.js +103 -0
- package/src/edit/doc.d.ts +34 -0
- package/src/edit/doc.js +96 -0
- package/src/edit/glitch.d.ts +48 -0
- package/src/edit/glitch.js +43 -0
- package/src/edit/index.d.ts +8 -0
- package/src/edit/index.js +11 -0
- package/src/edit/ops.d.ts +51 -0
- package/src/edit/ops.js +90 -0
- package/src/edit/preview.d.ts +8 -0
- package/src/edit/preview.js +51 -0
- package/src/find/index.d.ts +54 -0
- package/src/find/index.js +88 -0
- package/src/index.d.ts +30 -0
- package/src/index.js +28 -0
- package/src/kit/index.d.ts +26 -0
- package/src/kit/index.js +31 -0
- package/src/mcp/content.d.ts +30 -0
- package/src/mcp/content.js +56 -0
- package/src/mcp/edited.d.ts +5 -0
- package/src/mcp/edited.js +25 -0
- package/src/mcp/index.d.ts +41 -0
- package/src/mcp/index.js +72 -0
- package/src/mcp/inputs.d.ts +46 -0
- package/src/mcp/inputs.js +122 -0
- package/src/mcp/preview.d.ts +4 -0
- package/src/mcp/preview.js +24 -0
- package/src/mcp/tools/check.d.ts +15 -0
- package/src/mcp/tools/check.js +47 -0
- package/src/mcp/tools/combine.d.ts +15 -0
- package/src/mcp/tools/combine.js +42 -0
- package/src/mcp/tools/cover.d.ts +20 -0
- package/src/mcp/tools/cover.js +46 -0
- package/src/mcp/tools/edit.d.ts +21 -0
- package/src/mcp/tools/edit.js +73 -0
- package/src/mcp/tools/find.d.ts +14 -0
- package/src/mcp/tools/find.js +36 -0
- package/src/mcp/tools/get.d.ts +15 -0
- package/src/mcp/tools/get.js +44 -0
- package/src/mcp/tools/glitch.d.ts +12 -0
- package/src/mcp/tools/glitch.js +39 -0
- package/src/mcp/tools/index.d.ts +4 -0
- package/src/mcp/tools/index.js +23 -0
- package/src/mcp/tools/kit.d.ts +28 -0
- package/src/mcp/tools/kit.js +51 -0
- package/src/mcp/tools/mockup.d.ts +22 -0
- package/src/mcp/tools/mockup.js +51 -0
- package/src/mcp/tools/sheet.d.ts +15 -0
- package/src/mcp/tools/sheet.js +43 -0
- package/src/mcp/tools/similar.d.ts +13 -0
- package/src/mcp/tools/similar.js +42 -0
- package/src/mcp/tools/social.d.ts +5 -0
- package/src/mcp/tools/social.js +68 -0
- package/src/mockup/index.d.ts +52 -0
- package/src/mockup/index.js +152 -0
- package/src/raster/render.d.ts +30 -0
- package/src/raster/render.js +100 -0
- package/src/rules.d.ts +73 -0
- package/src/rules.js +139 -0
- package/src/sheet/card.d.ts +20 -0
- package/src/sheet/card.js +190 -0
- package/src/sheet/draw.d.ts +26 -0
- package/src/sheet/draw.js +94 -0
- package/src/sheet/grid.d.ts +2 -0
- package/src/sheet/grid.js +32 -0
- package/src/sheet/index.d.ts +31 -0
- package/src/sheet/index.js +47 -0
- package/src/sheet/theme.d.ts +8 -0
- package/src/sheet/theme.js +45 -0
- package/src/similar/folder.d.ts +20 -0
- package/src/similar/folder.js +66 -0
- package/src/similar/nearest.d.ts +32 -0
- package/src/similar/nearest.js +60 -0
- package/src/similar/signature.d.ts +12 -0
- package/src/similar/signature.js +42 -0
- package/src/similar/store.d.ts +67 -0
- package/src/similar/store.js +88 -0
- package/src/util/color.d.ts +2 -0
- package/src/util/color.js +23 -0
- package/src/util/files.d.ts +8 -0
- package/src/util/files.js +60 -0
- package/src/util/round.d.ts +2 -0
- package/src/util/round.js +14 -0
- package/src/util/version.d.ts +2 -0
- package/src/util/version.js +10 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `logomarks` are documented here.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [1.1.0] — 2026-11-07
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Drops 20–25.** The bundled index holds 4,115 marks (from 3,797): font editions, the future-industries round
|
|
15
|
+
(cybersecurity, data centres, smart home, quantum, longevity, hydrogen, carbon removal, circular economy, vertical
|
|
16
|
+
farming, battery storage), wellness and Thailand. `find` reaches the ten new industry pages.
|
|
17
|
+
- **Find by subject.** The bundled index carries each mark's `subject` (what it depicts: letter, animal, food-drink …),
|
|
18
|
+
and `find` matches its label words as the site does ("buildings", "food").
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **On `@logomarks/core` ^0.1.8:** shape tags (round, square, wide, tall, symmetric, radial, solid, light) are measured
|
|
23
|
+
from each mark's geometry, so `find round` and the shape filters agree with the site.
|
|
24
|
+
|
|
25
|
+
## [1.0.0] — 2026-11-06
|
|
26
|
+
|
|
27
|
+
The first public release (0.2.0 was never published).
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- **Find and get.** `find` searches the bundled Logomarks set (CC0) as logomarks.ai does: every word must match, with synonyms, plurals and UK and US trade names, and `--style`, `--tag`, `--industry` and `--letter` filters. `get` writes a live mark's SVG in a colour, or a PNG at a size.
|
|
32
|
+
- **Check.** `check` runs every house rule (fit to the 512 grid, markup, specks, slivers, pin-holes, clipping, thin parts, narrow and uneven gaps), each finding with an id and a box; `--fix` refits. `similar` scores a mark against every live mark (`--letters`, `--against`, `--each`, `--all`). `specks` is the set's speck review. `sheet` draws review cards, or a plain grid with `--plain`.
|
|
33
|
+
- **Edit.** `parts` lists a mark's parts by index; `edit` runs a JSON list of ops by part (delete, move, rotate, scale, flip, round, offset, mirror, radial, union, subtract, colour, two-tone); `glitch` makes glitch editions (`shear`, `slice`, `bands`, `stepped`, `lane`; the same seed gives the same bytes); `combine` makes two marks one (union, subtract, intersect, exclude, place). Every result is fitted to the grid and checked, and a failing result exits 1.
|
|
34
|
+
- **Build.** `kit` writes a brand kit from `@logomarks/brand-kit`: the mark's files, favicons and app icons, lockups, an OKLCH palette with WCAG pairings, a Tailwind theme and tokens, a brand sheet, a guidelines deck (slides and a PDF), a seal lockup, `brand.json` and a social pack (`--styles` adds an opt-in `gradient` style). `social` writes the social pack alone. `mockup` puts the brand on one of 20 objects; `cover` draws an Open Graph image, header or post.
|
|
35
|
+
- **MCP server.** `logomarks mcp` runs every command as a tool on stdio: `find_marks`, `get_mark`, `check_mark`, `similar_marks`, `review_sheet`, `list_parts`, `edit_mark`, `glitch_mark`, `combine_marks`, `build_brand_kit`, `build_social_pack`, `render_mockup` and `render_cover`. Tools that make images return a preview to look at; given `out`, they write the file and return its path rather than the SVG text. Each tool carries read-only and destructive hints.
|
|
36
|
+
- **Typefaces.** Ten bundled faces for a brand's name (`--font`), all SIL OFL: Inter, Space Grotesk, Instrument Sans, Bricolage Grotesque, Instrument Serif, IBM Plex Mono, and for restaurants Fraunces, Cagliostro, Limelight and Shrikhand. The faces with a Reserved Font Name (Cagliostro, Limelight, IBM Plex Mono) are the unmodified upstream files, pinned by sha256.
|
|
37
|
+
- **Help.** `logomarks <command> --help` (or `logomarks help <command>`) for every command, with its options, defaults and examples; `--version`.
|
|
38
|
+
- **Errors.** Exit codes 0 ok, 1 a check failed or the command failed, 2 usage. Errors are one line naming the command; `LOGOMARKS_DEBUG=1` adds the stack.
|
|
39
|
+
- **Library.** Every function behind the commands is exported (`logomarks`), and the MCP server too (`logomarks/mcp`), with TypeScript declarations.
|
|
40
|
+
- Docs in `docs/`: commands, editing, MCP tools and the API.
|
|
41
|
+
|
|
42
|
+
Built on `@logomarks/core`, `@logomarks/editor`, `@logomarks/brand-kit`, `@logomarks/mockups`, `@arraypress/covers` and `@arraypress/search`. Pure JavaScript: PNGs are drawn by resvg in WebAssembly, with no native binaries.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ArrayPress Limited
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
-
#
|
|
1
|
+
# logomarks
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Find, check, edit and build on free geometric logomarks from the command line or an AI agent. The [Logomarks](https://logomarks.ai) set is bundled (CC0, searched offline); the CLI checks marks against the set's house rules, edits and glitches them, and builds a brand kit, social pack, mockups and covers. It also runs as an MCP server. Pure JavaScript (resvg in WebAssembly), no native binaries, Node 20 or later.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx logomarks find coffee
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx logomarks find calm hexagon # search the set: slugs, styles, descriptions
|
|
13
|
+
npx logomarks get hex-gem --color '#ff5c3a' -o logo.svg
|
|
14
|
+
npx logomarks check mark.svg # every house rule; exit 1 on errors
|
|
15
|
+
npx logomarks similar mark.svg # the nearest live marks, with scores
|
|
16
|
+
npx logomarks edit quad-cove --ops '[{"op":"round","radius":18}]' -o mine.svg
|
|
17
|
+
npx logomarks glitch quad-cove --preset shear --seed 3 -o glitched.svg
|
|
18
|
+
npx logomarks kit hex-gem --name "Hexa Labs" --color '#ff5c3a' -o hexa/
|
|
19
|
+
npx logomarks mockup hex-gem --name "Hexa Labs" --object card -o card.png
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Also `specks`, `sheet`, `parts`, `combine`, `social`, `cover` and `mcp`. Run `logomarks --help` for the list and `logomarks <command> --help` for a command's options. A mark is a live slug or name, or the path to your own `.svg`. Every edit comes back fitted to the grid and checked. Every command takes `--json`. Exit codes: 0 ok, 1 a check failed or the command failed, 2 usage.
|
|
23
|
+
|
|
24
|
+
## AI agents
|
|
25
|
+
|
|
26
|
+
As a Claude Code plugin, with the two Logomarks skills (picking a mark, designing new ones) and this MCP server:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
/plugin marketplace add logomarks/skills
|
|
30
|
+
/plugin install logomarks@logomarks
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The skills alone, for any agent that reads skills (Claude Code, Cursor, Codex and more):
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx skills add logomarks/skills
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The MCP server alone:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
claude mcp add logomarks -- npx -y logomarks mcp
|
|
43
|
+
codex mcp add logomarks -- npx -y logomarks mcp
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Docs
|
|
47
|
+
|
|
48
|
+
- [Commands](docs/commands.md): every command, its options and exit codes, and the checks.
|
|
49
|
+
- [Editing](docs/editing.md): glitch presets, edit ops and combining.
|
|
50
|
+
- [MCP tools](docs/mcp.md): each tool, its arguments and what it returns.
|
|
51
|
+
- [API](docs/api.md): the functions behind them, for use as a library.
|
|
52
|
+
|
|
53
|
+
Built on [`@logomarks/core`](https://github.com/Logomarks/core), [`@logomarks/editor`](https://github.com/Logomarks/editor), [`@logomarks/brand-kit`](https://github.com/Logomarks/brand-kit), [`@logomarks/mockups`](https://github.com/Logomarks/mockups) and [`@arraypress/covers`](https://github.com/arraypress/covers).
|
|
54
|
+
|
|
55
|
+
## Licence
|
|
56
|
+
|
|
57
|
+
The CLI is MIT © ArrayPress Limited. The marks are CC0 (public domain). The bundled typefaces are SIL Open Font License 1.1 (`data/fonts/OFL.txt`).
|
package/bin/logomarks.js
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk)
|
|
3
|
+
Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans) InstrumentSans-Italic[wdth,wght].ttf: Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)
|
|
4
|
+
Copyright 2022 The Bricolage Grotesque Project Authors (https://github.com/ateliertriay/bricolage)
|
|
5
|
+
Copyright 2022 The Instrument Serif Project Authors (https://github.com/Instrument/instrument-serif) InstrumentSerif-Italic.ttf: Copyright 2022 The Instrument Serif Project Authors (https://github.com/Instrument/instrument-serif)
|
|
6
|
+
Copyright 2020 The Fraunces Project Authors (github.com/undercasetype/Fraunces) Fraunces-Italic[SOFT,WONK,opsz,wght].ttf: Copyright 2020 The Fraunces Project Authors (github.com/undercasetype/Fraunces)
|
|
7
|
+
Copyright (c) 2011, Matthew Desmond (http://www.madtype.com | mattdesmond@gmail.com),with Reserved Font Name Cagliostro.
|
|
8
|
+
Copyright (c) 2011 by Sorkin Type Co (www.sorkintype.com),
|
|
9
|
+
with Reserved Font Name "Limelight".
|
|
10
|
+
Copyright (c) 2015 Jonny Pinhorn (jonpinhorn.typedesign@gmail.com)
|
|
11
|
+
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
|
|
12
|
+
|
|
13
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
14
|
+
This license is copied below, and is also available with a FAQ at:
|
|
15
|
+
http://scripts.sil.org/OFL
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
-----------------------------------------------------------
|
|
19
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
20
|
+
-----------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
PREAMBLE
|
|
23
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
24
|
+
development of collaborative font projects, to support the font creation
|
|
25
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
26
|
+
open framework in which fonts may be shared and improved in partnership
|
|
27
|
+
with others.
|
|
28
|
+
|
|
29
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
30
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
31
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
32
|
+
redistributed and/or sold with any software provided that any reserved
|
|
33
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
34
|
+
however, cannot be released under any other type of license. The
|
|
35
|
+
requirement for fonts to remain under this license does not apply
|
|
36
|
+
to any document created using the fonts or their derivatives.
|
|
37
|
+
|
|
38
|
+
DEFINITIONS
|
|
39
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
40
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
41
|
+
include source files, build scripts and documentation.
|
|
42
|
+
|
|
43
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
44
|
+
copyright statement(s).
|
|
45
|
+
|
|
46
|
+
"Original Version" refers to the collection of Font Software components as
|
|
47
|
+
distributed by the Copyright Holder(s).
|
|
48
|
+
|
|
49
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
50
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
51
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
52
|
+
new environment.
|
|
53
|
+
|
|
54
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
55
|
+
writer or other person who contributed to the Font Software.
|
|
56
|
+
|
|
57
|
+
PERMISSION & CONDITIONS
|
|
58
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
59
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
60
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
61
|
+
Software, subject to the following conditions:
|
|
62
|
+
|
|
63
|
+
1) Neither the Font Software nor any of its individual components,
|
|
64
|
+
in Original or Modified Versions, may be sold by itself.
|
|
65
|
+
|
|
66
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
67
|
+
redistributed and/or sold with any software, provided that each copy
|
|
68
|
+
contains the above copyright notice and this license. These can be
|
|
69
|
+
included either as stand-alone text files, human-readable headers or
|
|
70
|
+
in the appropriate machine-readable metadata fields within text or
|
|
71
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
72
|
+
|
|
73
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
74
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
75
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
76
|
+
presented to the users.
|
|
77
|
+
|
|
78
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
79
|
+
Software shall not be used to promote, endorse or advertise any
|
|
80
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
81
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
82
|
+
permission.
|
|
83
|
+
|
|
84
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
85
|
+
must be distributed entirely under this license, and must not be
|
|
86
|
+
distributed under any other license. The requirement for fonts to
|
|
87
|
+
remain under this license does not apply to any document created
|
|
88
|
+
using the Font Software.
|
|
89
|
+
|
|
90
|
+
TERMINATION
|
|
91
|
+
This license becomes null and void if any of the above conditions are
|
|
92
|
+
not met.
|
|
93
|
+
|
|
94
|
+
DISCLAIMER
|
|
95
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
96
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
97
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
98
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
99
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
100
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
101
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
102
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
103
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
package/data/index.bin
ADDED
|
Binary file
|
package/docs/api.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# API
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
import { check, glitchMark, kit } from 'logomarks';
|
|
5
|
+
import { createServer, TOOLS } from 'logomarks/mcp';
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
| Export | |
|
|
9
|
+
|---|---|
|
|
10
|
+
| `check(svg, { name, ignore, strict })` | `{ ok, errors, warnings, notes, size, findings }`. |
|
|
11
|
+
| `fix(svg)` | The mark refitted, or `null` when there's nothing safe to fix. |
|
|
12
|
+
| `similar(svg, { top, letters, exclude })` | `[{ slug, name, score, verdict }]`, closest first. |
|
|
13
|
+
| `sheet([{ name, svg }])` | `{ png, svg, marks }`. |
|
|
14
|
+
| `findMarks(query, { style, tags, industry, letter, limit })`, `facets()` | `{ total, marks }`; the filters' values. |
|
|
15
|
+
| `fitMark(svg)`, `loadIndex()`, `FINDINGS`, `rules` | The fitter, the live set, every finding id, the house rules. |
|
|
16
|
+
| `loadMark(ref)`, `paint(svg, color)`, `markPng(svg, { size, color })` | A mark by slug, name or file; as a file in a colour; as a PNG. |
|
|
17
|
+
| `glitchMark(svg, { preset, angle, place, slide, gap, cuts, seed })` | `{ svg, checks, glitch }`. |
|
|
18
|
+
| `editMark(svg, ops)`, `markParts(svg)` | `{ svg, checks, parts }`; the parts by index. |
|
|
19
|
+
| `combineMarks(a, b, { op, transform })` | `{ svg, checks }`. |
|
|
20
|
+
| `markPreview(svg)`, `partsPreview(svg, parts)` | 512 px PNGs: the result; the parts numbered. |
|
|
21
|
+
| `PRESETS`, `OPS`, `COMBINE_OPS` | The glitch presets, the edit ops, the combine ops. |
|
|
22
|
+
| `kit({ mark, name, color, font, tagline, url, handle, styles, platforms, animated, social })` | brand-kit's `{ files, brand }`: every file by path, in memory. |
|
|
23
|
+
| `social({ mark, name, …, platforms, styles, animated })` | brand-kit's `{ files, brand }`. |
|
|
24
|
+
| `brandInput(o)`, `brandFont(id)` | The brand as brand-kit takes it; a bundled face as bytes. |
|
|
25
|
+
| `mockup({ mark, object, … })`, `cover({ mark, recipe, … })` | `{ png, svg, width, height }`. |
|
|
26
|
+
| `parseColor`, `FONTS`, `OBJECTS`, `RECIPES` | The parts they're built from. |
|
|
27
|
+
| `createServer({ cwd })`, `TOOLS` from `logomarks/mcp` | The MCP server (not connected) and its tools. |
|
|
28
|
+
|
|
29
|
+
The palette, lockups and artwork are [`@logomarks/brand-kit`](https://github.com/Logomarks/brand-kit)'s (`palette`, `lockup`, `artwork`), and the edits are [`@logomarks/editor`](https://github.com/Logomarks/editor)'s.
|
|
30
|
+
|
|
31
|
+
The live set is bundled (`data/index.bin`: each mark's SVG, tags, style, mood, description and industries, and its signatures; rebuilt with `npm run index`). The marks are CC0. The typefaces (IBM Plex Mono for labels; Inter, Space Grotesk, Instrument Sans, Bricolage Grotesque, Instrument Serif, and for restaurants Fraunces, Cagliostro, Limelight and Shrikhand, for names) are SIL OFL, in `data/fonts/` (`OFL.txt`; `scripts/fonts.js` writes them): latin subsets, except the faces with a Reserved Font Name (Cagliostro, Limelight, IBM Plex Mono), bundled whole and pinned by sha256.
|