Gradient UI Kit - Free HTML/CSS UI Kit
A premium dark kit featuring cosmic pink-to-purple gradients, glowing colorful shadows, and vibrant borders.
Download Full Kit (.zip)
Complete kit with all components & styles
Just need one component?
Download base.css and add the following line to your HTML:
<link rel="stylesheet" href="base.css">
Then grab a component below and add it to your HTML.
Color Palette
Deep Background
#0B0F19
Surface Background
#151B2B
Cosmic Pink
#ec4899
Cosmic Purple
#8b5cf6
Main Text
#F8FAFC
Muted Text
#94A3B8
Typography
Hero Sections
Cosmic Centered Hero
HTML
<section class="gr-hero-centered">
<div class="gr-glow-bg"></div>
<div class="gr-hero-container">
<div class="gr-badge gr-surface">
<span class="gr-badge-dot gr-bg"></span>
Cosmic UI Version 2.0
</div>
<h1 class="gr-hero-title">
Design beautifully with<br>
<span class="gr-text">Cosmic Gradients</span>
</h1>
<p class="gr-hero-subtitle">
Create stunning, vibrant user interfaces with our premium Gradient component library. Built for modern web applications that demand a cosmic touch.
</p>
<div class="gr-hero-actions">
<button class="gr-btn gr-btn-primary">Get Started Free</button>
<button class="gr-btn gr-btn-outline">View Documentation</button>
</div>
<div class="gr-hero-preview gr-surface">
<div class="gr-preview-header">
<div class="gr-window-dots">
<span style="background: #ff5f56;"></span>
<span style="background: #ffbd2e;"></span>
<span style="background: #27c93f;"></span>
</div>
</div>
<div class="gr-preview-body">
<div class="gr-skeleton-line w-3/4 gr-bg" style="opacity: 0.8;"></div>
<div class="gr-skeleton-line w-1/2" style="background: rgba(255,255,255,0.1);"></div>
<div class="gr-skeleton-line w-full mt-4" style="background: rgba(255,255,255,0.1);"></div>
<div class="gr-skeleton-line w-full" style="background: rgba(255,255,255,0.1);"></div>
<div class="gr-skeleton-line w-5/6" style="background: rgba(255,255,255,0.1);"></div>
</div>
</div>
</div>
</section>
CSS (Component Only)
/* Component: Cosmic Centered Hero */
/* NOTE: This component requires base.css to be included in your page. */
.gr-hero-centered {
position: relative;
padding: 6rem 1rem 4rem;
text-align: center;
overflow: hidden;
}
.gr-glow-bg {
position: absolute;
top: -20%;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 600px;
background: var(--gr-primary);
filter: blur(150px);
opacity: 0.15;
z-index: 0;
pointer-events: none;
}
.gr-hero-container {
position: relative;
z-index: 1;
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
}
.gr-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 2rem;
border-radius: 100px;
color: var(--gr-text-main);
}
.gr-badge-dot {
width: 8px;
height: 8px;
border-radius: 50%;
box-shadow: var(--gr-glow-primary);
}
.gr-hero-title {
font-size: 4.5rem;
line-height: 1.1;
font-weight: 800;
margin-bottom: 1.5rem;
letter-spacing: -0.02em;
}
.gr-hero-subtitle {
font-size: 1.25rem;
max-width: 600px;
margin: 0 auto 2.5rem;
color: var(--gr-text-muted);
}
.gr-hero-actions {
display: flex;
gap: 1.5rem;
justify-content: center;
margin-bottom: 4rem;
}
.gr-hero-preview {
width: 100%;
max-width: 800px;
padding: 1.5rem;
text-align: left;
}
.gr-preview-header {
padding-bottom: 1.5rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-window-dots {
display: flex;
gap: 0.5rem;
}
.gr-window-dots span {
width: 12px;
height: 12px;
border-radius: 50%;
}
.gr-skeleton-line {
height: 14px;
margin-bottom: 1.25rem;
border-radius: 4px;
}
.w-3\/4 { width: 75%; }
.w-1\/2 { width: 50%; }
.w-full { width: 100%; }
.w-5\/6 { width: 83.333%; }
.mt-4 { margin-top: 1.5rem; }
@media (max-width: 768px) {
.gr-hero-title { font-size: 2.5rem; }
.gr-hero-subtitle { font-size: 1.1rem; }
.gr-hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 3rem; }
.gr-hero-actions button { width: 100%; }
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-hero-centered {
position: relative;
padding: 6rem 1rem 4rem;
text-align: center;
overflow: hidden;
}
.gr-glow-bg {
position: absolute;
top: -20%;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 600px;
background: var(--gr-primary);
filter: blur(150px);
opacity: 0.15;
z-index: 0;
pointer-events: none;
}
.gr-hero-container {
position: relative;
z-index: 1;
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
}
.gr-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 2rem;
border-radius: 100px;
color: var(--gr-text-main);
}
.gr-badge-dot {
width: 8px;
height: 8px;
border-radius: 50%;
box-shadow: var(--gr-glow-primary);
}
.gr-hero-title {
font-size: 4.5rem;
line-height: 1.1;
font-weight: 800;
margin-bottom: 1.5rem;
letter-spacing: -0.02em;
}
.gr-hero-subtitle {
font-size: 1.25rem;
max-width: 600px;
margin: 0 auto 2.5rem;
color: var(--gr-text-muted);
}
.gr-hero-actions {
display: flex;
gap: 1.5rem;
justify-content: center;
margin-bottom: 4rem;
}
.gr-hero-preview {
width: 100%;
max-width: 800px;
padding: 1.5rem;
text-align: left;
}
.gr-preview-header {
padding-bottom: 1.5rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-window-dots {
display: flex;
gap: 0.5rem;
}
.gr-window-dots span {
width: 12px;
height: 12px;
border-radius: 50%;
}
.gr-skeleton-line {
height: 14px;
margin-bottom: 1.25rem;
border-radius: 4px;
}
.w-3\/4 { width: 75%; }
.w-1\/2 { width: 50%; }
.w-full { width: 100%; }
.w-5\/6 { width: 83.333%; }
.mt-4 { margin-top: 1.5rem; }
@media (max-width: 768px) {
.gr-hero-title { font-size: 2.5rem; }
.gr-hero-subtitle { font-size: 1.1rem; }
.gr-hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 3rem; }
.gr-hero-actions button { width: 100%; }
}
Glowing Split Hero
HTML
<section class="gr-hero-split">
<div class="gr-hero-content">
<h2 class="gr-hero-title">Vibrant & Deep <span class="gr-text">Interfaces</span></h2>
<p class="gr-hero-subtitle">High-quality components with cosmic gradients at their core. Create stunning dashboards and landing pages in minutes with our vibrant new kit.</p>
<div class="gr-hero-actions">
<a href="#" class="gr-btn gr-btn-primary">Start Building</a>
<a href="#" class="gr-btn gr-btn-outline">Browse Components</a>
</div>
</div>
<div class="gr-hero-visual">
<div class="gr-visual-glow"></div>
<div class="gr-visual-card gr-surface card-1">
<div class="gr-card-icon gr-bg">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="white" stroke-width="2" fill="none"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"></path></svg>
</div>
<div class="gr-card-val">3x Faster</div>
<div class="gr-card-label">Development Speed</div>
</div>
<div class="gr-visual-card gr-surface card-2">
<div class="gr-card-icon gr-bg">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="white" stroke-width="2" fill="none"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
</div>
<div class="gr-card-val">100%</div>
<div class="gr-card-label">Beautiful Design</div>
</div>
</div>
</section>
CSS (Component Only)
/* Component: Glowing Split Hero */
/* NOTE: This component requires base.css to be included in your page. */
.gr-hero-split {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 4rem;
align-items: center;
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.gr-hero-title {
font-size: 4rem;
line-height: 1.1;
font-weight: 800;
margin-bottom: 1.5rem;
}
.gr-hero-subtitle {
font-size: 1.15rem;
color: var(--gr-text-muted);
margin-bottom: 2.5rem;
max-width: 500px;
}
.gr-hero-actions {
display: flex;
gap: 1.5rem;
}
.gr-hero-visual {
position: relative;
height: 450px;
}
.gr-visual-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
background: var(--gr-primary);
filter: blur(100px);
opacity: 0.3;
z-index: 0;
}
.gr-visual-card {
position: absolute;
padding: 1.5rem;
width: 240px;
z-index: 10;
transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
background: rgba(21, 27, 43, 0.8);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-1 { top: 15%; left: 0%; transform: rotate(-4deg); }
.card-2 { top: 45%; right: 5%; transform: rotate(4deg); }
.gr-visual-card:hover { transform: scale(1.05) rotate(0deg); z-index: 20; }
.gr-card-icon {
margin-bottom: 1.25rem;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
box-shadow: var(--gr-glow-primary);
}
.gr-card-val { font-size: 1.75rem; font-weight: 800; color: #FFFFFF; font-family: var(--gr-font-heading); }
.gr-card-label { font-size: 0.9rem; color: var(--gr-text-muted); }
@media (max-width: 992px) {
.gr-hero-split { grid-template-columns: 1fr; text-align: center; }
.gr-hero-subtitle { margin: 0 auto 2.5rem; }
.gr-hero-actions { justify-content: center; }
.gr-hero-visual { height: 400px; display: flex; justify-content: center; align-items: center; }
.card-1, .card-2 { position: relative; top: 0; left: 0; right: 0; transform: none; margin: 0 1rem; }
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-hero-split {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 4rem;
align-items: center;
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.gr-hero-title {
font-size: 4rem;
line-height: 1.1;
font-weight: 800;
margin-bottom: 1.5rem;
}
.gr-hero-subtitle {
font-size: 1.15rem;
color: var(--gr-text-muted);
margin-bottom: 2.5rem;
max-width: 500px;
}
.gr-hero-actions {
display: flex;
gap: 1.5rem;
}
.gr-hero-visual {
position: relative;
height: 450px;
}
.gr-visual-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
background: var(--gr-primary);
filter: blur(100px);
opacity: 0.3;
z-index: 0;
}
.gr-visual-card {
position: absolute;
padding: 1.5rem;
width: 240px;
z-index: 10;
transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
background: rgba(21, 27, 43, 0.8);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-1 { top: 15%; left: 0%; transform: rotate(-4deg); }
.card-2 { top: 45%; right: 5%; transform: rotate(4deg); }
.gr-visual-card:hover { transform: scale(1.05) rotate(0deg); z-index: 20; }
.gr-card-icon {
margin-bottom: 1.25rem;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
box-shadow: var(--gr-glow-primary);
}
.gr-card-val { font-size: 1.75rem; font-weight: 800; color: #FFFFFF; font-family: var(--gr-font-heading); }
.gr-card-label { font-size: 0.9rem; color: var(--gr-text-muted); }
@media (max-width: 992px) {
.gr-hero-split { grid-template-columns: 1fr; text-align: center; }
.gr-hero-subtitle { margin: 0 auto 2.5rem; }
.gr-hero-actions { justify-content: center; }
.gr-hero-visual { height: 400px; display: flex; justify-content: center; align-items: center; }
.card-1, .card-2 { position: relative; top: 0; left: 0; right: 0; transform: none; margin: 0 1rem; }
}
Forms
Glowing Login Form
HTML
<div class="gr-login-card gr-surface">
<div class="gr-login-header">
<h3>Welcome Back</h3>
<p>Please enter your details to sign in</p>
</div>
<form class="gr-form">
<div class="gr-form-group">
<label for="email" class="gr-label">Email</label>
<input type="email" id="email" placeholder="Enter your email" class="gr-input">
</div>
<div class="gr-form-group">
<div class="gr-label-flex">
<label for="password" class="gr-label">Password</label>
<a href="#" class="gr-forgot-link gr-text">Forgot password?</a>
</div>
<input type="password" id="password" placeholder="••••••••" class="gr-input">
</div>
<div class="gr-form-group gr-checkbox-group">
<div class="gr-checkbox-wrapper">
<input type="checkbox" id="remember">
<div class="gr-checkbox-custom gr-bg">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="white" stroke-width="3" fill="none" class="gr-check-icon"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
</div>
<label for="remember">Remember me for 30 days</label>
</div>
<button type="submit" class="gr-btn gr-btn-primary gr-btn-block">Sign In</button>
</form>
<div class="gr-login-footer">
<p>Don't have an account? <a href="#" class="gr-text">Sign up</a></p>
</div>
</div>
CSS (Component Only)
/* Component: Glowing Login Form */
/* NOTE: This component requires base.css to be included in your page. */
.gr-login-card {
max-width: 420px;
margin: 0 auto;
padding: 2.5rem;
}
.gr-login-header {
text-align: center;
margin-bottom: 2.5rem;
}
.gr-login-header h3 {
font-size: 1.75rem;
margin-bottom: 0.5rem;
}
.gr-form-group {
margin-bottom: 1.5rem;
}
.gr-label-flex {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.gr-label-flex .gr-label {
margin-bottom: 0;
}
.gr-forgot-link {
font-size: 0.85rem;
text-decoration: none;
font-weight: 600;
}
.gr-forgot-link:hover {
text-decoration: underline;
}
.gr-checkbox-group {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: 1rem;
margin-bottom: 2rem;
}
.gr-checkbox-wrapper {
position: relative;
width: 20px;
height: 20px;
}
.gr-checkbox-wrapper input[type="checkbox"] {
position: absolute;
opacity: 0;
cursor: pointer;
height: 100%;
width: 100%;
z-index: 2;
}
.gr-checkbox-custom {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.2;
transition: all 0.2s ease;
}
.gr-check-icon {
opacity: 0;
transform: scale(0);
transition: all 0.2s ease;
}
.gr-checkbox-wrapper input[type="checkbox"]:checked ~ .gr-checkbox-custom {
opacity: 1;
box-shadow: var(--gr-glow-primary);
}
.gr-checkbox-wrapper input[type="checkbox"]:checked ~ .gr-checkbox-custom .gr-check-icon {
opacity: 1;
transform: scale(1);
}
.gr-checkbox-group label {
margin-bottom: 0;
cursor: pointer;
font-size: 0.9rem;
color: var(--gr-text-muted);
}
.gr-login-footer {
margin-top: 2.5rem;
text-align: center;
font-size: 0.9rem;
color: var(--gr-text-muted);
}
.gr-login-footer a {
text-decoration: none;
font-weight: 600;
}
.gr-login-footer a:hover {
text-decoration: underline;
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-login-card {
max-width: 420px;
margin: 0 auto;
padding: 2.5rem;
}
.gr-login-header {
text-align: center;
margin-bottom: 2.5rem;
}
.gr-login-header h3 {
font-size: 1.75rem;
margin-bottom: 0.5rem;
}
.gr-form-group {
margin-bottom: 1.5rem;
}
.gr-label-flex {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.gr-label-flex .gr-label {
margin-bottom: 0;
}
.gr-forgot-link {
font-size: 0.85rem;
text-decoration: none;
font-weight: 600;
}
.gr-forgot-link:hover {
text-decoration: underline;
}
.gr-checkbox-group {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: 1rem;
margin-bottom: 2rem;
}
.gr-checkbox-wrapper {
position: relative;
width: 20px;
height: 20px;
}
.gr-checkbox-wrapper input[type="checkbox"] {
position: absolute;
opacity: 0;
cursor: pointer;
height: 100%;
width: 100%;
z-index: 2;
}
.gr-checkbox-custom {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.2;
transition: all 0.2s ease;
}
.gr-check-icon {
opacity: 0;
transform: scale(0);
transition: all 0.2s ease;
}
.gr-checkbox-wrapper input[type="checkbox"]:checked ~ .gr-checkbox-custom {
opacity: 1;
box-shadow: var(--gr-glow-primary);
}
.gr-checkbox-wrapper input[type="checkbox"]:checked ~ .gr-checkbox-custom .gr-check-icon {
opacity: 1;
transform: scale(1);
}
.gr-checkbox-group label {
margin-bottom: 0;
cursor: pointer;
font-size: 0.9rem;
color: var(--gr-text-muted);
}
.gr-login-footer {
margin-top: 2.5rem;
text-align: center;
font-size: 0.9rem;
color: var(--gr-text-muted);
}
.gr-login-footer a {
text-decoration: none;
font-weight: 600;
}
.gr-login-footer a:hover {
text-decoration: underline;
}
Gradient Settings Form
HTML
<div class="gr-settings-panel gr-surface">
<div class="gr-panel-header">
<h3>Profile Settings</h3>
<p>Update your account information and preferences</p>
</div>
<div class="gr-settings-body">
<div class="gr-avatar-upload">
<div class="gr-avatar-wrapper gr-bg">
<img src="https://i.pravatar.cc/150?img=32" alt="Profile" class="gr-avatar-lg">
</div>
<div class="gr-upload-actions">
<button class="gr-btn gr-btn-outline">Change Avatar</button>
<button class="gr-btn gr-btn-ghost">Remove</button>
</div>
</div>
<form class="gr-form-grid">
<div class="gr-form-group">
<label class="gr-label">First Name</label>
<input type="text" class="gr-input" value="Sarah">
</div>
<div class="gr-form-group">
<label class="gr-label">Last Name</label>
<input type="text" class="gr-input" value="Jenkins">
</div>
<div class="gr-form-group full-width">
<label class="gr-label">Email Address</label>
<input type="email" class="gr-input" value="[email protected]">
</div>
<div class="gr-form-group full-width">
<label class="gr-label">Bio</label>
<textarea class="gr-input gr-textarea" rows="4">Product designer focusing on intuitive user experiences and clean interfaces.</textarea>
</div>
<div class="gr-form-group full-width gr-toggle-group">
<div class="gr-toggle-info">
<label class="gr-label">Email Notifications</label>
<p>Receive weekly digest emails</p>
</div>
<label class="gr-toggle">
<input type="checkbox" checked>
<span class="gr-slider"></span>
</label>
</div>
</form>
</div>
<div class="gr-panel-footer">
<button class="gr-btn gr-btn-ghost">Cancel</button>
<button class="gr-btn gr-btn-primary">Save Changes</button>
</div>
</div>
CSS (Component Only)
/* Component: Gradient Settings Form */
/* NOTE: This component requires base.css to be included in your page. */
.gr-settings-panel {
max-width: 800px;
margin: 0 auto;
border-radius: 24px;
}
.gr-panel-header {
padding: 2.5rem;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-panel-header h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.gr-settings-body {
padding: 2.5rem;
}
.gr-avatar-upload {
display: flex;
align-items: center;
gap: 2rem;
margin-bottom: 3rem;
}
.gr-avatar-wrapper {
width: 90px;
height: 90px;
border-radius: 50%;
padding: 3px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--gr-glow-primary);
}
.gr-avatar-lg {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--gr-bg-surface);
}
.gr-upload-actions {
display: flex;
gap: 1rem;
}
.gr-form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}
.gr-form-group.full-width {
grid-column: 1 / -1;
}
.gr-textarea {
resize: vertical;
min-height: 120px;
}
.gr-toggle-group {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1.5rem;
margin-top: 1rem;
border-top: 1px solid var(--gr-border-color);
}
.gr-toggle-info .gr-label {
margin-bottom: 0.25rem;
color: #FFFFFF;
}
.gr-toggle-info p {
font-size: 0.85rem;
color: var(--gr-text-muted);
}
.gr-toggle {
position: relative;
display: inline-block;
width: 52px;
height: 28px;
}
.gr-toggle input {
opacity: 0;
width: 0;
height: 0;
}
.gr-slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
transition: .4s;
border-radius: 34px;
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid var(--gr-border-color);
}
.gr-slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 3px;
background-color: var(--gr-text-muted);
transition: .4s;
border-radius: 50%;
}
input:checked + .gr-slider {
background: var(--gr-primary);
border-color: transparent;
box-shadow: var(--gr-glow-primary);
}
input:checked + .gr-slider:before {
background-color: white;
transform: translateX(24px);
}
.gr-panel-footer {
padding: 2rem 2.5rem;
border-top: 1px solid var(--gr-border-color);
display: flex;
justify-content: flex-end;
gap: 1rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 0 0 24px 24px;
}
@media (max-width: 600px) {
.gr-form-grid {
grid-template-columns: 1fr;
}
.gr-avatar-upload {
flex-direction: column;
align-items: flex-start;
gap: 1.5rem;
}
.gr-panel-header, .gr-settings-body, .gr-panel-footer {
padding: 1.5rem;
}
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-settings-panel {
max-width: 800px;
margin: 0 auto;
border-radius: 24px;
}
.gr-panel-header {
padding: 2.5rem;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-panel-header h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.gr-settings-body {
padding: 2.5rem;
}
.gr-avatar-upload {
display: flex;
align-items: center;
gap: 2rem;
margin-bottom: 3rem;
}
.gr-avatar-wrapper {
width: 90px;
height: 90px;
border-radius: 50%;
padding: 3px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--gr-glow-primary);
}
.gr-avatar-lg {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--gr-bg-surface);
}
.gr-upload-actions {
display: flex;
gap: 1rem;
}
.gr-form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}
.gr-form-group.full-width {
grid-column: 1 / -1;
}
.gr-textarea {
resize: vertical;
min-height: 120px;
}
.gr-toggle-group {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1.5rem;
margin-top: 1rem;
border-top: 1px solid var(--gr-border-color);
}
.gr-toggle-info .gr-label {
margin-bottom: 0.25rem;
color: #FFFFFF;
}
.gr-toggle-info p {
font-size: 0.85rem;
color: var(--gr-text-muted);
}
.gr-toggle {
position: relative;
display: inline-block;
width: 52px;
height: 28px;
}
.gr-toggle input {
opacity: 0;
width: 0;
height: 0;
}
.gr-slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
transition: .4s;
border-radius: 34px;
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid var(--gr-border-color);
}
.gr-slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 3px;
background-color: var(--gr-text-muted);
transition: .4s;
border-radius: 50%;
}
input:checked + .gr-slider {
background: var(--gr-primary);
border-color: transparent;
box-shadow: var(--gr-glow-primary);
}
input:checked + .gr-slider:before {
background-color: white;
transform: translateX(24px);
}
.gr-panel-footer {
padding: 2rem 2.5rem;
border-top: 1px solid var(--gr-border-color);
display: flex;
justify-content: flex-end;
gap: 1rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 0 0 24px 24px;
}
@media (max-width: 600px) {
.gr-form-grid {
grid-template-columns: 1fr;
}
.gr-avatar-upload {
flex-direction: column;
align-items: flex-start;
gap: 1.5rem;
}
.gr-panel-header, .gr-settings-body, .gr-panel-footer {
padding: 1.5rem;
}
}
Cards
Glowing Stat Cards
HTML
<div class="gr-stats-grid">
<div class="gr-stat-card gr-surface">
<div class="gr-stat-header">
<span class="gr-stat-title">Total Revenue</span>
<div class="gr-stat-icon gr-bg">
<svg viewBox="0 0 24 24" width="20" height="20" stroke="white" stroke-width="2" fill="none"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>
</div>
</div>
<div class="gr-stat-value">$124,563.00</div>
<div class="gr-stat-footer">
<span class="gr-trend gr-trend-up">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>
14%
</span>
<span class="gr-trend-label">vs last month</span>
</div>
</div>
<div class="gr-stat-card gr-surface">
<div class="gr-stat-header">
<span class="gr-stat-title">Active Users</span>
<div class="gr-stat-icon" style="background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%); box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);">
<svg viewBox="0 0 24 24" width="20" height="20" stroke="white" stroke-width="2" fill="none"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>
</div>
</div>
<div class="gr-stat-value">8,492</div>
<div class="gr-stat-footer">
<span class="gr-trend gr-trend-up">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>
5.2%
</span>
<span class="gr-trend-label">vs last month</span>
</div>
</div>
<div class="gr-stat-card gr-surface">
<div class="gr-stat-header">
<span class="gr-stat-title">Bounce Rate</span>
<div class="gr-stat-icon" style="background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%); box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.4);">
<svg viewBox="0 0 24 24" width="20" height="20" stroke="white" stroke-width="2" fill="none"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline></svg>
</div>
</div>
<div class="gr-stat-value">24.5%</div>
<div class="gr-stat-footer">
<span class="gr-trend gr-trend-down">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none"><polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline></svg>
1.2%
</span>
<span class="gr-trend-label">vs last month</span>
</div>
</div>
</div>
CSS (Component Only)
/* Component: Glowing Stat Cards */
/* NOTE: This component requires base.css to be included in your page. */
.gr-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
max-width: 1000px;
margin: 0 auto;
}
.gr-stat-card {
padding: 1.5rem;
display: flex;
flex-direction: column;
transition: transform 0.3s ease;
}
.gr-stat-card:hover {
transform: translateY(-5px);
}
.gr-stat-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.gr-stat-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--gr-text-muted);
}
.gr-stat-icon {
width: 44px;
height: 44px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--gr-glow-primary);
}
.gr-stat-value {
font-size: 2.25rem;
font-weight: 800;
font-family: var(--gr-font-heading);
color: #FFFFFF;
margin-bottom: 1.5rem;
}
.gr-stat-footer {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.85rem;
}
.gr-trend {
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.gr-trend-up {
color: #10b981;
}
.gr-trend-down {
color: #f43f5e;
}
.gr-trend-label {
color: var(--gr-text-muted);
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
max-width: 1000px;
margin: 0 auto;
}
.gr-stat-card {
padding: 1.5rem;
display: flex;
flex-direction: column;
transition: transform 0.3s ease;
}
.gr-stat-card:hover {
transform: translateY(-5px);
}
.gr-stat-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.gr-stat-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--gr-text-muted);
}
.gr-stat-icon {
width: 44px;
height: 44px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--gr-glow-primary);
}
.gr-stat-value {
font-size: 2.25rem;
font-weight: 800;
font-family: var(--gr-font-heading);
color: #FFFFFF;
margin-bottom: 1.5rem;
}
.gr-stat-footer {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.85rem;
}
.gr-trend {
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.gr-trend-up {
color: #10b981;
}
.gr-trend-down {
color: #f43f5e;
}
.gr-trend-label {
color: var(--gr-text-muted);
}
Gradient Pricing Card
HTML
<div class="gr-pricing-card gr-surface">
<div class="gr-pricing-border"></div>
<div class="gr-pricing-header">
<h3 class="gr-pricing-title gr-text">Pro Plan</h3>
<p class="gr-pricing-desc">Perfect for growing teams and businesses.</p>
<div class="gr-pricing-price">
<span class="gr-currency">$</span>
<span class="gr-amount">49</span>
<span class="gr-period">/mo</span>
</div>
</div>
<div class="gr-pricing-features">
<ul>
<li>
<div class="gr-check gr-bg">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="white" stroke-width="3" fill="none"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
Up to 10 users
</li>
<li>
<div class="gr-check gr-bg">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="white" stroke-width="3" fill="none"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
50GB Storage
</li>
<li>
<div class="gr-check gr-bg">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="white" stroke-width="3" fill="none"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
Priority Email Support
</li>
<li>
<div class="gr-check gr-bg">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="white" stroke-width="3" fill="none"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
Advanced Analytics
</li>
<li class="gr-feature-disabled">
<div class="gr-check-disabled">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</div>
Custom Domain
</li>
</ul>
</div>
<div class="gr-pricing-footer">
<button class="gr-btn gr-btn-primary gr-btn-block">Choose Pro</button>
</div>
</div>
CSS (Component Only)
/* Component: Gradient Pricing Card */
/* NOTE: This component requires base.css to be included in your page. */
.gr-pricing-card {
max-width: 360px;
margin: 0 auto;
padding: 2.5rem;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.gr-pricing-border {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--gr-primary);
}
.gr-pricing-header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-pricing-title {
font-size: 1.75rem;
margin-bottom: 0.5rem;
}
.gr-pricing-desc {
font-size: 0.95rem;
color: var(--gr-text-muted);
margin-bottom: 1.5rem;
}
.gr-pricing-price {
display: flex;
align-items: flex-end;
justify-content: center;
color: #FFFFFF;
}
.gr-currency {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
margin-right: 0.2rem;
}
.gr-amount {
font-size: 4.5rem;
font-family: var(--gr-font-heading);
font-weight: 800;
line-height: 1;
}
.gr-period {
color: var(--gr-text-muted);
margin-bottom: 0.5rem;
margin-left: 0.2rem;
font-weight: 600;
}
.gr-pricing-features ul {
list-style: none;
padding: 0;
margin: 0 0 2.5rem 0;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.gr-pricing-features li {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.95rem;
color: var(--gr-text-main);
font-weight: 500;
}
.gr-check {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: var(--gr-glow-primary);
}
.gr-check-disabled {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
background: rgba(255, 255, 255, 0.1);
color: var(--gr-text-muted);
}
.gr-feature-disabled {
color: var(--gr-text-muted) !important;
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-pricing-card {
max-width: 360px;
margin: 0 auto;
padding: 2.5rem;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.gr-pricing-border {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--gr-primary);
}
.gr-pricing-header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-pricing-title {
font-size: 1.75rem;
margin-bottom: 0.5rem;
}
.gr-pricing-desc {
font-size: 0.95rem;
color: var(--gr-text-muted);
margin-bottom: 1.5rem;
}
.gr-pricing-price {
display: flex;
align-items: flex-end;
justify-content: center;
color: #FFFFFF;
}
.gr-currency {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
margin-right: 0.2rem;
}
.gr-amount {
font-size: 4.5rem;
font-family: var(--gr-font-heading);
font-weight: 800;
line-height: 1;
}
.gr-period {
color: var(--gr-text-muted);
margin-bottom: 0.5rem;
margin-left: 0.2rem;
font-weight: 600;
}
.gr-pricing-features ul {
list-style: none;
padding: 0;
margin: 0 0 2.5rem 0;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.gr-pricing-features li {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.95rem;
color: var(--gr-text-main);
font-weight: 500;
}
.gr-check {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: var(--gr-glow-primary);
}
.gr-check-disabled {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
background: rgba(255, 255, 255, 0.1);
color: var(--gr-text-muted);
}
.gr-feature-disabled {
color: var(--gr-text-muted) !important;
}
Tables
Vibrant Data Grid
HTML
<div class="gr-table-wrapper gr-surface">
<div class="gr-table-header">
<h3>Recent Transactions</h3>
<button class="gr-btn gr-btn-outline" style="padding: 0.5rem 1rem; font-size: 0.85rem;">Export CSV</button>
</div>
<div class="gr-table-container">
<table class="gr-table">
<thead>
<tr>
<th>Transaction ID</th>
<th>Customer</th>
<th>Date</th>
<th>Amount</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>#TRX-8492</td>
<td>
<div class="gr-table-user">
<div class="gr-table-avatar">
<img src="https://i.pravatar.cc/150?img=11" alt="Avatar">
</div>
<span>Michael Chen</span>
</div>
</td>
<td>Oct 24, 2023</td>
<td>$450.00</td>
<td><span class="gr-status gr-status-success">Completed</span></td>
</tr>
<tr>
<td>#TRX-8493</td>
<td>
<div class="gr-table-user">
<div class="gr-table-avatar">
<img src="https://i.pravatar.cc/150?img=47" alt="Avatar">
</div>
<span>Sarah Jenkins</span>
</div>
</td>
<td>Oct 24, 2023</td>
<td>$120.50</td>
<td><span class="gr-status gr-status-pending">Pending</span></td>
</tr>
<tr>
<td>#TRX-8494</td>
<td>
<div class="gr-table-user">
<div class="gr-table-avatar">
<img src="https://i.pravatar.cc/150?img=12" alt="Avatar">
</div>
<span>David Smith</span>
</div>
</td>
<td>Oct 23, 2023</td>
<td>$890.00</td>
<td><span class="gr-status gr-status-success">Completed</span></td>
</tr>
<tr>
<td>#TRX-8495</td>
<td>
<div class="gr-table-user">
<div class="gr-table-avatar">
<img src="https://i.pravatar.cc/150?img=41" alt="Avatar">
</div>
<span>Emily Davis</span>
</div>
</td>
<td>Oct 22, 2023</td>
<td>$65.00</td>
<td><span class="gr-status gr-status-failed">Failed</span></td>
</tr>
</tbody>
</table>
</div>
<div class="gr-table-pagination">
<span class="gr-text-muted">Showing 1 to 4 of 24 entries</span>
<div class="gr-pagination-controls">
<button class="gr-btn gr-btn-ghost" disabled style="padding: 0.4rem 0.8rem; font-size: 0.85rem;">Prev</button>
<button class="gr-btn gr-btn-primary" style="padding: 0.4rem 0.8rem; border-radius: 8px;">1</button>
<button class="gr-btn gr-btn-ghost" style="padding: 0.4rem 0.8rem; border-radius: 8px;">2</button>
<button class="gr-btn gr-btn-ghost" style="padding: 0.4rem 0.8rem; border-radius: 8px;">3</button>
<button class="gr-btn gr-btn-ghost" style="padding: 0.4rem 0.8rem; border-radius: 8px;">Next</button>
</div>
</div>
</div>
CSS (Component Only)
/* Component: Vibrant Data Grid */
/* NOTE: This component requires base.css to be included in your page. */
.gr-table-wrapper {
width: 100%;
max-width: 1000px;
margin: 0 auto;
border-radius: 24px;
overflow: hidden;
}
.gr-table-header {
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-table-header h3 {
margin: 0;
font-size: 1.25rem;
}
.gr-table-container {
width: 100%;
overflow-x: auto;
}
.gr-table {
width: 100%;
border-collapse: collapse;
min-width: 600px;
}
.gr-table th {
text-align: left;
padding: 1rem 2rem;
font-size: 0.85rem;
font-weight: 600;
color: var(--gr-text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid var(--gr-border-color);
background: rgba(0, 0, 0, 0.2);
}
.gr-table td {
padding: 1.25rem 2rem;
font-size: 0.95rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
color: var(--gr-text-main);
vertical-align: middle;
}
.gr-table tbody tr {
transition: background 0.2s ease;
}
.gr-table tbody tr:hover td {
background: rgba(255, 255, 255, 0.02);
}
.gr-table-user {
display: flex;
align-items: center;
gap: 1rem;
}
.gr-table-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
padding: 2px;
background: var(--gr-primary);
}
.gr-table-avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--gr-bg-surface);
}
.gr-table-user span {
font-weight: 500;
}
.gr-status {
padding: 0.35rem 0.75rem;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
}
.gr-status-success {
background: rgba(16, 185, 129, 0.1);
color: #34d399;
border: 1px solid rgba(16, 185, 129, 0.2);
}
.gr-status-pending {
background: rgba(245, 158, 11, 0.1);
color: #fbbf24;
border: 1px solid rgba(245, 158, 11, 0.2);
}
.gr-status-failed {
background: rgba(244, 63, 94, 0.1);
color: #fb7185;
border: 1px solid rgba(244, 63, 94, 0.2);
}
.gr-table-pagination {
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--gr-border-color);
background: rgba(0, 0, 0, 0.2);
}
.gr-pagination-controls {
display: flex;
gap: 0.5rem;
align-items: center;
}
@media (max-width: 768px) {
.gr-table-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
.gr-table-pagination { flex-direction: column; gap: 1rem; text-align: center; }
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-table-wrapper {
width: 100%;
max-width: 1000px;
margin: 0 auto;
border-radius: 24px;
overflow: hidden;
}
.gr-table-header {
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-table-header h3 {
margin: 0;
font-size: 1.25rem;
}
.gr-table-container {
width: 100%;
overflow-x: auto;
}
.gr-table {
width: 100%;
border-collapse: collapse;
min-width: 600px;
}
.gr-table th {
text-align: left;
padding: 1rem 2rem;
font-size: 0.85rem;
font-weight: 600;
color: var(--gr-text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid var(--gr-border-color);
background: rgba(0, 0, 0, 0.2);
}
.gr-table td {
padding: 1.25rem 2rem;
font-size: 0.95rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
color: var(--gr-text-main);
vertical-align: middle;
}
.gr-table tbody tr {
transition: background 0.2s ease;
}
.gr-table tbody tr:hover td {
background: rgba(255, 255, 255, 0.02);
}
.gr-table-user {
display: flex;
align-items: center;
gap: 1rem;
}
.gr-table-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
padding: 2px;
background: var(--gr-primary);
}
.gr-table-avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--gr-bg-surface);
}
.gr-table-user span {
font-weight: 500;
}
.gr-status {
padding: 0.35rem 0.75rem;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
}
.gr-status-success {
background: rgba(16, 185, 129, 0.1);
color: #34d399;
border: 1px solid rgba(16, 185, 129, 0.2);
}
.gr-status-pending {
background: rgba(245, 158, 11, 0.1);
color: #fbbf24;
border: 1px solid rgba(245, 158, 11, 0.2);
}
.gr-status-failed {
background: rgba(244, 63, 94, 0.1);
color: #fb7185;
border: 1px solid rgba(244, 63, 94, 0.2);
}
.gr-table-pagination {
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--gr-border-color);
background: rgba(0, 0, 0, 0.2);
}
.gr-pagination-controls {
display: flex;
gap: 0.5rem;
align-items: center;
}
@media (max-width: 768px) {
.gr-table-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
.gr-table-pagination { flex-direction: column; gap: 1rem; text-align: center; }
}
Lists
Glowing Activity Feed
HTML
<div class="gr-activity-feed gr-surface">
<div class="gr-feed-header">
<h3>Recent Activity</h3>
<button class="gr-btn gr-btn-outline" style="padding: 0.4rem 0.8rem; font-size: 0.85rem;">Mark all read</button>
</div>
<ul class="gr-feed-list">
<li class="gr-feed-item unread">
<div class="gr-feed-icon gr-bg">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="white" stroke-width="2" fill="none"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
</div>
<div class="gr-feed-content">
<p><strong class="gr-text">Sarah Jenkins</strong> commented on your post</p>
<span class="gr-feed-time">2 hours ago</span>
</div>
<div class="gr-unread-dot gr-bg"></div>
</li>
<li class="gr-feed-item unread">
<div class="gr-feed-icon" style="background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="white" stroke-width="2" fill="none"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>
</div>
<div class="gr-feed-content">
<p><strong>Michael Chen</strong> liked your photo</p>
<span class="gr-feed-time">4 hours ago</span>
</div>
<div class="gr-unread-dot gr-bg"></div>
</li>
<li class="gr-feed-item">
<div class="gr-feed-icon" style="background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%); box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="white" stroke-width="2" fill="none"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
<div class="gr-feed-content">
<p>System successfully updated to version 2.4</p>
<span class="gr-feed-time">Yesterday at 4:30 PM</span>
</div>
</li>
<li class="gr-feed-item">
<div class="gr-feed-icon" style="background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.1);">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="white" stroke-width="2" fill="none"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line></svg>
</div>
<div class="gr-feed-content">
<p><strong>Emily Davis</strong> joined the team</p>
<span class="gr-feed-time">Oct 22, 2023</span>
</div>
</li>
</ul>
<div class="gr-feed-footer">
<a href="#" class="gr-btn gr-btn-ghost gr-btn-block">View All Activity</a>
</div>
</div>
CSS (Component Only)
/* Component: Glowing Activity Feed */
/* NOTE: This component requires base.css to be included in your page. */
.gr-activity-feed {
max-width: 500px;
margin: 0 auto;
border-radius: 24px;
overflow: hidden;
}
.gr-feed-header {
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-feed-header h3 {
margin: 0;
font-size: 1.25rem;
}
.gr-feed-list {
list-style: none;
padding: 0;
margin: 0;
}
.gr-feed-item {
display: flex;
align-items: flex-start;
gap: 1.25rem;
padding: 1.25rem 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
position: relative;
transition: background 0.3s ease;
}
.gr-feed-item:last-child {
border-bottom: none;
}
.gr-feed-item:hover {
background: rgba(255, 255, 255, 0.02);
}
.gr-feed-item.unread {
background: rgba(236, 72, 153, 0.05);
}
.gr-feed-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: var(--gr-glow-primary);
}
.gr-feed-content {
flex: 1;
}
.gr-feed-content p {
margin: 0 0 0.25rem 0;
font-size: 0.95rem;
color: var(--gr-text-main);
}
.gr-feed-content strong {
font-weight: 600;
}
.gr-feed-time {
font-size: 0.8rem;
color: var(--gr-text-muted);
}
.gr-unread-dot {
width: 10px;
height: 10px;
border-radius: 50%;
margin-top: 0.35rem;
box-shadow: var(--gr-glow-primary);
}
.gr-feed-footer {
padding: 1.5rem;
border-top: 1px solid var(--gr-border-color);
background: rgba(0, 0, 0, 0.2);
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-activity-feed {
max-width: 500px;
margin: 0 auto;
border-radius: 24px;
overflow: hidden;
}
.gr-feed-header {
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--gr-border-color);
}
.gr-feed-header h3 {
margin: 0;
font-size: 1.25rem;
}
.gr-feed-list {
list-style: none;
padding: 0;
margin: 0;
}
.gr-feed-item {
display: flex;
align-items: flex-start;
gap: 1.25rem;
padding: 1.25rem 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
position: relative;
transition: background 0.3s ease;
}
.gr-feed-item:last-child {
border-bottom: none;
}
.gr-feed-item:hover {
background: rgba(255, 255, 255, 0.02);
}
.gr-feed-item.unread {
background: rgba(236, 72, 153, 0.05);
}
.gr-feed-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: var(--gr-glow-primary);
}
.gr-feed-content {
flex: 1;
}
.gr-feed-content p {
margin: 0 0 0.25rem 0;
font-size: 0.95rem;
color: var(--gr-text-main);
}
.gr-feed-content strong {
font-weight: 600;
}
.gr-feed-time {
font-size: 0.8rem;
color: var(--gr-text-muted);
}
.gr-unread-dot {
width: 10px;
height: 10px;
border-radius: 50%;
margin-top: 0.35rem;
box-shadow: var(--gr-glow-primary);
}
.gr-feed-footer {
padding: 1.5rem;
border-top: 1px solid var(--gr-border-color);
background: rgba(0, 0, 0, 0.2);
}
Modals
Gradient Confirmation Modal
HTML
<!-- Note: For preview purposes, the modal is shown inline. In production, wrap this in a fixed overlay. -->
<div class="gr-modal-wrapper">
<div class="gr-modal gr-surface">
<div class="gr-modal-icon" style="background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%); box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.4);">
<svg fill="none" viewBox="0 0 24 24" stroke="white" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3m0 3h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
</div>
<div class="gr-modal-content">
<h3 class="gr-modal-title">Delete Account</h3>
<p class="gr-modal-desc">Are you sure you want to delete your account? All of your data will be permanently removed. This action cannot be undone.</p>
</div>
<div class="gr-modal-actions">
<button class="gr-btn gr-btn-outline" style="flex: 1;">Cancel</button>
<button class="gr-btn" style="flex: 1; background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%); color: white; box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.4);">Delete Account</button>
</div>
</div>
</div>
CSS (Component Only)
/* Component: Gradient Confirmation Modal */
/* NOTE: This component requires base.css to be included in your page. */
.gr-modal-wrapper {
display: flex;
justify-content: center;
align-items: center;
padding: 2rem;
}
.gr-modal {
max-width: 480px;
width: 100%;
border-radius: 24px;
padding: 2.5rem;
text-align: center;
border: 1px solid var(--gr-border-color);
}
.gr-modal-icon {
width: 64px;
height: 64px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
}
.gr-modal-icon svg {
width: 32px;
height: 32px;
}
.gr-modal-title {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #FFFFFF;
}
.gr-modal-desc {
color: var(--gr-text-muted);
margin-bottom: 2rem;
font-size: 0.95rem;
line-height: 1.6;
}
.gr-modal-actions {
display: flex;
gap: 1rem;
justify-content: center;
}
@media (max-width: 480px) {
.gr-modal-actions {
flex-direction: column;
}
}
Combined CSS (Includes Base)
/*
COMBINED CSS
Includes base resets/variables + component styles.
Use this if you haven't included base.css elsewhere.
*/
/* --- BASE STYLES --- */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');
/* Base Reset */
*, *::before, *::after {
box-sizing: border-box;
}
:root {
--gr-bg-deep: #0B0F19;
--gr-bg-surface: #151B2B;
--gr-bg-surface-hover: #1E293B;
--gr-color-pink: #ec4899;
--gr-color-purple: #8b5cf6;
--gr-primary: linear-gradient(135deg, var(--gr-color-pink) 0%, var(--gr-color-purple) 100%);
--gr-primary-hover: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
/* Text colors */
--gr-text-main: #F8FAFC;
--gr-text-muted: #94A3B8;
--gr-font-heading: 'Outfit', sans-serif;
--gr-font-body: 'Inter', sans-serif;
/* Glows & Shadows */
--gr-glow-primary: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
--gr-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
--gr-shadow-surface: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
/* Borders */
--gr-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: var(--gr-font-body);
color: var(--gr-text-main);
background-color: var(--gr-bg-deep);
-webkit-font-smoothing: antialiased;
}
/* Gradient Utilities */
.gr-text {
background: var(--gr-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
color: transparent;
}
.gr-bg {
background: var(--gr-primary);
}
.gr-surface {
background: var(--gr-bg-surface);
border: 1px solid var(--gr-border-color);
box-shadow: var(--gr-shadow-surface);
border-radius: 16px;
}
/* Global Buttons */
.gr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.95rem;
font-family: var(--gr-font-body);
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
gap: 0.5rem;
}
.gr-btn-primary {
background: var(--gr-primary);
color: white;
box-shadow: var(--gr-glow-primary);
}
.gr-btn-primary:hover {
background: var(--gr-primary-hover);
transform: translateY(-2px);
box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
/* Gradient Border Button Trick */
.gr-btn-outline {
background: var(--gr-bg-deep);
color: var(--gr-text-main);
position: relative;
z-index: 1;
border: 1px solid transparent;
}
.gr-btn-outline::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px; /* Border thickness */
background: var(--gr-primary);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
transition: opacity 0.3s ease;
}
.gr-btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
box-shadow: var(--gr-glow-purple);
}
.gr-btn-ghost {
background: transparent;
color: var(--gr-text-muted);
}
.gr-btn-ghost:hover {
color: var(--gr-text-main);
background: rgba(255, 255, 255, 0.05);
}
.gr-btn-circle {
width: 48px;
height: 48px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gr-btn-block {
width: 100%;
}
/* Global Form Inputs */
.gr-input {
width: 100%;
padding: 1rem 1.25rem;
border-radius: 12px;
font-family: var(--gr-font-body);
font-size: 0.95rem;
color: var(--gr-text-main);
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--gr-border-color);
outline: none;
transition: all 0.3s ease;
}
.gr-input::placeholder {
color: var(--gr-text-muted);
opacity: 0.6;
}
.gr-input:focus {
border-color: var(--gr-color-purple);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
background: rgba(0, 0, 0, 0.4);
}
.gr-label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 500;
color: var(--gr-text-muted);
}
/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
font-family: var(--gr-font-heading);
margin: 0;
color: #FFFFFF;
}
p {
line-height: 1.6;
margin: 0;
color: var(--gr-text-muted);
}
/* --- COMPONENT STYLES --- */
.gr-modal-wrapper {
display: flex;
justify-content: center;
align-items: center;
padding: 2rem;
}
.gr-modal {
max-width: 480px;
width: 100%;
border-radius: 24px;
padding: 2.5rem;
text-align: center;
border: 1px solid var(--gr-border-color);
}
.gr-modal-icon {
width: 64px;
height: 64px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
}
.gr-modal-icon svg {
width: 32px;
height: 32px;
}
.gr-modal-title {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #FFFFFF;
}
.gr-modal-desc {
color: var(--gr-text-muted);
margin-bottom: 2rem;
font-size: 0.95rem;
line-height: 1.6;
}
.gr-modal-actions {
display: flex;
gap: 1rem;
justify-content: center;
}
@media (max-width: 480px) {
.gr-modal-actions {
flex-direction: column;
}
}