WP Manifestindependent plugin directory
manifest / themes / wordpress-helfi-hds-wp

WordPress Helsinki

HDS styles, assets and blocks. Integrations to plugins and Helsinki APIs.

★ 1stars
3.4.2latest · 27d ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/city-of-helsinki/wordpress-helfi-hds-wp/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Wordpress Helsinki HDS

Imports Helsinki Design System styles, assets and blocks into Wordpress. Applies integrations to various plugins.

Recommended to be used with Helsinki Theme.

Features

Blocks

The plugin provides various custom blocks styled according to Helsinki Design System.

The blocks are configured with block.json files found in config/blocks and loaded by class/Block.php module.

The plugin disables certain native, 3rd party, and custom blocks in certain contexts. These are configured in config/blocks/disallowed-blocks.php. The list of disabled blocks is filterable with helsinki_wp_disallowed_blocks;

HDS React

The plugin registers helsinki-wp-hds-react script handle with react, react-dom and lodash dependencies. Currently the only supported component is HDS DateInput.

Additional dependencies can be attached to the script with helsinki_wp_add_hds_react_dependency action.

do_action( 'helsinki_wp_add_hds_react_dependency', '{handle}' )

The registered script is enqueued by executing helsinki_wp_enqueue_hds_react action.

do_action( 'helsinki_wp_enqueue_hds_react' )

The HDS React components are loaded by adding data-hds-react="{Component Name}" attribute to a HTML element. Configuration for the component is provided with data-hds-component="{JSON}" attribute containing JSON.

sprintf(
  '<span data-hds-react="DateInput" data-hds-component="%1$s"></span>',
  htmlspecialchars( json_encode( array( 'key' => 'value' ) ), ENT_QUOTES, 'UTF-8' )
)

Dependencies

Required

  • None

Recommended

Integrations

Integrations can be found within /integrations. Script extending behaviour can be found within /src.

Installation

Upload plugin to site and activate it. If used alongside Helsinki Theme all features will be activated automatically upon plugin activation.

With other themes, you will have to specify theme supports to enable desired features:

add_theme_support(
    'hds-wp',
    array(
        'assets' => array(
            'scripts' => true,
            'styles' => true,
            'fonts' => true,
            'favicon' => true,
        ),
        'widgets' => true,
        'blocks' => true,
        'cpt' => array(
            'faq' => true,
        ),
    )
);

Development

Assets

(S)CSS and JS source files are stored in /src. Asset complitation is done with Gulp and the processed files can be found in /assets.

Install dependencies with npm install. Build assets with gulp scripts and gulp styles or watch changes with gulp watch.

Collaboration

Raise issues for found bugs or development ideas. Feel free to send pull requests for bugfixes and new or improved features.

License

This plugin is licensed under GPLv3. See LICENSE for the full license text.

Helsinki Grotesk Font License

The Helsinki Grotesk font license is domain specific. All subdomains of hel.fi are licensed to use the font. If you will be using this plugin on a site that is not a subdomain of hel.fi, you will need to purchase a license for the font. See Camelot Typefaces for more information.

Releases

Newest 25 of 60 recorded releases.

Tag
Published
3.4.2 latest
Oct 7, 2026 27d ago
Sep 18, 2026 1mo ago
Sep 4, 2026 2mo ago
Jun 11, 2026 4mo ago
Jun 11, 2026 4mo ago
Jun 4, 2026 5mo ago
May 15, 2026 5mo ago
Apr 30, 2026 6mo ago
Apr 28, 2026 6mo ago
Apr 28, 2026 6mo ago
Apr 1, 2026 7mo ago
Apr 1, 2026 7mo ago
Feb 18, 2026 8mo ago
Dec 12, 2025 10mo ago
Nov 7, 2025 12mo ago
Nov 6, 2025 12mo ago
Oct 16, 2025 1 year ago
Oct 1, 2025 1 year ago
Sep 23, 2025 1 year ago
Sep 15, 2025 1 year ago
Mar 19, 2025 1 year ago
Mar 1, 2025 1 year ago
Jan 16, 2025 1 year ago
Dec 4, 2024 1 year ago
Apr 12, 2024 2 years ago
All releases on GitHub →

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.