Skip to main content
Subscribd components are built on four CSS custom properties. Every color, border radius, and font reference in the component markup reads from these variables, so you can restyle the entire UI by adding a single :root block to your global stylesheet. You do not need to publish any views to apply a custom theme.

The four custom properties

VariableWhat it controlsDefault
--subscribd-primaryPrimary buttons, active state indicators, focus ringsPackage default
--subscribd-accentHover states, secondary highlights, badgesPackage default
--subscribd-radiusBorder radius applied to cards, buttons, and inputsPackage default
--subscribd-fontFont family used across all component textPackage default

Applying overrides

Add the :root block to your app’s global stylesheet — typically resources/css/app.css. The overrides take effect immediately for all Subscribd components without a cache clear or view publish.
resources/css/app.css
:root {
    --subscribd-primary: #6d28d9;
    --subscribd-accent:  #7c3aed;
    --subscribd-radius:  0.75rem;
    --subscribd-font:    'Inter', sans-serif;
}
Place the :root block anywhere in your stylesheet. Because these are CSS custom properties, any value you set here cascades automatically to all Subscribd components in the page.

Common customizations

If your app uses Tailwind CSS, map the variables to the same color values from your Tailwind config:
resources/css/app.css
:root {
    --subscribd-primary: #0ea5e9;   /* sky-500 */
    --subscribd-accent:  #0284c7;   /* sky-600 */
    --subscribd-radius:  0.5rem;    /* rounded-lg */
    --subscribd-font:    ui-sans-serif, system-ui, sans-serif;
}

Tips

Use the same values as your design system’s primary brand color for --subscribd-primary. Subscribd’s buttons and interactive states will then match the rest of your app without any additional CSS.
--subscribd-accent is typically a slightly darker or lighter shade of your primary color. A 100–200 lightness step in HSL produces good contrast on hover states.
To scope overrides to a single page or layout, apply the custom properties to a container element instead of :root:
.billing-section {
    --subscribd-primary: #059669;
    --subscribd-accent:  #047857;
}
If you publish Livewire or Blade views and hard-code color values in the templates, those values will override the custom properties for the affected elements. Keep markup using the variable references to preserve theme control.