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.
Comments
Comment #2
dinesh18 commentedComment #3
dinesh18 commentedComment #4
shadcn commented@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).
Comment #5
dinesh18 commentedThanks Arshad.
I should Follow all the commands mentioned below
Will these commands automatically create the contrib and custom folder as well ?
Comment #6
shadcn commentedIIRC 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.Comment #7
dinesh18 commentedThanks Arshad. :)
I will try with the contrib and custom folder as per the Drupal standards.
Comment #8
dinesh18 commentedIt worked. Thanks a lot :)
Comment #9
shadcn commented