@nuvoui/core 1.2.1 โ 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 +96 -73
- package/dist/nuvoui.css +3924 -545
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css +1 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/abstracts/_config.scss +18 -36
- package/src/styles/layouts/_flex.scss +65 -51
- package/src/styles/layouts/_grid.scss +10 -10
- package/src/styles/mixins-map.scss +1 -1
- package/src/styles/themes/_theme.scss +5 -5
- package/src/styles/utilities/_alignment.scss +4 -4
- package/src/styles/utilities/_animations.scss +58 -1
- package/src/styles/utilities/_borders.scss +73 -48
- package/src/styles/utilities/_colors.scss +3 -3
- package/src/styles/utilities/_position.scss +45 -0
- package/src/styles/utilities/_spacing.scss +85 -23
- package/src/styles/utilities/_transforms.scss +221 -0
- package/src/styles/utilities/_transitions.scss +5 -3
- package/src/styles/utilities/_typography.scss +125 -48
package/README.md
CHANGED
|
@@ -1,86 +1,126 @@
|
|
|
1
1
|
# NuvoUI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://github.com/NuvoUI/core)
|
|
5
|
-
[](https://www.npmjs.com/package/@nuvoui/core)
|
|
6
|
-
[](https://discord.gg/nWGsbQKE)
|
|
3
|
+
_Human-readable SCSS for modern devs. Discover NuvoUI_
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
[](https://github.com/NuvoUI/core)
|
|
6
|
+
[](https://github.com/NuvoUI/core)
|
|
7
|
+
[](https://www.npmjs.com/package/@nuvoui/core)
|
|
8
|
+
[](https://discord.gg/nWGsbQKE)
|
|
9
|
+
[](https://x.com/NuvoUI)
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
## The Human-First SCSS Framework
|
|
11
12
|
|
|
12
|
-
|
|
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
|
-
โจ
|
|
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
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24
|
-
|
|
27
|
+
```bash
|
|
28
|
+
# Using npm
|
|
29
|
+
npm install @nuvoui/core
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
# Using pnpm
|
|
32
|
+
pnpm add @nuvoui/core
|
|
28
33
|
|
|
29
|
-
|
|
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
|
-
##
|
|
38
|
+
## Usage
|
|
51
39
|
|
|
52
|
-
###
|
|
40
|
+
### SCSS Import (Recommended)
|
|
53
41
|
|
|
54
42
|
```scss
|
|
55
|
-
//
|
|
43
|
+
// Basic import with defaults
|
|
56
44
|
@use '@nuvoui/core' as NuvoUI;
|
|
57
45
|
|
|
58
|
-
// Or customize with your
|
|
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
|
-
###
|
|
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
|
-
|
|
63
|
+
### ๐จ Beautiful Color System
|
|
71
64
|
|
|
72
|
-
|
|
65
|
+
NuvoUI includes a comprehensive color system with semantic color variables and automatic dark mode support.
|
|
73
66
|
|
|
74
67
|
```html
|
|
75
|
-
<div class="
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
|
176
|
+
For complete documentation, examples, and guides:
|
|
177
|
+
|
|
178
|
+
[Visit the NuvoUI Documentation Site โ](https://nuvoui.io/).
|
|
179
|
+
|
|
154
180
|
|
|
155
|
-
|
|
181
|
+
### Community & Support
|
|
156
182
|
|
|
157
|
-
|
|
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
|
-

|
|
194
|
+

|