Re: [Tiki-devel] Creating custom theme

Gary Cunningham-Lee <gary_c-39LOpZwlz1/[email protected]> Mon, 2 Jun 2025 04:06:46 +0900
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi,

Is your _custom/ path to mytheme.scss like this: 
_custom/shared/themes/mytheme/css/mytheme.scss ?

-- Gary

On 5/31/2025 2:13 AM, Karsten Wemheuer via TikiWiki-devel wrote:
> Hi,
>
> I noticed something strange. The URL for the CSS file is in the Firefox
> Console:
>
> /public/generated/_custom/shared/themes/mythemecss/mytheme.css
>
> That leads to an 404, and the CSS is not loaded. The attached "css" in
> the path seems to be wrong.
>
> Where is my mistake?
>
> Thanks in advance
>
> Best regards
>
> Karsten
>
> Am Freitag, dem 30.05.2025 um 18:02 +0200 schrieb Karsten Wemheuer via
> TikiWiki-devel:
>> Hi,
>>
>> thanks for answering.
>>
>> I now put my mytheme.scss file in the
>> _custom/shared/themes/mytheme/css/ directory. But this does not
>> change
>> the generation process: running the "npm run watch" the file
>> mytheme.scss is compiled to mytheme.css only in public directory. Is
>> this correct?
>>
>> Wht to do if going to production: Should I take the public directory
>> tree or the _custom or both?
>>
>> Still a little bit confused...
>>
>> -- Karsten
>>
>>
>> Am Freitag, dem 30.05.2025 um 20:44 +0900 schrieb Gary Cunningham-
>> Lee:
>>> Hi,
>>>
>>> Copying the CSS file to the css directory shouldn't be necessary.
>>> Just
>>> to be sure, is your mytheme.scss in mytheme/scss/ or in
>>> mytheme/css?
>>> In
>>> the new build system, this file should be in the mytheme/css
>>> directory.
>>>
>>> I see now that the themes.tiki.org page shows that the custom theme
>>> has
>>> a templates directory, but I think this might not be correct.
>>> Custom
>>> template files should be in _custom/shared/templates. I don't think
>>> theme-specific template files are supported.
>>>
>>> -- Gary
>>>
>>> On 5/30/2025 6:54 PM, Karsten Wemheuer via TikiWiki-devel wrote:
>>>> Hi,
>>>> I want to create a custom theme in the new directory structure
>>>> for
>>>> a
>>>> tiki 27 installation.
>>>>
>>>> I created the structure unter _custom as described on
>>>> https://themes.tiki.org/Making+or+Updating+a+Theme+for+Tiki+27+and+Newer+Versions
>>>>
>>>> I created a sccs-file an the npm run watch compiled it to the
>>>> directory
>>>> public/generated/_custom/shared/themes/mytheme/scss/mytheme.css
>>>>
>>>> On the Look&Feel page the new theme doesn't show up. I have to
>>>> manually
>>>> copy the created css file to _custom/shared/themes/mytheme/css.
>>>> Is
>>>> this
>>>> the correct way to work?
>>>>
>>>> Another question regards the layout files like layout_view.tpl.
>>>> Where
>>>> should I place this file?
>>>>
>>>> Thanks in advance!
>>>>
>>>> Best regards
>>>>
>>>> Karsten
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> TikiWiki-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>>
>>> _______________________________________________
>>> TikiWiki-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel