Results 1 to 2 of 2

Thread: Theme replace vars

  1. #1
    Sencha User
    Join Date
    Apr 2014
    Posts
    100
    Answers
    10

    Default Theme replace vars

    They together,

    I made my own theme.

    I defined variables in the Component.scss and use them in all my classes.

    Now I want to base my secound theme on the first one only replacing the variables. But it is not working, it uses the old colors and not the new ones.

    e.g.:

    Theme 1: Component.scss
    Code:
    $base_color: red
    Theme1: Panel.scss
    Code:
    .my-class{
         background-color: $base_color;
    }
    Theme 2: Component.scss
    Code:
    $base_color: green;
    If I build the secound theme the backgorundcolor of -my-class is still red.

    Can anyone help me please? Thanks!

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006
    Answers
    5

    Default

    Hello there- I have shared this with our support team and asked them to reach out to you to provide some assistance. Thank you for your patience!

    Michele

Similar Threads

  1. Replies: 0
    Last Post: 6 Mar 2016, 11:43 AM
  2. Replies: 2
    Last Post: 26 Oct 2015, 10:57 AM
  3. Replies: 2
    Last Post: 26 Nov 2014, 11:22 AM
  4. CMD 3.1.2.342 theme package issue using vars
    By hschaefer123 in forum Sencha Cmd
    Replies: 0
    Last Post: 2 Jul 2013, 7:55 AM
  5. CSS Vars
    By pconley312 in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 2 Apr 2012, 4:34 AM

Tags for this Thread

Posting Permissions

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