src/_plugins/theming.rb
def create_scss_theme(src, color)
  mainfile = "#{src}/theme/style_#{color}.scss"
  if ! File.file?(mainfile)
    File.open(mainfile, 'w') { |file| file.write(<<-EOT
---
---

$primary-color: ##{color};

@import "_main.scss";
EOT
) }
    puts(mainfile)
  end
end
# Create an SCSS theme with this color as the $primary-color variable.
#
# This will be picked up by the SCSS processor for the site, and cause
# the creation of a CSS theme with this as the primary color.
Create an SCSS theme with this color as the $primary-color variable.
This will be picked up by the SCSS processor for the site, and cause
the creation of a CSS theme with this as the primary color.
Create an SCSS theme with this color as the $primary - color variable . This will be picked up by the SCSS processor for the site and cause the creation of a CSS theme with this as the primary color .
def create_scss_theme(src, color)
  mainfile = "#{src}/theme/style_#{color}.scss"
  if ! File.file?(mainfile)
    File.open(mainfile, 'w') { |file| file.write(<<-EOT
---
---
$primary-color: ##{color};
@import "_main.scss";
EOT
) }
    puts(mainfile)
  end
end
def create_scss_theme ( src , color ) mainfile = "#{src}/theme/style_#{color}.scss" if ! File . file? ( mainfile ) File . open ( mainfile , 'w' ) { | file | file . write ( <<-EOT 
---
---

$primary-color: # #{ color } ;

@import "_main.scss";
 EOT ) } puts ( mainfile ) end end
Create an SCSS theme with this color as the $primary-color variable.
Create an SCSS theme with this color as the $primary - color variable .
src
color