Drupal is a registered trademark of Dries Buytaert
drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.14 Minor update available for module linkit (7.0.14). masquerade 8.x-2.2 Minor update available for module masquerade (8.x-2.2). video_embed_field 3.1.0 Minor update available for module video_embed_field (3.1.0). bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). editoria11y 3.0.0 Major update available for module editoria11y (3.0.0). trash 3.0.27 Minor update available for module trash (3.0.27). twig_tweak 4.0.0-alpha2 New alpha version released for module twig_tweak (4.0.0-alpha2). twig_tweak 4.0.0-alpha1 First alpha version released for module twig_tweak (4.0.0-alpha1). node_revision_delete 2.1.1 Minor update available for module node_revision_delete (2.1.1). commerce_paypal 2.1.2 Minor update available for module commerce_paypal (2.1.2).

nys_ds

2 sites No security coverage
View on drupal.org

Overview

This module's purpose is to provide an easy way to incorporate components from the NYS Design System into existing Drupal websites or new Drupal websites which feature a traditional frontend using a traditional theme. This module isn't intended for use with detached frontends/SPAs; for that you should simply include the entire design system as a part of your project.

Methodology

The NYSDS Libraries module uses Drupal's built-in component registration system to create template references developers can use to incorporate NYSDS components into their Drupal website. We have extensive documentation on our reasoning behind this methodology.

Using the component templates

Here's an example of incorporating the alert component on a block template:

{% set alertTypeLabel = fields.field_alert_type.content %}
{% if alertTypeLabel == 'Warning' %}
  {% set alertType = "danger" %}
  {% set alertIcon = "warning" %}
{% elseif alertTypeLabel == 'Information'  %}
  {% set alertType = "warning" %}
  {% set alertIcon = "info" %}
{% endif %}
{% set alertLabel = fields.field_alert_label.content %}
{% include 'nys_ds:alert' with {
    type: alertType,
    icon: alertIcon,
    heading: alertLabel,
    text: fields.field_alert_message.content,
    primaryLabel: alertTypeLabel
  }
%}

Please review our documentation for more detailed information on how to incorporate the components into your website, particularly in regards to webform components.

Installing the Module

We recommend installing the version of this module that corresponds to the version of the NYSDS you want to install. Please see our documentation on this topic.

Activity

Total releases
2
First release
Mar 2026
Latest release
1 week ago
Release cadence
35 days
Stability
0% stable

Releases

Version Type Release date
1.15.1-alpha1 Pre-release Apr 15, 2026
1.0.x-dev Dev Mar 11, 2026