https://bitbucket.org/NorthCarolinaDigitalServices/eight/commits/branch/feature-d7-theme-port

```
nc_base_theme
│   nc_base_theme.info.yml
│   nc_base_theme.libraries.yml
│   nc_base_theme.theme
│
└───css
│   
└───js
│
└───patterns
│	└───components
│		└───article_card
│		└───cta_card
│		└───full_width
│	
└───preprocess
│   │   paragraphs.inc
│   │   PreprocessEntityWrapper.php
│
└───templates
│	└───block
│	└───content
│	└───layout
│	└───navigation
│	└───paragraph
│	└───tpl.php (copied from D7 nc_base_theme/templates for reference)
```
Header and Main Nav from D7 working in D8!

Set the following in your settings.local.php:

$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';

Create development.service.yml in eight/web/sites:


# Local development services.
# 
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
parameters:
  http.response.debug_cacheability_headers: true
  twig.config:
    debug: true
    auto_reload: true
    cache: false
services:
  cache.backend.null:
    class: Drupal\Core\Cache\NullBackendFactory

I also added a local config split that enables Devel/ Kint.

Set Theme Registry to rebuild on page load via Devel:

Component Usage


We can continue to create these using the same process as before. This is a base theme utilizing the components already created and placed in the nceight theme we have been using.

https://digitalstyle.nc.gov/section-4.html Contains Components to Port

Ported components:

  • Article Card
  • CTA Card
  • Full Width Paragraph