nexa-ui-kit 0.11.5 → 0.11.8
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/dist/components/NAlert.js +2 -14
- package/dist/components/NAlert.nexa +3 -14
- package/dist/components/NAutocomplete.js +1 -1
- package/dist/components/NAutocomplete.nexa +2 -1
- package/dist/components/NAvatar.js +0 -5
- package/dist/components/NAvatar.nexa +1 -5
- package/dist/components/NBadge.js +0 -6
- package/dist/components/NBadge.nexa +1 -6
- package/dist/components/NBottomSheet.js +0 -5
- package/dist/components/NBottomSheet.nexa +1 -5
- package/dist/components/NButton.js +202 -294
- package/dist/components/NButton.nexa +224 -318
- package/dist/components/NCard.js +39 -82
- package/dist/components/NCard.nexa +27 -71
- package/dist/components/NCheckbox.js +77 -60
- package/dist/components/NCheckbox.nexa +71 -45
- package/dist/components/NChips.nexa +1 -0
- package/dist/components/NDataTable.js +1 -313
- package/dist/components/NDataTable.nexa +2 -314
- package/dist/components/NDatepicker.js +4 -25
- package/dist/components/NDatepicker.nexa +5 -25
- package/dist/components/NForm.nexa +1 -0
- package/dist/components/NFormField.js +0 -5
- package/dist/components/NFormField.nexa +1 -5
- package/dist/components/NImage.js +1 -6
- package/dist/components/NImage.nexa +2 -6
- package/dist/components/NInput.js +96 -263
- package/dist/components/NInput.nexa +89 -259
- package/dist/components/NInputNumber.nexa +1 -1
- package/dist/components/NModal.js +1 -118
- package/dist/components/NModal.nexa +2 -119
- package/dist/components/NMultiSelect.js +1 -1
- package/dist/components/NMultiSelect.nexa +2 -1
- package/dist/components/NPaginator.js +1 -11
- package/dist/components/NPaginator.nexa +2 -11
- package/dist/components/NPassword.nexa +1 -0
- package/dist/components/NProgressBar.js +0 -11
- package/dist/components/NProgressBar.nexa +1 -11
- package/dist/components/NRadio.js +1 -8
- package/dist/components/NRadio.nexa +2 -8
- package/dist/components/NScrollView.js +0 -6
- package/dist/components/NScrollView.nexa +1 -6
- package/dist/components/NSelect.js +7 -35
- package/dist/components/NSelect.nexa +8 -35
- package/dist/components/NSkeleton.js +3 -9
- package/dist/components/NSkeleton.nexa +4 -9
- package/dist/components/NSwitch.js +0 -6
- package/dist/components/NSwitch.nexa +1 -6
- package/dist/components/NTabs.js +0 -11
- package/dist/components/NTabs.nexa +1 -11
- package/dist/components/NTag.js +1 -11
- package/dist/components/NTag.nexa +2 -11
- package/dist/components/NToastContainer.js +3 -27
- package/dist/components/NToastContainer.nexa +4 -27
- package/dist/components/NTooltip.js +0 -13
- package/dist/components/NTooltip.nexa +1 -13
- package/dist/components/NTreeMenu.js +1 -21
- package/dist/components/NTreeMenu.nexa +2 -21
- package/dist/components/NVirtualList.js +0 -2
- package/dist/components/NVirtualList.nexa +1 -2
- package/dist/styles/tokens.css +82 -173
- package/package.json +4 -4
- package/src/components/NAlert.nexa +3 -14
- package/src/components/NAutocomplete.nexa +2 -1
- package/src/components/NAvatar.nexa +1 -5
- package/src/components/NBadge.nexa +1 -6
- package/src/components/NBottomSheet.nexa +1 -5
- package/src/components/NButton.nexa +224 -318
- package/src/components/NCard.nexa +27 -71
- package/src/components/NCheckbox.nexa +71 -45
- package/src/components/NChips.nexa +1 -0
- package/src/components/NDataTable.nexa +2 -314
- package/src/components/NDatepicker.nexa +5 -25
- package/src/components/NForm.nexa +1 -0
- package/src/components/NFormField.nexa +1 -5
- package/src/components/NImage.nexa +2 -6
- package/src/components/NInput.nexa +89 -259
- package/src/components/NInputNumber.nexa +1 -1
- package/src/components/NModal.nexa +2 -119
- package/src/components/NMultiSelect.nexa +2 -1
- package/src/components/NPaginator.nexa +2 -11
- package/src/components/NPassword.nexa +1 -0
- package/src/components/NProgressBar.nexa +1 -11
- package/src/components/NRadio.nexa +2 -8
- package/src/components/NScrollView.nexa +1 -6
- package/src/components/NSelect.nexa +8 -35
- package/src/components/NSkeleton.nexa +4 -9
- package/src/components/NSwitch.nexa +1 -6
- package/src/components/NTabs.nexa +1 -11
- package/src/components/NTag.nexa +2 -11
- package/src/components/NToastContainer.nexa +4 -27
- package/src/components/NTooltip.nexa +1 -13
- package/src/components/NTreeMenu.nexa +2 -21
- package/src/components/NVirtualList.nexa +1 -2
- package/src/styles/tokens.css +82 -173
|
@@ -46,40 +46,34 @@ const positionClass = `is-${props.position.replace('-', '-')}`
|
|
|
46
46
|
pointer-events: none;
|
|
47
47
|
padding: var(--n-space-4);
|
|
48
48
|
}
|
|
49
|
-
|
|
50
49
|
.is-top-right {
|
|
51
50
|
top: 0;
|
|
52
51
|
right: 0;
|
|
53
52
|
align-items: flex-end;
|
|
54
53
|
}
|
|
55
|
-
|
|
56
54
|
.is-top-left {
|
|
57
55
|
top: 0;
|
|
58
56
|
left: 0;
|
|
59
57
|
align-items: flex-start;
|
|
60
58
|
}
|
|
61
|
-
|
|
62
59
|
.is-bottom-right {
|
|
63
60
|
bottom: 0;
|
|
64
61
|
right: 0;
|
|
65
62
|
align-items: flex-end;
|
|
66
63
|
flex-direction: column-reverse;
|
|
67
64
|
}
|
|
68
|
-
|
|
69
65
|
.is-bottom-left {
|
|
70
66
|
bottom: 0;
|
|
71
67
|
left: 0;
|
|
72
68
|
align-items: flex-start;
|
|
73
69
|
flex-direction: column-reverse;
|
|
74
70
|
}
|
|
75
|
-
|
|
76
71
|
.is-top-center {
|
|
77
72
|
top: 0;
|
|
78
73
|
left: 50%;
|
|
79
74
|
transform: translateX(-50%);
|
|
80
75
|
align-items: center;
|
|
81
76
|
}
|
|
82
|
-
|
|
83
77
|
.n-toast {
|
|
84
78
|
pointer-events: auto;
|
|
85
79
|
min-width: 300px;
|
|
@@ -91,21 +85,18 @@ const positionClass = `is-${props.position.replace('-', '-')}`
|
|
|
91
85
|
box-shadow: var(--n-shadow-lg), 0 8px 32px rgba(0, 0, 0, 0.08);
|
|
92
86
|
cursor: pointer;
|
|
93
87
|
animation: n-toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
|
94
|
-
transition:
|
|
88
|
+
transition: color var(--n-transition-fast); cubic-bezier(0.16, 1, 0.3, 1);
|
|
95
89
|
backdrop-filter: blur(16px);
|
|
96
90
|
border-left: 3px solid var(--n-color-border);
|
|
97
91
|
}
|
|
98
|
-
|
|
99
92
|
.is-success { border-left-color: var(--n-color-success); }
|
|
100
93
|
.is-error { border-left-color: var(--n-color-danger); }
|
|
101
94
|
.is-info { border-left-color: var(--n-color-primary); }
|
|
102
95
|
.is-warning { border-left-color: var(--n-color-warning); }
|
|
103
|
-
|
|
104
96
|
.n-toast:hover {
|
|
105
97
|
transform: scale(1.02);
|
|
106
98
|
background: var(--n-color-surface-alt);
|
|
107
99
|
}
|
|
108
|
-
|
|
109
100
|
@keyframes n-toast-in {
|
|
110
101
|
from {
|
|
111
102
|
opacity: 0;
|
|
@@ -116,11 +107,9 @@ const positionClass = `is-${props.position.replace('-', '-')}`
|
|
|
116
107
|
transform: translateX(0) scale(1);
|
|
117
108
|
}
|
|
118
109
|
}
|
|
119
|
-
|
|
120
110
|
.is-top-left .n-toast {
|
|
121
111
|
animation-name: n-toast-in-left;
|
|
122
112
|
}
|
|
123
|
-
|
|
124
113
|
@keyframes n-toast-in-left {
|
|
125
114
|
from {
|
|
126
115
|
opacity: 0;
|
|
@@ -131,30 +120,26 @@ const positionClass = `is-${props.position.replace('-', '-')}`
|
|
|
131
120
|
transform: translateX(0) scale(1);
|
|
132
121
|
}
|
|
133
122
|
}
|
|
134
|
-
|
|
135
123
|
.is-bottom-right .n-toast,
|
|
136
124
|
.is-bottom-left .n-toast {
|
|
137
125
|
animation-name: n-toast-in-up;
|
|
138
126
|
}
|
|
139
|
-
|
|
140
127
|
@keyframes n-toast-in-up {
|
|
141
128
|
from {
|
|
142
129
|
opacity: 0;
|
|
143
|
-
|
|
130
|
+
scale(0.95);
|
|
144
131
|
}
|
|
145
132
|
to {
|
|
146
133
|
opacity: 1;
|
|
147
|
-
|
|
134
|
+
scale(1);
|
|
148
135
|
}
|
|
149
136
|
}
|
|
150
|
-
|
|
151
137
|
.n-toast-body {
|
|
152
138
|
display: flex;
|
|
153
139
|
align-items: center;
|
|
154
140
|
gap: var(--n-space-3);
|
|
155
141
|
padding: var(--n-space-4) var(--n-space-5);
|
|
156
142
|
}
|
|
157
|
-
|
|
158
143
|
.n-toast-icon {
|
|
159
144
|
width: 28px;
|
|
160
145
|
height: 28px;
|
|
@@ -166,12 +151,10 @@ const positionClass = `is-${props.position.replace('-', '-')}`
|
|
|
166
151
|
font-weight: var(--n-weight-extrabold);
|
|
167
152
|
flex-shrink: 0;
|
|
168
153
|
}
|
|
169
|
-
|
|
170
154
|
.is-success .n-toast-icon { background: var(--n-color-success); color: white; }
|
|
171
155
|
.is-error .n-toast-icon { background: var(--n-color-danger); color: white; }
|
|
172
156
|
.is-info .n-toast-icon { background: var(--n-color-primary); color: white; }
|
|
173
157
|
.is-warning .n-toast-icon { background: var(--n-color-warning); color: white; }
|
|
174
|
-
|
|
175
158
|
.n-toast-message {
|
|
176
159
|
color: var(--n-color-text);
|
|
177
160
|
font-size: var(--n-text-sm);
|
|
@@ -179,7 +162,6 @@ const positionClass = `is-${props.position.replace('-', '-')}`
|
|
|
179
162
|
flex: 1;
|
|
180
163
|
line-height: var(--n-leading-normal);
|
|
181
164
|
}
|
|
182
|
-
|
|
183
165
|
.n-toast-dismiss {
|
|
184
166
|
background: transparent;
|
|
185
167
|
border: none;
|
|
@@ -192,22 +174,18 @@ const positionClass = `is-${props.position.replace('-', '-')}`
|
|
|
192
174
|
transition: opacity var(--n-transition-fast);
|
|
193
175
|
flex-shrink: 0;
|
|
194
176
|
}
|
|
195
|
-
|
|
196
177
|
.n-toast:hover .n-toast-dismiss {
|
|
197
178
|
opacity: 1;
|
|
198
179
|
}
|
|
199
|
-
|
|
200
180
|
.n-toast-dismiss:hover {
|
|
201
181
|
color: var(--n-color-text);
|
|
202
182
|
}
|
|
203
|
-
|
|
204
183
|
.n-toast-progress {
|
|
205
184
|
height: 3px;
|
|
206
185
|
background: var(--n-color-border);
|
|
207
186
|
position: relative;
|
|
208
187
|
overflow: hidden;
|
|
209
188
|
}
|
|
210
|
-
|
|
211
189
|
.n-toast-progress::after {
|
|
212
190
|
content: '';
|
|
213
191
|
position: absolute;
|
|
@@ -218,14 +196,13 @@ const positionClass = `is-${props.position.replace('-', '-')}`
|
|
|
218
196
|
background: currentColor;
|
|
219
197
|
animation: n-toast-shrink linear forwards;
|
|
220
198
|
}
|
|
221
|
-
|
|
222
199
|
.is-success .n-toast-progress::after { background: var(--n-color-success); }
|
|
223
200
|
.is-error .n-toast-progress::after { background: var(--n-color-danger); }
|
|
224
201
|
.is-info .n-toast-progress::after { background: var(--n-color-primary); }
|
|
225
202
|
.is-warning .n-toast-progress::after { background: var(--n-color-warning); }
|
|
226
|
-
|
|
227
203
|
@keyframes n-toast-shrink {
|
|
228
204
|
from { transform: scaleX(1); }
|
|
229
205
|
to { transform: scaleX(0); }
|
|
230
206
|
}
|
|
207
|
+
|
|
231
208
|
</style>
|
|
@@ -93,7 +93,6 @@ const hide = () => {
|
|
|
93
93
|
.n-tooltip-wrapper {
|
|
94
94
|
display: inline-block;
|
|
95
95
|
}
|
|
96
|
-
|
|
97
96
|
.n-tooltip {
|
|
98
97
|
background: var(--n-color-glass);
|
|
99
98
|
color: var(--n-color-text);
|
|
@@ -109,59 +108,48 @@ const hide = () => {
|
|
|
109
108
|
animation: n-tooltip-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
110
109
|
backdrop-filter: blur(12px);
|
|
111
110
|
}
|
|
112
|
-
|
|
113
111
|
@keyframes n-tooltip-in {
|
|
114
112
|
from { opacity: 0; transform: scale(0.95); }
|
|
115
113
|
to { opacity: 1; transform: scale(1); }
|
|
116
114
|
}
|
|
117
|
-
|
|
118
115
|
.is-top {
|
|
119
116
|
transform-origin: bottom center;
|
|
120
117
|
}
|
|
121
|
-
|
|
122
118
|
.is-bottom {
|
|
123
119
|
transform-origin: top center;
|
|
124
120
|
}
|
|
125
|
-
|
|
126
121
|
.is-left {
|
|
127
122
|
transform-origin: center right;
|
|
128
123
|
}
|
|
129
|
-
|
|
130
124
|
.is-right {
|
|
131
125
|
transform-origin: center left;
|
|
132
126
|
}
|
|
133
|
-
|
|
134
127
|
.n-tooltip::after {
|
|
135
128
|
content: '';
|
|
136
129
|
position: absolute;
|
|
137
130
|
border: 5px solid transparent;
|
|
138
131
|
}
|
|
139
|
-
|
|
140
132
|
.is-top::after {
|
|
141
133
|
top: 100%;
|
|
142
134
|
left: 50%;
|
|
143
135
|
transform: translateX(-50%);
|
|
144
136
|
border-top-color: var(--n-color-border);
|
|
145
137
|
}
|
|
146
|
-
|
|
147
138
|
.is-bottom::after {
|
|
148
139
|
bottom: 100%;
|
|
149
140
|
left: 50%;
|
|
150
141
|
transform: translateX(-50%);
|
|
151
142
|
border-bottom-color: var(--n-color-border);
|
|
152
143
|
}
|
|
153
|
-
|
|
154
144
|
.is-left::after {
|
|
155
145
|
left: 100%;
|
|
156
146
|
top: 50%;
|
|
157
|
-
transform: translateY(-50%);
|
|
158
147
|
border-left-color: var(--n-color-border);
|
|
159
148
|
}
|
|
160
|
-
|
|
161
149
|
.is-right::after {
|
|
162
150
|
right: 100%;
|
|
163
151
|
top: 50%;
|
|
164
|
-
transform: translateY(-50%);
|
|
165
152
|
border-right-color: var(--n-color-border);
|
|
166
153
|
}
|
|
154
|
+
|
|
167
155
|
</style>
|
|
@@ -74,17 +74,14 @@ const toggle = (id, e) => {
|
|
|
74
74
|
font-size: var(--n-text-sm);
|
|
75
75
|
user-select: none;
|
|
76
76
|
}
|
|
77
|
-
|
|
78
77
|
.n-tree-item {
|
|
79
78
|
--n-tree-depth: 0;
|
|
80
79
|
position: relative;
|
|
81
80
|
margin-bottom: 1px;
|
|
82
81
|
}
|
|
83
|
-
|
|
84
82
|
.n-tree-item:last-child {
|
|
85
83
|
margin-bottom: 0;
|
|
86
84
|
}
|
|
87
|
-
|
|
88
85
|
/* Líneas conectoras verticales */
|
|
89
86
|
.n-tree-item:not([style*="--n-tree-depth: 0"])::before {
|
|
90
87
|
content: '';
|
|
@@ -96,7 +93,6 @@ const toggle = (id, e) => {
|
|
|
96
93
|
background: var(--n-color-border);
|
|
97
94
|
opacity: 0.35;
|
|
98
95
|
}
|
|
99
|
-
|
|
100
96
|
.n-tree-row {
|
|
101
97
|
display: flex;
|
|
102
98
|
align-items: center;
|
|
@@ -109,7 +105,6 @@ const toggle = (id, e) => {
|
|
|
109
105
|
color: var(--n-color-text);
|
|
110
106
|
position: relative;
|
|
111
107
|
}
|
|
112
|
-
|
|
113
108
|
/* Línea conectora horizontal */
|
|
114
109
|
.n-tree-item:not([style*="--n-tree-depth: 0"]) .n-tree-row::before {
|
|
115
110
|
content: '';
|
|
@@ -121,21 +116,17 @@ const toggle = (id, e) => {
|
|
|
121
116
|
background: var(--n-color-border);
|
|
122
117
|
opacity: 0.35;
|
|
123
118
|
}
|
|
124
|
-
|
|
125
119
|
.n-tree-row:hover {
|
|
126
|
-
background:
|
|
120
|
+
background-color: var(--n-color-surface);, color-mix(in srgb, var(--n-color-surface-hover) 85%, var(--n-color-primary) 5%));
|
|
127
121
|
}
|
|
128
|
-
|
|
129
122
|
.n-tree-row:active {
|
|
130
123
|
background: color-mix(in srgb, var(--n-color-surface-hover) 80%, var(--n-color-text) 5%);
|
|
131
124
|
}
|
|
132
|
-
|
|
133
125
|
.n-tree-item.is-selected > .n-tree-row {
|
|
134
126
|
background: var(--n-color-primary-light);
|
|
135
127
|
color: var(--n-color-primary);
|
|
136
128
|
font-weight: var(--n-weight-semibold);
|
|
137
129
|
}
|
|
138
|
-
|
|
139
130
|
.n-tree-item.is-selected > .n-tree-row::after {
|
|
140
131
|
content: '';
|
|
141
132
|
position: absolute;
|
|
@@ -146,7 +137,6 @@ const toggle = (id, e) => {
|
|
|
146
137
|
background: var(--n-color-primary);
|
|
147
138
|
border-radius: 0 var(--n-radius-sm) var(--n-radius-sm) 0;
|
|
148
139
|
}
|
|
149
|
-
|
|
150
140
|
.n-tree-toggle {
|
|
151
141
|
background: var(--n-color-glass);
|
|
152
142
|
border: 1px solid var(--n-color-border);
|
|
@@ -162,47 +152,38 @@ const toggle = (id, e) => {
|
|
|
162
152
|
transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
163
153
|
flex-shrink: 0;
|
|
164
154
|
}
|
|
165
|
-
|
|
166
155
|
.n-tree-toggle:hover {
|
|
167
156
|
background: color-mix(in srgb, var(--n-color-primary-light) 80%, var(--n-color-primary) 10%);
|
|
168
157
|
border-color: var(--n-color-primary);
|
|
169
158
|
color: var(--n-color-primary);
|
|
170
159
|
transform: scale(1.05);
|
|
171
160
|
}
|
|
172
|
-
|
|
173
161
|
.n-tree-toggle:active {
|
|
174
162
|
transform: scale(0.95);
|
|
175
163
|
}
|
|
176
|
-
|
|
177
164
|
.n-tree-toggle:focus-visible {
|
|
178
165
|
outline: none;
|
|
179
166
|
box-shadow: 0 0 0 2px var(--n-color-background), 0 0 0 4px var(--n-color-primary);
|
|
180
167
|
z-index: 1;
|
|
181
168
|
}
|
|
182
|
-
|
|
183
169
|
.n-tree-row:focus-visible {
|
|
184
170
|
outline: none;
|
|
185
|
-
box-shadow: inset 0 0 0 2px var(--n-color-primary);
|
|
186
171
|
border-radius: var(--n-radius-md);
|
|
187
172
|
}
|
|
188
|
-
|
|
189
173
|
.n-tree-toggle-icon {
|
|
190
174
|
font-size: 1rem;
|
|
191
175
|
line-height: 1;
|
|
192
176
|
font-weight: 700;
|
|
193
177
|
}
|
|
194
|
-
|
|
195
178
|
.n-tree-toggle-placeholder {
|
|
196
179
|
width: 20px;
|
|
197
180
|
height: 20px;
|
|
198
181
|
flex-shrink: 0;
|
|
199
182
|
}
|
|
200
|
-
|
|
201
183
|
.n-tree-icon {
|
|
202
184
|
font-size: 1.1rem;
|
|
203
185
|
flex-shrink: 0;
|
|
204
186
|
}
|
|
205
|
-
|
|
206
187
|
.n-tree-label {
|
|
207
188
|
flex: 1;
|
|
208
189
|
min-width: 0;
|
|
@@ -212,9 +193,9 @@ const toggle = (id, e) => {
|
|
|
212
193
|
font-weight: var(--n-weight-medium);
|
|
213
194
|
letter-spacing: 0.01em;
|
|
214
195
|
}
|
|
215
|
-
|
|
216
196
|
.n-tree-item.is-selected .n-tree-label {
|
|
217
197
|
font-weight: var(--n-weight-bold);
|
|
218
198
|
letter-spacing: 0;
|
|
219
199
|
}
|
|
200
|
+
|
|
220
201
|
</style>
|
package/src/styles/tokens.css
CHANGED
|
@@ -2,203 +2,112 @@
|
|
|
2
2
|
-webkit-font-smoothing: antialiased;
|
|
3
3
|
-moz-osx-font-smoothing: grayscale;
|
|
4
4
|
|
|
5
|
-
/*
|
|
6
|
-
--n-color-primary: #
|
|
7
|
-
--n-color-primary-hover: #
|
|
8
|
-
--n-color-primary-active: #
|
|
9
|
-
--n-color-primary-light:
|
|
10
|
-
--n-color-primary-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
--n-color-success: #
|
|
14
|
-
--n-color-success-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
/* Aura Emerald Theme */
|
|
6
|
+
--n-color-primary: #10b981;
|
|
7
|
+
--n-color-primary-hover: #059669;
|
|
8
|
+
--n-color-primary-active: #047857;
|
|
9
|
+
--n-color-primary-light: #d1fae5;
|
|
10
|
+
--n-color-primary-text: #ffffff;
|
|
11
|
+
|
|
12
|
+
--n-color-success: #22c55e;
|
|
13
|
+
--n-color-success-hover: #16a34a;
|
|
14
|
+
--n-color-success-active: #15803d;
|
|
15
|
+
|
|
17
16
|
--n-color-warning: #f59e0b;
|
|
18
17
|
--n-color-warning-hover: #d97706;
|
|
19
|
-
--n-color-warning-
|
|
18
|
+
--n-color-warning-active: #b45309;
|
|
20
19
|
|
|
21
20
|
--n-color-danger: #ef4444;
|
|
22
21
|
--n-color-danger-hover: #dc2626;
|
|
23
|
-
--n-color-danger-
|
|
24
|
-
|
|
25
|
-
--n-color-info: #06b6d4;
|
|
26
|
-
--n-color-info-hover: #0891b2;
|
|
27
|
-
--n-color-info-light: rgba(6, 182, 212, 0.1);
|
|
28
|
-
|
|
29
|
-
/* Surfaces — dark */
|
|
30
|
-
--n-color-surface: #0f172a;
|
|
31
|
-
--n-color-surface-alt: #1e293b;
|
|
32
|
-
--n-color-surface-hover: #1e293b;
|
|
33
|
-
--n-color-surface-elevated: #1e293b;
|
|
34
|
-
|
|
35
|
-
--n-color-bg: #020617;
|
|
36
|
-
--n-color-bg-alt: #0f172a;
|
|
37
|
-
|
|
38
|
-
/* Text */
|
|
39
|
-
--n-color-text: #f1f5f9;
|
|
40
|
-
--n-color-text-secondary: #94a3b8;
|
|
41
|
-
--n-color-text-muted: #64748b;
|
|
42
|
-
--n-color-text-inverse: #0f172a;
|
|
43
|
-
|
|
44
|
-
/* Borders */
|
|
45
|
-
--n-color-border: rgba(255, 255, 255, 0.06);
|
|
46
|
-
--n-color-border-hover: rgba(255, 255, 255, 0.12);
|
|
47
|
-
--n-color-border-active: rgba(255, 255, 255, 0.2);
|
|
48
|
-
|
|
49
|
-
/* Overlay / Glass */
|
|
50
|
-
--n-color-overlay: rgba(2, 6, 17, 0.6);
|
|
51
|
-
--n-color-glass: rgba(255, 255, 255, 0.03);
|
|
52
|
-
--n-color-glass-border: rgba(255, 255, 255, 0.06);
|
|
53
|
-
--n-color-glass-hover: rgba(255, 255, 255, 0.06);
|
|
54
|
-
|
|
55
|
-
/* Semantic borders */
|
|
56
|
-
--n-color-primary-border: rgba(99, 102, 241, 0.15);
|
|
57
|
-
--n-color-success-border: rgba(16, 185, 129, 0.15);
|
|
58
|
-
--n-color-warning-border: rgba(245, 158, 11, 0.15);
|
|
59
|
-
--n-color-danger-border: rgba(239, 68, 68, 0.15);
|
|
60
|
-
--n-color-info-border: rgba(6, 182, 212, 0.15);
|
|
61
|
-
|
|
62
|
-
--n-color-stripe: rgba(255, 255, 255, 0.04);
|
|
63
|
-
--n-shadow-top-lg: 0 -10px 25px -5px rgba(0, 0, 0, 0.5);
|
|
64
|
-
|
|
65
|
-
/* ─── Typography ─── */
|
|
66
|
-
--n-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
67
|
-
--n-font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
|
|
22
|
+
--n-color-danger-active: #b91c1c;
|
|
68
23
|
|
|
69
|
-
--n-
|
|
70
|
-
--n-
|
|
71
|
-
--n-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
--n-
|
|
75
|
-
--n-
|
|
24
|
+
--n-color-info: #3b82f6;
|
|
25
|
+
--n-color-info-hover: #2563eb;
|
|
26
|
+
--n-color-info-active: #1d4ed8;
|
|
27
|
+
|
|
28
|
+
/* Surfaces - Dark */
|
|
29
|
+
--n-color-surface: #18181b;
|
|
30
|
+
--n-color-surface-alt: #27272a;
|
|
31
|
+
--n-color-surface-hover: #3f3f46;
|
|
32
|
+
--n-color-surface-elevated: #27272a;
|
|
76
33
|
|
|
77
|
-
--n-
|
|
78
|
-
--n-
|
|
79
|
-
--n-weight-semibold: 600;
|
|
80
|
-
--n-weight-bold: 700;
|
|
81
|
-
--n-weight-extrabold: 800;
|
|
34
|
+
--n-color-bg: #09090b;
|
|
35
|
+
--n-color-bg-alt: #18181b;
|
|
82
36
|
|
|
83
|
-
--n-
|
|
84
|
-
--n-
|
|
85
|
-
--n-
|
|
37
|
+
--n-color-text: #f4f4f5;
|
|
38
|
+
--n-color-text-secondary: #a1a1aa;
|
|
39
|
+
--n-color-text-muted: #71717a;
|
|
40
|
+
--n-color-text-inverse: #09090b;
|
|
86
41
|
|
|
87
|
-
--n-
|
|
88
|
-
--n-
|
|
89
|
-
--n-
|
|
42
|
+
--n-color-border: #3f3f46;
|
|
43
|
+
--n-color-border-hover: #52525b;
|
|
44
|
+
--n-color-border-active: #71717a;
|
|
45
|
+
|
|
46
|
+
--n-color-overlay: rgba(9, 9, 11, 0.7);
|
|
47
|
+
|
|
48
|
+
--n-ring-primary: 0 0 0 2px #09090b, 0 0 0 4px #10b981;
|
|
49
|
+
--n-ring-success: 0 0 0 2px #09090b, 0 0 0 4px #22c55e;
|
|
50
|
+
--n-ring-warning: 0 0 0 2px #09090b, 0 0 0 4px #f59e0b;
|
|
51
|
+
--n-ring-danger: 0 0 0 2px #09090b, 0 0 0 4px #ef4444;
|
|
52
|
+
--n-ring-info: 0 0 0 2px #09090b, 0 0 0 4px #3b82f6;
|
|
53
|
+
--n-ring-surface: 0 0 0 2px #09090b, 0 0 0 4px #52525b;
|
|
54
|
+
|
|
55
|
+
--n-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
56
|
+
--n-font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
|
|
57
|
+
|
|
58
|
+
--n-text-xs: 0.75rem;
|
|
59
|
+
--n-text-sm: 0.875rem;
|
|
60
|
+
--n-text-base: 1rem;
|
|
61
|
+
--n-text-lg: 1.125rem;
|
|
62
|
+
--n-text-xl: 1.25rem;
|
|
90
63
|
|
|
91
|
-
/* ─── Spacing (4px base) ─── */
|
|
92
64
|
--n-space-1: 0.25rem;
|
|
93
65
|
--n-space-2: 0.5rem;
|
|
94
66
|
--n-space-3: 0.75rem;
|
|
95
67
|
--n-space-4: 1rem;
|
|
96
68
|
--n-space-5: 1.25rem;
|
|
97
69
|
--n-space-6: 1.5rem;
|
|
98
|
-
|
|
99
|
-
--n-
|
|
100
|
-
--n-
|
|
101
|
-
--n-
|
|
102
|
-
|
|
103
|
-
/* ─── Border Radius ─── */
|
|
104
|
-
--n-radius-sm: 6px;
|
|
105
|
-
--n-radius-md: 8px;
|
|
106
|
-
--n-radius-lg: 12px;
|
|
107
|
-
--n-radius-xl: 16px;
|
|
108
|
-
--n-radius-2xl: 24px;
|
|
70
|
+
|
|
71
|
+
--n-radius-sm: 4px;
|
|
72
|
+
--n-radius-md: 6px;
|
|
73
|
+
--n-radius-lg: 8px;
|
|
74
|
+
--n-radius-xl: 12px;
|
|
109
75
|
--n-radius-full: 9999px;
|
|
110
76
|
|
|
111
|
-
|
|
112
|
-
--n-shadow-
|
|
113
|
-
--n-shadow-
|
|
114
|
-
--n-shadow-
|
|
115
|
-
--n-shadow-
|
|
116
|
-
|
|
117
|
-
--n-
|
|
118
|
-
|
|
119
|
-
--n-shadow-glow-primary: 0 4px 20px -4px rgba(99, 102, 241, 0.4);
|
|
120
|
-
--n-shadow-glow-success: 0 4px 20px -4px rgba(16, 185, 129, 0.4);
|
|
121
|
-
--n-shadow-glow-warning: 0 4px 20px -4px rgba(245, 158, 11, 0.4);
|
|
122
|
-
--n-shadow-glow-info: 0 4px 20px -4px rgba(6, 182, 212, 0.4);
|
|
123
|
-
--n-shadow-glow-danger: 0 4px 20px -4px rgba(239, 68, 68, 0.4);
|
|
124
|
-
|
|
125
|
-
/* ─── Transitions (magnetic easing) ─── */
|
|
126
|
-
--n-transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
|
|
127
|
-
--n-transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
128
|
-
--n-transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
129
|
-
--n-transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
130
|
-
|
|
131
|
-
/* ─── Z-Index Scale ─── */
|
|
132
|
-
--n-z-dropdown: 100;
|
|
133
|
-
--n-z-sticky: 200;
|
|
134
|
-
--n-z-overlay: 500;
|
|
135
|
-
--n-z-modal: 2000;
|
|
136
|
-
--n-z-toast: 3000;
|
|
137
|
-
--n-z-tooltip: 1000;
|
|
77
|
+
--n-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
78
|
+
--n-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
79
|
+
--n-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
80
|
+
--n-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
81
|
+
--n-shadow-none: none;
|
|
82
|
+
|
|
83
|
+
--n-transition-fast: 0.15s ease-in-out;
|
|
84
|
+
--n-transition-normal: 0.2s ease-in-out;
|
|
138
85
|
}
|
|
139
86
|
|
|
140
|
-
/* ─── Light Theme ─── */
|
|
141
87
|
[data-theme="light"] {
|
|
142
|
-
--n-color-
|
|
143
|
-
--n-color-
|
|
144
|
-
--n-color-
|
|
145
|
-
--n-color-
|
|
146
|
-
--n-color-primary-lighter: rgba(79, 70, 229, 0.04);
|
|
147
|
-
--n-color-primary-glow: rgba(79, 70, 229, 0.2);
|
|
148
|
-
|
|
149
|
-
--n-color-success: #059669;
|
|
150
|
-
--n-color-success-light: rgba(5, 150, 105, 0.08);
|
|
88
|
+
--n-color-surface: #ffffff;
|
|
89
|
+
--n-color-surface-alt: #f4f4f5;
|
|
90
|
+
--n-color-surface-hover: #e4e4e7;
|
|
91
|
+
--n-color-surface-elevated: #ffffff;
|
|
151
92
|
|
|
152
|
-
--n-color-
|
|
153
|
-
--n-color-
|
|
93
|
+
--n-color-bg: #f8fafc;
|
|
94
|
+
--n-color-bg-alt: #ffffff;
|
|
154
95
|
|
|
155
|
-
--n-color-
|
|
156
|
-
--n-color-
|
|
96
|
+
--n-color-text: #09090b;
|
|
97
|
+
--n-color-text-secondary: #52525b;
|
|
98
|
+
--n-color-text-muted: #71717a;
|
|
99
|
+
--n-color-text-inverse: #ffffff;
|
|
157
100
|
|
|
158
|
-
--n-color-
|
|
159
|
-
--n-color-
|
|
101
|
+
--n-color-border: #d4d4d8;
|
|
102
|
+
--n-color-border-hover: #a1a1aa;
|
|
103
|
+
--n-color-border-active: #71717a;
|
|
160
104
|
|
|
161
|
-
--n-color-
|
|
162
|
-
--n-color-surface-alt: #f8fafc;
|
|
163
|
-
--n-color-surface-hover: #f1f5f9;
|
|
164
|
-
--n-color-surface-elevated: #ffffff;
|
|
105
|
+
--n-color-overlay: rgba(9, 9, 11, 0.4);
|
|
165
106
|
|
|
166
|
-
--n-
|
|
167
|
-
--n-
|
|
168
|
-
|
|
169
|
-
--n-
|
|
170
|
-
--n-
|
|
171
|
-
--n-
|
|
172
|
-
--n-color-text-inverse: #f8fafc;
|
|
173
|
-
|
|
174
|
-
--n-color-border: rgba(0, 0, 0, 0.06);
|
|
175
|
-
--n-color-border-hover: rgba(0, 0, 0, 0.12);
|
|
176
|
-
--n-color-border-active: rgba(0, 0, 0, 0.2);
|
|
177
|
-
|
|
178
|
-
--n-color-overlay: rgba(15, 23, 42, 0.4);
|
|
179
|
-
--n-color-glass: rgba(255, 255, 255, 0.7);
|
|
180
|
-
--n-color-glass-border: rgba(0, 0, 0, 0.04);
|
|
181
|
-
--n-color-glass-hover: rgba(255, 255, 255, 0.85);
|
|
182
|
-
|
|
183
|
-
--n-color-primary-border: rgba(79, 70, 229, 0.2);
|
|
184
|
-
--n-color-success-border: rgba(5, 150, 105, 0.2);
|
|
185
|
-
--n-color-warning-border: rgba(217, 119, 6, 0.2);
|
|
186
|
-
--n-color-danger-border: rgba(220, 38, 38, 0.2);
|
|
187
|
-
--n-color-info-border: rgba(8, 145, 178, 0.2);
|
|
188
|
-
|
|
189
|
-
--n-color-stripe: rgba(0, 0, 0, 0.04);
|
|
190
|
-
--n-shadow-top-lg: 0 -10px 25px -5px rgba(0, 0, 0, 0.15);
|
|
191
|
-
|
|
192
|
-
--n-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
193
|
-
--n-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
194
|
-
--n-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
|
|
195
|
-
--n-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
|
|
196
|
-
--n-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
|
|
197
|
-
--n-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
|
|
198
|
-
|
|
199
|
-
--n-shadow-glow-primary: 0 4px 20px -4px rgba(79, 70, 229, 0.25);
|
|
200
|
-
--n-shadow-glow-success: 0 4px 20px -4px rgba(5, 150, 105, 0.25);
|
|
201
|
-
--n-shadow-glow-warning: 0 4px 20px -4px rgba(217, 119, 6, 0.25);
|
|
202
|
-
--n-shadow-glow-info: 0 4px 20px -4px rgba(8, 145, 178, 0.25);
|
|
203
|
-
--n-shadow-glow-danger: 0 4px 20px -4px rgba(220, 38, 38, 0.25);
|
|
107
|
+
--n-ring-primary: 0 0 0 2px #ffffff, 0 0 0 4px #10b981;
|
|
108
|
+
--n-ring-success: 0 0 0 2px #ffffff, 0 0 0 4px #22c55e;
|
|
109
|
+
--n-ring-warning: 0 0 0 2px #ffffff, 0 0 0 4px #f59e0b;
|
|
110
|
+
--n-ring-danger: 0 0 0 2px #ffffff, 0 0 0 4px #ef4444;
|
|
111
|
+
--n-ring-info: 0 0 0 2px #ffffff, 0 0 0 4px #3b82f6;
|
|
112
|
+
--n-ring-surface: 0 0 0 2px #ffffff, 0 0 0 4px #a1a1aa;
|
|
204
113
|
}
|