mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
LogoWords drew T-A-M-A-G-U-I: seven pixel-art letter polygons on a 373x41 box, tinted from a seven-colour table, with the hover strip split into seven sections and the dot stepped by a constant fitted to those letters. It renders the outlined Hanzo wordmark from @hanzo/logo 1.0.24 now — real paths cut from Zen, so it needs no font loaded. The tint interaction stays, because it is a feature rather than a piece of the old wordmark, but it is no longer DIMENSIONED to seven letters: the strip divides by however many tints exist and the dot rides the same fraction, so the two agree whatever that number becomes. Deleted: eleven .sketch files (Tamagui's design sources, 12 MB of them) and ten duck rasters and vectors. Two of those were live rather than orphaned — components/HeadInfo.tsx served public/social.png as the DEFAULT share card, so every share of this site showed a duck and the word TAMAGUI at 7730x3650; and app/api/og+api.tsx composited their wordmark into every generated card. Both are Hanzo assets now, generated from the mark and the outlined wordmark, and the card is 1200x630 as an OG card should be. apps/desktop/vite.config.ts defined process.env.TAMAGUI_TARGET beside GUI_TARGET. The runtime reads TAMAGUI_TARGET in no file and GUI_TARGET in 108, so that line set a variable nothing consumes. Three mentions of the word survive and all three are notes about upstream rather than branding: what the external starter template ships, what this file removed, and why bento-get cannot publish under that name. build 161/161, typecheck passed.
25 lines
933 B
TypeScript
25 lines
933 B
TypeScript
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
|
|
// Minimal Tamagui-on-web wiring: hanzogui's `browser`/`module` export already
|
|
// resolves to its web build (react-native pre-swapped), so we only need the
|
|
// React plugin, the env defines the runtime reads, and the RN→web alias for any
|
|
// transitive `react-native` import.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
|
|
// GUI_TARGET only. TAMAGUI_TARGET sat beside it and the runtime reads it in
|
|
// no file at all, so it defined a variable nothing consumes.
|
|
'process.env.GUI_TARGET': JSON.stringify('web'),
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'react-native': '@hanzogui/react-native-web-lite',
|
|
},
|
|
},
|
|
// Tauri: fixed port, no clearScreen so cargo sees Vite logs.
|
|
clearScreen: false,
|
|
server: { port: 5175, strictPort: true },
|
|
})
|