@dao-style/core 1.0.0-beta.2 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,10 +101,10 @@ export function renderSCSSAndCSSVariable(data) {
101
101
 
102
102
  return str;
103
103
  });
104
- cssContentList.unshift(':root, :host {');
105
- cssContentList.push('}\n');
106
-
107
- const cssContent = cssContentList.join('\n');
104
+ const cssContent = [
105
+ ':root {', ...cssContentList, '}',
106
+ ':host {', ...cssContentList, '}\n',
107
+ ].join('\n');
108
108
 
109
109
  const scssContentList = values.map((content) => {
110
110
  let str = `$dao-${content.name}: `;
@@ -120,7 +120,7 @@ export function renderSCSSAndCSSVariable(data) {
120
120
  return str;
121
121
  });
122
122
 
123
- scssContentList.push('\n');
123
+ scssContentList.push(undefined);
124
124
  const scssContent = scssContentList.join('\n');
125
125
 
126
126
  return {