Skip to main content

Theming

Subscribd’s components are styled with CSS custom properties. Publish the stylesheets and override the variables to match your application’s design system — no view publishing required.

Publishing the stylesheets

This publishes two CSS files to your public/vendor/subscribd/ directory:
  • subscribd.css — Light mode styles and all variable definitions
  • subscribd-dark.css — Dark mode overrides
Include them in your layout before your own CSS:
For dark mode support using the prefers-color-scheme media query:
If your app uses a class-based dark mode toggle (e.g., Tailwind’s darkMode: 'class'), scope the dark file to .dark:

CSS variables

All component colours, spacing, and typography pull from CSS custom properties on :root. Override them in your own stylesheet:
Only override the variables you want to change. Unset variables fall back to the package defaults.

Dark mode variables

Dark mode variables use the same property names, redefined in subscribd-dark.css:

Gradient usage

The brand gradient (--subscribd-gradient-brand) is reserved for accent punctuation — price callouts, plan badges, and CTA highlights. Avoid using it as a background for large areas or body text.

Tailwind integration

If your project uses Tailwind CSS v4, extend your theme with Subscribd’s CSS variables:
This makes text-subscribd-primary, bg-subscribd-primary, and similar utilities available throughout your app.

Next steps