Bevel
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/checkbox-bevelAbout this component
A checkbox from a nineties desktop: a grey dialog with a blue title bar, a sunken white box with hard bevels, and a chunky pixel tick that appears at once, no easing. The dotted focus rectangle is there too.
Triggers
- Click
- State change
- Border
- Focus
Techniques
- clip-path
- Pseudo elements
- Gradient
Difficulty
Beginner
Accessibility
Keyboard and screen readers
A native checkbox inside a <label>, named by its visible text ("Remember me"); the box and the title bar are aria-hidden, and :focus-visible on the input draws a dotted rectangle round the text.
Reduced motion
The file has no transitions or animations, so it carries no prefers-reduced-motion rule.
Use it in anything you build, commercial and client work included. Licence