4

everybody I am new in extjs. I am using extjs 4.2.1. and there is one new tab "CSS Vars" in ExtJS docs. but I can't set that variables config in normal way. Can anyone suggest me how to change default CSS behavior of extjs (4.2.1) using CSS vars ?

for example I want to set back-ground color of panel using $panel-body-background-color. then how can I set in panel config ? I am getting error in following peace of code.

xtype:'panel',
border:true,
$panel-body-background-color : 'black'
Vishal Zanzrukia
  • 4,902
  • 4
  • 38
  • 82

2 Answers2

2

here you will get everything you need to know how to use css variables and extjs themeing. https://github.com/Scorpie/Ext.ux.BrowserCheck/blob/master/extjs-4.1.0/docs/guides/theming/README.md

Naresh Tank
  • 1,569
  • 10
  • 23
0

The CSS variables are not for use in this manner, they are used in the SASS process. Check out the ExtJS docs for more info on how to use this: http://docs.sencha.com/extjs/4.2.1/#!/guide/theming

kevhender
  • 4,285
  • 1
  • 13
  • 16