eva-css-fluid 1.0.1 β†’ 1.0.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.
Files changed (2) hide show
  1. package/README.md +59 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,24 +1,65 @@
1
- # @eva/css
1
+ # eva-css-fluid
2
2
 
3
- > Fluid design framework with OKLCH colors - Transform static designs into responsive fluid systems
3
+ > Revolutionary fluid design framework - Transform static Figma designs into truly responsive fluid systems
4
+
5
+ **EVA CSS** replaces traditional breakpoint-based responsive design with **automatic fluid scaling**. Instead of defining arbitrary breakpoints for every screen size, EVA converts your static pixel values from Figma into intelligent `clamp()` functions that scale smoothly across all devices.
6
+
7
+ ## πŸ’‘ The Revolutionary Concept
8
+
9
+ ### Why Adaptive Responsive Design is Broken
10
+
11
+ Traditional responsive design with breakpoints is fundamentally flawed:
12
+ - ❌ **Arbitrary breakpoints** force designs into rigid device categories (mobile/tablet/desktop)
13
+ - ❌ **Maintenance nightmare** - dozens of media queries for every component
14
+ - ❌ **Breaks user zoom** - layouts break when users need to zoom for accessibility
15
+ - ❌ **Inconsistent scaling** - elements don't maintain proportional relationships
16
+ - ❌ **Design intent lost** - manual breakpoint adjustments compromise the original vision
17
+
18
+ ### The EVA Solution: Proportion Over Size
19
+
20
+ EVA CSS introduces **proactive fluid responsiveness**:
21
+ - βœ… **Continuous scaling** - no breakpoints, smooth transitions across all screen sizes
22
+ - βœ… **Maintains proportions** - visual hierarchy and balance preserved automatically
23
+ - βœ… **Accessibility first** - works perfectly with browser zoom and user preferences
24
+ - βœ… **Design-to-code bridge** - Figma values become fluid automatically
25
+ - βœ… **One source of truth** - define sizes once, scale everywhere
26
+
27
+ ```scss
28
+ // ❌ Traditional Responsive (Adaptive)
29
+ .title {
30
+ font-size: 24px;
31
+ @media (min-width: 768px) { font-size: 32px; }
32
+ @media (min-width: 1024px) { font-size: 48px; }
33
+ @media (min-width: 1440px) { font-size: 64px; }
34
+ }
35
+
36
+ // βœ… EVA Fluid (Continuous)
37
+ .title {
38
+ font-size: var(--fs-64);
39
+ // Automatically: clamp(2.22rem, 2.22vw + 2rem, 4.44rem)
40
+ // Scales smoothly from mobile to desktop
41
+ }
42
+ ```
4
43
 
5
44
  ## 🎯 Features
6
45
 
7
- - **Fluid Scaling System**: Modern clamp() functions for truly responsive designs
46
+ - **Automatic Fluid Conversion**: Transform static px values into intelligent clamp() functions
47
+ - **Figma-to-Code Workflow**: Extract sizes from your design, paste into config, done
8
48
  - **OKLCH Colors**: Perceptually uniform color system with opacity/brightness modifiers
9
49
  - **Modern Gradients**: Emmet-style syntax for ultra-compact gradient creation
10
50
  - **Theme System**: Built-in dark/light mode with seamless switching
11
51
  - **Two Modes**: Utility classes or CSS variables only
12
52
  - **Zero JavaScript**: Pure CSS/SCSS solution
53
+ - **Accessibility Ready**: Perfect browser zoom support, respects user preferences
13
54
 
14
55
  ## πŸ“¦ Installation
15
56
 
16
57
  ```bash
17
- npm install @eva/css
58
+ npm install eva-css-fluid
18
59
  # or
19
- pnpm add @eva/css
60
+ pnpm add eva-css-fluid
20
61
  # or
21
- yarn add @eva/css
62
+ yarn add eva-css-fluid
22
63
  ```
23
64
 
24
65
  ## πŸš€ Quick Start
@@ -26,13 +67,13 @@ yarn add @eva/css
26
67
  ### Using Pre-built CSS
27
68
 
28
69
  ```html
29
- <link rel="stylesheet" href="node_modules/@eva/css/dist/eva.css">
70
+ <link rel="stylesheet" href="node_modules/eva-css-fluid/dist/eva.css">
30
71
  ```
31
72
 
32
73
  ### Using SCSS with Default Configuration
33
74
 
34
75
  ```scss
35
- @use '@eva/css';
76
+ @use 'eva-css-fluid';
36
77
  ```
37
78
 
38
79
  ### Using SCSS with Custom Configuration
@@ -41,7 +82,7 @@ yarn add @eva/css
41
82
 
42
83
  ```scss
43
84
  // Example: Sizes extracted from Figma design
44
- @use '@eva/css' with (
85
+ @use 'eva-css-fluid' with (
45
86
  $sizes: 4, 8, 16, 32, 64, 128, // πŸ‘ˆ Change these to YOUR design sizes!
46
87
  $font-sizes: 14, 16, 20, 24, 32, // πŸ‘ˆ Change these to YOUR font sizes!
47
88
  $build-class: true,
@@ -53,7 +94,7 @@ yarn add @eva/css
53
94
 
54
95
  ```scss
55
96
  // Extracted from Figma: gaps, paddings, widths, heights
56
- @use '@eva/css' with (
97
+ @use 'eva-css-fluid' with (
57
98
  $sizes: 4, 8, 16, 32, 64, 120, 141, // 4=content-gap, 8=color-gap, 16=padding,
58
99
  // 32=section-gap, 64=hero-gap,
59
100
  // 120=H1, 141=circles
@@ -189,7 +230,11 @@ var(--brand-b_) // More brighter
189
230
 
190
231
  - [Full Documentation](https://eva-css.xyz/)
191
232
  - [GitHub Repository](https://github.com/nkdeus/eva)
192
- - [Examples & Demo](https://eva-css.xyz/demo/)
233
+
234
+ ## 🎨 Examples & Demo
235
+
236
+ Live examples and framework documentation:
237
+ - [https://eva-css.xyz/](https://eva-css.xyz/)
193
238
 
194
239
  ## 🎯 Quick Workflow: Figma β†’ EVA CSS
195
240
 
@@ -199,7 +244,7 @@ var(--brand-b_) // More brighter
199
244
 
200
245
  # 2. Create your project SCSS file
201
246
  # my-project.scss
202
- @use '@eva/css' with (
247
+ @use 'eva-css-fluid' with (
203
248
  $sizes: 4, 8, 16, 32, 64, 120, 141, # ALL sizes from Figma
204
249
  $font-sizes: 16, 120, # ALL font sizes from Figma
205
250
  $build-class: true
@@ -243,6 +288,5 @@ MIT Β© [MichaΓ«l Tati](https://ulysse-2029.com/)
243
288
 
244
289
  ## πŸ”— Related Packages
245
290
 
246
- - [@eva/colors](https://www.npmjs.com/package/@eva/colors) - OKLCH color utilities
247
- - [@eva/purge](https://www.npmjs.com/package/@eva/purge) - CSS optimization tool
248
- - [@eva/mcp-server](https://www.npmjs.com/package/@eva/mcp-server) - Figma to HTML MCP server
291
+ - [eva-colors](https://www.npmjs.com/package/eva-colors) - OKLCH color utilities
292
+ - [eva-css-purge](https://www.npmjs.com/package/eva-css-purge) - CSS optimization tool
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eva-css-fluid",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "Fluid design framework with OKLCH colors - Transform static designs into responsive fluid systems",
5
5
  "type": "module",
6
6
  "main": "src/index.scss",