fbpx

Stay Home & Grab 20% Discount COVID19Grab Now

Welcome, Guest
Username: Password: Remember me

TOPIC: New variable in Sass Overrides

New variable in Sass Overrides 1 month 3 weeks ago #21177

  • isrion
  • isrion's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
1. How do I make my $mynewcolor variable in custom.scss available for use in Sass Overrides in Theming?
2. How can'i use variable $primary from Sass Overrides in astroid template settings in my custom.scss? $primary is working, but not with data from Sass Overrides.
The administrator has disabled public write access.

New variable in Sass Overrides 1 month 3 weeks ago #21219

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 3593
  • Thank you received: 551
  • Karma: 96
Hello,

Replied in order

1. Use this syntax. $mynewcolor : #c6538c;. For more information. Please follow the link. sass-lang.com/documentation/variables
2. Couldn't understand it. Please explain with more details.

Stay Home, Stay Safe

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.

New variable in Sass Overrides 1 month 3 weeks ago #21224

  • isrion
  • isrion's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
Hi, thank you for your answer.

1. Yes I know but I want to use this variable in template options. See attachment - 1.
2. I would like to use a variable $primary or $mynewcolor (see atachment - 2) in my file custom.scss (see atachment - 3)
Attachments:
The administrator has disabled public write access.

New variable in Sass Overrides 1 month 3 weeks ago #21266

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 3593
  • Thank you received: 551
  • Karma: 96
Hello,

You cann't create new variable through template option. You can override the sass variables (According to title.)
So, you have to create the new veriable in stylesheet.

Thanks,
Chandan
Attachments:
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.307 seconds