diff --git a/src/lib.js b/src/lib.js index 75c79d8..f60e355 100644 --- a/src/lib.js +++ b/src/lib.js @@ -162,16 +162,30 @@ function styleguideTextStyles(context, styles) { -function exportStyleguideColors(context, colors) { - +function comment(context, text) { + return `/* ${text} */`; } -function exportStyleguideTextStyles(context, colors) { +function exportStyleguideColors(context, colors) { + var codeObject = styleguideColors(context, colors); + var code = codeObject.code; + return { + code: code, + filename: "colors.js", + language: "javascript" + }; } -function comment(context, text) { +function exportStyleguideTextStyles(context, textstyles) { + var codeObject = styleguideTextStyles(context, textstyles); + var code = codeObject.code; + return { + code: code, + filename: "fonts.css", + language: "css" + }; } module.exports = {