···11 name: 'theme-generator',
12 transform(code, id) {
13 if (id.endsWith('app.css')) {
014 // Read the theme file and replace the contents of app.css with it
15 // Needs full path to the file
16 const themeCode = Deno.readTextFileSync(Deno.cwd() + '/src/themes/' + themeFile);
···1819 // and add a comment at the top
20 const themeComment = `/* Generated from ${themeFile} */\n`;
21- const themeCodeWithComment = themeComment + themeCode;
22 // Return the theme code as the new contents of app.css
23 return {
24 code: themeCodeWithComment,
···11 name: 'theme-generator',
12 transform(code, id) {
13 if (id.endsWith('app.css')) {
14+ const colorsCode = Deno.readTextFileSync(Deno.cwd() + '/src/themes/colors.css');
15 // Read the theme file and replace the contents of app.css with it
16 // Needs full path to the file
17 const themeCode = Deno.readTextFileSync(Deno.cwd() + '/src/themes/' + themeFile);
···1920 // and add a comment at the top
21 const themeComment = `/* Generated from ${themeFile} */\n`;
22+ const themeCodeWithComment = themeComment + colorsCode + themeCode;
23 // Return the theme code as the new contents of app.css
24 return {
25 code: themeCodeWithComment,