FREE TOOLS — All 41 tools run 100% in your browser. Free forever — no sign-up, no uploads.
Skip to main content

Wordmark Studio

Turn any word into a picture logo — the whole word becomes the shape, with 12 different ideas per word, free SVG export, no account, no watermark.

✓ Exact Spelling Preserved
Bespoke Letter-Morph Engine Ready
Try a word:

Free SVG. No account. No watermark. Yours to use commercially — no licence fee, no attribution needed.

Creative Wordmark Variations for "VELTRIX" Exact Spelling & Clever Visual Touch

Every card keeps your exact letters V-E-L-T-R-I-X in the same order — and turns the whole word into a picture. Pick a card to finish it in the studio below.

Generating your 12 wordmark ideas…

Precision Vector Customizer

Click a letter on the canvas to select it — drag it to move it, or pick a new picture for it below

Tagline font pairs with Inter:
Pick a letter — on the canvas or here: Click Any Letter

Picture for the selected letter: Tap a picture — only that letter changes

Tip: click a letter on the canvas to select it, then drag it to move it. Drag a corner handle to resize, the top handle to rotate.

Live preview — your wordmark as you edit updates instantly
Move & size the selected letter
Typography & Brand Color Palette
Brand Palette Presets
Palette Engine — harmonies from your accent #4f46e5

Ink on background — checking…

Tap a swatch to use it as the accent colour. Tap a harmony to change the set.

Master Vector Stage (Click Any Letter on Canvas to Edit) Word as Picture
Generating your wordmark…
Active Vector Formula
100% Scalable Bezier SVG
Built-In 32px Favicon Readability Check ✓ 32px Readable (100% Pass)

Strictly 1 letter modified; stroke & scale pass the 32px small-size legibility threshold.

32px
48px

Live Brand Touchpoint Preview

Real-time rendering on business card, app icon, 3D signage & packaging
EXECUTIVE CARD 300 DPI
Matte Laminated Card
APP / FAVICON iOS/Web
1024×1024 Squircle
3D WALL SIGN Laser Cut
Reception & Storefront
RETAIL BOX Foil Stamp
Packaging & Apparel
📘 Live Interactive Design Rules • Rendered Directly on Your Word

6 ways to shape a word — live on "VELTRIX"

Every diagram below dynamically renders your exact typed word—never changing, adding, or removing any letters—so you can compare how all 6 typographic design rules transform your brand name.

RULE #01 • NEGATIVE SPACE Figure-Ground Block

1. Inner Negative-Space Carve

Cut a shape out of the inside of a letter.

RULE #02 • SKELETAL MATCH Stem & Canopy Morph

2. Skeletal Stem & Object Extension

Stretch one stroke of a letter into a real object.

RULE #03 • CROSSBAR WAVE Continuous Ligature

3. Crossbar Wave & Lock Ligatures

Link the middle letters with one flowing line.

RULE #04 • KINETIC SLICE Cause & Effect

4. Precision Kinetic Motion Cut

Slice a fast cut across the word.

RULE #05 • GOLDEN RATIO φ = 1 : 1.618

5. Fibonacci Golden Ratio Grid

Space the letters by the golden ratio.

RULE #06 • MONOGRAM SEAL Executive Emblem

6. Luxury Monogram & Crest Framing

Frame the word inside a round seal.

✦ Veltrix Code Division C • Complete Agency Offerings

6 Custom Logo & Brand Identity Packages

Design and export unlimited vector concepts for free in our studio above, or commission our dedicated design squads for custom hand-crafted concepts, unlimited revisions, up to 25-page brand guidelines, and trademark protection.

Currency:
✦ Specialized Brand Engineering Services

Portrait Mascot, Golden Ratio, Luxury Monogram & Trademark IP Filing

100% Satisfaction & Refund Guarantee • 40/30/30 USD Milestones
SPECIALTY 01

Personal Portrait & Mascot Logo

Custom illustrated founder portrait, creator mascot, or NFT avatar in high-contrast stencil or full vector shading.

$39 USD
SPECIALTY 02

Golden Ratio (φ 1.618) Master Emblem

Mathematically proportioned brand mark constructed with Fibonacci circles, delivered with full geometric grid blueprints.

$59 USD
SPECIALTY 03

Bespoke Luxury Monogram System

Custom interlocking initials crafted for fashion labels, real estate developments, executive brands, and laser hardware engraving.

$49 USD
SPECIALTY 04

Trademark & Brand IP Protection

Prior-art similarity clearance check, universal monochrome protection spec, IP dossier preparation, and trademark registration filing.

$99 USD
✦ Complete 33-Item Brand Collateral Matrix

Interactive Brand Identity & Merch Quote Configurator

Select any combination of Office Stationery (11 items), Marketing & Signage (11 items), and Retail & Packaging (11 items) to build your custom scope.

Veltrix Code Scope Estimator

Live Project Proposal

Selected Brand Items: 0 items
Estimated Total: $99 USD
• 40% Kickoff Milestone:$39.60
• 30% Concept Approval:$29.70
• 30% Vector Handover:$29.70
`; } async function downloadBrandKitZip() { showToast('Building your brand kit ZIP…'); const snap = currentSnap(); try { const light = await buildStandaloneSvgString({ ...snap, fgColor: '#0a0a0a', bgColor: '#ffffff' }, false); const transparent = await buildStandaloneSvgString(snap, true); const png1024 = await renderSvgToBlob(light.svg, 1024, 'png'); const pngTransparent = await renderSvgToBlob(transparent.svg, 1024, 'png'); const pal = buildPalette(snap.accentColor); const paletteJson = JSON.stringify({ word: snap.word, accent: snap.accentColor, foreground: snap.fgColor, background: snap.bgColor, harmonies: pal }, null, 2); const paletteCss = `:root {\n --brand-accent: ${snap.accentColor};\n --brand-ink: ${snap.fgColor};\n --brand-bg: ${snap.bgColor};\n}\n`; const fontsTxt = 'Wordmark Studio — fonts used in this logo:\n' + 'Word font: ' + snap.fontFamily + ' ' + snap.fontWeight + '\n' + (snap.taglineFont ? 'Tagline font: ' + snap.taglineFont + ' 700\n' : '') + 'All fonts are SIL Open Font License 1.1 (Google Fonts).\n' + 'The logo SVG embeds its font, so it renders anywhere.\n'; const zip = new JSZip(); zip.file('logo.svg', light.svg); zip.file('logo-transparent.svg', transparent.svg); if (png1024) zip.file('logo-1024.png', png1024); if (pngTransparent) zip.file('logo-transparent-1024.png', pngTransparent); zip.file('palette.json', paletteJson); zip.file('palette.css', paletteCss); zip.file('fonts.txt', fontsTxt); zip.file('guidelines.html', buildGuidelinesHtml(snap, light.svg)); const blob = await zip.generateAsync({ type: 'blob' }); downloadBlobFile(blob, `veltrix-wordmark-${snap.word.toLowerCase()}-brand-kit.zip`); showToast('Brand kit ZIP downloaded!'); } catch (e) { console.error('Brand kit failed', e); showToast('Brand kit failed — try again.'); } } // ---- (10) dark / light / transparent variant pack + favicon set ------ async function downloadVariantPack() { showToast('Building the variant pack — light, dark, transparent + favicons…'); const snap = currentSnap(); try { const variants = [ { name: 'light', fg: '#0a0a0a', bg: '#ffffff', transparent: false }, { name: 'dark', fg: '#ffffff', bg: '#0a0a0a', transparent: false }, { name: 'transparent', fg: snap.fgColor, bg: '#ffffff', transparent: true } ]; const zip = new JSZip(); for (const v of variants) { const s = { ...snap, fgColor: v.fg, bgColor: v.bg }; const { svg } = await buildStandaloneSvgString(s, v.transparent); zip.file(`${v.name}.svg`, svg); const png = await renderSvgToBlob(svg, 1024, 'png'); if (png) zip.file(`${v.name}-1024.png`, png); } const { svg: baseSvg } = await buildStandaloneSvgString(snap, true); const files = await buildSocialKitFiles(baseSvg, snap.word); files.forEach(f => { if (f.name.startsWith('favicon')) zip.file(f.name, f.blob); }); const blob = await zip.generateAsync({ type: 'blob' }); downloadBlobFile(blob, `veltrix-wordmark-${snap.word.toLowerCase()}-variant-pack.zip`); showToast('Variant pack downloaded!'); } catch (e) { console.error('Variant pack failed', e); showToast('Variant pack failed — try again.'); } } // ---- (6) local colour-palette engine ---------------------------------- function hexToHsl(hex) { const c = hex.replace('#', ''); const r = parseInt(c.slice(0, 2), 16) / 255, g = parseInt(c.slice(2, 4), 16) / 255, b = parseInt(c.slice(4, 6), 16) / 255; const max = Math.max(r, g, b), min = Math.min(r, g, b); const l = (max + min) / 2; if (max === min) return { h: 0, s: 0, l }; const d = max - min; const s = l > 0.5 ? d / (2 - max - min) : d / (max + min); let h = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4; return { h: h * 60, s, l }; } function hslToHex(h, s, l) { const c = (1 - Math.abs(2 * l - 1)) * s; const x = c * (1 - Math.abs(((h / 60) % 2) - 1)); const m = l - c / 2; let r = 0, g = 0, b = 0; if (h < 60) { r = c; g = x; } else if (h < 120) { r = x; g = c; } else if (h < 180) { g = c; b = x; } else if (h < 240) { g = x; b = c; } else if (h < 300) { r = x; b = c; } else { r = c; b = x; } const to = (v) => Math.round((v + m) * 255).toString(16).padStart(2, '0'); return '#' + to(r) + to(g) + to(b); } function buildPalette(accent) { const { h, s, l } = hexToHsl(accent); const norm = (x) => ((x % 360) + 360) % 360; return { complementary: [accent, hslToHex(norm(h + 180), s, l)], analogous: [accent, hslToHex(norm(h + 30), s, l), hslToHex(norm(h - 30), s, l)], triadic: [accent, hslToHex(norm(h + 120), s, l), hslToHex(norm(h + 240), s, l)], split: [accent, hslToHex(norm(h + 150), s, l), hslToHex(norm(h + 210), s, l)] }; } function wcagContrast(hexA, hexB) { const lum = (hex) => { const c = hex.replace('#', ''); const r = parseInt(c.slice(0, 2), 16) / 255, g = parseInt(c.slice(2, 4), 16) / 255, b = parseInt(c.slice(4, 6), 16) / 255; const f = (v) => v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4); return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b); }; const l1 = lum(hexA), l2 = lum(hexB); return (Math.max(l1, l2) + 0.05) / (Math.min(l1, l2) + 0.05); } function updatePaletteEngine() { const anchor = document.getElementById('paletteAnchorSwatch'); const row = document.getElementById('paletteHarmonyRow'); const line = document.getElementById('paletteContrastLine'); if (!anchor || !row || !line) return; const accent = state.accentColor || '#4f46e5'; anchor.innerHTML = `${accent}`; const pal = buildPalette(accent); const set = pal[state.paletteHarmony] || pal.complementary; row.innerHTML = ''; set.forEach(c => { const b = document.createElement('button'); b.type = 'button'; b.className = 'flex items-center gap-1.5 px-2 py-1 rounded-lg bg-white border border-[#e5dcc3] text-[11px] font-mono cursor-pointer'; b.innerHTML = `${c}`; b.addEventListener('click', () => { state.accentColor = c; const ac = document.getElementById('accentColorPicker'); if (ac) ac.value = c; renderMainLogo(); renderVariationsGrid(); }); row.appendChild(b); }); const ratio = wcagContrast(state.fgColor, state.bgColor); const verdict = ratio >= 7 ? 'AAA ✓' : ratio >= 4.5 ? 'AA ✓' : 'below AA — try a darker ink'; line.textContent = `Ink ${state.fgColor} on background ${state.bgColor} — contrast ${ratio.toFixed(2)}:1 (${verdict}).`; } // ---- (2) compare tray — star 2-3 variations, 320/64/32, light+dark -- function toggleCompare(vIdx) { const i = state.compareIdx.indexOf(vIdx); if (i >= 0) state.compareIdx.splice(i, 1); else { if (state.compareIdx.length >= 3) { showToast('Compare holds 3 variations — unstar one first.'); return; } state.compareIdx.push(vIdx); } document.querySelectorAll('.compare-variation-btn').forEach(btn => { const idx = Number(btn.getAttribute('data-compare-var-idx')); const on = state.compareIdx.includes(idx); btn.className = 'compare-variation-btn px-2.5 py-2 rounded-xl border text-xs font-bold transition cursor-pointer ' + (on ? 'bg-[#1f5c4d] text-[#faf6ee] border-[#1f5c4d]' : 'bg-white text-[#3d4a43] border-[#e5dcc3] hover:border-[#d8cbb0]'); btn.textContent = on ? '★ Compare' : '☆ Compare'; }); renderCompareTray(); } function renderCompareTray() { const section = document.getElementById('compareTraySection'); const grid = document.getElementById('compareTrayGrid'); if (!section || !grid) return; if (!state.compareIdx.length) { section.style.display = 'none'; grid.innerHTML = ''; return; } section.style.display = ''; const variations = LAST_VARIATIONS || []; const word = getFormattedWord(); grid.innerHTML = ''; for (const idx of state.compareIdx) { const v = variations.find(x => x.idx === idx); if (!v) continue; const eff = effectiveVariation(v); const innerFor = (fg, bg) => buildWordmarkSvgInner({ word: applyCase(word, eff.caseMode), letterConfigs: eff.letterConfigs, fontFamily: eff.fontFamily, fontWeight: eff.fontWeight, kerning: eff.kerning, fgColor: fg, bgColor: bg, accentColor: eff.accentColor, popAccent: eff.popAccent, designMode: eff.designMode, baseline: eff.baseline, extraId: eff.extraId, gapIdx: eff.gapIdx != null ? eff.gapIdx : null, outline: eff.outline, block3d: eff.block3d, tagline: state.tagline, taglineFont: state.taglineFont, showGoldenGrid: false, showDraftLines: false, viewW: 920, viewH: 380, interactive: false, transparentBg: false }); const innerLight = innerFor(eff.inkColor || state.fgColor, state.bgColor); const innerDark = innerFor('#faf6ee', '#1c2b26'); const cell = document.createElement('div'); cell.className = 'bg-white rounded-xl border border-[#e5dcc3] p-3 space-y-2'; cell.innerHTML = `

${v.title}

${innerLight}
${innerDark}
${innerLight}
${innerDark}
${innerLight}
${innerDark}
`; grid.appendChild(cell); } } function blurCompareTray() { const grid = document.getElementById('compareTrayGrid'); if (!grid) return; grid.classList.add('compare-blur'); setTimeout(() => grid.classList.remove('compare-blur'), 1000); } // ---- (12) "vary one thing only" remix -------------------------------- const REMIX_ACCENTS = ['#e11d48', '#c9a227', '#1f5c4d', '#4f46e5', '#0ea5e9', '#f97316', '#7c3aed', '#059669']; async function remixOneVariable(kind) { const base = LAST_VARIATIONS && LAST_VARIATIONS.length ? LAST_VARIATIONS : await generateDynamicVariationsList(getFormattedWord(), state.style, state.batchOffset); if (!base.length) { showToast('Generate a batch first, then remix one variable.'); return; } const word = getFormattedWord(); const lettersOnly = word.replace(/[^A-Za-z]/g, ''); const clones = base.map(v => JSON.parse(JSON.stringify(v))); if (kind === 'colour') { // v4.7: rotate the ink too, spread across the batch (a // single accent for all 12 would re-create the monochrome // problem). Stride (i*3+1) so every accent still changes. const REMIX_INKS_47 = ['#0284c7', '#7c4a21', '#166534', '#b91c1c', '#4f46e5', '#0f766e', '#92400e', '#1e3a8a', '#be123c', '#334155']; clones.forEach((v, i) => { let a47 = REMIX_ACCENTS[(i * 3 + 1) % REMIX_ACCENTS.length]; if (a47.toLowerCase() === (v.accentColor || '').toLowerCase()) a47 = REMIX_ACCENTS[(i * 3 + 2) % REMIX_ACCENTS.length]; v.accentColor = a47; let ink47 = REMIX_INKS_47[(i * 3 + 1) % REMIX_INKS_47.length]; if (ink47.toLowerCase() === (v.inkColor || '#0a0a0a').toLowerCase()) ink47 = REMIX_INKS_47[(i * 3 + 2) % REMIX_INKS_47.length]; v.inkColor = ink47; v.popAccent = true; }); } else if (kind === 'font') { clones.forEach(v => { const i = WORD_FONTS.indexOf(v.fontFamily); v.fontFamily = WORD_FONTS[(i + 1) % WORD_FONTS.length]; }); } else if (kind === 'picture') { clones.forEach(v => { const eff = effectiveVariation(v); if (eff.extraId && GAP_TRICK_IDS.includes(eff.extraId)) { const others = GAP_TRICK_IDS.filter(g => g !== eff.extraId); v.extraId = others[Math.floor(Math.random() * others.length)]; v.title = 'Hidden ' + v.extraId.replace('gap-', '') + ' in the gap'; v.desc = 'Same idea, new hidden shape in the gap.'; return; } let targetIdx = -1, curTrick = null; for (let i = 0; i < eff.letterConfigs.length; i++) { if (eff.letterConfigs[i] && eff.letterConfigs[i].trickId) { targetIdx = i; curTrick = eff.letterConfigs[i].trickId; break; } } if (targetIdx < 0) { for (let i = 0; i < lettersOnly.length; i++) { const ch = lettersOnly[i].toUpperCase(); const fitting = TRICK_LIBRARY.filter(t => t.id !== 'none' && shapeFitsWord(t.id, word, eff.fontFamily) && (t.bestChars || []).includes(ch)); if (fitting.length) { targetIdx = i; break; } } if (targetIdx < 0) return; } const ch = lettersOnly[targetIdx].toUpperCase(); const fitting = TRICK_LIBRARY.filter(t => t.id !== 'none' && t.id !== curTrick && shapeFitsWord(t.id, word, eff.fontFamily) && (t.bestChars || []).includes(ch)); if (!fitting.length) return; const pick = fitting[Math.floor(Math.random() * fitting.length)]; if (!v.letterConfigs[targetIdx]) v.letterConfigs[targetIdx] = {}; v.letterConfigs[targetIdx].trickId = pick.id; v.letterConfigs[targetIdx].scale = 100; v.title = pick.name + ' on the ' + ch; v.desc = 'Same idea, new picture: ' + pick.name + ' on the ' + ch + '.'; }); } const checked = []; for (const v of clones) { const r = await evaluate32pxReadability(word, v.letterConfigs, v.fontWeight, v.kerning, { fontFamily: v.fontFamily, designMode: v.designMode, accentColor: v.accentColor, popAccent: v.popAccent, baseline: v.baseline, extraId: v.extraId, gapIdx: v.gapIdx, outline: v.outline, block3d: v.block3d }); v.readability = r; checked.push(v); } checked.sort((a, b) => (b.readability.readable - a.readability.readable) || ((b.readability.score || 0) - (a.readability.score || 0))); // Card #1 stays pinned (same rule as the generator). if (base.length && checked.length > 1) { const firstTitle = base[0].title; const at = checked.findIndex(v => v.title === firstTitle); if (at > 0) { const f = checked.splice(at, 1)[0]; checked.unshift(f); } } checked.forEach((v, i) => { v.idx = i; }); LAST_VARIATIONS = checked; state.compareIdx = []; await renderVariationsGrid(checked); showToast(kind === 'colour' ? 'Colours remixed — same ideas, new colours!' : kind === 'font' ? 'Fonts remixed — same ideas, new fonts!' : 'Pictures remixed — same ideas, new pictures!'); } // ---- (9) shareable URL-hash links -------------------------------------- function buildShareLink() { const data = { v: 1, word: getFormattedWord(), fontFamily: state.fontFamily, fontWeight: state.fontWeight, kerning: state.kerning, caseMode: state.caseMode, baseline: state.baseline, designMode: state.designMode, extraId: state.extraId, gapIdx: state.gapIdx, fgColor: state.fgColor, bgColor: state.bgColor, accentColor: state.accentColor, popAccent: state.popAccent, tagline: state.tagline, taglineFont: state.taglineFont, letterConfigs: state.letterConfigs.map(c => ({ ...c })), variationIdx: state.activeVariationIdx != null ? state.activeVariationIdx : 0 }; const hash = '#wm=' + btoa(unescape(encodeURIComponent(JSON.stringify(data)))).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, ''); return location.origin + location.pathname + hash; } function applyShareHash() { const m = (location.hash || '').match(/#wm=([A-Za-z0-9\-_]+)/); if (!m) return null; try { const data = JSON.parse(decodeURIComponent(escape(atob(m[1].replace(/-/g, '+').replace(/_/g, '/'))))); if (!data || data.v !== 1 || !data.word) return null; const input = document.getElementById('brandWordInput'); if (input) input.value = data.word; state.word = data.word; return data; } catch (e) { console.warn('v4.6 share hash ignored:', e); return null; } } function restoreHashState(data) { // v4.7: drop any stale per-card overrides first — see build. state.cardOverrides = {}; const variation = { idx: data.variationIdx != null ? data.variationIdx : 0, title: 'Shared wordmark', letterConfigs: (data.letterConfigs || []).map(c => ({ ...c })), fontFamily: data.fontFamily, fontWeight: data.fontWeight, kerning: data.kerning, caseMode: data.caseMode, baseline: data.baseline, designMode: data.designMode, extraId: data.extraId, gapIdx: data.gapIdx, taglineFont: data.taglineFont, accentColor: data.accentColor, popAccent: data.popAccent, inkColor: data.fgColor || '#0a0a0a', showGoldenGrid: false, showDraftLines: false, outline: false, block3d: false }; loadVariationIntoStudio(variation); state.tagline = data.tagline || ''; const taglineInput = document.getElementById('taglineInput'); if (taglineInput) taglineInput.value = state.tagline; if (data.fgColor) state.fgColor = data.fgColor; if (data.bgColor) state.bgColor = data.bgColor; const fg = document.getElementById('fgColorPicker'), bg = document.getElementById('bgColorPicker'); if (fg) fg.value = state.fgColor; if (bg) bg.value = state.bgColor; renderMainLogo(); showToast('Shared wordmark restored!'); } // ---- (16) font pairing (stretch): a tagline font that pairs with the // word font. 'Round seal' already exists as a design mode, so stretch // item 13 (monogram) needs nothing new. --------------------------------- const FONT_PAIRS = { 'Outfit': 'Inter', 'Inter': 'Space Grotesk', 'Space Grotesk': 'Inter', 'Plus Jakarta Sans': 'Inter', 'Playfair Display': 'Inter', 'Fredoka': 'Outfit', 'Barlow Condensed': 'Inter', 'JetBrains Mono': 'Inter', 'Caveat': 'Outfit', 'Fraunces': 'Inter' }; function updateTaglinePairLabel() { const el = document.getElementById('taglinePairName'); if (!el) return; el.textContent = state.taglineFont || FONT_PAIRS[state.fontFamily] || 'Inter'; } // ========================================================================= // 10. INITIALIZE ALL LISTENERS ON LOAD // ========================================================================= window.addEventListener('DOMContentLoaded', () => { const hashData = applyShareHash(); runConceptGeneration(false).then(() => { if (hashData) restoreHashState(hashData); }); renderPricingTiers(); renderAddonsCatalog(); updateQuoteCalculator(); renderFavouritesTray(); // Try-a-word demo pills (word only — the tool reads the word itself) document.querySelectorAll('.quick-demo-pill').forEach(btn => { btn.addEventListener('click', () => { const w = btn.getAttribute('data-quick-word') || 'SHARK'; state.word = w; state.batchOffset = 0; const wordInp = document.getElementById('brandWordInput'); if (wordInp) wordInp.value = w; runConceptGeneration(false); showToast(`Loaded "${w}" — 12 ideas, all different!`); }); }); // Background Mode Selector document.getElementById('bgModeSelect')?.addEventListener('change', (e) => { const mode = e.target.value; state.bgMode = mode; if (mode === 'white') { state.bgColor = '#ffffff'; document.getElementById('bgColorPicker').value = '#ffffff'; } else if (mode === 'black') { state.bgColor = '#0a0a0a'; state.fgColor = '#ffffff'; document.getElementById('bgColorPicker').value = '#0a0a0a'; document.getElementById('fgColorPicker').value = '#ffffff'; } renderMainLogo(); }); // Brand Color Palette Presets document.querySelectorAll('.palette-preset-btn').forEach(btn => { btn.addEventListener('click', () => { state.fgColor = btn.getAttribute('data-palette-fg') || '#0a0a0a'; state.bgColor = btn.getAttribute('data-palette-bg') || '#ffffff'; state.accentColor = btn.getAttribute('data-palette-acc') || '#4f46e5'; state.bgMode = 'custom'; document.getElementById('fgColorPicker').value = state.fgColor; document.getElementById('bgColorPicker').value = state.bgColor; document.getElementById('accentColorPicker').value = state.accentColor; const bgModeEl = document.getElementById('bgModeSelect'); if (bgModeEl) bgModeEl.value = 'custom'; renderMainLogo(); }); }); // Multi-size PNG & JPG Exports + Favourites Tray Listeners document.getElementById('exportPng512Btn')?.addEventListener('click', () => exportRasterAtSize(512, 'png', true)); document.getElementById('exportPng1024Btn')?.addEventListener('click', () => exportRasterAtSize(1024, 'png', true)); document.getElementById('exportPng2048Btn')?.addEventListener('click', () => exportRasterAtSize(2048, 'png', true)); document.getElementById('exportJpgBtn')?.addEventListener('click', () => exportRasterAtSize(2048, 'jpg', false)); document.getElementById('saveCurrentFavBtn')?.addEventListener('click', () => { saveSnapshotToFavourites({ word: getFormattedWord(), title: `Studio Custom (${state.fontFamily})`, letterConfigs: state.letterConfigs.map(c => ({ ...c })), fontFamily: state.fontFamily, fontWeight: state.fontWeight, kerning: state.kerning, fgColor: state.fgColor, bgColor: state.bgColor, accentColor: state.accentColor, popAccent: state.popAccent, designMode: state.designMode, baseline: state.baseline, caseMode: state.caseMode, extraId: state.extraId, gapIdx: state.gapIdx, taglineFont: state.taglineFont, outline: state.outline, block3d: state.block3d, bgMode: state.bgMode, tagline: state.tagline }); }); document.getElementById('downloadFavouritesZipBtn')?.addEventListener('click', downloadAllFavouritesAsZip); // v4.6: new export buttons. document.getElementById('downloadOutlineSvgBtn')?.addEventListener('click', downloadOutlineSvg); document.getElementById('downloadPdfBtn')?.addEventListener('click', downloadPdf); document.getElementById('downloadSocialKitBtn')?.addEventListener('click', downloadSocialKit); document.getElementById('downloadBrandKitBtn')?.addEventListener('click', downloadBrandKitZip); document.getElementById('downloadVariantPackBtn')?.addEventListener('click', downloadVariantPack); document.getElementById('copyShareLinkBtn')?.addEventListener('click', () => { copyTextSafe(buildShareLink()); showToast('Share link copied — it restores this exact wordmark!'); }); document.getElementById('clearFavouritesBtn')?.addEventListener('click', () => { state.favourites = []; renderFavouritesTray(); showToast('Cleared Favourites Tray.'); }); document.querySelectorAll('.nav-trigger').forEach(btn => { btn.addEventListener('click', () => { const target = btn.getAttribute('data-nav'); document.querySelectorAll('#toolToolbar .nav-trigger').forEach(b => { b.className = 'nav-trigger shrink-0 whitespace-nowrap px-3.5 py-1.5 rounded-lg text-xs sm:text-sm font-semibold transition text-[#3d4a43] hover:text-[#1c2b26] hover:bg-[#e9dfc9] cursor-pointer'; }); if (btn.closest('#toolToolbar')) { btn.className = 'nav-trigger shrink-0 whitespace-nowrap px-3.5 py-1.5 rounded-lg text-xs sm:text-sm font-semibold transition bg-[#c9a227] text-[#1c2b26] shadow cursor-pointer'; } const sec = document.getElementById(`sec-${target}`); if (sec) sec.scrollIntoView({ behavior: 'smooth', block: 'start' }); }); }); // v4.8: main-site header menus (mega menu + mobile drawer). const megaToggle = document.getElementById('mega-menu-toggle'); const megaPanel = document.getElementById('mega-menu-panel'); megaToggle?.addEventListener('click', (e) => { e.stopPropagation(); const nowHidden = megaPanel.classList.toggle('hidden'); megaToggle.setAttribute('aria-expanded', String(!nowHidden)); }); document.addEventListener('click', (e) => { if (megaPanel && !megaPanel.classList.contains('hidden') && !e.target.closest('#mega-menu-wrapper')) { megaPanel.classList.add('hidden'); megaToggle?.setAttribute('aria-expanded', 'false'); } }); document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && megaPanel && !megaPanel.classList.contains('hidden')) { megaPanel.classList.add('hidden'); megaToggle?.setAttribute('aria-expanded', 'false'); } }); const mobileBtn = document.getElementById('mobile-menu-btn'); const mobileDrawer = document.getElementById('mobile-menu-drawer'); mobileBtn?.addEventListener('click', () => mobileDrawer?.classList.toggle('hidden')); mobileDrawer?.querySelectorAll('a').forEach(a => a.addEventListener('click', () => mobileDrawer.classList.add('hidden'))); document.getElementById('randomSampleBtn')?.addEventListener('click', () => { const words = ['SHARK', 'GOAT', 'BEE', 'PANDA', 'ZEBRA', 'GUITAR', 'OCEAN', 'TOKYO', 'PIZZA', 'APEX']; const w = words[Math.floor(Math.random() * words.length)]; state.word = w; state.batchOffset = 0; const wordInp = document.getElementById('brandWordInput'); if (wordInp) wordInp.value = w; runConceptGeneration(false); showToast(`Surprise word: "${w}" — 12 fresh ideas!`); }); document.getElementById('brandWordInput')?.addEventListener('input', (e) => { state.word = e.target.value || 'VELTRIX'; state.batchOffset = 0; runConceptGeneration(false); }); document.getElementById('styleSelect')?.addEventListener('change', (e) => { state.style = e.target.value || 'auto'; state.batchOffset = 0; runConceptGeneration(false); const styleLabel = STYLE_LABELS[state.style] || state.style; showToast(`Style "${styleLabel}" — regenerated 12 ideas for "${getFormattedWord()}"!`); }); document.getElementById('pickerViewBestBtn')?.addEventListener('click', () => { state.pickerView = 'best'; renderIdeaPicker(); }); document.getElementById('pickerViewAllBtn')?.addEventListener('click', () => { state.pickerView = 'all'; renderIdeaPicker(); showToast('Showing every picture in the library — tap any picture to put it on the selected letter.'); }); document.getElementById('smartAutoTrickBtn')?.addEventListener('click', () => { runConceptGeneration(true); showToast(`Generated fresh creative batch #${state.batchOffset + 1} for "${getFormattedWord()}"!`); }); document.getElementById('nextVariationBatchBtn')?.addEventListener('click', () => { runConceptGeneration(true); showToast(`Remixed batch #${state.batchOffset + 1} for "${getFormattedWord()}"!`); }); // v4.6: one-variable remix buttons. document.getElementById('remixColourBtn')?.addEventListener('click', () => remixOneVariable('colour')); document.getElementById('remixFontBtn')?.addEventListener('click', () => remixOneVariable('font')); document.getElementById('remixPictureBtn')?.addEventListener('click', () => remixOneVariable('picture')); // v4.6: palette harmony buttons. document.querySelectorAll('.harmony-btn').forEach(btn => { btn.addEventListener('click', () => { state.paletteHarmony = btn.getAttribute('data-harmony'); document.querySelectorAll('.harmony-btn').forEach(b => { const on = b === btn; b.className = 'harmony-btn px-2.5 py-1 rounded-lg text-xs font-semibold cursor-pointer ' + (on ? 'bg-[#c9a227] text-[#1c2b26] font-bold' : 'bg-[#e9dfc9] text-[#3d4a43] hover:text-[#1c2b26]'); }); updatePaletteEngine(); }); }); // v4.6: picker family chips. document.querySelectorAll('.family-chip').forEach(btn => { btn.addEventListener('click', () => { state.pickerFamily = btn.getAttribute('data-family'); renderIdeaPicker(); }); }); // v4.6: compare tray controls. document.getElementById('compareBlurBtn')?.addEventListener('click', blurCompareTray); document.getElementById('compareClearBtn')?.addEventListener('click', () => { state.compareIdx = []; document.querySelectorAll('.compare-variation-btn').forEach(btn => { btn.className = 'compare-variation-btn px-2.5 py-2 rounded-xl border text-xs font-bold transition cursor-pointer bg-white text-[#3d4a43] border-[#e5dcc3] hover:border-[#d8cbb0]'; btn.textContent = '☆ Compare'; }); renderCompareTray(); }); // v4.6: stage flip test + tagline font pairing. document.getElementById('flipStageBtn')?.addEventListener('click', () => { const svg = document.getElementById('mainLogoSvg'); if (!svg) return; svg.classList.toggle('stage-flipped'); const btn = document.getElementById('flipStageBtn'); if (btn) btn.textContent = svg.classList.contains('stage-flipped') ? '🔄 Flip back' : '🔄 Flip 180°'; }); document.getElementById('applyTaglinePairBtn')?.addEventListener('click', () => { state.taglineFont = FONT_PAIRS[state.fontFamily] || 'Inter'; updateTaglinePairLabel(); renderMainLogo(); showToast(`Tagline font set to ${state.taglineFont} — pairs with ${state.fontFamily}.`); }); document.getElementById('clearTaglineFontBtn')?.addEventListener('click', () => { state.taglineFont = null; updateTaglinePairLabel(); renderMainLogo(); }); document.getElementById('caseSelect')?.addEventListener('change', (e) => { state.caseMode = e.target.value; renderLetterSlots(); renderMainLogo(); renderVariationsGrid(); }); document.getElementById('taglineInput')?.addEventListener('input', (e) => { state.tagline = e.target.value; renderMainLogo(); renderVariationsGrid(); }); document.getElementById('designModeSelect')?.addEventListener('change', (e) => { state.designMode = e.target.value; renderMainLogo(); }); document.getElementById('baselineSelect')?.addEventListener('change', (e) => { state.baseline = e.target.value || 'flat'; renderMainLogo(); }); document.getElementById('clearAllTricksBtn')?.addEventListener('click', () => { state.letterConfigs.forEach(c => { c.trickId = 'none'; c.scale = 100; c.yOffset = 0; c.rot = 0; c.dx = 0; }); state.baseline = 'flat'; state.extraId = null; state.gapIdx = null; const blSel = document.getElementById('baselineSelect'); if (blSel) blSel.value = 'flat'; renderLetterSlots(); renderIdeaPicker(); syncSlidersToSelectedLetter(); renderMainLogo(); showToast('Reset wordmark to clean typography.'); }); document.getElementById('letterScaleSlider')?.addEventListener('input', (e) => { const val = Number(e.target.value); if (state.letterConfigs[state.selectedLetterIdx]) { state.letterConfigs[state.selectedLetterIdx].scale = val; document.getElementById('letterScaleVal').textContent = `${val}%`; renderMainLogo(); } }); document.getElementById('letterYSlider')?.addEventListener('input', (e) => { const val = Number(e.target.value); if (state.letterConfigs[state.selectedLetterIdx]) { state.letterConfigs[state.selectedLetterIdx].yOffset = val; document.getElementById('letterYVal').textContent = val; renderMainLogo(); } }); document.getElementById('letterXSlider')?.addEventListener('input', (e) => { const val = Number(e.target.value); if (state.letterConfigs[state.selectedLetterIdx]) { state.letterConfigs[state.selectedLetterIdx].dx = val; document.getElementById('letterXVal').textContent = val; renderMainLogo(); } }); document.getElementById('letterRotSlider')?.addEventListener('input', (e) => { const val = Number(e.target.value); if (state.letterConfigs[state.selectedLetterIdx]) { state.letterConfigs[state.selectedLetterIdx].rot = val; document.getElementById('letterRotVal').textContent = `${val}°`; renderMainLogo(); } }); document.getElementById('resetLetterTransformBtn')?.addEventListener('click', () => { if (state.letterConfigs[state.selectedLetterIdx]) { state.letterConfigs[state.selectedLetterIdx].scale = 100; state.letterConfigs[state.selectedLetterIdx].yOffset = 0; state.letterConfigs[state.selectedLetterIdx].rot = 0; state.letterConfigs[state.selectedLetterIdx].dx = 0; syncSlidersToSelectedLetter(); renderMainLogo(); } }); document.getElementById('fontFamilySelect')?.addEventListener('change', (e) => { state.fontFamily = e.target.value; renderMainLogo(); renderVariationsGrid(); }); document.getElementById('kerningSlider')?.addEventListener('input', (e) => { state.kerning = Number(e.target.value); document.getElementById('kerningVal').textContent = state.kerning; renderMainLogo(); renderVariationsGrid(); }); document.getElementById('strokeWeightSlider')?.addEventListener('input', (e) => { state.fontWeight = Number(e.target.value); document.getElementById('strokeWeightVal').textContent = state.fontWeight; renderMainLogo(); }); document.getElementById('fgColorPicker')?.addEventListener('input', (e) => { state.fgColor = e.target.value; renderMainLogo(); }); document.getElementById('bgColorPicker')?.addEventListener('input', (e) => { state.bgColor = e.target.value; renderMainLogo(); }); document.getElementById('accentColorPicker')?.addEventListener('input', (e) => { state.accentColor = e.target.value; state.popAccent = true; renderMainLogo(); renderVariationsGrid(); }); document.getElementById('invertColorsBtn')?.addEventListener('click', () => { const tmp = state.fgColor; state.fgColor = state.bgColor; state.bgColor = tmp; document.getElementById('fgColorPicker').value = state.fgColor; document.getElementById('bgColorPicker').value = state.bgColor; renderMainLogo(); }); document.getElementById('accentHighlightBtn')?.addEventListener('click', () => { state.popAccent = !state.popAccent; renderMainLogo(); renderVariationsGrid(); showToast(state.popAccent ? 'Duo-Tone Accent Highlight Enabled' : 'Pure Monochrome Mode Enabled'); }); document.getElementById('toggleGoldenGridBtn')?.addEventListener('click', (e) => { state.showGoldenGrid = !state.showGoldenGrid; e.currentTarget.textContent = `📐 φ 1.618 Golden Ratio: ${state.showGoldenGrid ? 'ON' : 'OFF'}`; renderMainLogo(); }); document.getElementById('toggleConstructionBtn')?.addEventListener('click', (e) => { state.showDraftLines = !state.showDraftLines; e.currentTarget.textContent = `📏 Construction Guides: ${state.showDraftLines ? 'ON' : 'OFF'}`; renderMainLogo(); }); document.getElementById('downloadSvgBtn')?.addEventListener('click', downloadSvgFile); document.getElementById('downloadPngBtn')?.addEventListener('click', downloadPngFile); document.getElementById('openExportModalBtn')?.addEventListener('click', () => { const svgCode = getSerializedSvg(); openModalWithContent( 'Export Your Vector Wordmark (SVG Code)', `

Your vector wordmark for ${getFormattedWord()} is ready in scalable SVG format:

`, svgCode ); }); document.getElementById('copySvgCodeBtn')?.addEventListener('click', () => { copyTextSafe(getSerializedSvg()); showToast('SVG Vector Code copied to clipboard!'); }); document.getElementById('orderCustomPolishBtn')?.addEventListener('click', () => { document.getElementById('sec-calculator').scrollIntoView({ behavior: 'smooth' }); }); document.querySelectorAll('.gallery-filter-btn').forEach(btn => { btn.addEventListener('click', () => { state.galleryFilter = btn.getAttribute('data-gallery-filter'); document.querySelectorAll('.gallery-filter-btn').forEach(b => { b.className = 'gallery-filter-btn px-3 py-1.5 rounded-lg bg-[#e9dfc9] text-[#3d4a43] hover:text-[#1c2b26] text-xs font-semibold cursor-pointer'; }); btn.className = 'gallery-filter-btn px-3 py-1.5 rounded-lg bg-[#c9a227] text-[#1c2b26] text-xs font-semibold cursor-pointer'; renderVariationsGrid(); }); }); document.querySelectorAll('.playbook-rule-btn').forEach(btn => { btn.addEventListener('click', () => { const rule = btn.getAttribute('data-apply-rule'); const list = LAST_VARIATIONS || []; if (!list.length) { showToast('Still generating — try again in a moment.'); return; } const byMode = (m) => list.find(v => v.mode === m); // The ligature preview is the variation carrying the ocean-wave / // padlock trick; the kinetic preview is the extraId variation. const wavePick = list.find(v => (v.letterConfigs || []).some(c => ['ocean-wave', 'open-padlock'].includes(normalizeTrickId(c.trickId)))); const kineticPick = list.find(v => v.extraId); let pick = null, exact = true; if (rule === 'negative') pick = byMode('negative'); else if (rule === 'substitution') pick = byMode('letter-object'); else if (rule === 'ligature') pick = wavePick || byMode('word-picture'); else if (rule === 'kinetic') pick = kineticPick || byMode('word-picture'); else pick = byMode('word-picture'); if (!pick) { pick = list[0]; exact = false; } loadVariationIntoStudio(pick); renderLetterSlots(); renderIdeaPicker(); syncSlidersToSelectedLetter(); renderMainLogo(); scrollStageIntoView(); showToast(exact ? `Applied "${pick.title}" to "${getFormattedWord()}" — see it on the stage!` : `No exact "${rule}" variation for "${getFormattedWord()}" — loaded the closest: "${pick.title}".`); }); }); document.getElementById('activateGoldenRatioDemoBtn')?.addEventListener('click', () => { state.showGoldenGrid = true; document.getElementById('toggleGoldenGridBtn').textContent = '📐 φ 1.618 Golden Ratio: ON'; renderMainLogo(); scrollStageIntoView(); showToast('Golden Ratio grid ON — see it on the stage!'); }); document.getElementById('activateMonogramDemoBtn')?.addEventListener('click', () => { state.designMode = 'monogram'; document.getElementById('designModeSelect').value = 'monogram'; renderMainLogo(); scrollStageIntoView(); showToast('Monogram seal applied — see it on the stage!'); }); document.getElementById('downloadPlaybookBtn')?.addEventListener('click', () => { const summary = `VELTRIX CODE — VISUAL LOGO DESIGN TRICKS PLAYBOOK\n` + `====================================================\n` + `Rule 01: Inner Negative-Space Carve (Figure-Ground Block)\n` + `Rule 02: Skeletal Stem & Object Extension (Umbrella / Lever / Chair)\n` + `Rule 03: Crossbar Wave & Lock Ligatures\n` + `Rule 04: Precision Kinetic Motion Cut\n` + `Rule 05: Fibonacci Golden Ratio Grid (1 : 1.618 Proportion)\n` + `Rule 06: Luxury Monogram & Crest Framing\n\n` + `https://veltrixcode.com`; openModalWithContent( 'Veltrix Code — Visual Logo Design Playbook', `
${summary}
`, summary ); }); document.querySelectorAll('.currency-btn').forEach(btn => { btn.addEventListener('click', () => { state.currency = btn.getAttribute('data-currency'); document.querySelectorAll('.currency-btn').forEach(b => { b.className = 'currency-btn px-3 py-1 rounded-lg text-[#3d4a43] hover:text-[#1c2b26] text-xs font-bold cursor-pointer'; }); btn.className = 'currency-btn px-3 py-1 rounded-lg bg-[#c9a227] text-[#1c2b26] text-xs font-bold cursor-pointer'; renderPricingTiers(); renderAddonsCatalog(); updateQuoteCalculator(); }); }); document.querySelectorAll('.select-specialty-btn').forEach(btn => { btn.addEventListener('click', () => { const sName = btn.getAttribute('data-select-service'); state.selectedSpecialties.add(sName); updateQuoteCalculator(); document.getElementById('sec-calculator').scrollIntoView({ behavior: 'smooth' }); showToast(`Added "${sName}" to your custom quote!`); }); }); document.querySelectorAll('.addon-tab-btn').forEach(btn => { btn.addEventListener('click', () => { state.activeAddonTab = btn.getAttribute('data-addon-tab'); document.querySelectorAll('.addon-tab-btn').forEach(b => { b.className = 'addon-tab-btn px-4 py-2 rounded-xl bg-[#e9dfc9] text-[#3d4a43] hover:text-[#1c2b26] text-xs sm:text-sm font-semibold cursor-pointer'; }); btn.className = 'addon-tab-btn px-4 py-2 rounded-xl bg-[#c9a227] text-[#1c2b26] text-xs sm:text-sm font-semibold cursor-pointer'; renderAddonsCatalog(); }); }); document.getElementById('quoteBaseTierSelect')?.addEventListener('change', (e) => { state.selectedTierId = e.target.value; renderPricingTiers(); updateQuoteCalculator(); }); document.getElementById('clearQuoteBtn')?.addEventListener('click', () => { state.selectedAddons.clear(); state.selectedSpecialties.clear(); renderAddonsCatalog(); updateQuoteCalculator(); showToast('Cleared extra collateral items.'); }); document.getElementById('generateProposalBtn')?.addEventListener('click', () => { const tier = LOGO_PACKAGES.find(t => t.id === state.selectedTierId) || LOGO_PACKAGES[0]; const addons = BRANDING_ADDONS.filter(a => state.selectedAddons.has(a.id)); const clientName = document.getElementById('clientNameInput')?.value || 'Valued Client'; const clientContact = document.getElementById('clientEmailInput')?.value || 'Not provided'; const totalEl = document.getElementById('quoteTotalDisplay')?.textContent || '$99 USD'; const briefText = `VELTRIX CODE (veltrixcode.com) — OFFICIAL BRANDING & LOGO PROPOSAL\n` + `==================================================================\n` + `Client: ${clientName} (${clientContact})\n` + `Wordmark Prototype: "${getFormattedWord()}"\n` + `Selected Package: ${tier.name} (${tier.concepts})\n` + `Selected Collateral Add-Ons (${addons.length}): ${addons.map(a => a.name).join(', ') || 'None'}\n` + `Selected Specialties: ${Array.from(state.selectedSpecialties).join(', ') || 'Standard Vector Handover'}\n` + `Estimated Total Investment: ${totalEl} (40/30/30 Milestone Billing)\n` + `Guarantee: Unlimited Revisions & 100% Client IP Ownership\n` + `Contact: [email protected] | https://veltrixcode.com/quote/`; openModalWithContent( 'Official Veltrix Code Project Scope & Proposal', `

Copy this project scope or send it to [email protected]:

${briefText}
`, briefText ); }); document.getElementById('closeModalBtn')?.addEventListener('click', () => { document.getElementById('appModal')?.classList.add('hidden'); }); document.getElementById('modalCopyBtn')?.addEventListener('click', () => { if (window._modalCopyText) copyTextSafe(window._modalCopyText); else showToast('Nothing to copy yet.'); }); document.getElementById('modalCloseBtn2')?.addEventListener('click', () => { document.getElementById('appModal')?.classList.add('hidden'); }); });