-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some initial instructions to get the theme up and running on your…
… project
- Loading branch information
1 parent
160cc9a
commit c041c78
Showing
3 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
# Bixal USWDS Drupal base theme | ||
|
||
@TODO document the process to create a new child theme from the starter_theme. | ||
|
||
## Install base theme by modifying composer.json file | ||
Add bixal/bixaluswds to `repositories` object. | ||
``` | ||
{ | ||
"type": "package", | ||
"package": { | ||
"name": "bixal/bixaluswds", | ||
"version": "1.0", | ||
"type":"drupal-theme", | ||
"source": { | ||
"url": "https://github.com/Bixal/bixaluswds.git", | ||
"type": "git", | ||
"reference": "v0.0.0" | ||
} | ||
} | ||
} | ||
``` | ||
Run `lando composer install` | ||
|
||
## Initialize child theme using drupal theme generate function | ||
Determine what theme name you want to use in this example we are using `my_new_theme`. | ||
First create a `custom` directory in `themes` directory if there isn't one `mkdir web/themes/custom`. | ||
``` | ||
lando php web/core/scripts/drupal generate-theme --starterkit starter_theme my_new_theme --path themes/custom | ||
lando drush cr | ||
``` | ||
|
||
## Remove these lines from your custom theme info file | ||
``` | ||
hidden: true | ||
starterkit: true | ||
``` | ||
|
||
## Install the theme dependencies and set your custom theme as the default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters