tailwind-styled-v4 5.0.35 → 5.0.36

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.
package/dist/cli.js CHANGED
@@ -8843,10 +8843,11 @@ async function validateThemeConfig(cwd2) {
8843
8843
  const configModule = await import(configUrl.href);
8844
8844
  const config = configModule.default || configModule;
8845
8845
  const theme = config.theme || {};
8846
- if (theme.colors && native.validateColorsNapi) {
8846
+ const validateColors = native.validateColorsNapi;
8847
+ if (theme.colors && typeof validateColors === "function") {
8847
8848
  try {
8848
8849
  const colorsJson = JSON.stringify(theme.colors);
8849
- const isValid = native.validateColorsNapi(colorsJson);
8850
+ const isValid = validateColors(colorsJson);
8850
8851
  results.push({
8851
8852
  type: "theme-colors",
8852
8853
  valid: isValid,
@@ -8860,10 +8861,11 @@ async function validateThemeConfig(cwd2) {
8860
8861
  });
8861
8862
  }
8862
8863
  }
8863
- if (theme.screens && native.validateBreakpointsNapi) {
8864
+ const validateBreakpoints = native.validateBreakpointsNapi;
8865
+ if (theme.screens && typeof validateBreakpoints === "function") {
8864
8866
  try {
8865
8867
  const screensJson = JSON.stringify(theme.screens);
8866
- const isValid = native.validateBreakpointsNapi(screensJson);
8868
+ const isValid = validateBreakpoints(screensJson);
8867
8869
  results.push({
8868
8870
  type: "theme-breakpoints",
8869
8871
  valid: isValid,
@@ -8877,9 +8879,10 @@ async function validateThemeConfig(cwd2) {
8877
8879
  });
8878
8880
  }
8879
8881
  }
8880
- if (native.runHealthCheck) {
8882
+ const runHealthCheck = native.runHealthCheck;
8883
+ if (typeof runHealthCheck === "function") {
8881
8884
  try {
8882
- native.runHealthCheck();
8885
+ runHealthCheck();
8883
8886
  results.push({ type: "theme-integrity", valid: true, message: "Theme integrity check passed" });
8884
8887
  } catch {
8885
8888
  results.push({ type: "theme-integrity", valid: false, message: "Theme integrity check failed" });