Hello,

I am using Radix as the base theme.
I have created subtheme of radix. In config.json, I have added the required
path.
my structure is :
a) themes/contrib/radix
b) themes/custom/sg_filtration

No issue in gulpfile.js and browser console

I am trying to use all the bootstrap css but it not taking those css. Could
you please help me.
Correct me if I am doing anything wrong in creating subtheme.

I have modified the gulpfile.js and passed the hard-coded path. Here is my gulpfile.js and config.json

Below is my config.json :

{
  "name": "sg_filtration",
  "description": "A theme based on Radix.",
  "proxy" : "http://drupal8-filtration/",
  "bowerDir": "../sg_filtration/bower_components",
  "css": {
    "file" : "sg_filtration.style.scss",
    "src": [
      "../assets/scss/**/*.scss"
    ],
    "dest": "../sg_filtration/assets/css",
    "includePaths": [
      "../sg_filtration/bower_components/bootstrap-sass/assets/stylesheets",
      "../sg_filtration/bower_components/font-awesome/scss",
      "../contrib/radix/scss"
    ]
  },
  "js": {
    "file" : "sg_filtration.script.js",
    "src": [
      "../sg_filtration/assets/js/**/*.js"
    ]
  },
  "images": {
    "src": [
      "../sg_filtration/assets/images/**/*"
    ],
    "dest": "../sg_filtration/assets/images/"
  },
  "fonts": {
    "src": [
      "../sg_filtration/bower_components/font-awesome/fonts/**.*"
    ],
    "dest": "./assets/fonts/"
  }
}

Assets folder structure png attached.

I think there is some issue related to path. Please help.

CommentFileSizeAuthor
#4 radix-2981814.png559.94 KBshadcn
assets_structure.png57.62 KBdinesh18
gulpfile.js.txt2.16 KBdinesh18

Comments

Dinesh18 created an issue. See original summary.

dinesh18’s picture

Issue summary: View changes
dinesh18’s picture

Issue summary: View changes
shadcn’s picture

StatusFileSize
new559.94 KB

@Dinesh18 here's a sample config.json file for a gafsp subtheme. You only need to update one line. Everything else stays the same. (Note the placement of radix and the subtheme).

config.json

dinesh18’s picture

Thanks Arshad.

I should Follow all the commands mentioned below

Quick start for Drupal 8
Download and enable radix: drush dl radix; drush en radix -y; drush config-set system.theme default radix -y

Create a subtheme: drush cc drush; drush radix "SUBTHEME NAME"

Set default theme: drush en SUBTHEME_NAME -y; drush config-set system.theme default SUBTHEME_NAME -y

Install required modules: cd /path/to/subtheme; npm run setup

Update proxy in /path/to/subtheme/config.json

Watch: gulp

Will these commands automatically create the contrib and custom folder as well ?

shadcn’s picture

IIRC drush does not create the contrib and custom folders. But you can create them manually and then run the commands.

If you don't want contrib and custom folders and want to put your themes in the themes folder then you don't need update that line either. It will just be: ../radix/scss.

dinesh18’s picture

Thanks Arshad. :)
I will try with the contrib and custom folder as per the Drupal standards.

dinesh18’s picture

It worked. Thanks a lot :)

shadcn’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.