create-template-html-css 1.7.0 → 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 +102 -0
- package/COMPONENTS-GALLERY.html +660 -0
- package/PUBLISH-GUIDE.md +112 -0
- package/README.md +173 -1
- package/bin/cli.js +153 -5
- package/create-template-html-css-1.8.0.tgz +0 -0
- package/package.json +3 -2
- package/src/generator.js +204 -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,108 @@ 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
|
+
|
|
8
110
|
## [1.7.0] - 2026-02-01
|
|
9
111
|
|
|
10
112
|
### Added
|