Hi
I would like to include custom my theme using the scss files. Compilation to css is done using webpack (Laravel Mix). What exactly do I need to copy over from the designer folder (apart from the contents of /mytheme)? I thought theme.scss is the main file / entry point for compilation.
Include in project using SCSS / Webpack
-
- Posts: 560
- Joined: 23 Oct 2020, 09:28
Hi,
When compilation is done, you could copy the compilated theme.css.
Regards,
When compilation is done, you could copy the compilated theme.css.
Regards,
-
- Posts: 24
- Joined: 11 Jan 2022, 10:54
Thanks for your reply, but I don't want to include the compiled css. I want to compile it myself in order to be able to use the variables in my Vue components etc.
What beside the files in /mytheme must I include in the theme.scss? I guess the scss for all the components - but how?
What beside the files in /mytheme must I include in the theme.scss? I guess the scss for all the components - but how?
-
- Posts: 560
- Joined: 23 Oct 2020, 09:28
You need to copy the /mythemes and import it in the main file and add a sass command or just run a commend on the console according to your usage.
Regards,
Regards,
-
- Posts: 24
- Joined: 11 Jan 2022, 10:54
Hmm, but if I compile theme.scss:
I'm still missing most of the css and I still have to include theme.css in my page.
I want to combine / compile theme.scss and theme.css to one css file.
Code: Select all
@import './variables';
@import './_fonts';
@import './_extensions';
I want to combine / compile theme.scss and theme.css to one css file.
-
- Posts: 24
- Joined: 11 Jan 2022, 10:54
Ah I see this is where all the other stuff is coming from:
So it is not recommended to copy over all the stuff in designer to the project and compile it there?
Code: Select all
@import '../../designer/_components';
-
- Posts: 560
- Joined: 23 Oct 2020, 09:28
So you could compile the designer-vue and link to your project.
Thanks,
Thanks,
-
- Posts: 24
- Joined: 11 Jan 2022, 10:54
Yes that would be an alternative. But I like how flexible I am with compiling all the designer class on the fly / within the project.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
Has this issue been resolved?
Best Regards,
Has this issue been resolved?
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Posts: 24
- Joined: 11 Jan 2022, 10:54
Hi, thanks for your reply.
Sort of - I copied all the designer files into my project and compile it with all the other SCSS in my app. Super flexibel but not really "updateable".
Sort of - I copied all the designer files into my project and compile it with all the other SCSS in my app. Super flexibel but not really "updateable".
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests