Giter VIP home page Giter VIP logo

shila-drupal-theme's Introduction

Shila theme for Drupal 8

An Atomic Design and Pattern Lab friendly starting point for new Drupal 8 themes.

A Pattern Lab generated style guide can be found here (online style guide might not be up to date).

Background

This theme is not meant to be usable as is. It is meant to be a starting point for development of new themes.

This theme is also meant to demonstrate Drupal template compatibility and Pattern Lab integration made possible by the Drupal Edition of Pattern Lab and Data Transform Plugin. For this reason many templates in the theme are actually unmodified Drupal Stable base theme templates.

Installing required dependencies

Component Libraries module

Install and enable the Component Libraries module. No configuration is needed.

Installing development dependencies

Prerequisites: npm installed.

In the Shila theme root directory run:

npm install

Integrating with Pattern Lab

Prerequisites: git and Composer installed.

In the Shila theme root directory run:

git clone https://github.com/pattern-lab/edition-php-drupal-standard pattern-lab

In the pattern-lab directory run:

composer install

In the file pattern-lab/config/config.yml change sourceDir and twigAutoescape like so:

sourceDir: ../dist
twigAutoescape: false

If everything went well you should now be able to generate the static Pattern Lab site. In the pattern-lab directory run:

php core/console --generate

shila-drupal-theme's People

Contributors

aleksip avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.