create-template-html-css 1.6.4 → 1.8.0
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/CHANGELOG.md +152 -0
- package/COMPONENTS-GALLERY.html +660 -0
- package/PUBLISH-GUIDE.md +112 -0
- package/README.md +253 -14
- package/bin/cli.js +296 -5
- package/create-template-html-css-1.8.0.tgz +0 -0
- package/package.json +3 -2
- package/src/generator.js +512 -3
- package/src/inserter.js +7 -1
- package/templates/login/index.html +58 -0
- package/templates/login/script.js +83 -0
- package/templates/login/style.css +232 -0
- package/templates/navigation/index.html +51 -0
- package/templates/navigation/script.js +109 -3
- package/templates/navigation/style.css +269 -0
- package/templates/register/index.html +85 -0
- package/templates/register/script.js +205 -0
- package/templates/register/style.css +298 -0
- package/templates/skeleton/index.html +115 -0
- package/templates/skeleton/script.js +28 -0
- package/templates/skeleton/style.css +409 -0
- package/demo/css/accordion-component.css +0 -135
- package/demo/css/button-component.css +0 -110
- package/demo/css/card-component.css +0 -381
- package/demo/index.html +0 -169
- package/demo/js/accordion-component.js +0 -31
- package/demo/js/button-component.js +0 -17
- package/demo/js/card-component.js +0 -124
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,158 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.8.0] - 2026-02-02
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Dark Mode Support**: Automatic dark mode detection and styling
|
|
12
|
+
- `--dark-mode` CLI flag enables dark theme support
|
|
13
|
+
- Uses `prefers-color-scheme: dark` media query
|
|
14
|
+
- Automatic color inversion for readability
|
|
15
|
+
- Fallback CSS variables for light theme
|
|
16
|
+
- Works with all 26 templates
|
|
17
|
+
|
|
18
|
+
- **Color Customizer**: Create components with custom colors
|
|
19
|
+
- `--primary-color <hex>` flag for primary gradient color
|
|
20
|
+
- `--secondary-color <hex>` flag for secondary color
|
|
21
|
+
- Automatic CSS variables generation
|
|
22
|
+
- RGB value calculation for rgba() support
|
|
23
|
+
- Color validation with helpful error messages
|
|
24
|
+
|
|
25
|
+
- **Color Scheme Presets**: 10 beautiful pre-made color schemes
|
|
26
|
+
- Vibrant, Pastel, Ocean, Sunset, Forest, Purple, Minimal, Coral, Teal, Neon
|
|
27
|
+
- `--color-scheme <scheme>` flag for instant color selection
|
|
28
|
+
- Interactive CLI prompts for scheme selection
|
|
29
|
+
- Each scheme with complementary primary and secondary colors
|
|
30
|
+
- Perfect for creating branded components quickly
|
|
31
|
+
|
|
32
|
+
- **Interactive Component Gallery** (COMPONENTS-GALLERY.html):
|
|
33
|
+
- Browse all 26 components with descriptions
|
|
34
|
+
- Search functionality for quick discovery
|
|
35
|
+
- Filter by component category
|
|
36
|
+
- Copy CLI commands with one-click button
|
|
37
|
+
- Live color scheme preview section with hex values
|
|
38
|
+
- Interactive color scheme cards with copy commands
|
|
39
|
+
- Dark mode support built-in
|
|
40
|
+
- Responsive mobile design
|
|
41
|
+
- Print-friendly layout
|
|
42
|
+
- Live component statistics
|
|
43
|
+
|
|
44
|
+
- **Enhanced CLI Features**:
|
|
45
|
+
- Dark mode and color options in interactive mode
|
|
46
|
+
- Color validation (hex format)
|
|
47
|
+
- Updated help text with new examples
|
|
48
|
+
- Better example commands showing customization
|
|
49
|
+
|
|
50
|
+
- **Login Form Template**: Professional authentication form with complete validation
|
|
51
|
+
- Email and password validation
|
|
52
|
+
- "Remember me" checkbox functionality
|
|
53
|
+
- "Forgot password" link handler
|
|
54
|
+
- Social login buttons (Google, GitHub placeholders)
|
|
55
|
+
- Real-time form validation with error messages
|
|
56
|
+
- Focus states and smooth animations
|
|
57
|
+
- Mobile-responsive design
|
|
58
|
+
- Integration with navigation modal
|
|
59
|
+
|
|
60
|
+
- **Register Form Template**: Advanced user registration form
|
|
61
|
+
- Real-time password strength validator
|
|
62
|
+
- Password requirements display (8+ chars, uppercase, number, special char)
|
|
63
|
+
- Username validation (3-20 characters, alphanumeric + underscore)
|
|
64
|
+
- Password matching validator with visual feedback
|
|
65
|
+
- Full name, email, and username fields
|
|
66
|
+
- Terms of Service and newsletter subscription checkboxes
|
|
67
|
+
- Dynamic submit button (enabled only when all requirements met)
|
|
68
|
+
- Social registration options (Google, GitHub)
|
|
69
|
+
- Professional gradient styling
|
|
70
|
+
- Mobile-optimized layout
|
|
71
|
+
|
|
72
|
+
- **Login Modal Integration**: Navigation component now includes built-in login modal
|
|
73
|
+
- Login button in navigation bar
|
|
74
|
+
- Modal window with complete login form
|
|
75
|
+
- Multiple close options (X button, ESC key, overlay click)
|
|
76
|
+
- Smooth animations and transitions
|
|
77
|
+
- Prevents body scroll when modal is open
|
|
78
|
+
- Fully responsive on mobile devices
|
|
79
|
+
|
|
80
|
+
- **CLI Support**: Added Login and Register templates to CLI
|
|
81
|
+
- New "Authentication Forms" category in component selection
|
|
82
|
+
- Full support for template creation with `create-template create -c login -n my-login`
|
|
83
|
+
- Support for template insertion with `create-template insert`
|
|
84
|
+
|
|
85
|
+
- **Skeleton Loading Template**: Loading placeholders with shimmer animation
|
|
86
|
+
- Multiple skeleton variations (card, article, list, profile, grid)
|
|
87
|
+
- Smooth CSS-based shimmer animation effect
|
|
88
|
+
- Fade-in animations for smooth transitions
|
|
89
|
+
- Toggle button to switch between skeleton and actual content
|
|
90
|
+
- Professional gray gradient styling
|
|
91
|
+
- Responsive grid layout
|
|
92
|
+
- Mobile-responsive design
|
|
93
|
+
- Perfect for displaying while content loads or APIs respond
|
|
94
|
+
|
|
95
|
+
- **Documentation**: Added CLI-USAGE.md with Hebrew instructions for new features
|
|
96
|
+
|
|
97
|
+
### Improved
|
|
98
|
+
- Enhanced README with Login, Register, and Skeleton template documentation
|
|
99
|
+
- Updated template count to 26 templates in features section
|
|
100
|
+
- Improved navigation template with modal authentication example
|
|
101
|
+
- Better organized authentication-related components
|
|
102
|
+
|
|
103
|
+
### Technical Details
|
|
104
|
+
- All new templates follow project standards and conventions
|
|
105
|
+
- Prettier formatting applied to all new files
|
|
106
|
+
- Organized folder structure (css/, js/ folders)
|
|
107
|
+
- Comprehensive JavaScript validation and error handling
|
|
108
|
+
- Cross-browser compatibility ensured
|
|
109
|
+
|
|
110
|
+
## [1.7.0] - 2026-02-01
|
|
111
|
+
|
|
112
|
+
### Added
|
|
113
|
+
- **Customizable Navigation Items**: Choose exactly which menu items to include when creating navigation components
|
|
114
|
+
- Interactive prompt: "Enter navigation items (comma-separated)"
|
|
115
|
+
- Default: "Home, About, Services, Portfolio, Contact"
|
|
116
|
+
- Automatically generates navigation links and matching page sections
|
|
117
|
+
- Example: "Home, Blog, Shop, About Us, Contact" creates 5 custom navigation items
|
|
118
|
+
|
|
119
|
+
- **Customizable Form Fields**: Select and customize form fields during creation
|
|
120
|
+
- **Standard Fields**: Choose from 6 predefined fields (Name, Email, Phone, Subject, Message, Terms)
|
|
121
|
+
- **Custom Fields**: Add unlimited custom fields with format `type:label`
|
|
122
|
+
- Supports all HTML5 input types: text, email, url, date, number, tel, password, color, etc.
|
|
123
|
+
- Special field types: textarea, checkbox, select
|
|
124
|
+
- Examples:
|
|
125
|
+
- `text:Age` → text input for age
|
|
126
|
+
- `url:Website` → URL input
|
|
127
|
+
- `date:Birth Date` → date picker
|
|
128
|
+
- `number:Quantity` → number input
|
|
129
|
+
- `textarea:Comments` → text area
|
|
130
|
+
- `checkbox:Subscribe` → checkbox field
|
|
131
|
+
- `select:Country` → dropdown menu
|
|
132
|
+
|
|
133
|
+
- **Component Variation Selection**: Choose specific variations for components with multiple styles
|
|
134
|
+
- **Button Component**: Select from 6 button types or choose specific ones
|
|
135
|
+
- Primary, Secondary, Success, Danger, Outlined, Disabled
|
|
136
|
+
- Option: "All Buttons (6 variations)" or "Select Specific Buttons"
|
|
137
|
+
- **Card Component**: Select from 6 card variations or choose specific ones
|
|
138
|
+
- Modern Card (Featured), Premium Card (Price), Blog Card (Tags)
|
|
139
|
+
- Minimal Card, User Profile Card, Interactive Card
|
|
140
|
+
- Option: "All Cards (6 variations)" or "Select Specific Cards"
|
|
141
|
+
- **Spinner Component**: Select from 5 spinner types or choose specific ones
|
|
142
|
+
- Circle Spinner, Bouncing Dots, Pulse Loader, Bar Loader, Gradient Ring
|
|
143
|
+
- Option: "All Spinners (5 types)" or "Select Specific Spinners"
|
|
144
|
+
|
|
145
|
+
### Improved
|
|
146
|
+
- Enhanced CLI prompts with better validation and user guidance
|
|
147
|
+
- More interactive component creation experience
|
|
148
|
+
- Clear format instructions for custom fields
|
|
149
|
+
- Cleaner generated HTML when selecting specific variations
|
|
150
|
+
|
|
151
|
+
### Developer Notes
|
|
152
|
+
- Added `generateNavigationItems()` function to dynamically create nav menus
|
|
153
|
+
- Added `generateFormFields()` function to handle both standard and custom form fields
|
|
154
|
+
- Added `filterButtonVariations()` function to filter button HTML
|
|
155
|
+
- Added `filterCardVariations()` function to filter card HTML
|
|
156
|
+
- Added `filterSpinnerVariations()` function to filter spinner HTML
|
|
157
|
+
- Updated CLI to include conditional prompts based on component type
|
|
158
|
+
- Generator now accepts `navItems`, `formFields`, `customFormFields`, and variation parameters
|
|
159
|
+
|
|
8
160
|
## [1.6.2] - 2026-02-01
|
|
9
161
|
|
|
10
162
|
### Added
|