@whykusanagi/corrupted-theme 0.1.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 +339 -0
- package/Dockerfile +32 -0
- package/LICENSE +21 -0
- package/README.md +399 -0
- package/docker-entrypoint.sh +48 -0
- package/docs/COMPONENTS_REFERENCE.md +659 -0
- package/examples/.env.example +100 -0
- package/examples/button.html +436 -0
- package/examples/card.html +678 -0
- package/examples/form.html +555 -0
- package/examples/index.html +520 -0
- package/examples/layout.html +507 -0
- package/examples/nikke-team-builder.html +580 -0
- package/examples/showcase-complete.html +1071 -0
- package/examples/showcase.html +502 -0
- package/package.json +70 -0
- package/scripts/celeste-proxy-server.js +99 -0
- package/scripts/static-server.js +113 -0
- package/src/css/animations.css +649 -0
- package/src/css/components.css +1441 -0
- package/src/css/glassmorphism.css +217 -0
- package/src/css/nikke-utilities.css +530 -0
- package/src/css/theme.css +478 -0
- package/src/css/typography.css +198 -0
- package/src/css/utilities.css +239 -0
- package/src/css/variables.css +73 -0
- package/src/lib/celeste-proxy.js +215 -0
- package/src/lib/celeste-widget.js +1089 -0
- package/src/lib/corrupted-text.js +193 -0
- package/src/lib/corruption-loading.js +405 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the Corrupted Theme project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Planned
|
|
11
|
+
- [ ] CDN distribution via jsDelivr
|
|
12
|
+
- [ ] Figma design system (components library)
|
|
13
|
+
- [ ] Storybook integration for component showcase
|
|
14
|
+
- [ ] SCSS/SASS version for advanced customization
|
|
15
|
+
- [ ] CSS-in-JS library bindings (Styled Components, Emotion)
|
|
16
|
+
- [ ] Dark mode + light mode theme switcher example
|
|
17
|
+
- [ ] Animation performance improvements
|
|
18
|
+
- [ ] Web font optimization
|
|
19
|
+
- [ ] Additional color palette presets
|
|
20
|
+
- [ ] Tailwind CSS integration guide
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## [0.1.0] - 2025-11-23
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
#### CSS Modular Architecture
|
|
29
|
+
- `src/css/variables.css` - Foundation with 50+ CSS custom properties
|
|
30
|
+
- Color system (accent, background, text, glass, borders, gradients)
|
|
31
|
+
- Spacing scale (6 levels from 4px to 48px)
|
|
32
|
+
- Border radius scale (5 levels)
|
|
33
|
+
- Transition timing (fast, normal, slow)
|
|
34
|
+
- Z-index layering system
|
|
35
|
+
- Font variables and typography scale
|
|
36
|
+
- Shadow system
|
|
37
|
+
|
|
38
|
+
- `src/css/typography.css` - Complete font hierarchy
|
|
39
|
+
- Heading styles (h1-h6) with responsive sizing
|
|
40
|
+
- Body text and paragraph styles
|
|
41
|
+
- Links with hover effects
|
|
42
|
+
- Code blocks and pre-formatted text
|
|
43
|
+
- Blockquotes and emphasis styles
|
|
44
|
+
- Text utilities (text colors, sizing, weights)
|
|
45
|
+
- Line clamping utilities
|
|
46
|
+
- Responsive breakpoints (1200px, 1024px, 768px)
|
|
47
|
+
|
|
48
|
+
- `src/css/glassmorphism.css` - Frosted glass effects
|
|
49
|
+
- `.glass` and `.glass-container` components
|
|
50
|
+
- `.frosted-card` with complete styling
|
|
51
|
+
- Backdrop-filter blur effects
|
|
52
|
+
- Opacity variants (30%-80%)
|
|
53
|
+
- Glass shadows with accent colors
|
|
54
|
+
- Specialized glass components (glass-btn, glass-navbar, glass-modal, glass-overlay)
|
|
55
|
+
- Blur utility classes (blur-sm through blur-2xl)
|
|
56
|
+
|
|
57
|
+
- `src/css/animations.css` - Motion and animation system
|
|
58
|
+
- Keyframe animations (fadeIn, slideIn, slideInLeft/Right, scaleIn, glitchShift, pulse, breathe, float, shimmer)
|
|
59
|
+
- Animation utility classes with duration/delay options
|
|
60
|
+
- Fast, normal, and slow animation variants
|
|
61
|
+
- `prefers-reduced-motion` support for accessibility
|
|
62
|
+
- Hover lift effects (.lift, .lift-sm, .lift-lg)
|
|
63
|
+
- Animation-specific cursor utilities
|
|
64
|
+
|
|
65
|
+
- `src/css/components.css` - Pre-styled UI components
|
|
66
|
+
- Button system (.btn) with variants:
|
|
67
|
+
- Secondary, ghost, sm, lg, block, disabled
|
|
68
|
+
- Icon support with proper spacing
|
|
69
|
+
- Card system (.card) with sizes (sm, lg)
|
|
70
|
+
- Badge system (.badge) with semantic colors
|
|
71
|
+
- Form elements (input, textarea, select) with focus states
|
|
72
|
+
- Navigation components (navbar with active states)
|
|
73
|
+
- Alert boxes with semantic colors (success, warning, error, info)
|
|
74
|
+
- Link styling with animated underlines
|
|
75
|
+
- Tag and badge components
|
|
76
|
+
- Code block styling
|
|
77
|
+
- Divider component
|
|
78
|
+
|
|
79
|
+
- `src/css/utilities.css` - Utility-first classes
|
|
80
|
+
- Spacing utilities (margin, padding - all 6 scale levels)
|
|
81
|
+
- Display utilities (block, flex, grid, hidden)
|
|
82
|
+
- Text utilities (alignment, sizing, weight, color, casing)
|
|
83
|
+
- Sizing utilities (width, height, max-width, container sizes)
|
|
84
|
+
- Position utilities (relative, absolute, fixed, sticky, inset)
|
|
85
|
+
- Border utilities (all sides, colors)
|
|
86
|
+
- Responsive utilities with mobile breakpoint (768px)
|
|
87
|
+
- Opacity and background utilities
|
|
88
|
+
- Overflow and text-clipping utilities
|
|
89
|
+
|
|
90
|
+
- `src/css/theme.css` - Master stylesheet
|
|
91
|
+
- Imports all module files in order
|
|
92
|
+
- Responsive grid system (.grid, .grid-2, .grid-3, .grid-4)
|
|
93
|
+
- Section and container layouts
|
|
94
|
+
- Additional responsive components
|
|
95
|
+
- Responsive breakpoints management
|
|
96
|
+
|
|
97
|
+
#### Package Configuration
|
|
98
|
+
- `package.json` - npm package metadata
|
|
99
|
+
- Named entry point and conditional exports for modular imports
|
|
100
|
+
- Build scripts for PostCSS minification
|
|
101
|
+
- Project metadata (name, version, keywords, author)
|
|
102
|
+
- Files array specifying what gets published
|
|
103
|
+
|
|
104
|
+
- `README.md` - Main package documentation
|
|
105
|
+
- Feature highlights
|
|
106
|
+
- Quick start for multiple installation methods
|
|
107
|
+
- File structure explanation
|
|
108
|
+
- CSS variable overview with examples
|
|
109
|
+
- Component examples and usage
|
|
110
|
+
- Browser support matrix
|
|
111
|
+
- Accessibility notes
|
|
112
|
+
- Links to detailed documentation
|
|
113
|
+
|
|
114
|
+
#### Documentation Suite
|
|
115
|
+
|
|
116
|
+
- `docs/COLOR_PALETTE.md` - Complete color system reference (570+ lines)
|
|
117
|
+
- Primary accent colors with hex/RGB values
|
|
118
|
+
- Background colors and semantics
|
|
119
|
+
- Text colors with WCAG contrast ratios
|
|
120
|
+
- Glass morphism colors with opacity
|
|
121
|
+
- Border colors
|
|
122
|
+
- Gradient definitions
|
|
123
|
+
- Semantic colors (success, warning, error, info)
|
|
124
|
+
- Color combination table with contrast data
|
|
125
|
+
- Customization examples
|
|
126
|
+
- Dark mode/light mode setup
|
|
127
|
+
- Opacity levels guide
|
|
128
|
+
- Hex color quick reference
|
|
129
|
+
|
|
130
|
+
- `docs/COMPONENTS.md` - Full component library (600+ lines)
|
|
131
|
+
- Button component variations with examples
|
|
132
|
+
- Card component with sizes and glass variants
|
|
133
|
+
- Badge system with semantic colors
|
|
134
|
+
- Form elements (input, textarea, select, labels)
|
|
135
|
+
- Navigation navbar with active states
|
|
136
|
+
- Typography examples (h1-h6, emphasis, colors)
|
|
137
|
+
- Alert boxes with all semantic variants
|
|
138
|
+
- Link component with animations
|
|
139
|
+
- Code blocks and syntax highlighting
|
|
140
|
+
- Glass effect variations
|
|
141
|
+
- Grid layouts (2, 3, 4 column)
|
|
142
|
+
- Animation examples (fade, slide, scale, glitch, float, pulse)
|
|
143
|
+
- Accessibility notes for each component
|
|
144
|
+
|
|
145
|
+
- `docs/CUSTOMIZATION.md` - Extensive customization guide (700+ lines)
|
|
146
|
+
- Quick customization examples (accent colors, backgrounds, text)
|
|
147
|
+
- Spacing and border-radius customization
|
|
148
|
+
- Transition speed adjustment
|
|
149
|
+
- Complete theme overrides
|
|
150
|
+
- Partial imports for tree-shaking
|
|
151
|
+
- Custom component creation methods
|
|
152
|
+
- Typography customization (fonts, sizes, line heights)
|
|
153
|
+
- Shadow customization with depth levels
|
|
154
|
+
- Glass effect customization (blur, opacity, variants)
|
|
155
|
+
- Animation customization and disabling
|
|
156
|
+
- Dark mode + light mode setup
|
|
157
|
+
- Semantic color system
|
|
158
|
+
- Variable inheritance patterns
|
|
159
|
+
- Testing checklist for customizations
|
|
160
|
+
|
|
161
|
+
- `docs/INSTALLATION.md` - Installation and setup guide
|
|
162
|
+
- Four installation methods (npm, CDN, local, git submodule)
|
|
163
|
+
- Basic HTML setup with complete example
|
|
164
|
+
- CSS preprocessing setup (PostCSS, SASS)
|
|
165
|
+
- File structure reference
|
|
166
|
+
- Partial import examples
|
|
167
|
+
- Browser support matrix
|
|
168
|
+
- Verification test file
|
|
169
|
+
- Troubleshooting section
|
|
170
|
+
- Framework integration (React, Vue, Next.js, Svelte)
|
|
171
|
+
- Next steps and resource links
|
|
172
|
+
|
|
173
|
+
- `docs/ACCESSIBILITY.md` - WCAG compliance guide (800+ lines)
|
|
174
|
+
- Color contrast ratios and WCAG levels
|
|
175
|
+
- Keyboard navigation support
|
|
176
|
+
- Focus indicator documentation
|
|
177
|
+
- Motion and animation accessibility
|
|
178
|
+
- Text readability standards
|
|
179
|
+
- Color blindness support and testing
|
|
180
|
+
- Semantic HTML best practices
|
|
181
|
+
- ARIA attributes guide
|
|
182
|
+
- Form accessibility
|
|
183
|
+
- Component accessibility patterns
|
|
184
|
+
- Testing checklist
|
|
185
|
+
- Automated testing tools
|
|
186
|
+
- Screen reader testing guidance
|
|
187
|
+
- WCAG principles (POUR)
|
|
188
|
+
- Learning resources and tools
|
|
189
|
+
|
|
190
|
+
- `docs/VARIABLES_REFERENCE.md` - Complete CSS variables reference
|
|
191
|
+
- Color variables (accent, background, text, glass, borders, gradients)
|
|
192
|
+
- Spacing scale documentation
|
|
193
|
+
- Border radius scale
|
|
194
|
+
- Transition timing variables
|
|
195
|
+
- Z-index layering system
|
|
196
|
+
- Shadow variables
|
|
197
|
+
- Font variables
|
|
198
|
+
- Creating custom variables
|
|
199
|
+
- Variable inheritance patterns
|
|
200
|
+
- Responsive variables example
|
|
201
|
+
- Browser support for CSS variables
|
|
202
|
+
- Performance notes
|
|
203
|
+
- JavaScript API for accessing variables
|
|
204
|
+
- Migration guide from hardcoded values
|
|
205
|
+
|
|
206
|
+
#### License & Metadata
|
|
207
|
+
- `LICENSE` - MIT license for open-source distribution
|
|
208
|
+
- `.gitignore` entry - Prevents theme folder pollution (corrupted-theme/ is in repo root .gitignore)
|
|
209
|
+
|
|
210
|
+
### Features
|
|
211
|
+
|
|
212
|
+
#### Design System Foundation
|
|
213
|
+
- **Complete Color System:** 50+ color values with WCAG AA/AAA contrast compliance
|
|
214
|
+
- **Spacing Scale:** Consistent 6-level spacing system (4px to 48px)
|
|
215
|
+
- **Typography:** Full font hierarchy with responsive sizing
|
|
216
|
+
- **Border Radius:** 5-level rounding scale for consistency
|
|
217
|
+
- **Shadows:** 4-level shadow system for depth
|
|
218
|
+
- **Z-Index:** Organized layering system (9 levels: -1 to 500)
|
|
219
|
+
|
|
220
|
+
#### Component Library
|
|
221
|
+
- **Buttons:** Multiple variants (primary, secondary, ghost) and sizes (sm, lg)
|
|
222
|
+
- **Cards:** Base card with size variants and glass effect
|
|
223
|
+
- **Forms:** Styled inputs, textareas, selects with focus states
|
|
224
|
+
- **Navigation:** Navbar with active link indicators
|
|
225
|
+
- **Alerts:** Semantic alert boxes (success, warning, error, info)
|
|
226
|
+
- **Badges:** Color-coded badges for tagging and labeling
|
|
227
|
+
- **Typography:** Complete heading and text styles
|
|
228
|
+
|
|
229
|
+
#### Effects & Animations
|
|
230
|
+
- **Glassmorphism:** Frosted glass effects with backdrop-filter blur
|
|
231
|
+
- **Animations:** 10+ keyframe animations with variants
|
|
232
|
+
- **Transitions:** Smooth state changes with timing utilities
|
|
233
|
+
- **Accessibility:** Respects prefers-reduced-motion for motion sensitivity
|
|
234
|
+
|
|
235
|
+
#### Utilities
|
|
236
|
+
- **Spacing:** Margin and padding utilities for all spacing levels
|
|
237
|
+
- **Sizing:** Width, height, and max-width utilities
|
|
238
|
+
- **Display:** Flex, grid, and display mode utilities
|
|
239
|
+
- **Typography:** Text color, size, weight, and alignment utilities
|
|
240
|
+
- **Positioning:** Relative, absolute, fixed, sticky utilities
|
|
241
|
+
- **Responsive:** Mobile-first responsive design (768px breakpoint)
|
|
242
|
+
|
|
243
|
+
#### Documentation
|
|
244
|
+
- **60+ documentation pages** covering every aspect of the theme
|
|
245
|
+
- **Code examples** for every component and utility
|
|
246
|
+
- **Installation guides** for multiple methods
|
|
247
|
+
- **Accessibility guide** with WCAG 2.1 AA compliance
|
|
248
|
+
- **Customization guide** for theme adaptation
|
|
249
|
+
- **Complete variable reference** for CSS custom properties
|
|
250
|
+
- **Color palette guide** with contrast ratios and WCAG levels
|
|
251
|
+
|
|
252
|
+
### Browser Support
|
|
253
|
+
- Chrome 76+
|
|
254
|
+
- Firefox 55+
|
|
255
|
+
- Safari 9.1+
|
|
256
|
+
- Edge 79+
|
|
257
|
+
- Opera 63+
|
|
258
|
+
- iOS Safari 10.3+
|
|
259
|
+
- Android Browser 62+
|
|
260
|
+
|
|
261
|
+
### Accessibility
|
|
262
|
+
- WCAG 2.1 Level AA compliant (exceeds in many areas)
|
|
263
|
+
- Color contrast ratios documented and tested
|
|
264
|
+
- Keyboard navigation support
|
|
265
|
+
- Screen reader compatible semantic HTML
|
|
266
|
+
- Animation prefers-reduced-motion support
|
|
267
|
+
- Clear focus indicators
|
|
268
|
+
- Semantic component structure
|
|
269
|
+
|
|
270
|
+
### Version Information
|
|
271
|
+
- **Package Name:** @whykusanagi/corrupted-theme
|
|
272
|
+
- **Version:** 0.1.0 (Initial Release)
|
|
273
|
+
- **License:** MIT
|
|
274
|
+
- **Status:** Stable for use, ready for feedback
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Versioning Strategy
|
|
279
|
+
|
|
280
|
+
This project follows [Semantic Versioning](https://semver.org/):
|
|
281
|
+
|
|
282
|
+
- **MAJOR** version for incompatible API changes
|
|
283
|
+
- **MINOR** version for backwards-compatible new features
|
|
284
|
+
- **PATCH** version for backwards-compatible bug fixes
|
|
285
|
+
|
|
286
|
+
### Pre-release Versions
|
|
287
|
+
- Alpha: `0.1.0-alpha.1` - Early development, expect breaking changes
|
|
288
|
+
- Beta: `0.1.0-beta.1` - Feature complete, testing phase
|
|
289
|
+
- Release Candidate: `0.1.0-rc.1` - Ready for release, final testing
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Future Releases
|
|
294
|
+
|
|
295
|
+
### Roadmap
|
|
296
|
+
|
|
297
|
+
**v0.2.0** (Planned)
|
|
298
|
+
- Extended component library (tables, modals, dropdowns, tooltips)
|
|
299
|
+
- Additional color palette presets (blue, green, monochrome)
|
|
300
|
+
- Storybook integration for interactive component showcase
|
|
301
|
+
- Performance optimizations
|
|
302
|
+
|
|
303
|
+
**v0.3.0** (Planned)
|
|
304
|
+
- Figma design system (components library)
|
|
305
|
+
- SCSS/SASS version for advanced customization
|
|
306
|
+
- CSS-in-JS library bindings
|
|
307
|
+
- Dark mode + light mode automatic theme switcher
|
|
308
|
+
|
|
309
|
+
**v1.0.0** (Planned)
|
|
310
|
+
- Official stable release
|
|
311
|
+
- Full API stability guarantee
|
|
312
|
+
- CDN distribution
|
|
313
|
+
- Complete migration guides
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## Contributing
|
|
318
|
+
|
|
319
|
+
See CONTRIBUTING.md (coming soon) for guidelines on:
|
|
320
|
+
- Reporting bugs
|
|
321
|
+
- Requesting features
|
|
322
|
+
- Submitting pull requests
|
|
323
|
+
- Code style standards
|
|
324
|
+
- Testing requirements
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## Support
|
|
329
|
+
|
|
330
|
+
- **GitHub Issues:** Report bugs and feature requests
|
|
331
|
+
- **Discussions:** Ask questions and share ideas
|
|
332
|
+
- **Documentation:** Check docs/ folder for detailed guides
|
|
333
|
+
- **Email:** Contact maintainers for support
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
**Last Updated:** 2025-11-23
|
|
338
|
+
**Maintained By:** whykusanagi
|
|
339
|
+
**Repository:** https://github.com/whykusanagi/corrupted-theme (coming soon)
|
package/Dockerfile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Dockerfile for whykusanagi portfolio site
|
|
2
|
+
# Static site with Celeste widget API proxy (all in one container)
|
|
3
|
+
|
|
4
|
+
FROM node:18-slim
|
|
5
|
+
|
|
6
|
+
LABEL maintainer="whykusanagi"
|
|
7
|
+
LABEL description="whykusanagi portfolio - Virtual Streamer & Digital Artist"
|
|
8
|
+
|
|
9
|
+
WORKDIR /app
|
|
10
|
+
|
|
11
|
+
# Copy package files (if any)
|
|
12
|
+
COPY package.json ./
|
|
13
|
+
|
|
14
|
+
# Copy all site files
|
|
15
|
+
COPY . .
|
|
16
|
+
|
|
17
|
+
# Make entrypoint script executable
|
|
18
|
+
RUN chmod +x docker-entrypoint.sh
|
|
19
|
+
RUN chmod +x scripts/static-server.js
|
|
20
|
+
RUN chmod +x scripts/celeste-proxy-server.js
|
|
21
|
+
|
|
22
|
+
# Expose ports
|
|
23
|
+
# 8000: Static HTTP server
|
|
24
|
+
# 5000: Celeste API proxy
|
|
25
|
+
EXPOSE 8000 5000
|
|
26
|
+
|
|
27
|
+
# Health check - test static server
|
|
28
|
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
29
|
+
CMD node -e "require('http').get('http://localhost:8000', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" || exit 1
|
|
30
|
+
|
|
31
|
+
# Run entrypoint script that starts both proxy and HTTP server
|
|
32
|
+
ENTRYPOINT ["./docker-entrypoint.sh"]
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 whykusanagi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|