> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Customization Overview

> Customize components to match your brand

# Customization

Since you own the source code, you can customize **everything**: colors, layout, typography, functionality, and more.

***

## Philosophy

The CLI approach enables true customization:

> [card] Edit, Don't Configure
>
> Customize by editing source files, not passing complex config objects.

> [card] Full Ownership
>
> The code lives in your project. Change anything you want.

> [card] No Limitations
>
> Not restricted to what props expose. Modify layout, logic, features.

> [card] Self-Documenting
>
> Clear file names, inline comments, and color palettes documented in headers.

***

## What You Can Customize

> [accordion] Colors & Theming
>
> Change any color: backgrounds, text, buttons, icons, borders.
>
> * Inline styles: Find and replace hex codes
> * Tailwind: Change utility classes or extend config
>
> See [Colors & Theming](https://docs.sublay.io/v7/components/customization/colors-theming.md)

> [accordion] Layout & Structure
>
> Rearrange, add, or remove UI elements.
>
> * Add custom headers/footers
> * Remove features you don't need
> * Change component ordering
> * Modify spacing and sizing
>
> See [Layout & Structure](https://docs.sublay.io/v7/components/customization/layout-structure.md)

> [accordion] Styling Variants
>
> Switch between inline styles and Tailwind CSS.
>
> See [Styling Variants](https://docs.sublay.io/v7/components/customization/styling-variants.md)

> [accordion] Functionality
>
> Modify behavior and add features.
>
> * Add confirmation dialogs
> * Change interaction logic
> * Integrate with your analytics
> * Wire to your auth system
>
> See [Adding Features](https://docs.sublay.io/v7/components/customization/adding-features.md)

> [accordion] Typography
>
> Change fonts, sizes, weights, and line heights throughout any component file.

> [accordion] Icons & Assets
>
> Replace icons with your own or use an icon library (Font Awesome, Heroicons, etc.).

***

## Quick Examples

### Change Primary Color (Inline Styles)

```tsx theme={null}
// File: components/comments-threaded/components/single-comment/vote-buttons.tsx

// Find:
<button style={{ color: '#3B82F6' }}>

// Replace with:
<button style={{ color: '#9333EA' }}>  // Purple
```

### Change Primary Color (Tailwind)

```tsx theme={null}
// File: components/comments-threaded/components/single-comment/vote-buttons.tsx

// Find:
<button className="text-blue-600 hover:text-blue-700">

// Replace with:
<button className="text-purple-600 hover:text-purple-700">
```

### Add Custom Header

```tsx theme={null}
// File: components/comments-threaded/components/threaded-comment-section.tsx

return (
  <div>
    <div className="flex justify-between items-center mb-4">
      <h2 className="text-2xl font-bold">Discussion</h2>
      <span className="text-gray-500">{totalComments} comments</span>
    </div>

    <NewCommentForm />
    <CommentsFeed />
  </div>
);
```

### Remove a Feature

```tsx theme={null}
// File: components/comments-threaded/components/single-comment/single-comment.tsx

return (
  <div>
    <AuthorInfo />
    <CommentBody />
    {/* <VoteButtons /> */}  {/* Removed voting */}
    <ReplyButton />
  </div>
);
```

***

## Where to Make Changes

| What to Change | Where to Look |
| - | - |
| Colors | Search for hex codes (`#3B82F6`) or Tailwind classes (`text-blue-600`) |
| Layout | Main component file (`threaded-comment-section.tsx`, etc.) |
| Typography | Any component file — search `fontSize` or `text-` classes |
| Behavior | Component files and the `hooks/` directory |
| Icons | Search for Unicode symbols or icon component names |

***

## Tips

**1. Read Color Palette Guides**

Many component files have color palette documentation in their headers:

```tsx theme={null}
/**
 * COLOR PALETTE
 * - #3B82F6 → Primary blue (upvotes, links)
 * - #EF4444 → Red (downvotes, delete)
 */
```

**2. Use Find & Replace**

To change a color globally across the component:

* Find: `#3B82F6`
* Replace: `#9333EA`
* Scope: `components/comments-threaded/`

**3. Test Incrementally**

Make one change at a time. Easier to debug if something breaks.

**4. Version Control**

Commit changes frequently so you can revert if needed.

```bash theme={null}
git add src/components/comments-threaded/
git commit -m "Change primary color to purple"
```

***

## Next Steps

> [card] [Colors & Theming](https://docs.sublay.io/v7/components/customization/colors-theming.md)
>
> Customize colors and dark mode

> [card] [Layout & Structure](https://docs.sublay.io/v7/components/customization/layout-structure.md)
>
> Modify layout and add/remove elements

> [card] [Styling Variants](https://docs.sublay.io/v7/components/customization/styling-variants.md)
>
> Inline styles vs Tailwind CSS

> [card] [Adding Features](https://docs.sublay.io/v7/components/customization/adding-features.md)
>
> Add custom functionality


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.