Results 1 to 2 of 2

Thread: Problems when trying to create a new theme

  1. #1
    Sencha User
    Join Date
    Nov 2016
    Posts
    2
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: Problems when trying to create a new theme

    Hello everybody,

    I have some problems generating a new theme in my app. I have an application that uses ExtJS 5.1.1 and some old themes generated with Sencha Cmd 5.0.2.270.
    Now I'm trying to create a new theme using Sencha Cmd version: 6.0.2.14. So, I followed these steps to create the new theme:
    - runned the generate command:
    Code:
    sencha generate theme theme-name
    - changed the "extend" config from package.json so that it extends one of my custom themes;
    - runned
    Code:
    sencha package build
    from the theme directory.

    This way, the generated css file is empty.

    Next, I tried to remove the sass config (also the toolkit) from package.json:

    Code:
    "sass" : {
        "namespace": "Ext",
        "etc": "${package.dir}/sass/etc/all.scss,${package.dir}/${toolkit.name}/sass/etc/all.scss",
        "var": "${package.dir}/sass/var,${package.dir}/${toolkit.name}/sass/var",
        "src": "${package.dir}/sass/src,${package.dir}/${toolkit.name}/sass/src"
    },
    
    "toolkit": "${args.toolkit}"
    This way, my theme contains all the rules from the parent theme BUT no rules from the current theme (I've added Component.scss in sass/src and sass/var with some variables and rules).

    This is how the package.txt looks for one of my old themes (which works just fine).
    Doing the exact same thing for the new theme is not working.

    Is there any configuration that I need to change?
    Do you have any ideas?

    Thank you very much!

  2. It seems that adding this configuration to the package.json works just fine:

    Code:
    "sass": {
        "namespace": "Ext"
    }
    This thread can be closed. Thanks!

  3. #2
    Sencha User
    Join Date
    Nov 2016
    Posts
    2
    Answers
    1
    Vote Rating
    0
      0  

    Default

    It seems that adding this configuration to the package.json works just fine:

    Code:
    "sass": {
        "namespace": "Ext"
    }
    This thread can be closed. Thanks!

Similar Threads

  1. Can NOT create a new theme on OS X with V 1.3.0.51
    By blomasky in forum Sencha Themer
    Replies: 6
    Last Post: 13 Mar 2018, 8:51 AM
  2. Can not create a new theme
    By sephiroth82 in forum Sencha Themer
    Replies: 3
    Last Post: 14 Mar 2017, 10:09 AM
  3. Replies: 5
    Last Post: 3 Mar 2014, 6:29 PM
  4. How to create a GXT theme?
    By abshnasko in forum Sencha GXT Discussion
    Replies: 6
    Last Post: 22 May 2012, 1:49 AM
  5. How to create other theme
    By mayoris in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 9 May 2007, 9:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •