Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

feat(brand): adopt bold cat outline logo

tianma-if65803d9de97d
diff --git a/apps/desktop/assets/icon.icns b/apps/desktop/assets/icon.icns
index 260db2eb..2eb10307 100644
Binary files a/apps/desktop/assets/icon.icns and b/apps/desktop/assets/icon.icns differ
diff --git a/apps/desktop/assets/icon.png b/apps/desktop/assets/icon.png
index 457e5a91..1c9d4064 100644
Binary files a/apps/desktop/assets/icon.png and b/apps/desktop/assets/icon.png differ
diff --git a/apps/extension/public/icons/icon-128.png b/apps/extension/public/icons/icon-128.png
index c051ac07..f9294888 100644
Binary files a/apps/extension/public/icons/icon-128.png and b/apps/extension/public/icons/icon-128.png differ
diff --git a/apps/extension/public/icons/icon-16.png b/apps/extension/public/icons/icon-16.png
index 52dc3c50..2fd8f4c3 100644
Binary files a/apps/extension/public/icons/icon-16.png and b/apps/extension/public/icons/icon-16.png differ
diff --git a/apps/extension/public/icons/icon-32.png b/apps/extension/public/icons/icon-32.png
index 6e919799..7eb7aacb 100644
Binary files a/apps/extension/public/icons/icon-32.png and b/apps/extension/public/icons/icon-32.png differ
diff --git a/apps/extension/public/icons/icon-48.png b/apps/extension/public/icons/icon-48.png
index 6510b106..7b7b2b8a 100644
Binary files a/apps/extension/public/icons/icon-48.png and b/apps/extension/public/icons/icon-48.png differ
diff --git a/apps/ios/EdgeEver/Resources/Assets.xcassets/AppIcon.appiconset/icon.png b/apps/ios/EdgeEver/Resources/Assets.xcassets/AppIcon.appiconset/icon.png
index 72ddc4fd..349711bc 100644
Binary files a/apps/ios/EdgeEver/Resources/Assets.xcassets/AppIcon.appiconset/icon.png and b/apps/ios/EdgeEver/Resources/Assets.xcassets/AppIcon.appiconset/icon.png differ
diff --git a/apps/mobile/app.json b/apps/mobile/app.json
index e1857098..342471bb 100644
--- a/apps/mobile/app.json
+++ b/apps/mobile/app.json
@@ -35,7 +35,7 @@
"package": "org.edgeever.mobile",
"versionCode": 94,
"adaptiveIcon": {
- "backgroundColor": "#d1fae5",
+ "backgroundColor": "#d8f3ec",
"backgroundImage": "./assets/icon.png",
"foregroundImage": "./assets/adaptive-icon-transparent.png"
}
@@ -46,7 +46,7 @@
[
"expo-splash-screen",
{
- "backgroundColor": "#D9FAEA",
+ "backgroundColor": "#D8F3EC",
"image": "./assets/icon.png",
"imageWidth": 180,
"resizeMode": "contain"
diff --git a/apps/mobile/assets/adaptive-icon-foreground.png b/apps/mobile/assets/adaptive-icon-foreground.png
index 8ec4721f..9a90ff7e 100644
Binary files a/apps/mobile/assets/adaptive-icon-foreground.png and b/apps/mobile/assets/adaptive-icon-foreground.png differ
diff --git a/apps/mobile/assets/adaptive-icon-foreground.svg b/apps/mobile/assets/adaptive-icon-foreground.svg
index b5f65732..4285447b 100644
--- a/apps/mobile/assets/adaptive-icon-foreground.svg
+++ b/apps/mobile/assets/adaptive-icon-foreground.svg
@@ -1,5 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="EdgeEver">
- <rect x="14" y="10" width="36" height="44" rx="8" fill="#047857" />
- <path d="M24 23h18v5H30v5h11v5H30v6h13v5H24V23Z" fill="#f8fafc" />
- <path d="M19 16h26" stroke="#6ee7b7" stroke-width="3" stroke-linecap="round" />
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1254 1254" role="img" aria-label="EdgeEver">
+ <path fill="#2b968b" fill-rule="evenodd" d="M210 898Q208 883 208.5 621.5Q209 360 212 345Q215 330 223 310Q231 290 244 271.5Q257 253 270 241Q283 229 294 221.5Q305 214 320 207Q335 200 345 197Q355 194 372 191.5Q389 189 627 189Q865 189 884 192Q903 195 916 199.5Q929 204 939 209Q949 214 964.5 225Q980 236 992 248.5Q1004 261 1016.5 281.5Q1029 302 1034 316Q1039 330 1042 346Q1045 362 1045.5 619.5Q1046 877 1043.5 898Q1041 919 1034.5 937.5Q1028 956 1017 974Q1006 992 989 1009Q972 1026 961 1033.5Q950 1041 940 1046Q930 1051 915.5 1056Q901 1061 887 1063.5Q873 1066 636.5 1066.5Q400 1067 383.5 1065.5Q367 1064 350.5 1059.5Q334 1055 322 1049.5Q310 1044 297.5 1036Q285 1028 270 1014Q255 1000 245.5 987Q236 974 229 960Q222 946 217 929.5Q212 913 210 898ZM321.5 677Q320 692 321 711.5Q322 731 325 746.5Q328 762 333.5 778.5Q339 795 347 811Q355 827 364 840Q373 853 385.5 866Q398 879 411.5 889Q425 899 438.5 906Q452 913 470.5 919Q489 925 512 928.5Q535 932 563 933.5Q591 935 627 935Q663 935 691 933.5Q719 932 739.5 929Q760 926 774.5 922Q789 918 806.5 910Q824 902 836 894Q848 886 856.5 878.5Q865 871 873 862Q881 853 890 840.5Q899 828 900.5 824Q902 820 903 820Q904 820 913.5 796.5Q923 773 928 747Q933 721 933.5 706.5Q934 692 931.5 672Q929 652 923.5 634Q918 616 911 603.5Q904 591 905.5 566Q907 541 906 498Q905 455 901 426Q897 397 893.5 385Q890 373 886.5 366Q883 359 877.5 353Q872 347 866.5 344.5Q861 342 852 342Q843 342 834 345.5Q825 349 813 357.5Q801 366 783.5 382.5Q766 399 754.5 412.5Q743 426 730 444.5Q717 463 684.5 459Q652 455 627.5 455Q603 455 570 459Q537 463 518 437Q499 411 476.5 388.5Q454 366 442.5 358Q431 350 421.5 346Q412 342 404.5 341.5Q397 341 391 343Q385 345 379 350.5Q373 356 370.5 360Q368 364 364 374.5Q360 385 357.5 396Q355 407 352.5 425.5Q350 444 348.5 470Q347 496 348.5 543.5Q350 591 345 599Q340 607 334 623Q328 639 325.5 650.5Q323 662 321.5 677ZM347 726.5Q345 709 345.5 692.5Q346 676 349 660.5Q352 645 356.5 633Q361 621 368 609Q375 597 373.5 572.5Q372 548 373 501Q374 454 378.5 424.5Q383 395 386 386.5Q389 378 392.5 373Q396 368 400 367Q404 366 412.5 369.5Q421 373 438 386.5Q455 400 473 420Q491 440 508.5 465.5Q526 491 539.5 488Q553 485 575.5 482.5Q598 480 633 480.5Q668 481 698 486Q728 491 746 465Q764 439 767 437Q770 435 775 427.5Q780 420 796.5 404Q813 388 822.5 381Q832 374 839 370.5Q846 367 851 367Q856 367 860 371Q864 375 869.5 394Q875 413 878 439Q881 465 881.5 508Q882 551 880.5 574Q879 597 885.5 607.5Q892 618 898 635Q904 652 906.5 670Q909 688 908.5 705.5Q908 723 903.5 745Q899 767 894.5 779Q890 791 883.5 803.5Q877 816 865 832Q853 848 844 856.5Q835 865 826.5 871Q818 877 805.5 883.5Q793 890 778 895Q763 900 728 904.5Q693 909 626.5 909Q560 909 539 907Q518 905 496 900Q474 895 458.5 888Q443 881 433 874.5Q423 868 412 858Q401 848 394 839.5Q387 831 380 820Q373 809 365 791Q357 773 353 758.5Q349 744 347 726.5ZM427 742Q420 748 422.5 755Q425 762 429.5 768.5Q434 775 441.5 782Q449 789 460 795Q471 801 484 804Q497 807 510 807.5Q523 808 535.5 806Q548 804 552.5 801.5Q557 799 556 789Q555 779 550 768Q545 757 535 746.5Q525 736 517.5 732Q510 728 500 726Q490 724 474.5 725Q459 726 446.5 731Q434 736 427 742ZM700 779Q697 789 697 794Q697 799 698.5 800.5Q700 802 710.5 804.5Q721 807 734.5 807.5Q748 808 761 806Q774 804 786 799Q798 794 806.5 787.5Q815 781 823 770.5Q831 760 832.5 754Q834 748 826 741.5Q818 735 806.5 730.5Q795 726 780.5 725Q766 724 757 725.5Q748 727 738.5 732Q729 737 721.5 744Q714 751 708.5 760Q703 769 700 779ZM440 760Q436 754 436.5 752Q437 750 443 746.5Q449 743 459.5 740Q470 737 475 737Q480 737 478.5 752Q477 767 479 778Q481 789 477.5 788.5Q474 788 466 783.5Q458 779 451 772.5Q444 766 440 760ZM776 752.5Q774 737 784 738Q794 739 806 745Q818 751 817.5 754Q817 757 811 764.5Q805 772 797 778Q789 784 783.5 786.5Q778 789 776 789Q774 789 776 778.5Q778 768 776 752.5ZM510.5 794Q498 793 501.5 779Q505 765 503.5 753Q502 741 504 741Q506 741 513 745Q520 749 527 756.5Q534 764 537.5 771Q541 778 542 784.5Q543 791 533 793Q523 795 510.5 794ZM721 792.5Q711 790 713 782.5Q715 775 718.5 768.5Q722 762 730.5 754Q739 746 746 743.5Q753 741 752 756.5Q751 772 754 782Q757 792 752.5 793.5Q748 795 739.5 795Q731 795 721 792.5ZM599 842Q597 845 600 852.5Q603 860 609 866.5Q615 873 619.5 876Q624 879 629 878Q634 877 641.5 869.5Q649 862 653 855.5Q657 849 657 847Q657 845 654.5 841.5Q652 838 642 835.5Q632 833 619.5 834.5Q607 836 604 837.5Q601 839 599 842Z" />
</svg>
diff --git a/apps/mobile/assets/adaptive-icon-transparent.png b/apps/mobile/assets/adaptive-icon-transparent.png
index 779557fd..20f1f7d3 100644
Binary files a/apps/mobile/assets/adaptive-icon-transparent.png and b/apps/mobile/assets/adaptive-icon-transparent.png differ
diff --git a/apps/mobile/assets/adaptive-icon-transparent.svg b/apps/mobile/assets/adaptive-icon-transparent.svg
index 315431e4..180cdd8a 100644
--- a/apps/mobile/assets/adaptive-icon-transparent.svg
+++ b/apps/mobile/assets/adaptive-icon-transparent.svg
@@ -1,3 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" aria-hidden="true">
- <rect width="64" height="64" fill="none" />
-</svg>
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1254 1254" aria-hidden="true" />
diff --git a/apps/mobile/assets/icon.png b/apps/mobile/assets/icon.png
index 0df61e2b..49b1c313 100644
Binary files a/apps/mobile/assets/icon.png and b/apps/mobile/assets/icon.png differ
diff --git a/apps/site/public/apple-touch-icon.png b/apps/site/public/apple-touch-icon.png
index 28f1f2ce..0232f2ac 100644
Binary files a/apps/site/public/apple-touch-icon.png and b/apps/site/public/apple-touch-icon.png differ
diff --git a/apps/site/public/favicon.ico b/apps/site/public/favicon.ico
index 3718b944..a2c4554c 100644
Binary files a/apps/site/public/favicon.ico and b/apps/site/public/favicon.ico differ
diff --git a/apps/site/public/favicon.svg b/apps/site/public/favicon.svg
index 2912be32..ca20ecbe 100644
--- a/apps/site/public/favicon.svg
+++ b/apps/site/public/favicon.svg
@@ -1,6 +1,6 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="EdgeEver">
- <rect width="64" height="64" rx="14" fill="#d1fae5" />
- <rect x="14" y="10" width="36" height="44" rx="8" fill="#047857" />
- <path d="M24 23h18v5H30v5h11v5H30v6h13v5H24V23Z" fill="#f8fafc" />
- <path d="M19 16h26" stroke="#6ee7b7" stroke-width="3" stroke-linecap="round" />
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1254 1254" role="img" aria-labelledby="title desc">
+ <title id="title">EdgeEver</title>
+ <desc id="desc">A rounded cat face drawn with bold lines on the EdgeEver theme block.</desc>
+ <rect width="1254" height="1254" fill="#d8f3ec" />
+ <path fill="#2b968b" fill-rule="evenodd" d="M210 898Q208 883 208.5 621.5Q209 360 212 345Q215 330 223 310Q231 290 244 271.5Q257 253 270 241Q283 229 294 221.5Q305 214 320 207Q335 200 345 197Q355 194 372 191.5Q389 189 627 189Q865 189 884 192Q903 195 916 199.5Q929 204 939 209Q949 214 964.5 225Q980 236 992 248.5Q1004 261 1016.5 281.5Q1029 302 1034 316Q1039 330 1042 346Q1045 362 1045.5 619.5Q1046 877 1043.5 898Q1041 919 1034.5 937.5Q1028 956 1017 974Q1006 992 989 1009Q972 1026 961 1033.5Q950 1041 940 1046Q930 1051 915.5 1056Q901 1061 887 1063.5Q873 1066 636.5 1066.5Q400 1067 383.5 1065.5Q367 1064 350.5 1059.5Q334 1055 322 1049.5Q310 1044 297.5 1036Q285 1028 270 1014Q255 1000 245.5 987Q236 974 229 960Q222 946 217 929.5Q212 913 210 898ZM321.5 677Q320 692 321 711.5Q322 731 325 746.5Q328 762 333.5 778.5Q339 795 347 811Q355 827 364 840Q373 853 385.5 866Q398 879 411.5 889Q425 899 438.5 906Q452 913 470.5 919Q489 925 512 928.5Q535 932 563 933.5Q591 935 627 935Q663 935 691 933.5Q719 932 739.5 929Q760 926 774.5 922Q789 918 806.5 910Q824 902 836 894Q848 886 856.5 878.5Q865 871 873 862Q881 853 890 840.5Q899 828 900.5 824Q902 820 903 820Q904 820 913.5 796.5Q923 773 928 747Q933 721 933.5 706.5Q934 692 931.5 672Q929 652 923.5 634Q918 616 911 603.5Q904 591 905.5 566Q907 541 906 498Q905 455 901 426Q897 397 893.5 385Q890 373 886.5 366Q883 359 877.5 353Q872 347 866.5 344.5Q861 342 852 342Q843 342 834 345.5Q825 349 813 357.5Q801 366 783.5 382.5Q766 399 754.5 412.5Q743 426 730 444.5Q717 463 684.5 459Q652 455 627.5 455Q603 455 570 459Q537 463 518 437Q499 411 476.5 388.5Q454 366 442.5 358Q431 350 421.5 346Q412 342 404.5 341.5Q397 341 391 343Q385 345 379 350.5Q373 356 370.5 360Q368 364 364 374.5Q360 385 357.5 396Q355 407 352.5 425.5Q350 444 348.5 470Q347 496 348.5 543.5Q350 591 345 599Q340 607 334 623Q328 639 325.5 650.5Q323 662 321.5 677ZM347 726.5Q345 709 345.5 692.5Q346 676 349 660.5Q352 645 356.5 633Q361 621 368 609Q375 597 373.5 572.5Q372 548 373 501Q374 454 378.5 424.5Q383 395 386 386.5Q389 378 392.5 373Q396 368 400 367Q404 366 412.5 369.5Q421 373 438 386.5Q455 400 473 420Q491 440 508.5 465.5Q526 491 539.5 488Q553 485 575.5 482.5Q598 480 633 480.5Q668 481 698 486Q728 491 746 465Q764 439 767 437Q770 435 775 427.5Q780 420 796.5 404Q813 388 822.5 381Q832 374 839 370.5Q846 367 851 367Q856 367 860 371Q864 375 869.5 394Q875 413 878 439Q881 465 881.5 508Q882 551 880.5 574Q879 597 885.5 607.5Q892 618 898 635Q904 652 906.5 670Q909 688 908.5 705.5Q908 723 903.5 745Q899 767 894.5 779Q890 791 883.5 803.5Q877 816 865 832Q853 848 844 856.5Q835 865 826.5 871Q818 877 805.5 883.5Q793 890 778 895Q763 900 728 904.5Q693 909 626.5 909Q560 909 539 907Q518 905 496 900Q474 895 458.5 888Q443 881 433 874.5Q423 868 412 858Q401 848 394 839.5Q387 831 380 820Q373 809 365 791Q357 773 353 758.5Q349 744 347 726.5ZM427 742Q420 748 422.5 755Q425 762 429.5 768.5Q434 775 441.5 782Q449 789 460 795Q471 801 484 804Q497 807 510 807.5Q523 808 535.5 806Q548 804 552.5 801.5Q557 799 556 789Q555 779 550 768Q545 757 535 746.5Q525 736 517.5 732Q510 728 500 726Q490 724 474.5 725Q459 726 446.5 731Q434 736 427 742ZM700 779Q697 789 697 794Q697 799 698.5 800.5Q700 802 710.5 804.5Q721 807 734.5 807.5Q748 808 761 806Q774 804 786 799Q798 794 806.5 787.5Q815 781 823 770.5Q831 760 832.5 754Q834 748 826 741.5Q818 735 806.5 730.5Q795 726 780.5 725Q766 724 757 725.5Q748 727 738.5 732Q729 737 721.5 744Q714 751 708.5 760Q703 769 700 779ZM440 760Q436 754 436.5 752Q437 750 443 746.5Q449 743 459.5 740Q470 737 475 737Q480 737 478.5 752Q477 767 479 778Q481 789 477.5 788.5Q474 788 466 783.5Q458 779 451 772.5Q444 766 440 760ZM776 752.5Q774 737 784 738Q794 739 806 745Q818 751 817.5 754Q817 757 811 764.5Q805 772 797 778Q789 784 783.5 786.5Q778 789 776 789Q774 789 776 778.5Q778 768 776 752.5ZM510.5 794Q498 793 501.5 779Q505 765 503.5 753Q502 741 504 741Q506 741 513 745Q520 749 527 756.5Q534 764 537.5 771Q541 778 542 784.5Q543 791 533 793Q523 795 510.5 794ZM721 792.5Q711 790 713 782.5Q715 775 718.5 768.5Q722 762 730.5 754Q739 746 746 743.5Q753 741 752 756.5Q751 772 754 782Q757 792 752.5 793.5Q748 795 739.5 795Q731 795 721 792.5ZM599 842Q597 845 600 852.5Q603 860 609 866.5Q615 873 619.5 876Q624 879 629 878Q634 877 641.5 869.5Q649 862 653 855.5Q657 849 657 847Q657 845 654.5 841.5Q652 838 642 835.5Q632 833 619.5 834.5Q607 836 604 837.5Q601 839 599 842Z" />
</svg>
diff --git a/apps/site/public/icon-192.png b/apps/site/public/icon-192.png
index 132ba40c..a4799f75 100644
Binary files a/apps/site/public/icon-192.png and b/apps/site/public/icon-192.png differ
diff --git a/apps/site/public/icon-512.png b/apps/site/public/icon-512.png
index 0df61e2b..49b1c313 100644
Binary files a/apps/site/public/icon-512.png and b/apps/site/public/icon-512.png differ
diff --git a/apps/site/src/layouts/Layout.astro b/apps/site/src/layouts/Layout.astro
index 84520ec6..f084e3db 100644
--- a/apps/site/src/layouts/Layout.astro
+++ b/apps/site/src/layouts/Layout.astro
@@ -53,7 +53,7 @@ const makeTitle = title
? title + " | " + "EdgeEver"
: copy.defaultTitle;
-const faviconVersion = "edgeever-brand-20260703";
+const faviconVersion = "edgeever-cat-20260809";
const localeRedirectScript = `(() => {
const storageKey = ${JSON.stringify(siteLocaleStorageKey)};
const localeAttribute = ${JSON.stringify(siteLocaleDataAttribute)};
diff --git a/apps/web/public/apple-touch-icon.png b/apps/web/public/apple-touch-icon.png
index 28f1f2ce..0232f2ac 100644
Binary files a/apps/web/public/apple-touch-icon.png and b/apps/web/public/apple-touch-icon.png differ
diff --git a/apps/web/public/favicon.svg b/apps/web/public/favicon.svg
index 2912be32..ca20ecbe 100644
--- a/apps/web/public/favicon.svg
+++ b/apps/web/public/favicon.svg
@@ -1,6 +1,6 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="EdgeEver">
- <rect width="64" height="64" rx="14" fill="#d1fae5" />
- <rect x="14" y="10" width="36" height="44" rx="8" fill="#047857" />
- <path d="M24 23h18v5H30v5h11v5H30v6h13v5H24V23Z" fill="#f8fafc" />
- <path d="M19 16h26" stroke="#6ee7b7" stroke-width="3" stroke-linecap="round" />
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1254 1254" role="img" aria-labelledby="title desc">
+ <title id="title">EdgeEver</title>
+ <desc id="desc">A rounded cat face drawn with bold lines on the EdgeEver theme block.</desc>
+ <rect width="1254" height="1254" fill="#d8f3ec" />
+ <path fill="#2b968b" fill-rule="evenodd" d="M210 898Q208 883 208.5 621.5Q209 360 212 345Q215 330 223 310Q231 290 244 271.5Q257 253 270 241Q283 229 294 221.5Q305 214 320 207Q335 200 345 197Q355 194 372 191.5Q389 189 627 189Q865 189 884 192Q903 195 916 199.5Q929 204 939 209Q949 214 964.5 225Q980 236 992 248.5Q1004 261 1016.5 281.5Q1029 302 1034 316Q1039 330 1042 346Q1045 362 1045.5 619.5Q1046 877 1043.5 898Q1041 919 1034.5 937.5Q1028 956 1017 974Q1006 992 989 1009Q972 1026 961 1033.5Q950 1041 940 1046Q930 1051 915.5 1056Q901 1061 887 1063.5Q873 1066 636.5 1066.5Q400 1067 383.5 1065.5Q367 1064 350.5 1059.5Q334 1055 322 1049.5Q310 1044 297.5 1036Q285 1028 270 1014Q255 1000 245.5 987Q236 974 229 960Q222 946 217 929.5Q212 913 210 898ZM321.5 677Q320 692 321 711.5Q322 731 325 746.5Q328 762 333.5 778.5Q339 795 347 811Q355 827 364 840Q373 853 385.5 866Q398 879 411.5 889Q425 899 438.5 906Q452 913 470.5 919Q489 925 512 928.5Q535 932 563 933.5Q591 935 627 935Q663 935 691 933.5Q719 932 739.5 929Q760 926 774.5 922Q789 918 806.5 910Q824 902 836 894Q848 886 856.5 878.5Q865 871 873 862Q881 853 890 840.5Q899 828 900.5 824Q902 820 903 820Q904 820 913.5 796.5Q923 773 928 747Q933 721 933.5 706.5Q934 692 931.5 672Q929 652 923.5 634Q918 616 911 603.5Q904 591 905.5 566Q907 541 906 498Q905 455 901 426Q897 397 893.5 385Q890 373 886.5 366Q883 359 877.5 353Q872 347 866.5 344.5Q861 342 852 342Q843 342 834 345.5Q825 349 813 357.5Q801 366 783.5 382.5Q766 399 754.5 412.5Q743 426 730 444.5Q717 463 684.5 459Q652 455 627.5 455Q603 455 570 459Q537 463 518 437Q499 411 476.5 388.5Q454 366 442.5 358Q431 350 421.5 346Q412 342 404.5 341.5Q397 341 391 343Q385 345 379 350.5Q373 356 370.5 360Q368 364 364 374.5Q360 385 357.5 396Q355 407 352.5 425.5Q350 444 348.5 470Q347 496 348.5 543.5Q350 591 345 599Q340 607 334 623Q328 639 325.5 650.5Q323 662 321.5 677ZM347 726.5Q345 709 345.5 692.5Q346 676 349 660.5Q352 645 356.5 633Q361 621 368 609Q375 597 373.5 572.5Q372 548 373 501Q374 454 378.5 424.5Q383 395 386 386.5Q389 378 392.5 373Q396 368 400 367Q404 366 412.5 369.5Q421 373 438 386.5Q455 400 473 420Q491 440 508.5 465.5Q526 491 539.5 488Q553 485 575.5 482.5Q598 480 633 480.5Q668 481 698 486Q728 491 746 465Q764 439 767 437Q770 435 775 427.5Q780 420 796.5 404Q813 388 822.5 381Q832 374 839 370.5Q846 367 851 367Q856 367 860 371Q864 375 869.5 394Q875 413 878 439Q881 465 881.5 508Q882 551 880.5 574Q879 597 885.5 607.5Q892 618 898 635Q904 652 906.5 670Q909 688 908.5 705.5Q908 723 903.5 745Q899 767 894.5 779Q890 791 883.5 803.5Q877 816 865 832Q853 848 844 856.5Q835 865 826.5 871Q818 877 805.5 883.5Q793 890 778 895Q763 900 728 904.5Q693 909 626.5 909Q560 909 539 907Q518 905 496 900Q474 895 458.5 888Q443 881 433 874.5Q423 868 412 858Q401 848 394 839.5Q387 831 380 820Q373 809 365 791Q357 773 353 758.5Q349 744 347 726.5ZM427 742Q420 748 422.5 755Q425 762 429.5 768.5Q434 775 441.5 782Q449 789 460 795Q471 801 484 804Q497 807 510 807.5Q523 808 535.5 806Q548 804 552.5 801.5Q557 799 556 789Q555 779 550 768Q545 757 535 746.5Q525 736 517.5 732Q510 728 500 726Q490 724 474.5 725Q459 726 446.5 731Q434 736 427 742ZM700 779Q697 789 697 794Q697 799 698.5 800.5Q700 802 710.5 804.5Q721 807 734.5 807.5Q748 808 761 806Q774 804 786 799Q798 794 806.5 787.5Q815 781 823 770.5Q831 760 832.5 754Q834 748 826 741.5Q818 735 806.5 730.5Q795 726 780.5 725Q766 724 757 725.5Q748 727 738.5 732Q729 737 721.5 744Q714 751 708.5 760Q703 769 700 779ZM440 760Q436 754 436.5 752Q437 750 443 746.5Q449 743 459.5 740Q470 737 475 737Q480 737 478.5 752Q477 767 479 778Q481 789 477.5 788.5Q474 788 466 783.5Q458 779 451 772.5Q444 766 440 760ZM776 752.5Q774 737 784 738Q794 739 806 745Q818 751 817.5 754Q817 757 811 764.5Q805 772 797 778Q789 784 783.5 786.5Q778 789 776 789Q774 789 776 778.5Q778 768 776 752.5ZM510.5 794Q498 793 501.5 779Q505 765 503.5 753Q502 741 504 741Q506 741 513 745Q520 749 527 756.5Q534 764 537.5 771Q541 778 542 784.5Q543 791 533 793Q523 795 510.5 794ZM721 792.5Q711 790 713 782.5Q715 775 718.5 768.5Q722 762 730.5 754Q739 746 746 743.5Q753 741 752 756.5Q751 772 754 782Q757 792 752.5 793.5Q748 795 739.5 795Q731 795 721 792.5ZM599 842Q597 845 600 852.5Q603 860 609 866.5Q615 873 619.5 876Q624 879 629 878Q634 877 641.5 869.5Q649 862 653 855.5Q657 849 657 847Q657 845 654.5 841.5Q652 838 642 835.5Q632 833 619.5 834.5Q607 836 604 837.5Q601 839 599 842Z" />
</svg>
diff --git a/apps/web/public/maskable-icon-512x512.png b/apps/web/public/maskable-icon-512x512.png
index e5855ecc..49b1c313 100644
Binary files a/apps/web/public/maskable-icon-512x512.png and b/apps/web/public/maskable-icon-512x512.png differ
diff --git a/apps/web/public/pwa-192x192.png b/apps/web/public/pwa-192x192.png
index 132ba40c..a4799f75 100644
Binary files a/apps/web/public/pwa-192x192.png and b/apps/web/public/pwa-192x192.png differ
diff --git a/apps/web/public/pwa-512x512.png b/apps/web/public/pwa-512x512.png
index 0df61e2b..49b1c313 100644
Binary files a/apps/web/public/pwa-512x512.png and b/apps/web/public/pwa-512x512.png differ
diff --git a/assets/brand/edgeever-concept-bold-outline.png b/assets/brand/edgeever-concept-bold-outline.png
new file mode 100644
index 00000000..2a75af00
Binary files /dev/null and b/assets/brand/edgeever-concept-bold-outline.png differ
diff --git a/assets/brand/edgeever-icon.svg b/assets/brand/edgeever-icon.svg
new file mode 100644
index 00000000..ca20ecbe
--- /dev/null
+++ b/assets/brand/edgeever-icon.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1254 1254" role="img" aria-labelledby="title desc">
+ <title id="title">EdgeEver</title>
+ <desc id="desc">A rounded cat face drawn with bold lines on the EdgeEver theme block.</desc>
+ <rect width="1254" height="1254" fill="#d8f3ec" />
+ <path fill="#2b968b" fill-rule="evenodd" d="M210 898Q208 883 208.5 621.5Q209 360 212 345Q215 330 223 310Q231 290 244 271.5Q257 253 270 241Q283 229 294 221.5Q305 214 320 207Q335 200 345 197Q355 194 372 191.5Q389 189 627 189Q865 189 884 192Q903 195 916 199.5Q929 204 939 209Q949 214 964.5 225Q980 236 992 248.5Q1004 261 1016.5 281.5Q1029 302 1034 316Q1039 330 1042 346Q1045 362 1045.5 619.5Q1046 877 1043.5 898Q1041 919 1034.5 937.5Q1028 956 1017 974Q1006 992 989 1009Q972 1026 961 1033.5Q950 1041 940 1046Q930 1051 915.5 1056Q901 1061 887 1063.5Q873 1066 636.5 1066.5Q400 1067 383.5 1065.5Q367 1064 350.5 1059.5Q334 1055 322 1049.5Q310 1044 297.5 1036Q285 1028 270 1014Q255 1000 245.5 987Q236 974 229 960Q222 946 217 929.5Q212 913 210 898ZM321.5 677Q320 692 321 711.5Q322 731 325 746.5Q328 762 333.5 778.5Q339 795 347 811Q355 827 364 840Q373 853 385.5 866Q398 879 411.5 889Q425 899 438.5 906Q452 913 470.5 919Q489 925 512 928.5Q535 932 563 933.5Q591 935 627 935Q663 935 691 933.5Q719 932 739.5 929Q760 926 774.5 922Q789 918 806.5 910Q824 902 836 894Q848 886 856.5 878.5Q865 871 873 862Q881 853 890 840.5Q899 828 900.5 824Q902 820 903 820Q904 820 913.5 796.5Q923 773 928 747Q933 721 933.5 706.5Q934 692 931.5 672Q929 652 923.5 634Q918 616 911 603.5Q904 591 905.5 566Q907 541 906 498Q905 455 901 426Q897 397 893.5 385Q890 373 886.5 366Q883 359 877.5 353Q872 347 866.5 344.5Q861 342 852 342Q843 342 834 345.5Q825 349 813 357.5Q801 366 783.5 382.5Q766 399 754.5 412.5Q743 426 730 444.5Q717 463 684.5 459Q652 455 627.5 455Q603 455 570 459Q537 463 518 437Q499 411 476.5 388.5Q454 366 442.5 358Q431 350 421.5 346Q412 342 404.5 341.5Q397 341 391 343Q385 345 379 350.5Q373 356 370.5 360Q368 364 364 374.5Q360 385 357.5 396Q355 407 352.5 425.5Q350 444 348.5 470Q347 496 348.5 543.5Q350 591 345 599Q340 607 334 623Q328 639 325.5 650.5Q323 662 321.5 677ZM347 726.5Q345 709 345.5 692.5Q346 676 349 660.5Q352 645 356.5 633Q361 621 368 609Q375 597 373.5 572.5Q372 548 373 501Q374 454 378.5 424.5Q383 395 386 386.5Q389 378 392.5 373Q396 368 400 367Q404 366 412.5 369.5Q421 373 438 386.5Q455 400 473 420Q491 440 508.5 465.5Q526 491 539.5 488Q553 485 575.5 482.5Q598 480 633 480.5Q668 481 698 486Q728 491 746 465Q764 439 767 437Q770 435 775 427.5Q780 420 796.5 404Q813 388 822.5 381Q832 374 839 370.5Q846 367 851 367Q856 367 860 371Q864 375 869.5 394Q875 413 878 439Q881 465 881.5 508Q882 551 880.5 574Q879 597 885.5 607.5Q892 618 898 635Q904 652 906.5 670Q909 688 908.5 705.5Q908 723 903.5 745Q899 767 894.5 779Q890 791 883.5 803.5Q877 816 865 832Q853 848 844 856.5Q835 865 826.5 871Q818 877 805.5 883.5Q793 890 778 895Q763 900 728 904.5Q693 909 626.5 909Q560 909 539 907Q518 905 496 900Q474 895 458.5 888Q443 881 433 874.5Q423 868 412 858Q401 848 394 839.5Q387 831 380 820Q373 809 365 791Q357 773 353 758.5Q349 744 347 726.5ZM427 742Q420 748 422.5 755Q425 762 429.5 768.5Q434 775 441.5 782Q449 789 460 795Q471 801 484 804Q497 807 510 807.5Q523 808 535.5 806Q548 804 552.5 801.5Q557 799 556 789Q555 779 550 768Q545 757 535 746.5Q525 736 517.5 732Q510 728 500 726Q490 724 474.5 725Q459 726 446.5 731Q434 736 427 742ZM700 779Q697 789 697 794Q697 799 698.5 800.5Q700 802 710.5 804.5Q721 807 734.5 807.5Q748 808 761 806Q774 804 786 799Q798 794 806.5 787.5Q815 781 823 770.5Q831 760 832.5 754Q834 748 826 741.5Q818 735 806.5 730.5Q795 726 780.5 725Q766 724 757 725.5Q748 727 738.5 732Q729 737 721.5 744Q714 751 708.5 760Q703 769 700 779ZM440 760Q436 754 436.5 752Q437 750 443 746.5Q449 743 459.5 740Q470 737 475 737Q480 737 478.5 752Q477 767 479 778Q481 789 477.5 788.5Q474 788 466 783.5Q458 779 451 772.5Q444 766 440 760ZM776 752.5Q774 737 784 738Q794 739 806 745Q818 751 817.5 754Q817 757 811 764.5Q805 772 797 778Q789 784 783.5 786.5Q778 789 776 789Q774 789 776 778.5Q778 768 776 752.5ZM510.5 794Q498 793 501.5 779Q505 765 503.5 753Q502 741 504 741Q506 741 513 745Q520 749 527 756.5Q534 764 537.5 771Q541 778 542 784.5Q543 791 533 793Q523 795 510.5 794ZM721 792.5Q711 790 713 782.5Q715 775 718.5 768.5Q722 762 730.5 754Q739 746 746 743.5Q753 741 752 756.5Q751 772 754 782Q757 792 752.5 793.5Q748 795 739.5 795Q731 795 721 792.5ZM599 842Q597 845 600 852.5Q603 860 609 866.5Q615 873 619.5 876Q624 879 629 878Q634 877 641.5 869.5Q649 862 653 855.5Q657 849 657 847Q657 845 654.5 841.5Q652 838 642 835.5Q632 833 619.5 834.5Q607 836 604 837.5Q601 839 599 842Z" />
+</svg>
diff --git a/assets/brand/edgeever-mark.svg b/assets/brand/edgeever-mark.svg
new file mode 100644
index 00000000..4285447b
--- /dev/null
+++ b/assets/brand/edgeever-mark.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1254 1254" role="img" aria-label="EdgeEver">
+ <path fill="#2b968b" fill-rule="evenodd" d="M210 898Q208 883 208.5 621.5Q209 360 212 345Q215 330 223 310Q231 290 244 271.5Q257 253 270 241Q283 229 294 221.5Q305 214 320 207Q335 200 345 197Q355 194 372 191.5Q389 189 627 189Q865 189 884 192Q903 195 916 199.5Q929 204 939 209Q949 214 964.5 225Q980 236 992 248.5Q1004 261 1016.5 281.5Q1029 302 1034 316Q1039 330 1042 346Q1045 362 1045.5 619.5Q1046 877 1043.5 898Q1041 919 1034.5 937.5Q1028 956 1017 974Q1006 992 989 1009Q972 1026 961 1033.5Q950 1041 940 1046Q930 1051 915.5 1056Q901 1061 887 1063.5Q873 1066 636.5 1066.5Q400 1067 383.5 1065.5Q367 1064 350.5 1059.5Q334 1055 322 1049.5Q310 1044 297.5 1036Q285 1028 270 1014Q255 1000 245.5 987Q236 974 229 960Q222 946 217 929.5Q212 913 210 898ZM321.5 677Q320 692 321 711.5Q322 731 325 746.5Q328 762 333.5 778.5Q339 795 347 811Q355 827 364 840Q373 853 385.5 866Q398 879 411.5 889Q425 899 438.5 906Q452 913 470.5 919Q489 925 512 928.5Q535 932 563 933.5Q591 935 627 935Q663 935 691 933.5Q719 932 739.5 929Q760 926 774.5 922Q789 918 806.5 910Q824 902 836 894Q848 886 856.5 878.5Q865 871 873 862Q881 853 890 840.5Q899 828 900.5 824Q902 820 903 820Q904 820 913.5 796.5Q923 773 928 747Q933 721 933.5 706.5Q934 692 931.5 672Q929 652 923.5 634Q918 616 911 603.5Q904 591 905.5 566Q907 541 906 498Q905 455 901 426Q897 397 893.5 385Q890 373 886.5 366Q883 359 877.5 353Q872 347 866.5 344.5Q861 342 852 342Q843 342 834 345.5Q825 349 813 357.5Q801 366 783.5 382.5Q766 399 754.5 412.5Q743 426 730 444.5Q717 463 684.5 459Q652 455 627.5 455Q603 455 570 459Q537 463 518 437Q499 411 476.5 388.5Q454 366 442.5 358Q431 350 421.5 346Q412 342 404.5 341.5Q397 341 391 343Q385 345 379 350.5Q373 356 370.5 360Q368 364 364 374.5Q360 385 357.5 396Q355 407 352.5 425.5Q350 444 348.5 470Q347 496 348.5 543.5Q350 591 345 599Q340 607 334 623Q328 639 325.5 650.5Q323 662 321.5 677ZM347 726.5Q345 709 345.5 692.5Q346 676 349 660.5Q352 645 356.5 633Q361 621 368 609Q375 597 373.5 572.5Q372 548 373 501Q374 454 378.5 424.5Q383 395 386 386.5Q389 378 392.5 373Q396 368 400 367Q404 366 412.5 369.5Q421 373 438 386.5Q455 400 473 420Q491 440 508.5 465.5Q526 491 539.5 488Q553 485 575.5 482.5Q598 480 633 480.5Q668 481 698 486Q728 491 746 465Q764 439 767 437Q770 435 775 427.5Q780 420 796.5 404Q813 388 822.5 381Q832 374 839 370.5Q846 367 851 367Q856 367 860 371Q864 375 869.5 394Q875 413 878 439Q881 465 881.5 508Q882 551 880.5 574Q879 597 885.5 607.5Q892 618 898 635Q904 652 906.5 670Q909 688 908.5 705.5Q908 723 903.5 745Q899 767 894.5 779Q890 791 883.5 803.5Q877 816 865 832Q853 848 844 856.5Q835 865 826.5 871Q818 877 805.5 883.5Q793 890 778 895Q763 900 728 904.5Q693 909 626.5 909Q560 909 539 907Q518 905 496 900Q474 895 458.5 888Q443 881 433 874.5Q423 868 412 858Q401 848 394 839.5Q387 831 380 820Q373 809 365 791Q357 773 353 758.5Q349 744 347 726.5ZM427 742Q420 748 422.5 755Q425 762 429.5 768.5Q434 775 441.5 782Q449 789 460 795Q471 801 484 804Q497 807 510 807.5Q523 808 535.5 806Q548 804 552.5 801.5Q557 799 556 789Q555 779 550 768Q545 757 535 746.5Q525 736 517.5 732Q510 728 500 726Q490 724 474.5 725Q459 726 446.5 731Q434 736 427 742ZM700 779Q697 789 697 794Q697 799 698.5 800.5Q700 802 710.5 804.5Q721 807 734.5 807.5Q748 808 761 806Q774 804 786 799Q798 794 806.5 787.5Q815 781 823 770.5Q831 760 832.5 754Q834 748 826 741.5Q818 735 806.5 730.5Q795 726 780.5 725Q766 724 757 725.5Q748 727 738.5 732Q729 737 721.5 744Q714 751 708.5 760Q703 769 700 779ZM440 760Q436 754 436.5 752Q437 750 443 746.5Q449 743 459.5 740Q470 737 475 737Q480 737 478.5 752Q477 767 479 778Q481 789 477.5 788.5Q474 788 466 783.5Q458 779 451 772.5Q444 766 440 760ZM776 752.5Q774 737 784 738Q794 739 806 745Q818 751 817.5 754Q817 757 811 764.5Q805 772 797 778Q789 784 783.5 786.5Q778 789 776 789Q774 789 776 778.5Q778 768 776 752.5ZM510.5 794Q498 793 501.5 779Q505 765 503.5 753Q502 741 504 741Q506 741 513 745Q520 749 527 756.5Q534 764 537.5 771Q541 778 542 784.5Q543 791 533 793Q523 795 510.5 794ZM721 792.5Q711 790 713 782.5Q715 775 718.5 768.5Q722 762 730.5 754Q739 746 746 743.5Q753 741 752 756.5Q751 772 754 782Q757 792 752.5 793.5Q748 795 739.5 795Q731 795 721 792.5ZM599 842Q597 845 600 852.5Q603 860 609 866.5Q615 873 619.5 876Q624 879 629 878Q634 877 641.5 869.5Q649 862 653 855.5Q657 849 657 847Q657 845 654.5 841.5Q652 838 642 835.5Q632 833 619.5 834.5Q607 836 604 837.5Q601 839 599 842Z" />
+</svg>
diff --git a/package.json b/package.json
index caf73ebe..08c58390 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"dev:web": "vite --config apps/web/vite.config.ts --host 127.0.0.1 --port 5173",
"dev:desktop": "concurrently -k -n web,desktop -c magenta,cyan \"bun run dev:web\" \"bun run --cwd apps/desktop dev\"",
"dev:mobile": "bun --cwd apps/mobile expo start",
+ "prepare:brand:icons": "bun scripts/trace-brand-icon.mjs && bun scripts/prepare-brand-icons.mjs",
"prepare:mobile:icons": "bun scripts/prepare-mobile-icons.mjs",
"prepare:desktop:icons": "bun scripts/prepare-desktop-icons.mjs",
"build:android:fast": "bash scripts/build-android-local.sh fast",
diff --git a/scripts/prepare-brand-icons.mjs b/scripts/prepare-brand-icons.mjs
new file mode 100644
index 00000000..3a349de4
--- /dev/null
+++ b/scripts/prepare-brand-icons.mjs
@@ -0,0 +1,72 @@
+import { copyFile, mkdir, readFile, writeFile } from "node:fs/promises";
+import path from "node:path";
+import { fileURLToPath } from "node:url";
+import sharp from "sharp";
+import { prepareDesktopIcons } from "./prepare-desktop-icons.mjs";
+
+const projectRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
+const sourcePath = path.join(projectRoot, "assets/brand/edgeever-icon.svg");
+const adaptiveForegroundSourcePath = path.join(projectRoot, "apps/mobile/assets/adaptive-icon-foreground.svg");
+const adaptiveTransparentSourcePath = path.join(projectRoot, "apps/mobile/assets/adaptive-icon-transparent.svg");
+const source = await readFile(sourcePath);
+const adaptiveForegroundSource = await readFile(adaptiveForegroundSourcePath);
+const adaptiveTransparentSource = await readFile(adaptiveTransparentSourcePath);
+
+await copyFile(sourcePath, path.join(projectRoot, "apps/web/public/favicon.svg"));
+await copyFile(sourcePath, path.join(projectRoot, "apps/site/public/favicon.svg"));
+
+const pngTargets = [
+ ["apps/web/public/pwa-192x192.png", 192],
+ ["apps/web/public/pwa-512x512.png", 512],
+ ["apps/web/public/maskable-icon-512x512.png", 512],
+ ["apps/web/public/apple-touch-icon.png", 180],
+ ["apps/site/public/icon-192.png", 192],
+ ["apps/site/public/icon-512.png", 512],
+ ["apps/site/public/apple-touch-icon.png", 180],
+ ["apps/mobile/assets/icon.png", 512],
+ ["apps/ios/EdgeEver/Resources/Assets.xcassets/AppIcon.appiconset/icon.png", 1024],
+ ["apps/extension/public/icons/icon-16.png", 16],
+ ["apps/extension/public/icons/icon-32.png", 32],
+ ["apps/extension/public/icons/icon-48.png", 48],
+ ["apps/extension/public/icons/icon-128.png", 128],
+];
+
+const renderPng = async (input, destination, size, { preserveAlpha = false } = {}) => {
+ const outputPath = path.join(projectRoot, destination);
+ await mkdir(path.dirname(outputPath), { recursive: true });
+ const pipeline = sharp(input, { density: 384 }).resize(size, size, {
+ fit: "contain",
+ kernel: sharp.kernel.lanczos3,
+ });
+ if (!preserveAlpha) {
+ pipeline.flatten({ background: "#d8f3ec" }).removeAlpha();
+ }
+ await pipeline.png({ compressionLevel: 9 }).toFile(outputPath);
+};
+
+for (const [destination, size] of pngTargets) {
+ await renderPng(source, destination, size);
+}
+
+await renderPng(adaptiveForegroundSource, "apps/mobile/assets/adaptive-icon-foreground.png", 1024, {
+ preserveAlpha: true,
+});
+await renderPng(adaptiveTransparentSource, "apps/mobile/assets/adaptive-icon-transparent.png", 1024, {
+ preserveAlpha: true,
+});
+
+const faviconPng = await sharp(source, { density: 384 }).resize(32, 32).png().toBuffer();
+const icoHeader = Buffer.alloc(22);
+icoHeader.writeUInt16LE(0, 0);
+icoHeader.writeUInt16LE(1, 2);
+icoHeader.writeUInt16LE(1, 4);
+icoHeader.writeUInt8(32, 6);
+icoHeader.writeUInt8(32, 7);
+icoHeader.writeUInt16LE(1, 10);
+icoHeader.writeUInt16LE(32, 12);
+icoHeader.writeUInt32LE(faviconPng.length, 14);
+icoHeader.writeUInt32LE(22, 18);
+await writeFile(path.join(projectRoot, "apps/site/public/favicon.ico"), Buffer.concat([icoHeader, faviconPng]));
+
+await prepareDesktopIcons();
+console.log("[prepare-brand-icons] updated shared brand icons");
diff --git a/scripts/trace-brand-icon.mjs b/scripts/trace-brand-icon.mjs
new file mode 100644
index 00000000..e9bff2fa
--- /dev/null
+++ b/scripts/trace-brand-icon.mjs
@@ -0,0 +1,215 @@
+import { readFile, writeFile } from "node:fs/promises";
+import path from "node:path";
+import { fileURLToPath } from "node:url";
+import sharp from "sharp";
+
+const projectRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
+const conceptPath = path.join(projectRoot, "assets/brand/edgeever-concept-bold-outline.png");
+const iconPath = path.join(projectRoot, "assets/brand/edgeever-icon.svg");
+const markPath = path.join(projectRoot, "assets/brand/edgeever-mark.svg");
+const adaptiveMarkPath = path.join(projectRoot, "apps/mobile/assets/adaptive-icon-foreground.svg");
+
+const source = await readFile(conceptPath);
+const { data, info } = await sharp(source)
+ .removeAlpha()
+ .blur(1.5)
+ .raw()
+ .toBuffer({ resolveWithObject: true });
+const { width, height, channels } = info;
+const pixelCount = width * height;
+const mask = new Uint8Array(pixelCount);
+
+for (let index = 0; index < pixelCount; index += 1) {
+ const offset = index * channels;
+ const red = data[offset];
+ const green = data[offset + 1];
+ const blue = data[offset + 2];
+ // The generated concept uses a pale mint backdrop and a highly saturated teal
+ // mark. Require strong saturation so the backdrop vignette cannot leak into
+ // the traced outline as small edge artifacts.
+ if (green - red > 60 && green - blue > 4 && red < 180) {
+ mask[index] = 1;
+ }
+}
+
+// Remove isolated antialiasing noise while preserving every meaningful contour.
+const visited = new Uint8Array(pixelCount);
+const queue = new Int32Array(pixelCount);
+for (let start = 0; start < pixelCount; start += 1) {
+ if (!mask[start] || visited[start]) continue;
+ let head = 0;
+ let tail = 0;
+ queue[tail++] = start;
+ visited[start] = 1;
+ const members = [];
+ while (head < tail) {
+ const index = queue[head++];
+ members.push(index);
+ const x = index % width;
+ const y = Math.floor(index / width);
+ const neighbors = [];
+ if (x > 0) neighbors.push(index - 1);
+ if (x + 1 < width) neighbors.push(index + 1);
+ if (y > 0) neighbors.push(index - width);
+ if (y + 1 < height) neighbors.push(index + width);
+ for (const neighbor of neighbors) {
+ if (mask[neighbor] && !visited[neighbor]) {
+ visited[neighbor] = 1;
+ queue[tail++] = neighbor;
+ }
+ }
+ }
+ if (members.length < 80) {
+ for (const index of members) mask[index] = 0;
+ }
+}
+
+const stride = width + 1;
+const edges = new Map();
+let edgeCount = 0;
+const addEdge = (fromX, fromY, toX, toY) => {
+ const from = fromY * stride + fromX;
+ const to = toY * stride + toX;
+ const destinations = edges.get(from);
+ if (destinations) destinations.push(to);
+ else edges.set(from, [to]);
+ edgeCount += 1;
+};
+const isFilled = (x, y) => x >= 0 && x < width && y >= 0 && y < height && mask[y * width + x];
+
+for (let y = 0; y < height; y += 1) {
+ for (let x = 0; x < width; x += 1) {
+ if (!isFilled(x, y)) continue;
+ if (!isFilled(x, y - 1)) addEdge(x, y, x + 1, y);
+ if (!isFilled(x + 1, y)) addEdge(x + 1, y, x + 1, y + 1);
+ if (!isFilled(x, y + 1)) addEdge(x + 1, y + 1, x, y + 1);
+ if (!isFilled(x - 1, y)) addEdge(x, y + 1, x, y);
+ }
+}
+
+const takeEdge = (from) => {
+ const destinations = edges.get(from);
+ if (!destinations?.length) return null;
+ const to = destinations.pop();
+ if (!destinations.length) edges.delete(from);
+ edgeCount -= 1;
+ return to;
+};
+const point = (value) => [value % stride, Math.floor(value / stride)];
+const simplifyCollinear = (points) => {
+ const simplified = [];
+ for (const current of points) {
+ while (simplified.length >= 2) {
+ const a = simplified[simplified.length - 2];
+ const b = simplified[simplified.length - 1];
+ if ((b[0] - a[0]) * (current[1] - b[1]) !== (b[1] - a[1]) * (current[0] - b[0])) break;
+ simplified.pop();
+ }
+ simplified.push(current);
+ }
+ return simplified;
+};
+const perpendicularDistanceSquared = (point, start, end) => {
+ const dx = end[0] - start[0];
+ const dy = end[1] - start[1];
+ if (dx === 0 && dy === 0) {
+ return (point[0] - start[0]) ** 2 + (point[1] - start[1]) ** 2;
+ }
+ const numerator = dy * point[0] - dx * point[1] + end[0] * start[1] - end[1] * start[0];
+ return (numerator * numerator) / (dx * dx + dy * dy);
+};
+const simplifyOpen = (points, epsilonSquared) => {
+ if (points.length <= 2) return points;
+ let furthestIndex = 0;
+ let furthestDistance = 0;
+ for (let index = 1; index < points.length - 1; index += 1) {
+ const distance = perpendicularDistanceSquared(points[index], points[0], points[points.length - 1]);
+ if (distance > furthestDistance) {
+ furthestDistance = distance;
+ furthestIndex = index;
+ }
+ }
+ if (furthestDistance <= epsilonSquared) return [points[0], points[points.length - 1]];
+ return [
+ ...simplifyOpen(points.slice(0, furthestIndex + 1), epsilonSquared).slice(0, -1),
+ ...simplifyOpen(points.slice(furthestIndex), epsilonSquared),
+ ];
+};
+const simplifyClosed = (points, epsilon = 1.5) => {
+ const ring = points.slice(0, -1);
+ let anchorIndex = 0;
+ for (let index = 1; index < ring.length; index += 1) {
+ if (ring[index][0] < ring[anchorIndex][0]) anchorIndex = index;
+ }
+ let oppositeIndex = anchorIndex;
+ let furthestDistance = -1;
+ for (let index = 0; index < ring.length; index += 1) {
+ const dx = ring[index][0] - ring[anchorIndex][0];
+ const dy = ring[index][1] - ring[anchorIndex][1];
+ const distance = dx * dx + dy * dy;
+ if (distance > furthestDistance) {
+ furthestDistance = distance;
+ oppositeIndex = index;
+ }
+ }
+ const rotate = (index) => ring[(index + ring.length) % ring.length];
+ const first = [];
+ for (let index = anchorIndex; index !== oppositeIndex; index = (index + 1) % ring.length) first.push(ring[index]);
+ first.push(ring[oppositeIndex]);
+ const second = [];
+ for (let index = oppositeIndex; index !== anchorIndex; index = (index + 1) % ring.length) second.push(ring[index]);
+ second.push(rotate(anchorIndex));
+ const epsilonSquared = epsilon * epsilon;
+ return [
+ ...simplifyOpen(first, epsilonSquared).slice(0, -1),
+ ...simplifyOpen(second, epsilonSquared).slice(0, -1),
+ ];
+};
+const polygonArea = (points) => {
+ let area = 0;
+ for (let index = 0; index < points.length - 1; index += 1) {
+ area += points[index][0] * points[index + 1][1] - points[index + 1][0] * points[index][1];
+ }
+ return area / 2;
+};
+
+const loops = [];
+while (edgeCount > 0) {
+ const start = edges.keys().next().value;
+ const points = [point(start)];
+ let current = start;
+ let guard = 0;
+ do {
+ const next = takeEdge(current);
+ if (next === null) throw new Error(`Open contour at edge ${current}`);
+ current = next;
+ points.push(point(current));
+ guard += 1;
+ if (guard > width * height * 2) throw new Error("Contour tracing exceeded safety limit");
+ } while (current !== start);
+ const collinear = simplifyCollinear(points);
+ if (collinear.length >= 4 && Math.abs(polygonArea(collinear)) >= 300) {
+ loops.push(simplifyClosed(collinear));
+ }
+}
+
+const midpoint = (a, b) => [Number(((a[0] + b[0]) / 2).toFixed(2)), Number(((a[1] + b[1]) / 2).toFixed(2))];
+const pathData = loops
+ .map((loop) => {
+ const start = midpoint(loop[loop.length - 1], loop[0]);
+ const curves = loop.map((current, index) => {
+ const end = midpoint(current, loop[(index + 1) % loop.length]);
+ return `Q${current[0]} ${current[1]} ${end[0]} ${end[1]}`;
+ });
+ return `M${start[0]} ${start[1]}${curves.join("")}Z`;
+ })
+ .join("");
+const title = " <title id=\"title\">EdgeEver</title>\n <desc id=\"desc\">A rounded cat face drawn with bold lines on the EdgeEver theme block.</desc>\n";
+const sharedPath = ` <path fill=\"#2b968b\" fill-rule=\"evenodd\" d=\"${pathData}\" />\n`;
+const iconSvg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 ${width} ${height}\" role=\"img\" aria-labelledby=\"title desc\">\n${title} <rect width=\"${width}\" height=\"${height}\" fill=\"#d8f3ec\" />\n${sharedPath}</svg>\n`;
+const markSvg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 ${width} ${height}\" role=\"img\" aria-label=\"EdgeEver\">\n${sharedPath}</svg>\n`;
+
+await writeFile(iconPath, iconSvg);
+await writeFile(markPath, markSvg);
+await writeFile(adaptiveMarkPath, markSvg);
+console.log(`[trace-brand-icon] traced ${loops.length} contours from ${width}x${height} bold-outline concept`);