Skip to content

Instantly share code, notes, and snippets.

View lochie's full-sized avatar
🛹

Lochie Axon lochie

🛹
View GitHub Profile
@lochie
lochie / claude-prompt-web-haptics.md
Last active March 11, 2026 00:02
Get Claude to install `web-haptics` on your app

Install web-haptics (npm i web-haptics) and add haptic feedback to my app following these rules:

Package: web-haptics

Repository: https://github.com/lochie/web-haptics | License: MIT | Zero dependencies Uses the Web Vibration API. Silently no-ops on unsupported platforms (desktop). No error handling or feature detection needed.

Trigger Types

@lochie
lochie / p3.scss
Created November 28, 2023 11:36
p3 scss mixin
// 6 digit hex codes.
$colors: (
body: #ffffff,
color: #000000,
primary: #ff0000,
);
@function hexToP3($color) {
@return "color(display-p3 " + red($color) / 255 + " " + green($color) / 255 +