Raised
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-raisedAbout this component
The checked state looks physically raised off the surface. A sphere-like radial gradient (silver → dark gray) combined with six layered box-shadows (rim highlight, outer glow, ground lift shadow, inner top shine, inner bottom depth) creates a convincing 3D embossed button. The box also lifts 1px on the Y axis. Flat and recessed when unchecked.
Triggers
- Click
- State change
- 3D
- Gradient
- Glow
Techniques
- Transform only
- Gradient
Difficulty
Beginner
Accessibility
Keyboard and screen readers
Hidden native <input type="checkbox">.
Reduced motion
Shadow and transform transitions skipped under prefers-reduced-motion.
Use it in anything you build, commercial and client work included. Licence