Getting Started
Installing and setup of Radix
Last updated
Was this helpful?
Installing and setup of Radix
Last updated
Was this helpful?
Download and enable the Radix theme:
Create a sub-theme using Drush (Considering you are using drupal/recommended-project):
Note that SUBTHEME_NAME
is the name of the theme you'll be working with, make sure ideally the name is in lowercase letters.
Note the path in the --include
flag, if your Drupal is installed in web
directory following core-recommended
project, it's fine, otherwise if you are using anything else like docroot
change it accordingly.
Once you've run the radix:create
command you'd be shown a caveat as shown below that walks you through the next steps:
Set the default theme to your newly created theme:
Go to the newly created theme directory:
Switch to the appropriate node version using nvm
:
If you don't have the specific node version required by the theme you'll be shown a message like below:
nvm use Found 'radix/web/themes/custom/SUBTHEME_NAME/.nvmrc' with version <lts/iron> N/A: version "lts/iron -> N/A" is not yet installed.
You need to run nvm install lts/iron to install it before using it.
Run nvm install lts/iron
to make sure you have the latest LTS version of node 20 installed.
Install the required packages:
In the root of the theme, create a copy of the .env.example
and rename it to .env.local
:
Update the DRUPAL_BASE_URL
variable in your .env.local
to point to your localhost address (this file is .gitignored by default to avoid conflicts)
- e.g. myproject.local
or myproject.ddev.site
For the development phase:
For the production phase: