Generate SVG QR codes from within Sketch. Utilising qr-code-styling for QR creation.
| Input | Description |
|---|---|
| Preview | This is just for the color, and testing the QR. |
| Url | Enter the url you want the users to visit. |
| Color | Hex code for the color of the QR. |
| Dimensions | Height and width of the QR. |
| Padding | Padding added to the SVG (this is taken from the dimensions). |
- Initial release.
- Insert on selected frame.
- Save settings.
- Space for logo.
- Custom styles.
npm install-
Start Svelte dev server
npm run dev:ui
This starts Vite at http://localhost:5173 with hot reload
-
Build and link plugin
npm run build:plugin npm run link
-
Open Sketch and test
- Plugin loads UI from localhost:5173
- Edit Svelte files and see changes instantly
- No rebuild needed for UI changes!
npm run buildThis will:
- Build Svelte to a single HTML file
- Build the Sketch plugin with the bundled UI
- Output:
plugin/sketch-qr.sketchplugin
npm run dev:ui- Start Svelte dev servernpm run build:ui- Build Svelte to single HTMLnpm run build:plugin- Build Sketch pluginnpm run build- Build everythingnpm run link- Link plugin to Sketchnpm run clean- Clean all build artifacts
sketch-qr/
├── plugin/ # Sketch plugin
│ ├── src/
│ │ ├── main.js # Plugin entry (loads webview)
│ │ └── manifest.json
│ └── package.json
├── ui/ # Svelte app
│ ├── src/
│ │ ├── App.svelte # Main component
│ │ ├── main.ts # Entry point
│ │ └── app.css # Tailwind styles
│ ├── index.html
│ ├── vite.config.ts
│ └── package.json
└── package.json # Root workspace config
- Sketch Plugin: skpm
- UI Framework: Svelte 4
- Build Tool: Vite
- Styling: Tailwind CSS v3
- Language: TypeScript
MIT © workingon.studio
