@pimolu/web-styles 0.0.0-stage → 0.1.0-beta.10
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.fr.md +125 -0
- package/README.md +124 -2
- package/dist/accordion.css +194 -0
- package/dist/alert.css +147 -0
- package/dist/anchor.css +121 -0
- package/dist/api-table.css +111 -0
- package/dist/app-shell.css +237 -0
- package/dist/arc-carousel.css +261 -0
- package/dist/aspect-ratio.css +34 -0
- package/dist/audio-player.css +327 -0
- package/dist/avatar-group.css +58 -0
- package/dist/avatar.css +130 -0
- package/dist/badge.css +185 -0
- package/dist/banner.css +145 -0
- package/dist/box.css +39 -0
- package/dist/breadcrumbs.css +48 -0
- package/dist/button-group.css +84 -0
- package/dist/button.css +284 -0
- package/dist/calendar.css +221 -0
- package/dist/card.css +163 -0
- package/dist/carousel.css +244 -0
- package/dist/cascader.css +273 -0
- package/dist/center.css +20 -0
- package/dist/chart.css +377 -0
- package/dist/chat.css +518 -0
- package/dist/checkbox.css +184 -0
- package/dist/circular-progress.css +125 -0
- package/dist/code-block.css +169 -0
- package/dist/code.css +81 -0
- package/dist/color-picker.css +295 -0
- package/dist/combobox.css +306 -0
- package/dist/command.css +241 -0
- package/dist/container.css +36 -0
- package/dist/context-menu.css +105 -0
- package/dist/coverflow-carousel.css +251 -0
- package/dist/currency-input.css +134 -0
- package/dist/dashboard-layout.css +244 -0
- package/dist/data-grid.css +515 -0
- package/dist/data-table.css +191 -0
- package/dist/date-picker.css +200 -0
- package/dist/date-range-picker.css +260 -0
- package/dist/description-list.css +76 -0
- package/dist/dialog.css +183 -0
- package/dist/docs-layout.css +196 -0
- package/dist/drawer.css +219 -0
- package/dist/dropdown-menu.css +82 -0
- package/dist/dropzone.css +248 -0
- package/dist/empty-state.css +120 -0
- package/dist/file-manager.css +408 -0
- package/dist/file-upload.css +235 -0
- package/dist/flex.css +70 -0
- package/dist/focus-scope.css +13 -0
- package/dist/footer.css +200 -0
- package/dist/form-field.css +141 -0
- package/dist/form.css +75 -0
- package/dist/gantt.css +406 -0
- package/dist/grid.css +51 -0
- package/dist/hero.css +176 -0
- package/dist/hover-card.css +76 -0
- package/dist/image-cropper.css +431 -0
- package/dist/image.css +158 -0
- package/dist/input-group.css +447 -0
- package/dist/input.css +271 -0
- package/dist/kanban.css +473 -0
- package/dist/label.css +39 -0
- package/dist/layered.css +23822 -0
- package/dist/lightbox.css +286 -0
- package/dist/link.css +66 -0
- package/dist/list.css +111 -0
- package/dist/loading-overlay.css +103 -0
- package/dist/masked-input.css +134 -0
- package/dist/mentions.css +212 -0
- package/dist/menubar.css +140 -0
- package/dist/modal.css +186 -0
- package/dist/motion.css +36 -0
- package/dist/multi-carousel.css +260 -0
- package/dist/multi-select.css +399 -0
- package/dist/navbar.css +574 -0
- package/dist/navigation-menu.css +132 -0
- package/dist/notification-center.css +331 -0
- package/dist/number-input.css +196 -0
- package/dist/page-header.css +169 -0
- package/dist/pagination.css +92 -0
- package/dist/password-input.css +303 -0
- package/dist/pdf-viewer.css +148 -0
- package/dist/peek-carousel.css +250 -0
- package/dist/phone-input.css +182 -0
- package/dist/pimolu.css +23521 -0
- package/dist/pimolu.min.css +1 -0
- package/dist/pin-input.css +121 -0
- package/dist/popconfirm.css +95 -0
- package/dist/popover.css +94 -0
- package/dist/progress.css +105 -0
- package/dist/prose.css +296 -0
- package/dist/qr-code.css +17 -0
- package/dist/radio.css +220 -0
- package/dist/range-slider.css +221 -0
- package/dist/rating.css +122 -0
- package/dist/resizable.css +122 -0
- package/dist/result.css +118 -0
- package/dist/scheduler.css +385 -0
- package/dist/scroll-area.css +55 -0
- package/dist/search-input.css +41 -0
- package/dist/segmented-control.css +176 -0
- package/dist/select.css +298 -0
- package/dist/separator.css +66 -0
- package/dist/sidebar.css +308 -0
- package/dist/signature.css +189 -0
- package/dist/skeleton.css +90 -0
- package/dist/slider.css +233 -0
- package/dist/spacer.css +20 -0
- package/dist/spinner.css +165 -0
- package/dist/split-button.css +100 -0
- package/dist/stack-carousel.css +250 -0
- package/dist/stack.css +58 -0
- package/dist/stat.css +159 -0
- package/dist/stepper.css +155 -0
- package/dist/switch.css +194 -0
- package/dist/table-of-contents.css +90 -0
- package/dist/table.css +184 -0
- package/dist/tabs.css +424 -0
- package/dist/tags-input.css +236 -0
- package/dist/textarea.css +208 -0
- package/dist/theme-builder.css +269 -0
- package/dist/themes.css +129 -0
- package/dist/thumbnail-carousel.css +244 -0
- package/dist/time-picker.css +174 -0
- package/dist/timeline.css +195 -0
- package/dist/toast.css +356 -0
- package/dist/toggle-group.css +21 -0
- package/dist/toggle.css +102 -0
- package/dist/tokens.css +902 -0
- package/dist/toolbar.css +161 -0
- package/dist/tooltip.css +95 -0
- package/dist/tour.css +196 -0
- package/dist/transfer.css +426 -0
- package/dist/tree-select.css +340 -0
- package/dist/tree-table.css +173 -0
- package/dist/tree-view.css +83 -0
- package/dist/typography.css +92 -0
- package/dist/video-player.css +299 -0
- package/dist/virtual-list.css +59 -0
- package/dist/visually-hidden.css +44 -0
- package/dist/watermark.css +41 -0
- package/package.json +174 -4
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/* src/textarea.css */
|
|
2
|
+
.pimolu-textarea {
|
|
3
|
+
--pimolu-textarea-padding-x: 12px;
|
|
4
|
+
--pimolu-textarea-padding-y: 10px;
|
|
5
|
+
--pimolu-textarea-font-size: 0.875rem;
|
|
6
|
+
--pimolu-textarea-tone: var(--pimolu-border, currentColor);
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 6px;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
width: min(100%, 24rem);
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
15
|
+
color: var(--pimolu-foreground);
|
|
16
|
+
}
|
|
17
|
+
.pimolu-textarea--full-width {
|
|
18
|
+
display: flex;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
.pimolu-textarea--xs {
|
|
22
|
+
--pimolu-textarea-padding-x: 8px;
|
|
23
|
+
--pimolu-textarea-padding-y: 6px;
|
|
24
|
+
--pimolu-textarea-font-size: 0.75rem;
|
|
25
|
+
}
|
|
26
|
+
.pimolu-textarea--sm {
|
|
27
|
+
--pimolu-textarea-padding-x: 10px;
|
|
28
|
+
--pimolu-textarea-padding-y: 8px;
|
|
29
|
+
--pimolu-textarea-font-size: 0.8125rem;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-textarea--md {
|
|
32
|
+
--pimolu-textarea-padding-x: 12px;
|
|
33
|
+
--pimolu-textarea-padding-y: 10px;
|
|
34
|
+
--pimolu-textarea-font-size: 0.875rem;
|
|
35
|
+
}
|
|
36
|
+
.pimolu-textarea--lg {
|
|
37
|
+
--pimolu-textarea-padding-x: 14px;
|
|
38
|
+
--pimolu-textarea-padding-y: 12px;
|
|
39
|
+
--pimolu-textarea-font-size: 1rem;
|
|
40
|
+
}
|
|
41
|
+
.pimolu-textarea--xl {
|
|
42
|
+
--pimolu-textarea-padding-x: 16px;
|
|
43
|
+
--pimolu-textarea-padding-y: 14px;
|
|
44
|
+
--pimolu-textarea-font-size: 1.125rem;
|
|
45
|
+
}
|
|
46
|
+
.pimolu-textarea--xxl {
|
|
47
|
+
--pimolu-textarea-padding-x: 18px;
|
|
48
|
+
--pimolu-textarea-padding-y: 16px;
|
|
49
|
+
--pimolu-textarea-font-size: 1.25rem;
|
|
50
|
+
}
|
|
51
|
+
.pimolu-textarea--neutral {
|
|
52
|
+
--pimolu-textarea-tone: var(--pimolu-border, currentColor);
|
|
53
|
+
}
|
|
54
|
+
.pimolu-textarea--primary {
|
|
55
|
+
--pimolu-textarea-tone: var(--pimolu-primary);
|
|
56
|
+
}
|
|
57
|
+
.pimolu-textarea--secondary {
|
|
58
|
+
--pimolu-textarea-tone: var(--pimolu-secondary);
|
|
59
|
+
}
|
|
60
|
+
.pimolu-textarea--success {
|
|
61
|
+
--pimolu-textarea-tone: var(--pimolu-success, #15803d);
|
|
62
|
+
}
|
|
63
|
+
.pimolu-textarea--warning {
|
|
64
|
+
--pimolu-textarea-tone: var(--pimolu-warning, #d97706);
|
|
65
|
+
}
|
|
66
|
+
.pimolu-textarea--danger {
|
|
67
|
+
--pimolu-textarea-tone: var(--pimolu-danger, #dc2626);
|
|
68
|
+
}
|
|
69
|
+
.pimolu-textarea__label {
|
|
70
|
+
display: block;
|
|
71
|
+
color: var(--pimolu-foreground);
|
|
72
|
+
font-size: 0.875rem;
|
|
73
|
+
line-height: 1.5;
|
|
74
|
+
overflow-wrap: anywhere;
|
|
75
|
+
}
|
|
76
|
+
.pimolu-textarea__required {
|
|
77
|
+
margin-inline-start: 3px;
|
|
78
|
+
color: var(--pimolu-danger, currentColor);
|
|
79
|
+
}
|
|
80
|
+
.pimolu-textarea__control {
|
|
81
|
+
display: block;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
width: 100%;
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
min-width: 0;
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: var(--pimolu-textarea-padding-y) var(--pimolu-textarea-padding-x);
|
|
88
|
+
background: var( --pimolu-surface, var(--pimolu-background) );
|
|
89
|
+
color: var(--pimolu-foreground);
|
|
90
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
|
|
91
|
+
border-radius: var(--pimolu-radius-md, 8px);
|
|
92
|
+
font-family: inherit;
|
|
93
|
+
font-size: var(--pimolu-textarea-font-size);
|
|
94
|
+
font-weight: 400;
|
|
95
|
+
line-height: 1.5;
|
|
96
|
+
resize: vertical;
|
|
97
|
+
transition:
|
|
98
|
+
border-color 150ms ease,
|
|
99
|
+
background-color 150ms ease,
|
|
100
|
+
box-shadow 150ms ease;
|
|
101
|
+
}
|
|
102
|
+
.pimolu-textarea__control::placeholder {
|
|
103
|
+
color: var(--pimolu-muted-foreground);
|
|
104
|
+
opacity: 1;
|
|
105
|
+
}
|
|
106
|
+
.pimolu-textarea--outline .pimolu-textarea__control {
|
|
107
|
+
border-color: var(--pimolu-textarea-tone);
|
|
108
|
+
}
|
|
109
|
+
.pimolu-textarea--soft .pimolu-textarea__control {
|
|
110
|
+
background: color-mix(in srgb, var(--pimolu-textarea-tone) 8%, var( --pimolu-surface, var(--pimolu-background) ));
|
|
111
|
+
border-color: transparent;
|
|
112
|
+
}
|
|
113
|
+
.pimolu-textarea--filled .pimolu-textarea__control {
|
|
114
|
+
background: var(--pimolu-muted);
|
|
115
|
+
border-color: transparent;
|
|
116
|
+
}
|
|
117
|
+
.pimolu-textarea--glass .pimolu-textarea__control {
|
|
118
|
+
background: var( --pimolu-glass-bg, var(--pimolu-surface, var(--pimolu-background)) );
|
|
119
|
+
border-color: var( --pimolu-glass-border, var(--pimolu-border) );
|
|
120
|
+
box-shadow: var(--pimolu-glass-shadow, none);
|
|
121
|
+
-webkit-backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
122
|
+
backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
123
|
+
}
|
|
124
|
+
.pimolu-textarea--resize-none .pimolu-textarea__control {
|
|
125
|
+
resize: none;
|
|
126
|
+
}
|
|
127
|
+
.pimolu-textarea--resize-vertical .pimolu-textarea__control {
|
|
128
|
+
resize: vertical;
|
|
129
|
+
}
|
|
130
|
+
.pimolu-textarea--resize-horizontal .pimolu-textarea__control {
|
|
131
|
+
resize: horizontal;
|
|
132
|
+
}
|
|
133
|
+
.pimolu-textarea--resize-both .pimolu-textarea__control {
|
|
134
|
+
resize: both;
|
|
135
|
+
}
|
|
136
|
+
.pimolu-textarea__control:focus-visible {
|
|
137
|
+
border-color: var(--pimolu-textarea-tone);
|
|
138
|
+
outline: 2px solid var( --pimolu-focus-ring, var(--pimolu-primary) );
|
|
139
|
+
outline-offset: 2px;
|
|
140
|
+
}
|
|
141
|
+
.pimolu-textarea--invalid .pimolu-textarea__control {
|
|
142
|
+
border-color: var(--pimolu-danger, #dc2626);
|
|
143
|
+
}
|
|
144
|
+
.pimolu-textarea--invalid .pimolu-textarea__control:focus-visible {
|
|
145
|
+
outline-color: var(--pimolu-danger, #dc2626);
|
|
146
|
+
}
|
|
147
|
+
.pimolu-textarea--disabled {
|
|
148
|
+
opacity: 0.55;
|
|
149
|
+
}
|
|
150
|
+
.pimolu-textarea__control:disabled {
|
|
151
|
+
cursor: not-allowed;
|
|
152
|
+
resize: none;
|
|
153
|
+
}
|
|
154
|
+
.pimolu-textarea__control:read-only:not(:disabled) {
|
|
155
|
+
cursor: default;
|
|
156
|
+
resize: none;
|
|
157
|
+
}
|
|
158
|
+
.pimolu-textarea__footer {
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: flex-start;
|
|
161
|
+
justify-content: space-between;
|
|
162
|
+
flex-wrap: wrap;
|
|
163
|
+
gap: 6px 12px;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
}
|
|
166
|
+
.pimolu-textarea__helper {
|
|
167
|
+
margin: 0;
|
|
168
|
+
color: var(--pimolu-muted-foreground);
|
|
169
|
+
font-size: 0.8125rem;
|
|
170
|
+
line-height: 1.5;
|
|
171
|
+
overflow-wrap: anywhere;
|
|
172
|
+
}
|
|
173
|
+
.pimolu-textarea__error {
|
|
174
|
+
margin: 0;
|
|
175
|
+
color: var(--pimolu-danger, #dc2626);
|
|
176
|
+
font-size: 0.8125rem;
|
|
177
|
+
line-height: 1.5;
|
|
178
|
+
overflow-wrap: anywhere;
|
|
179
|
+
}
|
|
180
|
+
.pimolu-textarea__counter {
|
|
181
|
+
margin-inline-start: auto;
|
|
182
|
+
color: var(--pimolu-muted-foreground);
|
|
183
|
+
font-size: 0.75rem;
|
|
184
|
+
line-height: 1.5;
|
|
185
|
+
font-variant-numeric: tabular-nums;
|
|
186
|
+
white-space: nowrap;
|
|
187
|
+
}
|
|
188
|
+
@media (prefers-reduced-motion: reduce) {
|
|
189
|
+
.pimolu-textarea__control {
|
|
190
|
+
transition: none;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
@media (forced-colors: active) {
|
|
194
|
+
.pimolu-textarea__control {
|
|
195
|
+
background: Field;
|
|
196
|
+
color: FieldText;
|
|
197
|
+
border-color: ButtonText;
|
|
198
|
+
}
|
|
199
|
+
.pimolu-textarea__control:focus-visible {
|
|
200
|
+
outline-color: Highlight;
|
|
201
|
+
}
|
|
202
|
+
.pimolu-textarea--invalid .pimolu-textarea__control {
|
|
203
|
+
border-style: dashed;
|
|
204
|
+
}
|
|
205
|
+
.pimolu-textarea__error {
|
|
206
|
+
color: CanvasText;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/* src/theme-builder.css */
|
|
2
|
+
.pimolu-theme-builder {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--pimolu-spacing-4, 16px);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
color: var(--pimolu-foreground, #0f172a);
|
|
9
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
10
|
+
}
|
|
11
|
+
.pimolu-theme-builder__header {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
17
|
+
}
|
|
18
|
+
.pimolu-theme-builder__title {
|
|
19
|
+
margin: 0;
|
|
20
|
+
color: var(--pimolu-foreground, #0f172a);
|
|
21
|
+
font-size: 1.125rem;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
line-height: 1.3;
|
|
24
|
+
}
|
|
25
|
+
.pimolu-theme-builder__summary {
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
}
|
|
28
|
+
.pimolu-theme-builder__layout {
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
|
|
31
|
+
gap: var(--pimolu-spacing-4, 16px);
|
|
32
|
+
align-items: start;
|
|
33
|
+
}
|
|
34
|
+
.pimolu-theme-builder__controls {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 18px;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
41
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
42
|
+
border-radius: var(--pimolu-radius-lg, 12px);
|
|
43
|
+
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
44
|
+
background: color-mix(in srgb, var(--pimolu-muted, #f1f5f9) 42%, var(--pimolu-surface, #ffffff));
|
|
45
|
+
}
|
|
46
|
+
.pimolu-theme-builder__field {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: var(--pimolu-spacing-2, 8px);
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
.pimolu-theme-builder__label {
|
|
53
|
+
color: var(--pimolu-foreground, #0f172a);
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
line-height: 1.4;
|
|
57
|
+
}
|
|
58
|
+
.pimolu-theme-builder__presets {
|
|
59
|
+
display: grid;
|
|
60
|
+
grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
|
|
61
|
+
gap: var(--pimolu-spacing-2, 8px);
|
|
62
|
+
}
|
|
63
|
+
.pimolu-theme-builder__preset {
|
|
64
|
+
appearance: none;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
align-items: stretch;
|
|
68
|
+
gap: 6px;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
width: 100%;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
padding: 10px;
|
|
73
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
74
|
+
border-radius: var(--pimolu-radius-md, 8px);
|
|
75
|
+
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
76
|
+
color: var(--pimolu-foreground, #0f172a);
|
|
77
|
+
font: inherit;
|
|
78
|
+
text-align: start;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
transition:
|
|
81
|
+
background-color 150ms ease,
|
|
82
|
+
border-color 150ms ease,
|
|
83
|
+
box-shadow 150ms ease;
|
|
84
|
+
}
|
|
85
|
+
.pimolu-theme-builder__preset:hover {
|
|
86
|
+
border-color: color-mix(in srgb, var(--pimolu-primary, #4f46e5) 45%, var(--pimolu-border, #e2e8f0));
|
|
87
|
+
background: color-mix(in srgb, var(--pimolu-primary, #4f46e5) 4%, var(--pimolu-surface, #ffffff));
|
|
88
|
+
}
|
|
89
|
+
.pimolu-theme-builder__preset[aria-checked=true] {
|
|
90
|
+
border-color: var(--pimolu-primary, #4f46e5);
|
|
91
|
+
background: color-mix(in srgb, var(--pimolu-primary, #4f46e5) 7%, var(--pimolu-surface, #ffffff));
|
|
92
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--pimolu-primary, #4f46e5) 22%, transparent);
|
|
93
|
+
}
|
|
94
|
+
.pimolu-theme-builder__preset:focus-visible {
|
|
95
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
96
|
+
outline-offset: 2px;
|
|
97
|
+
}
|
|
98
|
+
.pimolu-theme-builder__swatches {
|
|
99
|
+
display: flex;
|
|
100
|
+
gap: 4px;
|
|
101
|
+
height: 22px;
|
|
102
|
+
}
|
|
103
|
+
.pimolu-theme-builder__swatch {
|
|
104
|
+
flex: 1 1 0;
|
|
105
|
+
min-width: 0;
|
|
106
|
+
border: 1px solid color-mix(in srgb, var(--pimolu-foreground, #0f172a) 12%, transparent);
|
|
107
|
+
border-radius: calc(var(--pimolu-radius-sm, 6px) - 1px);
|
|
108
|
+
}
|
|
109
|
+
.pimolu-theme-builder__preset-label {
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
color: var(--pimolu-foreground, #0f172a);
|
|
112
|
+
font-size: 0.875rem;
|
|
113
|
+
font-weight: 600;
|
|
114
|
+
line-height: 1.35;
|
|
115
|
+
text-overflow: ellipsis;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
}
|
|
118
|
+
.pimolu-theme-builder__preset-description {
|
|
119
|
+
color: var(--pimolu-muted-foreground, #64748b);
|
|
120
|
+
font-size: 0.75rem;
|
|
121
|
+
line-height: 1.4;
|
|
122
|
+
}
|
|
123
|
+
.pimolu-theme-builder__color-row {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
127
|
+
}
|
|
128
|
+
.pimolu-theme-builder__color-input {
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
flex-shrink: 0;
|
|
131
|
+
width: 44px;
|
|
132
|
+
height: 40px;
|
|
133
|
+
padding: 2px;
|
|
134
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
135
|
+
border-radius: var(--pimolu-radius-md, 8px);
|
|
136
|
+
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
}
|
|
139
|
+
.pimolu-theme-builder__color-input:hover {
|
|
140
|
+
border-color: var(--pimolu-primary, #4f46e5);
|
|
141
|
+
}
|
|
142
|
+
.pimolu-theme-builder__color-input:focus-visible {
|
|
143
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
144
|
+
outline-offset: 2px;
|
|
145
|
+
}
|
|
146
|
+
.pimolu-theme-builder__color-input::-webkit-color-swatch-wrapper {
|
|
147
|
+
padding: 2px;
|
|
148
|
+
}
|
|
149
|
+
.pimolu-theme-builder__color-input::-webkit-color-swatch {
|
|
150
|
+
border: 0;
|
|
151
|
+
border-radius: calc(var(--pimolu-radius-sm, 6px) - 1px);
|
|
152
|
+
}
|
|
153
|
+
.pimolu-theme-builder__color-input::-moz-color-swatch {
|
|
154
|
+
border: 0;
|
|
155
|
+
border-radius: calc(var(--pimolu-radius-sm, 6px) - 1px);
|
|
156
|
+
}
|
|
157
|
+
.pimolu-theme-builder__color-value {
|
|
158
|
+
min-width: 0;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
color: var(--pimolu-muted-foreground, #64748b);
|
|
161
|
+
font-family: var( --pimolu-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace );
|
|
162
|
+
font-size: 0.8125rem;
|
|
163
|
+
font-variant-numeric: tabular-nums;
|
|
164
|
+
text-overflow: ellipsis;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
}
|
|
167
|
+
.pimolu-theme-builder__selects {
|
|
168
|
+
display: grid;
|
|
169
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
170
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
171
|
+
}
|
|
172
|
+
.pimolu-theme-builder__preview {
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
box-sizing: border-box;
|
|
177
|
+
min-height: 18rem;
|
|
178
|
+
padding: clamp(16px, 4vw, 32px);
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
181
|
+
border-radius: var(--pimolu-radius-lg, 12px);
|
|
182
|
+
background: var( --pimolu-background, #ffffff );
|
|
183
|
+
color: var(--pimolu-foreground, #0f172a);
|
|
184
|
+
}
|
|
185
|
+
.pimolu-theme-builder__sample {
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
width: 100%;
|
|
191
|
+
max-width: 24rem;
|
|
192
|
+
padding: var(--pimolu-spacing-5, 20px);
|
|
193
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
194
|
+
border-radius: var(--pimolu-radius-lg, 12px);
|
|
195
|
+
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
196
|
+
box-shadow: var(--pimolu-shadow-sm, none);
|
|
197
|
+
}
|
|
198
|
+
.pimolu-theme-builder__sample-head {
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
justify-content: space-between;
|
|
202
|
+
gap: var(--pimolu-spacing-2, 8px);
|
|
203
|
+
}
|
|
204
|
+
.pimolu-theme-builder__eyebrow {
|
|
205
|
+
color: var(--pimolu-muted-foreground, #64748b);
|
|
206
|
+
font-size: 0.6875rem;
|
|
207
|
+
font-weight: 600;
|
|
208
|
+
letter-spacing: 0.08em;
|
|
209
|
+
line-height: 1.4;
|
|
210
|
+
text-transform: uppercase;
|
|
211
|
+
}
|
|
212
|
+
.pimolu-theme-builder__sample-title {
|
|
213
|
+
margin: 0;
|
|
214
|
+
color: var(--pimolu-foreground, #0f172a);
|
|
215
|
+
font-size: 1.125rem;
|
|
216
|
+
font-weight: 600;
|
|
217
|
+
line-height: 1.3;
|
|
218
|
+
}
|
|
219
|
+
.pimolu-theme-builder__sample-copy {
|
|
220
|
+
margin: 0;
|
|
221
|
+
color: var(--pimolu-muted-foreground, #64748b);
|
|
222
|
+
font-size: 0.875rem;
|
|
223
|
+
line-height: 1.5;
|
|
224
|
+
}
|
|
225
|
+
.pimolu-theme-builder__sample-actions {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-wrap: wrap;
|
|
228
|
+
gap: var(--pimolu-spacing-2, 8px);
|
|
229
|
+
}
|
|
230
|
+
@media (max-width: 860px) {
|
|
231
|
+
.pimolu-theme-builder__layout {
|
|
232
|
+
grid-template-columns: minmax(0, 1fr);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
@media (max-width: 520px) {
|
|
236
|
+
.pimolu-theme-builder__selects {
|
|
237
|
+
grid-template-columns: minmax(0, 1fr);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
@media (prefers-reduced-motion: reduce) {
|
|
241
|
+
.pimolu-theme-builder__preset {
|
|
242
|
+
transition: none;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
@media (forced-colors: active) {
|
|
246
|
+
.pimolu-theme-builder__controls,
|
|
247
|
+
.pimolu-theme-builder__preview,
|
|
248
|
+
.pimolu-theme-builder__preset,
|
|
249
|
+
.pimolu-theme-builder__sample {
|
|
250
|
+
border-color: CanvasText;
|
|
251
|
+
background: Canvas;
|
|
252
|
+
color: CanvasText;
|
|
253
|
+
}
|
|
254
|
+
.pimolu-theme-builder__preset[aria-checked=true] {
|
|
255
|
+
outline: 2px solid Highlight;
|
|
256
|
+
outline-offset: 1px;
|
|
257
|
+
}
|
|
258
|
+
.pimolu-theme-builder__preset:focus-visible,
|
|
259
|
+
.pimolu-theme-builder__color-input:focus-visible {
|
|
260
|
+
outline-color: Highlight;
|
|
261
|
+
}
|
|
262
|
+
.pimolu-theme-builder__color-input {
|
|
263
|
+
border-color: ButtonText;
|
|
264
|
+
background: Canvas;
|
|
265
|
+
}
|
|
266
|
+
.pimolu-theme-builder__swatch {
|
|
267
|
+
border-color: CanvasText;
|
|
268
|
+
}
|
|
269
|
+
}
|
package/dist/themes.css
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* ../themes/dist/styles.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-color-white: #FFFFFF;
|
|
4
|
+
--pimolu-color-black: #000000;
|
|
5
|
+
--pimolu-color-ink-25: #FAF8F5;
|
|
6
|
+
--pimolu-color-ink-50: #F6F2EF;
|
|
7
|
+
--pimolu-color-ink-100: #F4F0EC;
|
|
8
|
+
--pimolu-color-ink-200: #E7E0D9;
|
|
9
|
+
--pimolu-color-ink-400: #B8B0BD;
|
|
10
|
+
--pimolu-color-ink-500: #8E8490;
|
|
11
|
+
--pimolu-color-ink-550: #857D90;
|
|
12
|
+
--pimolu-color-ink-600: #706B73;
|
|
13
|
+
--pimolu-color-ink-700: #39343E;
|
|
14
|
+
--pimolu-color-ink-800: #26232D;
|
|
15
|
+
--pimolu-color-ink-900: #24212A;
|
|
16
|
+
--pimolu-color-ink-950: #18161D;
|
|
17
|
+
--pimolu-color-iris-50: #F0EBF9;
|
|
18
|
+
--pimolu-color-iris-300: #B9A5FA;
|
|
19
|
+
--pimolu-color-iris-400: #A48BEF;
|
|
20
|
+
--pimolu-color-iris-600: #6746C7;
|
|
21
|
+
--pimolu-color-iris-700: #5637B0;
|
|
22
|
+
--pimolu-color-iris-900: #30283E;
|
|
23
|
+
--pimolu-color-iris-950: #21172D;
|
|
24
|
+
--pimolu-color-indigo-400: #818CF8;
|
|
25
|
+
--pimolu-color-indigo-500: #6366F1;
|
|
26
|
+
--pimolu-color-indigo-600: #4F46E5;
|
|
27
|
+
--pimolu-color-indigo-700: #4338CA;
|
|
28
|
+
--pimolu-color-slate-50: #F8FAFC;
|
|
29
|
+
--pimolu-color-slate-100: #F1F5F9;
|
|
30
|
+
--pimolu-color-slate-200: #E2E8F0;
|
|
31
|
+
--pimolu-color-slate-400: #94A3B8;
|
|
32
|
+
--pimolu-color-slate-500: #64748B;
|
|
33
|
+
--pimolu-color-slate-550: #607087;
|
|
34
|
+
--pimolu-color-slate-800: #1E293B;
|
|
35
|
+
--pimolu-color-slate-900: #0F172A;
|
|
36
|
+
--pimolu-color-slate-950: #020617;
|
|
37
|
+
--pimolu-color-red-400: #F87171;
|
|
38
|
+
--pimolu-color-red-500: #EF4444;
|
|
39
|
+
--pimolu-color-red-600: #DC2626;
|
|
40
|
+
--pimolu-color-red-700: #B91C1C;
|
|
41
|
+
--pimolu-color-green-500: #22C55E;
|
|
42
|
+
--pimolu-color-green-600: #16A34A;
|
|
43
|
+
--pimolu-color-green-700: #15803D;
|
|
44
|
+
--pimolu-color-green-800: #166534;
|
|
45
|
+
--pimolu-color-amber-500: #F59E0B;
|
|
46
|
+
--pimolu-color-amber-600: #D97706;
|
|
47
|
+
--pimolu-spacing-0: 0px;
|
|
48
|
+
--pimolu-spacing-1: 4px;
|
|
49
|
+
--pimolu-spacing-2: 8px;
|
|
50
|
+
--pimolu-spacing-3: 12px;
|
|
51
|
+
--pimolu-spacing-4: 16px;
|
|
52
|
+
--pimolu-spacing-5: 20px;
|
|
53
|
+
--pimolu-spacing-6: 24px;
|
|
54
|
+
--pimolu-spacing-8: 32px;
|
|
55
|
+
--pimolu-spacing-10: 40px;
|
|
56
|
+
--pimolu-spacing-12: 48px;
|
|
57
|
+
--pimolu-radius-none: 0px;
|
|
58
|
+
--pimolu-radius-sm: 6px;
|
|
59
|
+
--pimolu-radius-md: 10px;
|
|
60
|
+
--pimolu-radius-lg: 14px;
|
|
61
|
+
--pimolu-radius-xl: 18px;
|
|
62
|
+
--pimolu-radius-full: 9999px;
|
|
63
|
+
--pimolu-font-size-xs: 12px;
|
|
64
|
+
--pimolu-font-size-sm: 14px;
|
|
65
|
+
--pimolu-font-size-md: 16px;
|
|
66
|
+
--pimolu-font-size-lg: 18px;
|
|
67
|
+
--pimolu-font-size-xl: 20px;
|
|
68
|
+
--pimolu-font-size-2xl: 24px;
|
|
69
|
+
--pimolu-font-size-3xl: 30px;
|
|
70
|
+
--pimolu-font-family-sans:
|
|
71
|
+
Inter,
|
|
72
|
+
system-ui,
|
|
73
|
+
sans-serif;
|
|
74
|
+
}
|
|
75
|
+
:root,
|
|
76
|
+
[data-pimolu-theme=light] {
|
|
77
|
+
color-scheme: light;
|
|
78
|
+
--pimolu-background: var(--pimolu-color-white);
|
|
79
|
+
--pimolu-foreground: var(--pimolu-color-slate-950);
|
|
80
|
+
--pimolu-surface: var(--pimolu-color-slate-50);
|
|
81
|
+
--pimolu-surface-foreground: var(--pimolu-color-slate-900);
|
|
82
|
+
--pimolu-muted: var(--pimolu-color-slate-100);
|
|
83
|
+
--pimolu-muted-foreground: var(--pimolu-color-slate-550);
|
|
84
|
+
--pimolu-border: var(--pimolu-color-slate-200);
|
|
85
|
+
--pimolu-primary: var(--pimolu-color-indigo-600);
|
|
86
|
+
--pimolu-primary-hover: var(--pimolu-color-indigo-700);
|
|
87
|
+
--pimolu-primary-foreground: var(--pimolu-color-white);
|
|
88
|
+
--pimolu-focus-ring: var(--pimolu-color-indigo-500);
|
|
89
|
+
--pimolu-success: var(--pimolu-color-green-700);
|
|
90
|
+
--pimolu-success-hover: var(--pimolu-color-green-800);
|
|
91
|
+
--pimolu-success-foreground: var(--pimolu-color-white);
|
|
92
|
+
--pimolu-warning: var(--pimolu-color-amber-500);
|
|
93
|
+
--pimolu-warning-hover: var(--pimolu-color-amber-600);
|
|
94
|
+
--pimolu-warning-foreground: var(--pimolu-color-slate-950);
|
|
95
|
+
--pimolu-danger: var(--pimolu-color-red-600);
|
|
96
|
+
--pimolu-danger-hover: var(--pimolu-color-red-700);
|
|
97
|
+
--pimolu-danger-foreground: var(--pimolu-color-white);
|
|
98
|
+
--pimolu-control-border: var(--pimolu-color-slate-500);
|
|
99
|
+
--pimolu-primary-soft: var(--pimolu-color-slate-100);
|
|
100
|
+
--pimolu-primary-soft-foreground: var(--pimolu-color-indigo-600);
|
|
101
|
+
}
|
|
102
|
+
[data-pimolu-theme=dark] {
|
|
103
|
+
color-scheme: dark;
|
|
104
|
+
--pimolu-background: var(--pimolu-color-slate-950);
|
|
105
|
+
--pimolu-foreground: var(--pimolu-color-slate-50);
|
|
106
|
+
--pimolu-surface: var(--pimolu-color-slate-900);
|
|
107
|
+
--pimolu-surface-foreground: var(--pimolu-color-slate-50);
|
|
108
|
+
--pimolu-muted: var(--pimolu-color-slate-800);
|
|
109
|
+
--pimolu-muted-foreground: var(--pimolu-color-slate-400);
|
|
110
|
+
--pimolu-border: var(--pimolu-color-slate-800);
|
|
111
|
+
--pimolu-primary: var(--pimolu-color-indigo-400);
|
|
112
|
+
--pimolu-primary-hover: var(--pimolu-color-indigo-500);
|
|
113
|
+
--pimolu-primary-foreground: var(--pimolu-color-slate-950);
|
|
114
|
+
--pimolu-focus-ring: var(--pimolu-color-indigo-400);
|
|
115
|
+
--pimolu-success: var(--pimolu-color-green-500);
|
|
116
|
+
--pimolu-success-hover: var(--pimolu-color-green-600);
|
|
117
|
+
--pimolu-success-foreground: var(--pimolu-color-slate-950);
|
|
118
|
+
--pimolu-warning: var(--pimolu-color-amber-500);
|
|
119
|
+
--pimolu-warning-hover: var(--pimolu-color-amber-600);
|
|
120
|
+
--pimolu-warning-foreground: var(--pimolu-color-slate-950);
|
|
121
|
+
--pimolu-danger: var(--pimolu-color-red-400);
|
|
122
|
+
--pimolu-danger-hover: var(--pimolu-color-red-500);
|
|
123
|
+
--pimolu-danger-foreground: var(--pimolu-color-slate-950);
|
|
124
|
+
--pimolu-control-border: var(--pimolu-color-slate-500);
|
|
125
|
+
--pimolu-primary-soft: var(--pimolu-color-slate-800);
|
|
126
|
+
--pimolu-primary-soft-foreground: var(--pimolu-color-indigo-400);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* src/themes.css */
|