Match the widget to your brand and dark mode
Change accent, radius and font in code or CSS to match your brand and dark mode.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
By default
Set your colors in the dashboard under Settings, Theme. Every widget on every page picks them up on its next load.
Change your colors once, and every page that embeds them follows.
There is no second palette to keep in step with the first.
Six colors and a corner radius come from your theme. Everything else is mixed from them by the same formulas your public board uses. The font is the one value that does not travel.
A theme names a family your public page loads from a font service. A page that never loaded it would fall back to something generic, so the widgets inherit the font of the page they sit in instead.
If the board already looks right on your site, stop here. The rest of this guide is for the cases where it does not.
Dark and light
A page that declares both schemes lets the system setting decide. A page that declares dark alone is a dark page, and a page that says nothing is light.
Widgets follow your page's color scheme, not the visitor's system.
Force one with the theme option when you need to.
The rule keeps a widget from being dark inside a light page just because the visitor's phone is dark. It reads the color-scheme of the page around it.
Your board has a light palette and a dark one, and the widgets carry both rather than resolving one. That is why a widget set to auto follows the system setting the moment the reader changes it, with no listener and no repaint. The answer it reached is written on the widget root as data-vf-theme, so your own rules can read it.
VoteFirst.roadmap('#roadmap', { theme: 'dark' });Override in code
Each key sets a custom property on the widget, such as accent, bg, text, border, danger, radius, font and fontSize.
Override a color for one widget with the appearance option.
A number is read as pixels, so radius 0 and radius '0px' mean the same.
The full set of keys is accent, accentText, bg, cardBg, border, borderControl, text, textSecondary, danger, radius, space, font, fontSize and changelogWidth. Leave a key out and it keeps your board's value. The accent text color is chosen for you, black or white, whichever reads on the accent.
Anything you set this way is written without a light or dark prefix, so it applies to both palettes. That is fine for a brand accent. It is not fine for a background, where you want a different value in each mode.
VoteFirst.roadmap('#roadmap', {
appearance: { accent: '#6C4EBB', radius: 4 }
});In your stylesheet
The same properties work in a stylesheet, which is the better place when every widget on the site should look the same.
Put site wide values in your own CSS, loaded last.
Load your rules after votefirst.css, because the later one wins.
Your rules sit on the same selector as the widget's own, so order decides. A stylesheet loaded first is a stylesheet with no effect.
To change a value in one mode only, put it under a media query for the color scheme in your own CSS. Or read data-vf-theme in a selector, which is the answer the widget has already reached.
.vf {
--vf-accent: #6C4EBB;
--vf-radius: 4px;
}
@media (prefers-color-scheme: dark) {
.vf { --vf-bg: #141418; }
}Your own rules
Leave the stylesheet out and the widgets arrive with structure and no styling. Pass appearance as false to drop only your board's colors.
Turn the styling off and write rules against the class names.
Almost every element carries a vf- class, such as vf-card and vf-vote-btn.
The classes worth writing against are vf-card, vf-card-title, vf-card-description, vf-tag, vf-card-progress, vf-vote-btn, vf-vote-count, vf-column, vf-release, vf-modal, vf-form and vf-button. The view a card opens adds vf-detail, vf-comments, vf-comment and vf-dev-response.
Two hooks save you any state of your own. A declined request carries vf-dev-response-denial next to vf-dev-response, so the owner's answer and the reason for a no can read differently. A vote control the visitor has already used carries aria-pressed set to true, so a rule can style a cast vote directly.
.vf-vote-btn[aria-pressed="true"] { font-weight: 700; }
.vf-dev-response-denial { opacity: 0.8; }
.vf[data-vf-theme="dark"] .vf-card { border-color: #2a2a32; }Check it
Open the page in light and in dark, then look at a form error, a declined request and a vote you already cast.
Look at both modes and the states that hide color mistakes.
Each of those uses a color you may not have set.
A form error is written in the danger color, so check it against your background. A declined request shows the owner's reason in its own block. A cast vote has the pressed state. Check a custom accent on the button as well as on a card, because the text on it follows the accent.
Then check the width. The changelog keeps a release note readable at 760 pixels unless you change changelogWidth.
Test the extremes. Set your system to dark, load the page and look at the widget on a card with a long title, on a vote button that has already been pressed, and on an empty state. The defaults usually hold up. Custom values are where contrast slips, such as a pale accent on a light card or dark text on a dark accent, and one corrected value fixes it everywhere better than a new rule for each state.
What you get from theming the widget
No second palette
Change colors once in the dashboard and every page follows.
Dark mode that follows your page
The widget reads your page's color scheme, with both palettes ready.
Control down to a class name
Override a value, or turn styling off and write your own rules.
Match the widget in four steps
Stop at the first step that looks right.
Set the dashboard theme
Open Settings, Theme and choose your accent, background and radius.
Pick a scheme
Leave auto alone, or force light or dark with the theme option.
Override what is left
Use appearance for one widget or your stylesheet for all of them.
Check both modes
Look at the error, declined and cast vote states in light and in dark.
What each appearance key sets
Fourteen keys go in the appearance option, and a key you leave out keeps the value in the last column.
The first nine are colors and the rest are sizes, a font and a width.
| Key | What it sets | When you leave it out |
|---|---|---|
| accent | The accent color of buttons and highlights | Your board's accent |
| accentText | Text on the accent color | Black or white, whichever reads on the accent |
| bg | The widget background | Your board's background |
| cardBg | The background of a card | Your board's card background |
| border | The lines around cards and between rows | Your board's border color |
| borderControl | The border of small controls | Mixed from the border and the text color |
| text | Titles and body text | Your board's text color |
| textSecondary | Descriptions and secondary text | Your board's secondary text color |
| danger | Errors and a declined request | #c54e58 in light and #f57e84 in dark |
| radius | The corner radius | Your board's radius |
| space | The gap between parts | 8px |
| font | The font family | The font of your page |
| fontSize | The base text size | 13px |
| changelogWidth | The widest a release note grows | 760px |
A short brand checklist
Match four things before you ship: the accent color of your buttons, the corner radius of your cards, the font of your page and the background in both modes. Each is one value in the widget options or in your own CSS.
Check the widget on your busiest page in both modes and at phone width, since a color that reads well on white can fail on dark.
What to know before you restyle it
- These options belong to the web embed script. The Swift package has its own theme.
- Values set with appearance apply to both palettes, so set a background per mode in your own CSS.
- The font is inherited from your page, not taken from your board's theme.
- The Powered by VoteFirst line belongs to the Free plan, and both paid plans remove it.
What developers ask about widget theming
Does the widget follow my dashboard colors?
Yes. Change them under Settings, Theme and every page embedding the board follows on its next load.
Does it follow the visitor's dark mode setting?
It follows your page's color scheme. A page that declares both lets the system setting decide.
How is dark or light forced?
Pass theme as dark or light in the widget's options.
Which font does the widget use?
The font of the page it sits in. A theme's font family does not travel to your site.
Why does my stylesheet have no effect?
The selectors match, so the later rule wins. Load your rules after votefirst.css.
Can a vote that was already cast be styled?
Yes. That vote control carries aria-pressed set to true.
Can the styling be turned off entirely?
Yes, by leaving votefirst.css out of your page. Passing appearance as false only drops your board's colors and keeps the stylesheet's defaults.
What does it cost?
Free holds one project and 100 votes. Past that, a themed widget runs on Lite at $9/mo or Pro at $39/mo, after a 14 day trial with no card.
More ways to add a board
More on the widgets and how they look.
Make it look like yours
Start free: one project, 100 votes. When a themed widget outgrows it, Lite is $9/mo and Pro is $39/mo, each after a 14 day trial with no card.