@easybits.cloud/html-tailwind-generator 0.1.4 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easybits.cloud/html-tailwind-generator",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "AI-powered landing page generator with Tailwind CSS — canvas editor, streaming generation, and one-click deploy",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "type": "module",
@@ -1,4 +1,4 @@
1
- import { useRef, useEffect, useCallback, useState, forwardRef, useImperativeHandle } from "react";
1
+ import React, { useRef, useEffect, useCallback, useState, forwardRef, useImperativeHandle } from "react";
2
2
  import type { Section3, IframeMessage } from "../types";
3
3
  import { buildPreviewHtml } from "../buildHtml";
4
4
 
@@ -1,4 +1,4 @@
1
- import { useEffect, useRef, useCallback, useState } from "react";
1
+ import React, { useEffect, useRef, useCallback, useState } from "react";
2
2
  import { EditorView, keymap, lineNumbers, highlightActiveLine, highlightActiveLineGutter, Decoration, type DecorationSet } from "@codemirror/view";
3
3
  import { EditorState, StateField, StateEffect } from "@codemirror/state";
4
4
  import { html } from "@codemirror/lang-html";
@@ -1,4 +1,4 @@
1
- import { useState, useRef, useEffect } from "react";
1
+ import React, { useState, useRef, useEffect } from "react";
2
2
  import { HiSparkles } from "react-icons/hi2";
3
3
  import type { IframeMessage } from "../types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { useRef, useState } from "react";
1
+ import React, { useRef, useState } from "react";
2
2
  import type { Section3 } from "../types";
3
3
  import { LANDING_THEMES, type CustomColors } from "../themes";
4
4
 
package/src/generate.ts CHANGED
@@ -41,7 +41,7 @@ COLOR SYSTEM — CRITICAL (READ CAREFULLY):
41
41
  - The ONLY exception: border-gray-200 or border-gray-700 for subtle dividers.
42
42
  - ALL backgrounds MUST use: bg-primary, bg-primary-dark, bg-surface, bg-surface-alt
43
43
  - ALL text MUST use: text-on-surface, text-on-surface-muted, text-on-primary, text-primary, text-accent
44
- - CONTRAST RULE: on bg-primary or bg-primary-dark → use text-on-primary. On bg-surface or bg-surface-alt → use text-on-surface or text-on-surface-muted. NEVER put text-on-surface on bg-primary or vice versa.
44
+ - CONTRAST RULE: on bg-primary or bg-primary-dark → use text-on-primary. On bg-surface or bg-surface-alt → use text-on-surface or text-on-surface-muted. NEVER put text-on-surface on bg-primary or vice versa. text-accent is decorative — use sparingly on bg-surface/bg-surface-alt only.
45
45
  - For gradients: from-primary to-primary-dark, from-surface to-surface-alt
46
46
  - For hover: hover:bg-primary-dark, hover:bg-primary-light
47
47
 
package/src/themes.ts CHANGED
@@ -40,7 +40,7 @@ export const LANDING_THEMES: LandingTheme[] = [
40
40
  "primary-light": "#f4f4f5",
41
41
  "primary-dark": "#a1a1aa",
42
42
  secondary: "#71717a",
43
- accent: "#e4e4e7",
43
+ accent: "#a78bfa",
44
44
  surface: "#09090b",
45
45
  "surface-alt": "#18181b",
46
46
  "on-surface": "#fafafa",