Render & output keyboard for keymap designer
supports 60 keystrokes | Winodws | MacOS
git clone https://github.com/miozus/keyboardTemplatenpm install
npm run dev# open chrome
http://localhost:3000/β― tree -L 4 -I 'node_modules'
.
βββ README.md
βββ index.html
βββ package.json
βββ postcss.config.js
βββ public
βββ src
β βββ App.vue
β βββ assets
β β βββ css <- 3οΈβ£ global keystroke css style (optional)
β β β βββ keyboard.css
β β β βββ tailwind.css
β β βββ fonts
β βββ components
β β βββ Keyboard.vue <- 4οΈβ£ render and download controller (optional)
β β βββ Nav.vue <- 1οΈβ£ import keyboard json (copy data/normal.json then change)
β β βββ Tabs.vue
β βββ data <- 2οΈβ£ custom keyboard as json
β β βββ normal.json
β β βββ portia.json
β β βββ semicolon.json
β βββ main.js
βββ tailwind.config.js
βββ vite.config.js1οΈβ£ import
import debug from "../data/debug.json";
//...
export default defineComponent({
data() {
return {
categories,
keymap: debug, // your keyboard name
};
},
});2οΈβ£ custom
An example of one keystroke in /data/debug.json
{
"id":7, // sorted Id which is relate to formatter
"name":"^6", // origin name as physical keyboard shown
"class":"desc ", // css style name comes from global setting 3οΈβ£
"text":"debug", // bottom content of one keystroke
"visible":true, // visible or not
"emoji":"π" // up content of one keystroke
}4οΈβ£ render and output
one stroke (default: click invokes download):
all (defualt: click website left-bottom download):
Q1: How to render correctly emoji on Chrome?
- Install plugin Chromoji - Emojis for Google Chrome
- Right click plugin and choose Configuration with
Twitterstyle

