@nuvoui/core 1.2.0 โ†’ 1.2.2

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,86 +1,126 @@
1
1
  # NuvoUI
2
2
 
3
- [![GitHub stars](https://img.shields.io/github/stars/NuvoUI/core?style=social)](https://github.com/NuvoUI/core)
4
- [![GitHub forks](https://img.shields.io/github/forks/NuvoUI/core?style=social)](https://github.com/NuvoUI/core)
5
- [![npm version](https://img.shields.io/npm/v/@nuvoui/core)](https://www.npmjs.com/package/@nuvoui/core)
6
- [![Discord](https://dcbadge.limes.pink/api/server/nWGsbQKE?style=flat&theme=default-inverted)](https://discord.gg/nWGsbQKE)
3
+ _Human-readable SCSS for modern devs. Discover NuvoUI_
7
4
 
8
- ## Welcome to NuvoUI ๐ŸŽ‰
5
+ [![GitHub stars](https://img.shields.io/github/stars/NuvoUI/core?style=flat-square&color=FFB000)](https://github.com/NuvoUI/core)
6
+ [![GitHub forks](https://img.shields.io/github/forks/NuvoUI/core?style=flat-square&color=FFB000)](https://github.com/NuvoUI/core)
7
+ [![npm version](https://img.shields.io/npm/v/@nuvoui/core?style=flat-square&color=FF6F00)](https://www.npmjs.com/package/@nuvoui/core)
8
+ [![Discord](https://img.shields.io/discord/912696886734364743?style=flat-square&label=Discord&color=5865F2)](https://discord.gg/nWGsbQKE)
9
+ [![Twitter](https://img.shields.io/badge/Twitter-@NuvoUI-1DA1F2?style=flat-square)](https://x.com/NuvoUI)
9
10
 
10
- NuvoUI is a modern, human-friendly SCSS framework designed for developers who value simplicity, flexibility, and performance. Whether you're a seasoned CSS wizard or just getting started, NuvoUI makes building responsive, performant, and visually stunning web designs a breeze.
11
+ ## The Human-First SCSS Framework
11
12
 
12
- ## Why Choose NuvoUI?
13
+ NuvoUI is designed for developers who want a better way to build responsive, beautiful websites without unnecessary complexity. Write CSS as naturally as you would speak it.
13
14
 
14
- โœจ **Natural Language-Like Syntax**
15
- Write CSS that feels intuitive and effortless. Use classes like `px-20` for padding or `px-20@lg` for responsive stylesโ€”all without breaking a sweat.
15
+ ## โœจ Why Choose NuvoUI?
16
16
 
17
- ๐Ÿ”ฅ **Fully Mixin-Based**
18
- Seamlessly integrate NuvoUI into your SCSS pipeline. Write reusable, modular, and clean SCSS code with our powerful mixins.
17
+ - **๐Ÿ’ฌ Human-Readable** - Intuitive, readable class names and mixins
18
+ - **๐Ÿ“ฑ Responsive First** - Use `@lg` or `@sm` directly in class names - being natual like `font-bold@lg`
19
+ - **๐Ÿงฉ Component-Focused** - Container queries for truly modular design
20
+ - **๐ŸŒ™ Dark Mode Built In** - Theme switching with zero effort
21
+ - **๐Ÿš€ Performance Focused** - Smaller CSS footprint than most frameworks
22
+ - **โš™๏ธ Fully Customizable** - Configure everything via SCSS variables
23
+ - **๐Ÿ“ฆ Zero Runtime** - Pure CSS, no JavaScript dependencies
19
24
 
20
- ๐Ÿš€ **Optimized Animations**
21
- Define animations on the fly. NuvoUI caches animations intelligently, ensuring your code stays DRY (Don't Repeat Yourself).
25
+ ## Quick Installation
22
26
 
23
- ๐ŸŒ“ **Built-in Dark Mode**
24
- Implement dark mode effortlessly with our built-in theme switching support. Just add `data-theme="dark"` to your HTML element.
27
+ ```bash
28
+ # Using npm
29
+ npm install @nuvoui/core
25
30
 
26
- ๐Ÿ“ฑ **Container and Element Queries**
27
- Build truly component-based designs with container queries alongside traditional media queries.
31
+ # Using pnpm
32
+ pnpm add @nuvoui/core
28
33
 
29
- ## Key Features
30
-
31
- - **Dynamic Responsive Design**: Use `@lg`, `@sm`, etc., to generate responsive styles with ease
32
- - **Flexible Animations**: Create complex animations with simple mixins like `@include NuvoUI.animate-bounce((horizontal: 3%, duration: 25s))`
33
- - **Smart Utilities**: Comprehensive set of utilities for spacing, typography, colors, and more
34
- - **Developer-First Approach**: Built by developers for developers, offering the flexibility to build custom solutions effortlessly
35
- - **Zero Dependencies**: Lightweight with no external dependencies
36
- - **Simple Installation**: Get started with a single command via npm
37
-
38
- ---
39
-
40
- ## Installation
41
-
42
- To start using NuvoUI, install it via npm or pnpm:
43
-
44
- ```css
45
- npm install @nuvoui/core
46
- # or
47
- pnpm install @nuvoui/core
34
+ # Using yarn
35
+ yarn add @nuvoui/core
48
36
  ```
49
37
 
50
- ## Quick Start
38
+ ## Usage
51
39
 
52
- ### Option 1: Import in SCSS (Recommended)
40
+ ### SCSS Import (Recommended)
53
41
 
54
42
  ```scss
55
- // Import with default configuration
43
+ // Basic import with defaults
56
44
  @use '@nuvoui/core' as NuvoUI;
57
45
 
58
- // Or customize with your own variables
46
+ // Or customize with your preferences
59
47
  @use '@nuvoui/core' as NuvoUI with (
60
48
  $primary: #ff6f00,
49
+ $secondary: #03DAC6,
61
50
  $column-count: 12,
62
51
  $enable-dark-mode: true,
63
52
  // Add more customizations as needed
64
53
  );
65
54
  ```
66
- ### Option 2: Use Pre-compiled CSS
55
+ ### Direct CSS Import (coming soon to CDN)
67
56
 
57
+ ```html
68
58
  <link rel="stylesheet" href="node_modules/@nuvoui/core/dist/nuvoui.min.css">
59
+ ```
60
+
61
+ ## Core Features
69
62
 
70
- ## Usage Examples
63
+ ### ๐ŸŽจ Beautiful Color System
71
64
 
72
- ### Example 1: Intuitive HTML Classes
65
+ NuvoUI includes a comprehensive color system with semantic color variables and automatic dark mode support.
73
66
 
74
67
  ```html
75
- <div class="flex col gap-4 px-20 px-10@sm px-40@lg rounded-lg bg-primary text-white">
76
- <h2 class="font-bold text-xl">Responsive Layout Example</h2>
77
- <p>This container adapts to different screen sizes automatically.</p>
78
- <button class="btn">Click Me</button>
68
+ <div class="bg-primary text-white">Primary color with contrast text</div>
69
+ <div class="bg-success-200 text-success-900">Success colors with different shades</div>
70
+ ```
71
+
72
+ ### ๐Ÿ“ Flexible Layout System
73
+
74
+ Build complex layouts with ease using our grid and flexbox utilities.
75
+
76
+
77
+ ```html
78
+ <!-- Responsive grid with auto placement -->
79
+ <div class="grid cols-12 gap-4">
80
+ <div class="col-span-12 col-span-6@md col-span-4@lg">Responsive column</div>
81
+ <div class="col-span-12 col-span-6@md col-span-8@lg">Another column</div>
79
82
  </div>
83
+
84
+ <!-- Flexbox with alignment -->
85
+ <div class="flex between y-center wrap">
86
+ <div>Left content</div>
87
+ <div>Right content</div>
88
+ </div>
89
+ ```
90
+
91
+ ###
92
+ ```scss
93
+ .floating-element {
94
+ @include NuvoUI.animate-float((
95
+ distance: 10px,
96
+ duration: 3s,
97
+ direction: vertical
98
+ ));
99
+ }
80
100
  ```
81
101
 
102
+ ### ๐ŸŒ“ Simple Dark Mode
103
+
104
+
82
105
  ### Example 2: Elegant SCSS Mixins
83
106
 
107
+ ```html
108
+ <html data-theme="dark">
109
+ <!-- Your content will use dark theme colors -->
110
+ </html>
111
+ ```
112
+
113
+ Toggle with a simple script:
114
+
115
+ ```html
116
+ <button onclick="document.documentElement.setAttribute('data-theme',
117
+ document.documentElement.getAttribute('data-theme') === 'dark' ? 'light' : 'dark')">
118
+ Toggle Theme
119
+ </button>
120
+ ```
121
+
122
+ ## Step 3: Implementing Responsive Design
123
+
84
124
  ```scss
85
125
  .hero-image {
86
126
  @include NuvoUI.mx-auto;
@@ -130,36 +170,20 @@ pnpm install @nuvoui/core
130
170
  }
131
171
  ```
132
172
 
133
- ### Example 3: Dark Mode Support
134
-
135
- ```html
136
- <html data-theme="light">
137
- <head><!-- ... --></head>
138
- <body>
139
- <button onclick="document.documentElement.setAttribute('data-theme',
140
- document.documentElement.getAttribute('data-theme') === 'dark' ? 'light' : 'dark')">
141
- Toggle Dark Mode
142
- </button>
143
-
144
- <div class="card bg-surface text-on-surface">
145
- <!-- Content automatically adapts to light/dark mode -->
146
- </div>
147
- </body>
148
- </html>
149
- ```
150
173
 
151
174
  ## Documentation
152
175
 
153
- For complete documentation and examples, visit [NuvoUI.io](https://nuvoui.io/).
176
+ For complete documentation, examples, and guides:
177
+
178
+ [Visit the NuvoUI Documentation Site โ†’](https://nuvoui.io/).
179
+
154
180
 
155
- ## Join the NuvoUI Community ๐ŸŒŸ
181
+ ### Community & Support
156
182
 
157
- We welcome developers of all levels to contribute, suggest features, or just give us a star โญ๏ธ on GitHub. Let's build something amazing together!
183
+ - [Discord Community](https://discord.gg/nWGsbQKE) - Chat with the team & other users
184
+ - [X @NuvoUI](https://x.com/NuvoUi) - Latest updates and announcements
185
+ - [GitHub Issues](https://github.com/NuvoUI/core/issues) - Bug reports & feature requests
158
186
 
159
- - **GitHub**: [NuvoUI Core](https://github.com/NuvoUI/core)
160
- - **NPM**: [NuvoUI Core Package](https://www.npmjs.com/package/@nuvoui/core)
161
- - **Discord**: [NuvoUI Community](https://discord.gg/nWGsbQKE)
162
- - **Twitter**: [@NuvoUI](https://twitter.com/nuvoui)
163
187
 
164
188
  ## License
165
189
 
@@ -167,5 +191,4 @@ NuvoUI is open-source and licensed under the [MIT License](https://github.com/Nu
167
191
 
168
192
  Feel free to use NuvoUI in your projectsโ€”commercial or personal. Just don't forget to give us a shoutout when possible!
169
193
 
170
- ![Developer working with NuvoUI](https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExYjV3ZDhyeWp0bno2aTBjMzd5bTltazg0Y29mM2czeDl1aHNxam8xbSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/yYSSBtDgbbRzq/giphy.webp)
171
- ![working](https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExYjV3ZDhyeWp0bno2aTBjMzd5bTltazg0Y29mM2czeDl1aHNxam8xbSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/yYSSBtDgbbRzq/giphy.webp)
194
+ ![Working with CSS](https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExYjV3ZDhyeWp0bno2aTBjMzd5bTltazg0Y29mM2czeDl1aHNxam8xbSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/yYSSBtDgbbRzq/giphy.webp)