This feature is available only on some Shorthand plans. To discuss adding this feature, please get in touch.
Shorthand has the ability for users with web development proficiency to extend and override the CSS.
CSS can be added to the CSS panel located at the top of the story editor:
Please note: Do not include <style></style> tags when adding CSS to the CSS panel.
If you're building a Shorthand Project and want to apply the same CSS to all stories in the Project, you can add it to the CSS field under the Project settings:
Note: CSS added to the Project settings will not be reflected in the story editor for the stories within the Project; it will only be applied to the preview and published versions of the stories.
You may also add CSS via <style></style> tags added inside of HTML blocks in the body of stories, or to the Custom <HEAD> field under the story Settings panel.
If you have a bespoke branded theme and would like your CSS added to the theme so that it applies to all stories, then please contact us to discuss.
We've listed some tips and examples of custom CSS in Shorthand here, however the suggested approach for all CSS configuration is to use a development tool, such as the Developer Tools Inspector within Google Chrome, to identify the appropriate CSS selectors and the current values within your Shorthand story. Generally, you should stick to only overriding selectors prefixed with Theme- because other selectors may change in the future.
We generally recommend writing and editing your code in a dedicated code editor (such as Visual Studio Code) and pasting into Shorthand. This is often more efficient and can provide better formatting and debugging options.


