Custom CSS

PicFast lets you inject custom CSS into the site via the Settings → Site Settings page in the admin panel. The CSS is saved and injected directly into a <style> tag on every page.

CSS Variables Reference

All PicFast theme tokens are exposed as CSS custom properties. Override these to change colors, radii, spacing, and more:

VariablePurposeExample
--backgroundPage backgroundoklch(0.985 0 0)
--foregroundText coloroklch(0.145 0 0)
--cardCard/panel backgroundoklch(1 0 0)
--primaryPrimary accent coloroklch(0.55 0.18 260)
--primary-foregroundText on primaryoklch(0.985 0 0)
--secondarySecondary surfaceoklch(0.97 0 0)
--accentAccent surfaceoklch(0.97 0 0)
--mutedMuted surfaceoklch(0.97 0 0)
--muted-foregroundMuted textoklch(0.556 0 0)
--borderBorder coloroklch(0.922 0 0)
--radiusBase border radius0.625rem
--destructiveDanger/delete coloroklch(0.577 0.245 27.3)
--successSuccess coloroklch(0.6 0.18 145)
--warningWarning coloroklch(0.75 0.15 80)
--infoInfo coloroklch(0.55 0.18 260)
--pf-logo-radiusLogo border-radius0.75rem
--pf-densityUI density multiplier1
--pf-motion-durationAnimation speed150ms
--sidebarSidebar backgroundoklch(0.985 0 0)
--popoverPopover backgroundoklch(1 0 0)

Target Selectors

These are the key CSS classes you can override for targeted changes:

SelectorScopeWhat it controls
.pf-public-glowPublic pagesDecorative background glow effect
.pf-site-logoAll pagesSite logo appearance (border-radius driven by --pf-logo-radius)
.pf-console-shellConsole layoutMain sidebar + content wrapper
.pf-console-contentConsole layoutMain content area inside console

Common Recipes

Change the primary accent color

:root {
  --primary: oklch(0.55 0.22 280);
  --primary-foreground: oklch(0.985 0 0);
}

.dark {
  --primary: oklch(0.65 0.22 280);
}

Make the site feel more rounded

:root {
  --radius: 1.25rem;
  --pf-logo-radius: 1rem;
}

Hide the public page glow effect

.pf-public-glow {
  display: none;
}

Custom console sidebar background

.pf-console-shell {
  background: linear-gradient(180deg, oklch(0.2 0.01 260) 0%, oklch(0.13 0 0) 100%);
}

Live Playground

Edit the CSS below and see changes applied to mock PicFast UI elements in real time.

custom.css
Preview

Generate CSS with AI

Copy a prompt template below and paste it into DeepSeek, ChatGPT, or any LLM to generate custom CSS for your PicFast instance:

I want to customize my PicFast image hosting site. It uses CSS custom properties (variables) for theming.

Available selectors:
- .pf-public-glow (background glow on public pages)
- .pf-site-logo (the logo element)
- .pf-console-shell (console sidebar + content wrapper)
- .pf-console-content (console main content area)

Available CSS variables (oklch colors):
--background, --foreground, --card, --card-foreground, --primary, --primary-foreground,
--secondary, --secondary-foreground, --accent, --accent-foreground, --muted,
--muted-foreground, --border, --radius, --pf-logo-radius, --pf-density,
--pf-motion-duration, --destructive, --success, --warning, --info,
--sidebar, --sidebar-foreground, --popover, --popover-foreground

Light mode variables go under :root { }, dark mode under .dark { }.

Please generate CSS for: [DESCRIBE YOUR DESIRED LOOK HERE - e.g. "a dark theme with neon pink accents and large rounded corners"]