Skip to content

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

License

Notifications You must be signed in to change notification settings

City-of-Helsinki/wordpress-helfi-hds-wp

Repository files navigation

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.

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published