@howssatoshi/quantumcss 1.6.2 → 1.7.1
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/README.md +48 -11
- package/dist/quantum.min.css +6442 -1
- package/examples/gaming-template.html +3 -18
- package/examples/gradient-test.html +53 -0
- package/examples/index.html +13 -13
- package/examples/kitchen-sink.html +241 -9
- package/package.json +1 -1
- package/src/defaults.js +88 -31
- package/src/generator.js +98 -4
- package/src/starlight.js +19 -3
- package/src/styles/quantum-animations.css +2 -2
- package/src/styles/quantum-base.css +363 -362
- package/src/styles/quantum-components.css +127 -127
- package/src/styles/quantum-responsive.css +70 -70
- package/src/styles/starlight.css +76 -72
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Quantum CSS - Next-Generation Utility Framework
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
|
-
-brightgreen)
|
|
6
6
|
|
|
7
7
|
A modern, performance-optimized utility-first CSS framework with semantic naming, recursive component presets, and advanced cosmic effects.
|
|
8
8
|
|
|
@@ -18,9 +18,26 @@ A modern, performance-optimized utility-first CSS framework with semantic naming
|
|
|
18
18
|
### Developer Experience
|
|
19
19
|
- **Advanced CLI Scaffolding** - Instantly generate pre-styled templates (Gaming, Blog, News, Shopping, Travel)
|
|
20
20
|
- **Dynamic Documentation** - Generate a "Kitchen Sink" overview of your unique design tokens
|
|
21
|
+
- **Unified Naming Standard** - Consistent `--q-` prefix for all CSS variables (e.g., `--q-color-primary`).
|
|
21
22
|
- **TypeScript Support** - Full type definitions
|
|
22
23
|
- **Zero Configuration** - Works out of the box
|
|
23
24
|
|
|
25
|
+
## 🎨 Advanced Utilities
|
|
26
|
+
|
|
27
|
+
### Gradients & Color Stops
|
|
28
|
+
QuantumCSS provides powerful JIT gradient utilities with support for multiple color stops and transparency:
|
|
29
|
+
- `bg-gradient-to-{r|l|t|b|tr|tl|br|bl}` - Set gradient direction
|
|
30
|
+
- `from-{color}`, `via-{color}`, `to-{color}` - Define color stops
|
|
31
|
+
- `from-{color}/50` - Opacity support for gradient stops
|
|
32
|
+
- `text-transparent bg-clip-text` - Create gradient text
|
|
33
|
+
|
|
34
|
+
### SVG & Data Visualization
|
|
35
|
+
Specialized utilities for handling complex SVG scaling and data overlays:
|
|
36
|
+
- `svg-fluid` - Responsive SVG scaling
|
|
37
|
+
- `vector-non-scaling` - Constant-width strokes regardless of SVG scale
|
|
38
|
+
- `overlay-base` - Centered absolute-positioned data labels
|
|
39
|
+
- `overlay-top-left`, `overlay-bottom-right`, etc. - Corner positioning
|
|
40
|
+
|
|
24
41
|
## 📦 Installation
|
|
25
42
|
|
|
26
43
|
```bash
|
|
@@ -45,13 +62,28 @@ npx @howssatoshi/quantumcss scaffold gaming index.html
|
|
|
45
62
|
|
|
46
63
|
## ⚙️ Configuration
|
|
47
64
|
|
|
48
|
-
### Component
|
|
49
|
-
Define your own components in `quantum.config.json
|
|
65
|
+
### Decoupled Component Architecture
|
|
66
|
+
QuantumCSS separates structural logic from aesthetic themes for maximum reusability. Define your own components in `quantum.config.json` by combining these layers:
|
|
67
|
+
|
|
68
|
+
**1. Structural Base Classes**
|
|
69
|
+
- `nav-base` - Standard flex row navigation
|
|
70
|
+
- `card-base` - Flex column container with overflow hidden
|
|
71
|
+
- `btn-base` - Center-aligned interactive button
|
|
72
|
+
- `input-base` - Block-level form input
|
|
73
|
+
- `dialog-base` - Centered modal container
|
|
74
|
+
- `badge-base` - Inline-flex status indicator
|
|
75
|
+
|
|
76
|
+
**2. Aesthetic Theme Classes**
|
|
77
|
+
- `theme-starlight` - The iconic cosmic gradient and glow
|
|
78
|
+
- `theme-glass` - Clean translucent glassmorphism
|
|
79
|
+
- `theme-glass-dark` - Darker, higher contrast glassmorphism
|
|
80
|
+
- `glass` - Base glassmorphic utility
|
|
81
|
+
|
|
50
82
|
```json
|
|
51
83
|
{
|
|
52
84
|
"componentPresets": {
|
|
53
|
-
"btn-action": "btn-starlight px-8 py-3
|
|
54
|
-
"card-
|
|
85
|
+
"btn-action": "btn-base theme-starlight px-8 py-3",
|
|
86
|
+
"card-premium": "card-base theme-glass-dark p-10 shadow-2xl"
|
|
55
87
|
}
|
|
56
88
|
}
|
|
57
89
|
```
|
|
@@ -97,12 +129,17 @@ This creates `examples/kitchen-sink.html` with all your colors, spacing, presets
|
|
|
97
129
|
### High Contrast Support
|
|
98
130
|
QuantumCSS automatically optimizes contrast for accessibility when the user enables high contrast mode in their OS.
|
|
99
131
|
|
|
100
|
-
##
|
|
132
|
+
## ⚡ Performance
|
|
133
|
+
|
|
134
|
+
### Rendering & Scrolling
|
|
135
|
+
- **GPU Acceleration**: Cosmic effects and star fields use `will-change` and hardware-accelerated transforms to ensure 60fps scrolling even on low-power devices.
|
|
136
|
+
- **CSS Containment**: Uses `contain: strict` on atmospheric backgrounds to isolate layout and paint cycles.
|
|
137
|
+
- **Motion Sensitivity**: Automatically scales down or disables complex animations when `prefers-reduced-motion` is detected.
|
|
101
138
|
|
|
102
|
-
###
|
|
103
|
-
- **
|
|
104
|
-
- **
|
|
105
|
-
- **Tree
|
|
139
|
+
### Optimized Payload
|
|
140
|
+
- **Gzipped Bundle**: ~24 KB (Full library + JIT utilities)
|
|
141
|
+
- **Zero Runtime**: No heavy JavaScript required for layout or styling.
|
|
142
|
+
- **JIT Tree-Shaking**: Only the utilities you actually use are included in your final production build.
|
|
106
143
|
|
|
107
144
|
## 🤝 Contributing
|
|
108
145
|
|