DEV: Plugins can extend color definitions (#10383)

This commit is contained in:
Penar Musaraj
2020-08-06 09:46:17 -04:00
committed by GitHub
parent 6fdc711b4a
commit 87e2c9de24
8 changed files with 58 additions and 2 deletions

View File

@ -19,6 +19,10 @@ module Stylesheet
filename = "#{asset}.scss"
path = "#{Stylesheet::Common::ASSET_ROOT}/#{filename}"
file = File.read path
if asset.to_s == Stylesheet::Manager::COLOR_SCHEME_STYLESHEET
file += Stylesheet::Importer.import_color_definitions
end
end
compile(file, filename, options)