hatch-slidev-builder-mcp
Version:
A comprehensive MCP server for creating Slidev presentations with component library, interactive elements, and team collaboration features
282 lines (243 loc) • 5.25 kB
CSS
/* Hatch Corporate Theme - Main Styles */
:root {
--hatch-primary: #00A651;
--hatch-secondary: #004225;
--hatch-accent: #FFB800;
--hatch-background: #FFFFFF;
--hatch-text: #333333;
--hatch-text-light: #6B7280;
--hatch-font-family: 'Inter', 'ui-sans-serif', 'system-ui', sans-serif;
}
/* Base layout */
.slidev-layout {
font-family: var(--hatch-font-family);
color: var(--hatch-text);
background: var(--hatch-background);
line-height: 1.6;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
color: var(--hatch-secondary);
font-weight: 700;
line-height: 1.2;
}
h1 {
font-size: 3rem;
margin-bottom: 1.5rem;
}
h2 {
font-size: 2.25rem;
margin-bottom: 1.25rem;
border-bottom: 3px solid var(--hatch-primary);
padding-bottom: 0.5rem;
}
h3 {
font-size: 1.875rem;
margin-bottom: 1rem;
color: var(--hatch-primary);
}
/* Cover layout */
.slidev-layout.cover {
background: linear-gradient(135deg, var(--hatch-primary), var(--hatch-secondary));
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 2rem;
}
.slidev-layout.cover h1 {
color: white;
font-size: 4rem;
margin-bottom: 1rem;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.slidev-layout.cover h2 {
color: rgba(255, 255, 255, 0.9);
font-size: 2rem;
font-weight: 400;
margin-bottom: 2rem;
border: none;
}
.slidev-layout.cover h3 {
color: rgba(255, 255, 255, 0.8);
font-size: 1.25rem;
font-weight: 300;
}
/* Header and Footer */
.hatch-header {
background: var(--hatch-primary);
color: white;
padding: 1rem 2rem;
font-weight: 600;
display: flex;
justify-content: space-between;
align-items: center;
}
.hatch-footer {
background: var(--hatch-secondary);
color: white;
padding: 0.75rem 2rem;
font-size: 0.875rem;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 100;
}
.hatch-logo {
height: 2rem;
width: auto;
}
/* Content styling */
.content-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin-top: 2rem;
}
.content-box {
background: #f8fafc;
border-left: 4px solid var(--hatch-primary);
padding: 1.5rem;
border-radius: 0.5rem;
}
.content-box h3 {
margin-top: 0;
color: var(--hatch-primary);
}
/* Lists */
ul {
list-style: none;
padding-left: 0;
}
ul li {
position: relative;
padding-left: 1.5rem;
margin-bottom: 0.75rem;
}
ul li::before {
content: "▶";
color: var(--hatch-primary);
font-weight: bold;
position: absolute;
left: 0;
}
/* Buttons and interactive elements */
.hatch-button {
background: var(--hatch-primary);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 0.375rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.hatch-button:hover {
background: var(--hatch-secondary);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.hatch-button-secondary {
background: transparent;
color: var(--hatch-primary);
border: 2px solid var(--hatch-primary);
}
.hatch-button-secondary:hover {
background: var(--hatch-primary);
color: white;
}
/* Charts and metrics */
.metric-card {
background: white;
border-radius: 0.5rem;
padding: 1.5rem;
text-align: center;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
border-top: 4px solid var(--hatch-primary);
}
.metric-value {
font-size: 3rem;
font-weight: 700;
color: var(--hatch-primary);
line-height: 1;
margin-bottom: 0.5rem;
}
.metric-label {
font-size: 0.875rem;
color: var(--hatch-text-light);
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Two column layout */
.slidev-layout.two-cols {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
padding: 2rem;
}
/* Center layout */
.slidev-layout.center {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 2rem;
}
/* Image layouts */
.slidev-layout.image-right {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: center;
padding: 2rem;
}
/* Code blocks */
pre {
background: #1e293b;
color: #e2e8f0;
padding: 1.5rem;
border-radius: 0.5rem;
border-left: 4px solid var(--hatch-accent);
overflow-x: auto;
}
code {
font-family: 'Fira Code', 'JetBrains Mono', monospace;
font-size: 0.875rem;
}
/* Animations */
.slide-enter-active,
.slide-leave-active {
transition: all 0.3s ease;
}
.slide-enter-from {
opacity: 0;
transform: translateX(30px);
}
.slide-leave-to {
opacity: 0;
transform: translateX(-30px);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.content-grid,
.slidev-layout.two-cols,
.slidev-layout.image-right {
grid-template-columns: 1fr;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
.slidev-layout.cover h1 {
font-size: 3rem;
}
}