Figma Make
Rules and conventions for working with Figma Make in the Seken project. For designers and developers who maintain the design-to-code pipeline.
What Is Figma Make?​
Figma Make is the AI-powered code generation tool used to scaffold the initial Seken codebase. It translates Figma designs directly into React components and project structure.
The main Seken repo was originally scaffolded by Figma Make from a Figma design file. The React code in /src/app/ and the initial backend structure were generated this way. The backend has since been fully rewritten to NestJS + Fastify + Drizzle. The docs site (this repo, SEKENDocs) was extracted separately from /docusaurus-docs/ inside that repo.
What Figma Make Generated​
| Output | Location | Status |
|---|---|---|
| React web app | frontend/ | Active, source of truth |
| Original Edge Function scaffold | supabase/functions/server/ | Dead code — replaced by NestJS backend at backend/ |
React prototype at /docs | /docs/ (main SEKEN repo) | Visual preview only, not source of truth |
| Docusaurus docs site | /docusaurus-docs/ → SEKENDocs repo | Active, this site |
/docs Is NOT Source of TruthThe main SEKEN repo has a React prototype at /docs. This is a visual preview generated by Figma Make and is not the live docs site. SEKENDocs (this repo, published at docs.pasarseken.id) is the real documentation.
Rules When Using Figma Make​
What to Preserve​
When running Figma Make exports, never overwrite these files without reviewing changes carefully:
| File | Why It Matters |
|---|---|
app_config.dart | Business rules, fees, deadlines, limits |
shared-constants.tsx | Frontend business-rule constants, must stay in sync with app_config.dart and backend config |
routes-*.tsx | All frontend route handlers, hand-edited |
Any .env file | Secrets, never overwrite |
sidebars.ts (docs) | Sidebar config, hand-maintained |
What Is Safe to Regenerate​
- UI components that have not been manually edited
- Screen layouts that match the Figma design exactly
- Theme token files (verify they match Brand Guidelines →)
Export Process​
- Open the Seken Figma file, ask the founding team for the link if you don't have access
- In Figma Make, select the target frame/screen to export
- Choose React as the output framework, do not use the Vue or plain HTML options
- Download the generated zip and extract into a temporary folder (not the repo root)
- Diff the generated files against the current repo, review every changed file before copying
- Copy only UI component files, never overwrite files listed in the What to Preserve table above
- Run
pnpm preflight, fix any type errors before committing
Design-to-Code Rules​
Colors​
Figma Make generates color values from the Figma file. Ensure the Figma design uses the correct brand tokens, not hardcoded hex values:
| Figma Token | CSS Variable | Hex |
|---|---|---|
Primary/Teal | var(--primary) | #006D77 |
Accent/Terracotta | var(--accent) | #E29578 |
Background/Linen | var(--background) | #FAF8F5 |
Text/Dark | var(--dark) | #1A1A1A |
Border/Muted | var(--muted) | #EDECE9 |
If Figma Make generates hardcoded hex values, replace them with CSS variables before committing.
Typography​
Figma should use Plus Jakarta Sans for all text. If Figma Make generates a different font, update it, do not override in CSS.
After Every Figma Make Export​
- Review diff, identify what changed vs. what was hand-edited
- Verify
app_config.dartandshared-constants.tsxare unchanged - Verify no hardcoded colors were introduced
- Verify theme tokens still resolve correctly
- Run
pnpm preflight, must pass before committing - Test critical user flows: listing, checkout, orders
Known Figma Make Quirks​
No recurring issues documented yet. Update this section after each export, include the symptom, root cause, and workaround.
Related​
- Brand Guidelines →: color tokens, typography, logo rules
- Architecture →: how the generated code is structured
- Local Setup →: how to run and test locally