Terminal CLI Button
Developer-focused terminal aesthetic with green monospace text, dark background, and cursor glow
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/terminal-cli-button.
<iframe src="/embed/terminal-cli-button" sandbox="allow-scripts" loading="lazy" title="Terminal CLI Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Terminal CLI Button, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<button class="terminal-button"><span>>_ </span>run command</button>CSS
.terminal-button {
padding: 1rem 2rem;
font-family: 'Courier New', monospace;
font-size: 0.75rem;
letter-spacing: 0.05em;
text-transform: uppercase;
background: #0d1117;
color: #3fb950;
border: 1px solid rgba(63,185,80,0.3);
border-radius: 0.375rem;
cursor: pointer;
box-shadow: 0 0 10px rgba(63,185,80,0.08), inset 0 0 10px rgba(63,185,80,0.03);
transition: all 0.2s ease;
}
.terminal-button:hover {
background: #161b22;
color: #4ade80;
border-color: rgba(63,185,80,0.6);
box-shadow: 0 0 20px rgba(63,185,80,0.15), inset 0 0 20px rgba(63,185,80,0.05);
}
.terminal-button:active {
background: #0d1117;
color: #2ea043;
transform: scale(0.98);
}
.terminal-button .prompt { opacity: 0.5; }Tailwind CSS
<button class="px-8 py-4 font-mono text-xs tracking-wide uppercase rounded-md bg-[#0d1117] text-[#3fb950] border border-[#3fb950]/30 shadow-[0_0_10px_rgba(63,185,80,0.08),inset_0_0_10px_rgba(63,185,80,0.03)] hover:bg-[#161b22] hover:text-[#4ade80] hover:border-[#3fb950]/60 hover:shadow-[0_0_20px_rgba(63,185,80,0.15),inset_0_0_20px_rgba(63,185,80,0.05)] active:bg-[#0d1117] active:text-[#2ea043] active:scale-98 transition-all">
<span class="opacity-50">>_ </span>run command
</button>React
function TerminalButton() {
return (
<motion.button
className="px-8 py-4 font-mono text-xs tracking-wide uppercase rounded-md"
style={{ background: '#0d1117', color: '#3fb950', border: '1px solid rgba(63,185,80,0.3)' }}
whileHover={{ background: '#161b22', color: '#4ade80', borderColor: 'rgba(63,185,80,0.6)' }}
whileTap={{ background: '#0d1117', color: '#2ea043', scale: 0.98 }}
transition={{ duration: 0.2 }}
>
<span style={{ opacity: 0.5 }}>>_ </span>run command
</motion.button>
);
}LWC — HTML template
<template><button class="terminal-button" onclick={handleClick}><span class="prompt">>_ </span><slot>run command</slot></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class TerminalButton extends LightningElement {
@api label = 'run command';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.terminal-button { padding: 1rem 2rem; font-family: 'Courier New', monospace; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; background: #0d1117; color: #3fb950; border: 1px solid rgba(63,185,80,0.3); border-radius: 0.375rem; cursor: pointer; box-shadow: 0 0 10px rgba(63,185,80,0.08), inset 0 0 10px rgba(63,185,80,0.03); transition: all 0.2s ease; }
.terminal-button:hover { background: #161b22; color: #4ade80; border-color: rgba(63,185,80,0.6); box-shadow: 0 0 20px rgba(63,185,80,0.15), inset 0 0 20px rgba(63,185,80,0.05); }
.terminal-button:active { background: #0d1117; color: #2ea043; transform: scale(0.98); }
.terminal-button .prompt { opacity: 0.5; }LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<isExposed>true</isExposed>
<targets><target>lightning__AppPage</target><target>lightning__RecordPage</target><target>lightning__HomePage</target></targets>
</LightningComponentBundle>Where Terminal CLI Button fits
- Developer Tools
- Terminal Apps
- Admin Panels
- CLI Interfaces
Interaction states & animations
- Hover
- Typing
- Cursor Blink
- Scan Line
Topics
- #terminal
- #cli
- #developer
- #monospace
- #green
- #hacker
Accessibility notes
Green-on-dark must maintain 4.5:1 contrast ratio. Provide monospace font fallback.
Browser support
- All modern browsers