How to Customize BAX Design - CSS Guide

BAX Uses Bootstrap 5

BAX uses Bootstrap 5 for responsive layout and components. This means you get a modern, mobile-first design out of the box with minimal effort.

Bootstrap 5 provides:

  • Responsive grid system
  • Pre-built components (navbar, cards, buttons)
  • Utility classes for spacing and alignment
  • Typography and form styling
  • Cross-browser compatibility

Edit style.css

The style.css file in your project root controls the entire site design. This file overrides Bootstrap defaults and adds custom styles.

File Location

BAX/
├── style.css          # ⬅️ Edit this file
├── bax.bat
├── config.zet
├── data/
├── pages/
└── public/

How It Works

During build, BAX copies style.css to the public/ folder. Any changes you make to style.css will be reflected in your site.


Customize Colors

BAX uses a gradient color scheme with primary blue to purple. Here's how to change it:

Primary Button Color

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1) important;
    border: none important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

Change the colors to match your brand:

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) important;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.25);
}

Navbar Brand Gradient

.navbar-brand {
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

Divider Gradient

.divider {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

Tag Buttons Hover

.post-tags .btn:hover {
    background: #3b82f6 important;
    color: #fff important;
    border-color: #3b82f6 important;
}

Customize Typography

Change fonts, sizes, and text styles:

Body Font

body {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    line-height: 1.7;
}

Use a custom font from Google Fonts:

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');
body {
    font-family: 'Playfair Display', serif;
}

Headings

.display-5 {
    font-weight: 800 important;
    letter-spacing: -1px;
    color: #0f172a;
}
.post-title {
    font-size: 1.1rem important;
    font-weight: 700 important;
    line-height: 1.4;
}

Customize Cards

Blog post cards are the main content display:

Card Styling

.post-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

Card Hover Effect

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.10);
}

Card Image

.post-card img {
    border-radius: 16px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.post-card:hover img {
    transform: scale(1.02);
}

Customize Navbar

The navbar has a glass-morphism effect:

Navbar Background

.navbar {
    background: rgba(255, 255, 255, 0.85) important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) important;
}

Navbar Links

.nav-link {
    font-weight: 500 important;
    color: #334155 important;
    padding: 0.5rem 1rem important;
    border-radius: 12px;
    transition: all 0.25s ease;
}
.nav-link:hover {
    color: #0f172a important;
    background: rgba(59, 130, 246, 0.06);
}

Navbar Link Underline

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 60%;
}

Customize Layout

Change container width, spacing, and layout:

Container Width

.container {
    max-width: 1200px important;
}

Spacing

.post-content {
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 24px;
}

Borders and Shadows

.rounded-5 {
    border-radius: 24px important;
}
.shadow-sm {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) important;
}

Customize Footer

Change footer styles:

footer {
    background: rgba(255, 255, 255, 0.85) important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.04) important;
}
footer a {
    font-weight: 600;
    color: #0f172a important;
}
footer a:hover {
    color: #3b82f6 important;
}

Customize Responsive Design

Add responsive styles for different screen sizes:

@media (max-width: 768px) {
    .post-content {
        padding: 1.5rem;
    }
    .post-content-title {
        font-size: 1.6rem important;
    }
    .display-5 {
        font-size: 2rem important;
    }
}

Complete CSS Example

Here's a complete dark theme example:

/* Dark Theme */
body {
    background: #0f172a;
    color: #e2e8f0;
}
.post-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}
.post-title {
    color: #f8fafc important;
}
.post-desc {
    color: #94a3b8;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) important;
}
.navbar {
    background: rgba(15, 23, 42, 0.9) important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) important;
}
.nav-link {
    color: #94a3b8 important;
}
.nav-link:hover {
    color: #f8fafc important;
}

Quick Tips

  • Always use important sparingly - only when overriding Bootstrap
  • Test your changes on different screen sizes
  • Use browser dev tools to inspect elements
  • Keep a backup of your original style.css
  • Make changes incrementally and test often

Need Help?

Check these resources:

  • Bootstrap 5 Documentation: https://getbootstrap.com/docs/5.0
  • W3Schools CSS Tutorial: https://www.w3schools.com/css
  • Google Fonts: https://fonts.google.com
  • Color Palette Generator: https://coolors.co

"Design is not just what it looks like. Design is how it works."

← Back to posts