Skip to main content

Colors & Theming

Change colors to match your brand and implement dark mode.

Inline Styles Variant

Color Palette Guides

Component files have color palette documentation in their headers:
Format: Light Color → Dark Color

Changing Colors

  1. Find the hex code in your editor’s search
  2. Replace with your brand color

Dark Mode (Inline Styles)

Use the theme prop on comment components:
In threaded comments on React Native and Expo, theme goes on ThreadedComments, which wraps the screen, and both variants use it. Components check the theme and apply colors conditionally:

Tailwind CSS Variant

Changing Colors

Option 1: Change classes directly
Option 2: Extend Tailwind config
Then use bg-primary, text-primary, etc.

Dark Mode (Tailwind)

On React, components use the dark: prefix:
Setup:
  1. Make Tailwind’s dark mode follow a dark class:
  1. Add dark class to parent element:
All components automatically switch to dark colors. On React Native and Expo, there are no dark: classes and no Tailwind dark mode setup: pass the component’s theme prop ("light" or "dark"), and each class is chosen from it in code, the same way the inline styles variant chooses its colors.

Shared Pieces

The GIF picker, loading skeletons, mention text and (in social comments) the emoji bar divider are drawn by the files in the component’s shared/ folder. Their light and dark colors are in shared/theme.ts.
  • Inline styles variant, and every React Native / Expo variant: the component passes its theme to these pieces. Edit the colors in shared/theme.ts.
  • Tailwind variant on web: the pieces read CSS custom properties, and the root element of the comment section sets them under dark::
Change a value there to change the dark color. Light colors are the fallbacks in shared/theme.ts. To override a light color from CSS, set the same property without the dark: prefix.

Common Customizations

Change Primary Brand Color

Inline Styles — find & replace across the component directory:
Tailwind:

Customize Dark Mode Colors


Next Steps

Layout & Structure

Modify component layout

Styling Variants

Inline styles vs Tailwind

Adding Features

Add custom functionality

Advanced

Advanced customization techniques