diff --git a/.github/banner-dark.svg b/.github/banner-dark.svg
index 517193d..3bbf165 100644
--- a/.github/banner-dark.svg
+++ b/.github/banner-dark.svg
@@ -12,10 +12,7 @@
-
-
-
-
-
-
+
+
+ReactTypeScriptLaravelHonoDockerCloudflareStripeReactTypeScriptLaravelHonoDockerCloudflareStripe
diff --git a/.github/banner-light.svg b/.github/banner-light.svg
index 49262ad..6ad8876 100644
--- a/.github/banner-light.svg
+++ b/.github/banner-light.svg
@@ -12,10 +12,7 @@
-npm: v0.1.0downloads: 12k/monthtests: passingnode: 22+license: MITbuilt with: Hono
-
-
-
-
-ReactTypeScriptLaravelHonoDockerCloudflareStripe
+npm: v0.1.0downloads: 12k/monthtests: passingnode: 22+license: MITbuilt with: Hono
+
+ReactTypeScriptLaravelHonoDockerCloudflareStripeReactTypeScriptLaravelHonoDockerCloudflareStripe
diff --git a/README.md b/README.md
index 2d3d2db..00cded2 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@
## Why
-shields.io and skillicons.dev are great, but they come in two different looks, and skillicons has no Hono, Caddy, Traefik, GoLand, Stripe, Strapi, Przelewy24 or InPost. Here badges, buttons and icons share one style, every badge has a light and a dark variant for ``, and the text is drawn as paths, so widths are exact and nothing gets clipped on machines without the fonts.
+shields.io, skillicons.dev and the profile view counters are great, but they come in different looks, and skillicons has no Hono, Caddy, Traefik, GoLand, Stripe, Strapi, Przelewy24 or InPost. Here badges, buttons and icons share one style, every badge has a light and a dark variant for ``, and the text is drawn as paths, so widths are exact and nothing gets clipped on machines without the fonts.
## Badges
@@ -42,8 +42,11 @@ The page at [badges.mscode.pl](https://badges.mscode.pl) has a badge maker and e
| Packagist version, downloads, license | `/packagist/v//`, `/packagist/dt/...` (also `dm`, `dd`), `/packagist/l/...` |
| GitHub Actions | `/github/actions///?branch=master` |
| GitHub stars, license | `/github/stars//`, `/github/license//` |
+| Profile views | `/views/`, `?base=1000` to start from a number. Never cached, so every view counts |
+| WakaTime coding time | `/wakatime/`, or with a range: `/wakatime//7d` (also `30d`, `6m`, `1y`, `all`), `?lang=TypeScript` for one language |
+| Wakapi coding time | `/wakapi/` on wakapi.dev, `?instance=wakapi.example.com` for your own instance. Same ranges and `lang` |
-In static badges `_` is a space and `__` an underscore. When an upstream API fails, the badge says `unknown` instead of breaking the image.
+In static badges `_` is a space and `__` an underscore. WakaTime and Wakapi only answer for users whose stats are public. When an upstream API fails, the badge says `unknown` instead of breaking the image.
## Icons
@@ -54,7 +57,11 @@ In static badges `_` is a space and `__` an underscore. When an upstream API fai
```
-Ids follow skillicons (`ts`, `py`, `postgres`, `idea`) and accept Simple Icons slugs as aliases. `perline=` wraps the row, 15 by default.
+Three themes: `dark` (default), `light` and `color`, where every tile takes its brand colour:
+
+
+
+Ids follow skillicons (`ts`, `py`, `postgres`, `idea`) and accept Simple Icons slugs as aliases. `perline=` wraps the row, 15 by default. The [icon builder](https://badges.mscode.pl/#icons) lets you pick, reorder and copy a row.
## Options
@@ -85,7 +92,7 @@ MIT. Badges are free to use anywhere, no attribution needed.
## Credits
-Badge fonts: [Plus Jakarta Sans](https://github.com/tokotype/PlusJakartaSans) and [JetBrains Mono](https://github.com/JetBrains/JetBrainsMono), copies in `fonts/`. Page fonts: [Geist](https://github.com/vercel/geist-font) and [Outfit](https://github.com/Outfitio/Outfit-Fonts), copies in `public/fonts/`. All under the SIL Open Font License. Brand icons: [Simple Icons](https://simpleicons.org), CC0. PHP, Visual Studio Code, LinkedIn and InPost logos from Wikimedia Commons (public domain), Przelewy24 from przelewy24.pl, sources in `icons/brand/`. Logos remain trademarks of their owners.
+Badge fonts: [Plus Jakarta Sans](https://github.com/tokotype/PlusJakartaSans) and [JetBrains Mono](https://github.com/JetBrains/JetBrainsMono), copies in `fonts/`. Page fonts: [Geist](https://github.com/vercel/geist-font) and [Outfit](https://github.com/Outfitio/Outfit-Fonts), copies in `public/fonts/`. All under the SIL Open Font License. Brand icons: full-colour logos from [devicon](https://github.com/devicons/devicon) (MIT, copies in `icons/devicon/`) and one-colour marks from [Simple Icons](https://simpleicons.org) (CC0). PHP, VS Code and LinkedIn logos from Wikimedia Commons. Logos are trademarks of their owners. PHP, Visual Studio Code, LinkedIn and InPost logos from Wikimedia Commons (public domain), Przelewy24 from przelewy24.pl, sources in `icons/brand/`. Logos remain trademarks of their owners.
---
diff --git a/icons/brand/gmail.svg b/icons/brand/gmail.svg
new file mode 100644
index 0000000..66197f8
--- /dev/null
+++ b/icons/brand/gmail.svg
@@ -0,0 +1 @@
+
diff --git a/icons/brand/inpost.svg b/icons/brand/inpost.svg
index 81554bf..25b0e3f 100644
--- a/icons/brand/inpost.svg
+++ b/icons/brand/inpost.svg
@@ -1,57 +1 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
diff --git a/icons/brand/przelewy24.svg b/icons/brand/przelewy24.svg
index 74e6982..9037793 100644
--- a/icons/brand/przelewy24.svg
+++ b/icons/brand/przelewy24.svg
@@ -1,63 +1,13 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ c-18.8,6.9-29.7,19.5-36.6,37.3C1483.8,368.2,1479.4,404.6,1479.4,404.6L1479.4,404.6z"/>
diff --git a/icons/devicon/LICENSE b/icons/devicon/LICENSE
new file mode 100644
index 0000000..fcc9b66
--- /dev/null
+++ b/icons/devicon/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 konpa
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/icons/devicon/angular.svg b/icons/devicon/angular.svg
new file mode 100644
index 0000000..3fa557a
--- /dev/null
+++ b/icons/devicon/angular.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/bun.svg b/icons/devicon/bun.svg
new file mode 100644
index 0000000..697768c
--- /dev/null
+++ b/icons/devicon/bun.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/c.svg b/icons/devicon/c.svg
new file mode 100644
index 0000000..5197f2a
--- /dev/null
+++ b/icons/devicon/c.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/chrome.svg b/icons/devicon/chrome.svg
new file mode 100644
index 0000000..076d2cf
--- /dev/null
+++ b/icons/devicon/chrome.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/cloudflare.svg b/icons/devicon/cloudflare.svg
new file mode 100644
index 0000000..d014bdc
--- /dev/null
+++ b/icons/devicon/cloudflare.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/composer.svg b/icons/devicon/composer.svg
new file mode 100644
index 0000000..4531d04
--- /dev/null
+++ b/icons/devicon/composer.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/cs.svg b/icons/devicon/cs.svg
new file mode 100644
index 0000000..acc487e
--- /dev/null
+++ b/icons/devicon/cs.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/dart.svg b/icons/devicon/dart.svg
new file mode 100644
index 0000000..8c78fdb
--- /dev/null
+++ b/icons/devicon/dart.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/dotnet.svg b/icons/devicon/dotnet.svg
new file mode 100644
index 0000000..3f1d629
--- /dev/null
+++ b/icons/devicon/dotnet.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/eslint.svg b/icons/devicon/eslint.svg
new file mode 100644
index 0000000..6642cd0
--- /dev/null
+++ b/icons/devicon/eslint.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/fastapi.svg b/icons/devicon/fastapi.svg
new file mode 100644
index 0000000..85f2d13
--- /dev/null
+++ b/icons/devicon/fastapi.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/figma.svg b/icons/devicon/figma.svg
new file mode 100644
index 0000000..b3edc6d
--- /dev/null
+++ b/icons/devicon/figma.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/firebase.svg b/icons/devicon/firebase.svg
new file mode 100644
index 0000000..2d8fc46
--- /dev/null
+++ b/icons/devicon/firebase.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/flutter.svg b/icons/devicon/flutter.svg
new file mode 100644
index 0000000..bd8d0b4
--- /dev/null
+++ b/icons/devicon/flutter.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/gitlab.svg b/icons/devicon/gitlab.svg
new file mode 100644
index 0000000..8a1c73b
--- /dev/null
+++ b/icons/devicon/gitlab.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/grafana.svg b/icons/devicon/grafana.svg
new file mode 100644
index 0000000..0387019
--- /dev/null
+++ b/icons/devicon/grafana.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/html.svg b/icons/devicon/html.svg
new file mode 100644
index 0000000..c2dda3a
--- /dev/null
+++ b/icons/devicon/html.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/kotlin.svg b/icons/devicon/kotlin.svg
new file mode 100644
index 0000000..1b8d8f4
--- /dev/null
+++ b/icons/devicon/kotlin.svg
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/icons/devicon/kubernetes.svg b/icons/devicon/kubernetes.svg
new file mode 100644
index 0000000..1ceb39f
--- /dev/null
+++ b/icons/devicon/kubernetes.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/linux.svg b/icons/devicon/linux.svg
new file mode 100644
index 0000000..414a56a
--- /dev/null
+++ b/icons/devicon/linux.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/lua.svg b/icons/devicon/lua.svg
new file mode 100644
index 0000000..6b7ea4b
--- /dev/null
+++ b/icons/devicon/lua.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/mongodb.svg b/icons/devicon/mongodb.svg
new file mode 100644
index 0000000..a5d3707
--- /dev/null
+++ b/icons/devicon/mongodb.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/netlify.svg b/icons/devicon/netlify.svg
new file mode 100644
index 0000000..bf720a2
--- /dev/null
+++ b/icons/devicon/netlify.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/npm.svg b/icons/devicon/npm.svg
new file mode 100644
index 0000000..ab54180
--- /dev/null
+++ b/icons/devicon/npm.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/pnpm.svg b/icons/devicon/pnpm.svg
new file mode 100644
index 0000000..f1c1226
--- /dev/null
+++ b/icons/devicon/pnpm.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/postgres.svg b/icons/devicon/postgres.svg
new file mode 100644
index 0000000..4656cb7
--- /dev/null
+++ b/icons/devicon/postgres.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/postman.svg b/icons/devicon/postman.svg
new file mode 100644
index 0000000..0ba61b3
--- /dev/null
+++ b/icons/devicon/postman.svg
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/icons/devicon/py.svg b/icons/devicon/py.svg
new file mode 100644
index 0000000..e0e096a
--- /dev/null
+++ b/icons/devicon/py.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/rabbitmq.svg b/icons/devicon/rabbitmq.svg
new file mode 100644
index 0000000..eedd936
--- /dev/null
+++ b/icons/devicon/rabbitmq.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/redis.svg b/icons/devicon/redis.svg
new file mode 100644
index 0000000..7aabb0d
--- /dev/null
+++ b/icons/devicon/redis.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/sqlite.svg b/icons/devicon/sqlite.svg
new file mode 100644
index 0000000..0e99ba2
--- /dev/null
+++ b/icons/devicon/sqlite.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/storybook.svg b/icons/devicon/storybook.svg
new file mode 100644
index 0000000..b527384
--- /dev/null
+++ b/icons/devicon/storybook.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/supabase.svg b/icons/devicon/supabase.svg
new file mode 100644
index 0000000..b61999c
--- /dev/null
+++ b/icons/devicon/supabase.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/svelte.svg b/icons/devicon/svelte.svg
new file mode 100644
index 0000000..9f52cb7
--- /dev/null
+++ b/icons/devicon/svelte.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/swift.svg b/icons/devicon/swift.svg
new file mode 100644
index 0000000..68630ab
--- /dev/null
+++ b/icons/devicon/swift.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/vite.svg b/icons/devicon/vite.svg
new file mode 100644
index 0000000..45ac612
--- /dev/null
+++ b/icons/devicon/vite.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/vitest.svg b/icons/devicon/vitest.svg
new file mode 100644
index 0000000..7de21ff
--- /dev/null
+++ b/icons/devicon/vitest.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/vue.svg b/icons/devicon/vue.svg
new file mode 100644
index 0000000..27afad0
--- /dev/null
+++ b/icons/devicon/vue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icons/devicon/workers.svg b/icons/devicon/workers.svg
new file mode 100644
index 0000000..023d4eb
--- /dev/null
+++ b/icons/devicon/workers.svg
@@ -0,0 +1 @@
+
diff --git a/icons/devicon/yarn.svg b/icons/devicon/yarn.svg
new file mode 100644
index 0000000..1ebe509
--- /dev/null
+++ b/icons/devicon/yarn.svg
@@ -0,0 +1 @@
+
diff --git a/package.json b/package.json
index 4757e52..5dbdb88 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"@types/node": "^26.6.11",
"@types/opentype.js": "^1.3.10",
"simple-icons": "^16.38.1",
+ "svg-path-bbox": "^2.1.0",
"typescript": "^7.0.2",
"vitest": "^5.1.2",
"wrangler": "^4.168.0"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7b2475b..1b436be 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -191,6 +191,9 @@ importers:
simple-icons:
specifier: ^16.38.1
version: 16.38.1
+ svg-path-bbox:
+ specifier: ^2.1.0
+ version: 2.1.0
typescript:
specifier: ^7.0.2
version: 7.0.2
@@ -1317,6 +1320,14 @@ packages:
resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==}
engines: {node: '>=18'}
+ svg-path-bbox@2.1.0:
+ resolution: {integrity: sha512-PEoSQFbBvL7FOCE4cN8Knej6L7bXdNkjPcUYsfMMpq0HpnqiO0sE2mcXTd7LX160aOyh5HbaeN/SoY8thMk5Kg==}
+ engines: {node: '>=6.17.1'}
+ hasBin: true
+
+ svgpath@2.6.0:
+ resolution: {integrity: sha512-OIWR6bKzXvdXYyO4DK/UWa1VA1JeKq8E+0ug2DG98Y/vOmMpfZNj+TIG988HjfYSqtcy/hFOtZq/n/j5GSESNg==}
+
tinybench@6.2.5:
resolution: {integrity: sha512-b/8GRMdnY4cqkfCLyaFpTGIv1qwfi3oT0mWaepwT++6Z/ZrYehNfZZ2JDKVLKGhNoEkS3IIB1ELtCT0XS5DtOA==}
engines: {node: '>=20.0.0'}
@@ -2320,6 +2331,12 @@ snapshots:
supports-color@10.2.2: {}
+ svg-path-bbox@2.1.0:
+ dependencies:
+ svgpath: 2.6.0
+
+ svgpath@2.6.0: {}
+
tinybench@6.2.5: {}
tinyexec@1.4.0: {}
diff --git a/scripts/banner.mjs b/scripts/banner.mjs
index f5e895e..8cfd5c0 100644
--- a/scripts/banner.mjs
+++ b/scripts/banner.mjs
@@ -84,9 +84,10 @@ function chip(t, x, w, label) {
async function banner(t) {
const q = `theme=${t.name}`;
- const badges1 = await row([`/npm/v/@mscode-pl/email-lint?${q}`, `/badge/downloads/12k%2Fmonth?${q}`, `/badge/tests/passing/green?${q}`], 726, 58 + 46, 26, 10);
- const badges2 = await row([`/badge/node/22+/339933?${q}`, `/badge/license/MIT?${q}`, `/badge/built_with/Hono/E36002?icon=hono&${q}`], 726, 58 + 82, 26, 10);
- const icons = await embed(`/icons?i=react,ts,laravel,hono,docker,cloudflare,stripe&theme=${t.name}`, 726, 240 + 50, 46);
+ const badges1 = await row([`/npm/v/@mscode-pl/email-lint?${q}`, `/badge/downloads/12k%2Fmonth?${q}`, `/badge/tests/passing/green?${q}`], 726, 112, 26, 10);
+ const badges2 = await row([`/badge/node/22+/339933?${q}`, `/badge/license/MIT?${q}`, `/badge/built_with/Hono/E36002?icon=hono&${q}`], 726, 148, 26, 10);
+ const icons = await embed(`/icons?i=react,ts,laravel,hono,docker,cloudflare,stripe&theme=${t.name}`, 726, 208, 46);
+ const colorIcons = await embed('/icons?i=react,ts,laravel,hono,docker,cloudflare,stripe&theme=color', 726, 270, 46);
const s = 750 / 868 / 5;
return `
@@ -102,12 +103,9 @@ ${text('body', 22, 72, 262, [['Badges and tech icons that match, in light and da
${chip(t, 72, 132, 'npm + GitHub')}
${chip(t, 214, 120, '109 icons')}
${chip(t, 344, 112, 'No sign-up')}
-${card(t, 58, 120, 'README', false)}${badges1}${badges2}
-
-
-
-${text('mono', 13, 1060, 214, [['badges.mscode.pl', '#ffffff']], { anchor: 'middle' })}
-${card(t, 240, 118, '/icons', true)}${icons.svg}
+${card(t, 58, 280, 'README', true)}${badges1}${badges2}
+
+${icons.svg}${colorIcons.svg}
`;
}
diff --git a/scripts/build-icons.mjs b/scripts/build-icons.mjs
index ab5c4ae..ac0036a 100644
--- a/scripts/build-icons.mjs
+++ b/scripts/build-icons.mjs
@@ -1,6 +1,7 @@
-// Builds src/icons/generated.ts from Simple Icons and the logos in icons/brand. Run: pnpm icons
+// Builds src/icons/generated.ts from Simple Icons, devicon originals in icons/devicon and the logos in icons/brand. Run: pnpm icons
import fs from 'node:fs';
import * as simpleIcons from 'simple-icons';
+import { svgPathBbox } from 'svg-path-bbox';
// Our id on the left, Simple Icons slug on the right. Ids follow skillicons where one exists.
const selection = {
@@ -92,7 +93,7 @@ const selection = {
stripe: 'stripe',
strapi: 'strapi',
shopify: 'shopify',
- woocommerce: 'woocommerce',
+ woocommerce: 'woo',
wordpress: 'wordpress',
medusa: 'medusa',
discord: 'discord',
@@ -104,6 +105,11 @@ const selection = {
x: 'x',
tiktok: 'tiktok',
gmail: 'gmail',
+ wakatime: 'wakatime',
+ lua: 'lua',
+ c: 'c',
+ dotnet: 'dotnet',
+ rabbitmq: 'rabbitmq',
chrome: 'googlechrome',
claude: 'claude',
anthropic: 'anthropic',
@@ -116,22 +122,41 @@ if (missing.length) {
process.exit(1);
}
-// Simple Icons only has these as black squares, which all look alike once flipped for a dark tile.
-const gradients = {
- webstorm: ['#07c3f2', '#087cfa'],
- phpstorm: ['#b345f1', '#ff318c'],
- goland: ['#3bea62', '#0d7bf7'],
- pycharm: ['#21d789', '#fcf84a'],
- idea: ['#fe315d', '#087cfa'],
+// Simple Icons only has the black square of these logos; the coloured shapes behind it are drawn here,
+// in each product's colours and turned differently so the IDEs do not all look alike.
+const jetbrainsIdes = {
+ webstorm: { colors: ['#07c3f2', '#087cfa', '#fcf84a'], turn: 0 },
+ phpstorm: { colors: ['#b345f1', '#765af8', '#ff318c'], turn: 90 },
+ goland: { colors: ['#0d7bf7', '#b74af7', '#3bea62'], turn: 180 },
+ pycharm: { colors: ['#21d789', '#fcf84a', '#07c3f2'], turn: 270 },
+ idea: { colors: ['#fe315d', '#087cfa', '#f97a12'], turn: 45 },
};
+const jetbrainsShapes = ['4,12 46,2 56,30 12,46', '28,20 68,28 62,66 22,60', '2,38 32,28 42,68 6,64'];
+const gradients = { jetbrains: ['#ff318c', '#7256ff'] };
-// Multi-colour logos Simple Icons does not carry, from Wikimedia Commons (public domain) and przelewy24.pl.
+// Logos Simple Icons only has in one colour, rebuilt from its path: extra shapes on top, or the path split into colour regions.
+const layered = {
+ youtube: (path) => ``,
+};
+
+// Detailed marks with thin lines get a stroke in their own colour so they survive at 40px.
+const bold = { packagist: 0.2 };
+
+// Square logos with lettering cut out; the letters get their own colour so they do not take the tile's.
+const backing = {
+ js: '#000000',
+ ts: '#ffffff',
+ css: '#ffffff',
+};
+
+// Multi-colour logos Simple Icons does not carry, from Wikimedia Commons (public domain), przelewy24.pl and Google's Gmail mark.
const brand = {
- php: { title: 'PHP', hex: '#777bb4' },
- vscode: { title: 'Visual Studio Code', hex: '#007acc' },
- linkedin: { title: 'LinkedIn', hex: '#0a66c2' },
- przelewy24: { title: 'Przelewy24', hex: '#d13239' },
- inpost: { title: 'InPost', hex: '#ffcb04' },
+ php: { title: 'PHP', hex: '#777bb4', mono: 'none' },
+ vscode: { title: 'Visual Studio Code', hex: '#007acc', mono: 'cutout' },
+ linkedin: { title: 'LinkedIn', hex: '#007ebb', mono: 'cutout', full: true },
+ przelewy24: { title: 'Przelewy24', hex: '#d13239', mono: 'recolor' },
+ inpost: { title: 'InPost', hex: '#ffcb04', mono: 'cutout' },
+ gmail: { title: 'Gmail', hex: '#ea4335', mono: 'cutout' },
};
function sanitize(id, source) {
@@ -155,25 +180,64 @@ function sanitize(id, source) {
.trim();
if (/