@howssatoshi/quantumcss 1.0.1
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/LICENSE +21 -0
- package/README.md +485 -0
- package/dist/quantum.css +733 -0
- package/dist/quantum.min.css +1 -0
- package/package.json +48 -0
- package/src/cli.js +44 -0
- package/src/defaults.js +228 -0
- package/src/generator.js +183 -0
- package/src/styles/quantum-components.css +590 -0
- package/src/styles/quantum-responsive.css +362 -0
- package/src/styles/quantum.css +1117 -0
- package/src/styles/starlight-ui.css +192 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/* Starlight UI - Premium Components */
|
|
2
|
+
|
|
3
|
+
/* 0. Layout Helpers */
|
|
4
|
+
.container {
|
|
5
|
+
max-width: 1100px;
|
|
6
|
+
margin: 0 auto;
|
|
7
|
+
padding: 0 var(--space-8);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.grid-3 {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
13
|
+
gap: var(--space-8);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* 1. Starlight Card */
|
|
17
|
+
.starlight-card {
|
|
18
|
+
background: var(--glass-bg);
|
|
19
|
+
border: 1px solid var(--glass-border);
|
|
20
|
+
border-radius: var(--radius-2xl);
|
|
21
|
+
padding: var(--space-10);
|
|
22
|
+
backdrop-filter: var(--glass-blur);
|
|
23
|
+
-webkit-backdrop-filter: var(--glass-blur);
|
|
24
|
+
position: relative;
|
|
25
|
+
z-index: 1;
|
|
26
|
+
transition: border-color var(--transition-base), transform var(--transition-base), background-color var(--transition-base);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.starlight-card:hover {
|
|
30
|
+
border-color: rgba(0, 212, 255, 0.3);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.starlight-card.has-open-menu {
|
|
34
|
+
z-index: 1000;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body.light-mode .starlight-card {
|
|
38
|
+
background: var(--light-card-bg);
|
|
39
|
+
border-color: var(--light-card-border);
|
|
40
|
+
color: #334155;
|
|
41
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* 2. Checkboxes & Radio Buttons */
|
|
45
|
+
.checkbox-starlight, .radio-starlight {
|
|
46
|
+
appearance: none;
|
|
47
|
+
width: 1.25rem;
|
|
48
|
+
height: 1.25rem;
|
|
49
|
+
background: rgba(255, 255, 255, 0.05);
|
|
50
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
51
|
+
border-radius: 0.375rem;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
transition: all 0.2s ease;
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.radio-starlight { border-radius: 50%; }
|
|
61
|
+
|
|
62
|
+
.checkbox-starlight:checked, .radio-starlight:checked {
|
|
63
|
+
background: var(--color-starlight-blue);
|
|
64
|
+
border-color: var(--color-starlight-blue);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.checkbox-starlight:checked::after {
|
|
68
|
+
content: '✓';
|
|
69
|
+
color: black;
|
|
70
|
+
font-size: 0.8rem;
|
|
71
|
+
font-weight: 900;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.radio-starlight:checked::after {
|
|
75
|
+
content: '';
|
|
76
|
+
width: 0.5rem;
|
|
77
|
+
height: 0.5rem;
|
|
78
|
+
background: black;
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
body.light-mode .checkbox-starlight,
|
|
83
|
+
body.light-mode .radio-starlight {
|
|
84
|
+
background: #f1f5f9;
|
|
85
|
+
border-color: #cbd5e1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* 3. Tooltips */
|
|
89
|
+
.has-tooltip {
|
|
90
|
+
position: relative;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.has-tooltip:hover {
|
|
94
|
+
z-index: 2000;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.has-tooltip:hover .tooltip {
|
|
98
|
+
opacity: 1;
|
|
99
|
+
transform: translateX(-50%) translateY(-10px);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
body.light-mode .tooltip {
|
|
103
|
+
background-color: #ffffff;
|
|
104
|
+
border-color: var(--color-starlight-blue);
|
|
105
|
+
color: var(--light-text);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* 4. Skeletons */
|
|
109
|
+
.skeleton {
|
|
110
|
+
animation: shimmer 2s infinite;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@keyframes shimmer {
|
|
114
|
+
0% { background-position: -200% 0; }
|
|
115
|
+
100% { background-position: 200% 0; }
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
body.light-mode .skeleton {
|
|
119
|
+
background-color: #cbd5e1;
|
|
120
|
+
background-image: linear-gradient(90deg, transparent, #f1f5f9, transparent);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* 5. Twinkling Background */
|
|
124
|
+
.stars-container {
|
|
125
|
+
position: fixed;
|
|
126
|
+
top: 0; left: 0; width: 100%; height: 100%;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
z-index: -1;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.star {
|
|
133
|
+
position: absolute;
|
|
134
|
+
background: white;
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
opacity: 0.3;
|
|
137
|
+
animation: twinkle var(--duration) infinite ease-in-out;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@keyframes twinkle {
|
|
141
|
+
0%, 100% { opacity: 0.3; transform: scale(1); }
|
|
142
|
+
50% { opacity: 1; transform: scale(1.2); }
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* 6. Form Select Overrides */
|
|
146
|
+
select option {
|
|
147
|
+
background-color: #1a1a2e;
|
|
148
|
+
color: var(--text-primary);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
body.light-mode select option {
|
|
152
|
+
background-color: white;
|
|
153
|
+
color: var(--light-text);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
body.light-mode .input-starlight {
|
|
157
|
+
background-color: #ffffff;
|
|
158
|
+
border-color: #cbd5e1;
|
|
159
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 9l4 4 4-4' /%3E%3C/svg%3E");
|
|
160
|
+
background-repeat: no-repeat;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
body.light-mode .btn-secondary {
|
|
164
|
+
border-color: #cbd5e1;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* 7. Dialog & Menu Theme Support */
|
|
168
|
+
body.light-mode .dialog-overlay {
|
|
169
|
+
background: rgba(255, 255, 255, 0.4);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
body.light-mode .dialog-content {
|
|
173
|
+
background-color: rgba(255, 255, 255, 0.98);
|
|
174
|
+
border-color: rgba(0, 0, 0, 0.1);
|
|
175
|
+
color: var(--light-text);
|
|
176
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
body.light-mode .dropdown-menu {
|
|
180
|
+
background-color: rgba(255, 255, 255, 0.99);
|
|
181
|
+
border-color: #cbd5e1;
|
|
182
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
body.light-mode .dropdown-item {
|
|
186
|
+
color: #475569;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.dropdown-item:hover {
|
|
190
|
+
background-color: var(--color-starlight-blue) !important;
|
|
191
|
+
color: #000000 !important;
|
|
192
|
+
}
|