@howssatoshi/quantumcss 1.7.2 → 1.7.4
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 +31 -27
- package/dist/quantum.css +2374 -0
- package/dist/quantum.min.css +1 -6442
- package/examples/admin-panel.html +12 -9
- package/examples/analytics-dashboard.html +53 -1
- package/examples/blog-template.html +34 -15
- package/examples/chat-messaging.html +12 -11
- package/examples/email-template.html +42 -19
- package/examples/gaming-template.html +7 -7
- package/examples/gradient-test.html +106 -30
- package/examples/index.html +39 -18
- package/examples/kitchen-sink.html +164 -38
- package/examples/news-template.html +13 -13
- package/examples/portfolio-resume.html +23 -8
- package/examples/shopping/index.html +15 -15
- package/examples/travel/index.html +51 -31
- package/examples/verify_fixes.html +2 -2
- package/examples/verify_presets.html +1 -1
- package/package.json +3 -1
- package/src/cli.js +160 -27
- package/src/defaults.js +41 -24
- package/src/generator.js +191 -45
- package/src/starlight.js +6 -0
- package/src/styles/quantum-base.css +16 -3
- package/src/styles/quantum-components.css +2 -70
- package/src/styles/starlight.css +92 -58
- package/src/styles/quantum-responsive.css +0 -363
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
|
|
|
@@ -13,12 +13,14 @@ A modern, performance-optimized utility-first CSS framework with semantic naming
|
|
|
13
13
|
- **Recursive Component Presets** - Define custom components in config using existing utilities.
|
|
14
14
|
- **Cosmic Animation Library** - Advanced effects like parallax nebula drifts and orbit paths.
|
|
15
15
|
- **High Contrast Mode** - Native support for `prefers-contrast` and `forced-colors`.
|
|
16
|
-
- **JIT
|
|
16
|
+
- **JIT Attribute Mode** - Clean separation of concerns via semantic attributes (`hover`, `md`, `dark`).
|
|
17
17
|
|
|
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
21
|
- **Unified Naming Standard** - Consistent `--q-` prefix for all CSS variables (e.g., `--q-color-primary`).
|
|
22
|
+
- **Attribute-Driven Styling** - No more monolithic class strings! Use dedicated attributes for environment and interactivity.
|
|
23
|
+
- **Zero-Escape CSS** - 100% clean CSS output without risky backslash escapes.
|
|
22
24
|
- **TypeScript Support** - Full type definitions
|
|
23
25
|
- **Zero Configuration** - Works out of the box
|
|
24
26
|
|
|
@@ -28,50 +30,52 @@ A modern, performance-optimized utility-first CSS framework with semantic naming
|
|
|
28
30
|
QuantumCSS provides powerful JIT gradient utilities with support for multiple color stops and transparency:
|
|
29
31
|
- `bg-gradient-to-{r|l|t|b|tr|tl|br|bl}` - Set gradient direction
|
|
30
32
|
- `from-{color}`, `via-{color}`, `to-{color}` - Define color stops
|
|
31
|
-
- `from-{color}
|
|
33
|
+
- `from-{color}_50` - Opacity support for gradient stops (uses `_` separator)
|
|
32
34
|
- `text-transparent bg-clip-text` - Create gradient text
|
|
33
35
|
|
|
34
|
-
###
|
|
35
|
-
|
|
36
|
-
- `
|
|
37
|
-
- `
|
|
38
|
-
- `
|
|
39
|
-
- `overlay-top-left`, `overlay-bottom-right`, etc. - Corner positioning
|
|
36
|
+
### Lane-Based Attributes
|
|
37
|
+
Separate your styles into semantic lanes for maximum readability:
|
|
38
|
+
- **Environment**: `sm`, `md`, `lg`, `xl`, `2xl`
|
|
39
|
+
- **Interactivity**: `hover`, `focus`, `active`, `group-hover`
|
|
40
|
+
- **Theme**: `dark`, `light`
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
```html
|
|
43
|
+
<!-- Clean, Semantic, Conflict-Free -->
|
|
44
|
+
<div class="grid cols-1" md="cols-3" hover="bg-primary" dark="bg-black">
|
|
45
|
+
<button class="btn-starlight" hover="scale-105" active="scale-95">
|
|
46
|
+
Launch
|
|
47
|
+
</button>
|
|
48
|
+
</div>
|
|
45
49
|
```
|
|
46
50
|
|
|
47
|
-
##
|
|
51
|
+
## 📦 Installation & CLI
|
|
48
52
|
|
|
49
|
-
|
|
50
|
-
Quickly jumpstart your project with a premium template:
|
|
53
|
+
Install the core library and the JIT engine:
|
|
51
54
|
```bash
|
|
52
|
-
|
|
55
|
+
npm install @howssatoshi/quantumcss
|
|
53
56
|
```
|
|
54
|
-
*Available templates: `gaming`, `blog`, `news`, `shopping`, `travel`, `starlight`*
|
|
55
57
|
|
|
56
|
-
###
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
### Command Line Interface
|
|
59
|
+
QuantumCSS includes a powerful CLI for project orchestration:
|
|
60
|
+
|
|
61
|
+
- **`npx quantumcss init`** - Generate a default `quantum.config.json`.
|
|
62
|
+
- **`npx quantumcss build [output]`** - Generate the JIT CSS bundle (default: `dist/quantum.css`).
|
|
63
|
+
- **`npx quantumcss watch [output]`** - Automatically rebuild when your HTML or config changes.
|
|
64
|
+
- **`npx quantumcss scaffold <type>`** - Generate a starter template (`gaming`, `blog`, `travel`, etc.).
|
|
62
65
|
|
|
63
66
|
## ⚙️ Configuration
|
|
64
67
|
|
|
65
68
|
### Decoupled Component Architecture
|
|
66
69
|
QuantumCSS separates structural logic from aesthetic themes for maximum reusability. Define your own components in `quantum.config.json` by combining these layers:
|
|
67
70
|
|
|
68
|
-
**1. Structural Base Classes**
|
|
71
|
+
**1. Structural & Interactive Base Classes**
|
|
69
72
|
- `nav-base` - Standard flex row navigation
|
|
70
73
|
- `card-base` - Flex column container with overflow hidden
|
|
71
74
|
- `btn-base` - Center-aligned interactive button
|
|
72
75
|
- `input-base` - Block-level form input
|
|
73
76
|
- `dialog-base` - Centered modal container
|
|
74
77
|
- `badge-base` - Inline-flex status indicator
|
|
78
|
+
- `focus-glow` - Premium cosmic focus state (soft colored glow)
|
|
75
79
|
|
|
76
80
|
**2. Aesthetic Theme Classes**
|
|
77
81
|
- `theme-starlight` - The iconic cosmic gradient and glow
|
|
@@ -82,7 +86,7 @@ QuantumCSS separates structural logic from aesthetic themes for maximum reusabil
|
|
|
82
86
|
```json
|
|
83
87
|
{
|
|
84
88
|
"componentPresets": {
|
|
85
|
-
"btn-action": "btn-base theme-starlight px-8 py-3",
|
|
89
|
+
"btn-action": "btn-base theme-starlight px-8 py-3 focus-glow",
|
|
86
90
|
"card-premium": "card-base theme-glass-dark p-10 shadow-2xl"
|
|
87
91
|
}
|
|
88
92
|
}
|