Skip to content

Instantly share code, notes, and snippets.

@mamigot
Created March 11, 2025 23:20
Show Gist options
  • Save mamigot/a715426f6dccced0b6b94f0caac90c44 to your computer and use it in GitHub Desktop.
Save mamigot/a715426f6dccced0b6b94f0caac90c44 to your computer and use it in GitHub Desktop.
/* brand.css - Agentic AI Brand Identity for Web Applications */
/* Root variables for scalability and theming */
:root {
/* Color Palette */
--primary-color: #1a73e8; /* Bright blue - conveys innovation and trust */
--secondary-color: #34c759; /* Vibrant green - suggests growth and AI dynamism */
--accent-color: #fbbc05; /* Warm yellow - highlights and calls-to-action */
--background-dark: #1f2a44; /* Dark navy - modern, tech-focused background */
--background-light: #f5f7fa; /* Light gray - clean and minimal */
--text-dark: #212121; /* Near-black - primary text color for readability */
--text-light: #ffffff; /* White - text on dark backgrounds */
--text-muted: #757575; /* Gray - secondary text or placeholders */
--border-color: #e0e0e0; /* Light gray - subtle borders */
--error-color: #d32f2f; /* Red - error states */
--success-color: #2e7d32; /* Dark green - success states */
/* Typography */
--font-primary: 'Inter', sans-serif; /* Clean, modern, highly legible */
--font-secondary: 'Roboto Mono', monospace; /* Code/tech feel for secondary text */
--font-size-base: 16px; /* Base size for scalability */
--font-size-h1: 2.5rem; /* 40px */
--font-size-h2: 2rem; /* 32px */
--font-size-h3: 1.5rem; /* 24px */
--font-size-body: 1rem; /* 16px */
--font-size-small: 0.875rem; /* 14px */
--font-weight-light: 300;
--font-weight-regular: 400;
--font-weight-bold: 700;
/* Spacing */
--spacing-unit: 8px; /* Base unit for consistent spacing */
--spacing-sm: calc(var(--spacing-unit) * 1); /* 8px */
--spacing-md: calc(var(--spacing-unit) * 2); /* 16px */
--spacing-lg: calc(var(--spacing-unit) * 4); /* 32px */
/* Border Radius */
--border-radius-sm: 4px;
--border-radius-md: 8px;
--border-radius-lg: 16px;
}
/* Reset defaults for consistency across applications */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Base styles */
body {
font-family: var(--font-primary);
font-size: var(--font-size-base);
line-height: 1.6;
color: var(--text-dark);
background-color: var(--background-light);
}
/* Headings */
h1, h2, h3 {
font-weight: var(--font-weight-bold);
line-height: 1.2;
}
h1 {
font-size: var(--font-size-h1);
color: var(--primary-color);
}
h2 {
font-size: var(--font-size-h2);
}
h3 {
font-size: var(--font-size-h3);
}
/* Text elements */
p {
margin-bottom: var(--spacing-md);
}
a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: darken(var(--primary-color), 10%);
}
/* Buttons */
.btn {
display: inline-block;
padding: var(--spacing-sm) var(--spacing-md);
font-size: var(--font-size-body);
font-weight: var(--font-weight-regular);
text-align: center;
border-radius: var(--border-radius-md);
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary {
background-color: var(--primary-color);
color: var(--text-light);
border: none;
}
.btn-primary:hover {
background-color: darken(var(--primary-color), 10%);
transform: translateY(-2px);
}
.btn-secondary {
background-color: transparent;
color: var(--primary-color);
border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
background-color: var(--primary-color);
color: var(--text-light);
}
/* Forms */
input, textarea, select {
width: 100%;
padding: var(--spacing-sm);
margin-bottom: var(--spacing-md);
font-family: var(--font-primary);
font-size: var(--font-size-body);
border: 1px solid var(--border-color);
border-radius: var(--border-radius-sm);
background-color: var(--background-light);
color: var(--text-dark);
}
input:focus, textarea:focus, select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}
/* Dark mode (optional, assuming the site supports it) */
@media (prefers-color-scheme: dark) {
:root {
--background-light: var(--background-dark);
--text-dark: var(--text-light);
--border-color: #424242;
}
body {
background-color: var(--background-dark);
color: var(--text-light);
}
input, textarea, select {
background-color: #2f3958;
color: var(--text-light);
border-color: var(--border-color);
}
}
/* Utility classes */
.text-muted {
color: var(--text-muted);
}
.text-center {
text-align: center;
}
.mt-md {
margin-top: var(--spacing-md);
}
.mb-lg {
margin-bottom: var(--spacing-lg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment