lapikit 0.0.0-insiders.e94247e → 0.0.0-insiders.ee9a471

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.
@@ -4,11 +4,11 @@ export async function stylesFormatter({ styles }) {
4
4
  for (const [name, values] of Object.entries(styles)) {
5
5
  if (values && typeof values === 'object') {
6
6
  for (const [styleName, styleValue] of Object.entries(values || {})) {
7
- css += ` --system-${name}-${styleName}: ${parserValues(styleValue)};\n`;
7
+ css += ` --prism-${name}-${styleName}: ${parserValues(styleValue)};\n`;
8
8
  }
9
9
  }
10
10
  else {
11
- css += ` --system-${name}: ${parserValues(values)};\n`;
11
+ css += ` --prism-${name}: ${parserValues(values)};\n`;
12
12
  }
13
13
  }
14
14
  return (css += '}\n');
@@ -5,7 +5,7 @@ export async function themesFormatter({ themes, defaultTheme = 'light' }) {
5
5
  let css = '';
6
6
  for (const [name, values] of Object.entries(themes)) {
7
7
  const ref = values?.dark ? preset.theme.themes.dark : preset.theme.themes.light;
8
- let cssTheme = defaultTheme === name ? `:root,\n.l-theme-${name} {\n` : `.l-theme-${name} {\n`;
8
+ let cssTheme = defaultTheme === name ? `:root,\n.${name} {\n` : `.${name} {\n`;
9
9
  // colors
10
10
  cssTheme += ` color-scheme: ${values?.dark ? 'dark' : 'light'};\n`;
11
11
  for (const [varName, varValue] of Object.entries(deepMerge(ref.colors, values?.colors) || {})) {
@@ -15,11 +15,11 @@ export async function themesFormatter({ themes, defaultTheme = 'light' }) {
15
15
  for (const [name, varValue] of Object.entries(deepMerge(ref.variables, values?.variables) || {})) {
16
16
  if (varValue && typeof varValue === 'object') {
17
17
  for (const [variableName, variableValue] of Object.entries(varValue || {})) {
18
- cssTheme += ` --l-theme-${name}-${variableName}: ${parserValues(variableValue)};\n`;
18
+ cssTheme += ` --kit-${name}-${variableName}: ${parserValues(variableValue)};\n`;
19
19
  }
20
20
  }
21
21
  else {
22
- cssTheme += ` --l-theme-${name}: ${parserValues(varValue)};\n`;
22
+ cssTheme += ` --kit-${name}: ${parserValues(varValue)};\n`;
23
23
  }
24
24
  }
25
25
  css += cssTheme + '}\n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lapikit",
3
- "version": "0.0.0-insiders.e94247e",
3
+ "version": "0.0.0-insiders.ee9a471",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"