@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 CHANGED
@@ -1,8 +1,8 @@
1
1
  # Quantum CSS - Next-Generation Utility Framework
2
2
 
3
- ![Quantum CSS](https://img.shields.io/badge/Quantum%20CSS-v1.7.2-blue)
3
+ ![Quantum CSS](https://img.shields.io/badge/Quantum%20CSS-v1.7.3-blue)
4
4
  ![License](https://img.shields.io/badge/license-MIT-green)
5
- ![Bundle Size](https://img.shields.io/badge/bundle%20size-24%20KB%20(gzipped)-brightgreen)
5
+ ![Bundle Size](https://img.shields.io/badge/bundle%20size-18%20KB%20(gzipped)-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 Dark Mode** - Dynamic generation of dark mode variants via `dark:` prefix.
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}/50` - Opacity support for gradient stops
33
+ - `from-{color}_50` - Opacity support for gradient stops (uses `_` separator)
32
34
  - `text-transparent bg-clip-text` - Create gradient text
33
35
 
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
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
- ## 📦 Installation
42
-
43
- ```bash
44
- npm install @howssatoshi/quantumcss
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
- ## 🎯 Quick Start
51
+ ## 📦 Installation & CLI
48
52
 
49
- ### CLI Scaffolding
50
- Quickly jumpstart your project with a premium template:
53
+ Install the core library and the JIT engine:
51
54
  ```bash
52
- npx @howssatoshi/quantumcss scaffold gaming index.html
55
+ npm install @howssatoshi/quantumcss
53
56
  ```
54
- *Available templates: `gaming`, `blog`, `news`, `shopping`, `travel`, `starlight`*
55
57
 
56
- ### HTML Usage
57
- ```html
58
- <button class="btn-starlight ani-float">
59
- Launch Experience
60
- </button>
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
  }