@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,121 @@
|
|
|
1
|
+
/* src/pin-input.css */
|
|
2
|
+
.pimolu-pin-input {
|
|
3
|
+
--pimolu-pin-input-cell-size: 44px;
|
|
4
|
+
--pimolu-pin-input-cell-height: 48px;
|
|
5
|
+
--pimolu-pin-input-font-size: 1.125rem;
|
|
6
|
+
--pimolu-pin-input-gap: 6px;
|
|
7
|
+
--pimolu-pin-input-tone: var( --pimolu-focus-ring, var(--pimolu-primary, #6366f1) );
|
|
8
|
+
--pimolu-pin-input-elevation: var( --pimolu-control-shadow, var(--pimolu-shadow-raised, none) );
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 6px;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground, currentColor) );
|
|
15
|
+
font-family: var( --pimolu-font-body, var(--pimolu-font-family-sans, inherit) );
|
|
16
|
+
}
|
|
17
|
+
.pimolu-pin-input__label {
|
|
18
|
+
color: var(--pimolu-foreground, currentColor);
|
|
19
|
+
font-size: 0.875rem;
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
line-height: 1.4;
|
|
22
|
+
}
|
|
23
|
+
.pimolu-pin-input__groups {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 10px;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
}
|
|
30
|
+
.pimolu-pin-input__group {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: var(--pimolu-pin-input-gap);
|
|
34
|
+
min-width: 0;
|
|
35
|
+
}
|
|
36
|
+
.pimolu-pin-input__cell {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
width: var(--pimolu-pin-input-cell-size);
|
|
39
|
+
height: var(--pimolu-pin-input-cell-height);
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0;
|
|
42
|
+
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
43
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
|
|
44
|
+
border-radius: var(--pimolu-radius-md, 8px);
|
|
45
|
+
box-shadow: var(--pimolu-pin-input-elevation);
|
|
46
|
+
color: var(--pimolu-foreground, currentColor);
|
|
47
|
+
font: inherit;
|
|
48
|
+
font-size: var(--pimolu-pin-input-font-size);
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
font-variant-numeric: tabular-nums;
|
|
51
|
+
line-height: 1;
|
|
52
|
+
text-align: center;
|
|
53
|
+
caret-color: var(--pimolu-pin-input-tone);
|
|
54
|
+
transition:
|
|
55
|
+
background-color 150ms,
|
|
56
|
+
border-color 150ms,
|
|
57
|
+
box-shadow 150ms;
|
|
58
|
+
}
|
|
59
|
+
.pimolu-pin-input__cell:hover:not(:disabled) {
|
|
60
|
+
border-color: var(--pimolu-pin-input-tone);
|
|
61
|
+
}
|
|
62
|
+
.pimolu-pin-input__cell:focus {
|
|
63
|
+
border-color: var(--pimolu-pin-input-tone);
|
|
64
|
+
outline: none;
|
|
65
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--pimolu-pin-input-tone) 22%, transparent), var(--pimolu-pin-input-elevation);
|
|
66
|
+
}
|
|
67
|
+
.pimolu-pin-input__cell::selection {
|
|
68
|
+
background: color-mix(in srgb, var(--pimolu-pin-input-tone) 30%, transparent);
|
|
69
|
+
}
|
|
70
|
+
.pimolu-pin-input__helper,
|
|
71
|
+
.pimolu-pin-input__error {
|
|
72
|
+
margin: 0;
|
|
73
|
+
font-size: 0.75rem;
|
|
74
|
+
line-height: 1.5;
|
|
75
|
+
}
|
|
76
|
+
.pimolu-pin-input__helper {
|
|
77
|
+
color: var(--pimolu-muted-foreground, #64748b);
|
|
78
|
+
}
|
|
79
|
+
.pimolu-pin-input__error {
|
|
80
|
+
color: var(--pimolu-danger, #dc2626);
|
|
81
|
+
}
|
|
82
|
+
.pimolu-pin-input--invalid {
|
|
83
|
+
--pimolu-pin-input-tone: var( --pimolu-danger, #dc2626 );
|
|
84
|
+
}
|
|
85
|
+
.pimolu-pin-input--invalid .pimolu-pin-input__cell {
|
|
86
|
+
border-color: var(--pimolu-pin-input-tone);
|
|
87
|
+
}
|
|
88
|
+
.pimolu-pin-input--disabled .pimolu-pin-input__cell {
|
|
89
|
+
background: var(--pimolu-muted, #f1f5f9);
|
|
90
|
+
box-shadow: none;
|
|
91
|
+
opacity: 0.65;
|
|
92
|
+
cursor: not-allowed;
|
|
93
|
+
}
|
|
94
|
+
.pimolu-pin-input--readonly .pimolu-pin-input__cell {
|
|
95
|
+
background: var(--pimolu-muted, #f1f5f9);
|
|
96
|
+
cursor: default;
|
|
97
|
+
}
|
|
98
|
+
@media (prefers-reduced-motion: reduce) {
|
|
99
|
+
.pimolu-pin-input__cell {
|
|
100
|
+
transition: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@media (forced-colors: active) {
|
|
104
|
+
.pimolu-pin-input__cell:focus {
|
|
105
|
+
outline: 2px solid Highlight;
|
|
106
|
+
outline-offset: 2px;
|
|
107
|
+
}
|
|
108
|
+
.pimolu-pin-input--invalid .pimolu-pin-input__cell {
|
|
109
|
+
border-color: Mark;
|
|
110
|
+
}
|
|
111
|
+
.pimolu-pin-input--disabled .pimolu-pin-input__cell {
|
|
112
|
+
color: GrayText;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
@media (max-width: 360px) {
|
|
116
|
+
.pimolu-pin-input {
|
|
117
|
+
--pimolu-pin-input-cell-size: 38px;
|
|
118
|
+
--pimolu-pin-input-cell-height: 44px;
|
|
119
|
+
--pimolu-pin-input-gap: 4px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* src/popconfirm.css */
|
|
2
|
+
.pimolu-popconfirm {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: 14px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
min-width: 15rem;
|
|
7
|
+
max-width: 22rem;
|
|
8
|
+
}
|
|
9
|
+
.pimolu-popconfirm__header {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
gap: 10px;
|
|
13
|
+
}
|
|
14
|
+
.pimolu-popconfirm__icon {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
flex: 0 0 auto;
|
|
17
|
+
margin-block-start: 1px;
|
|
18
|
+
color: var(--pimolu-warning, #d97706);
|
|
19
|
+
}
|
|
20
|
+
.pimolu-popconfirm[data-variant=destructive] .pimolu-popconfirm__icon {
|
|
21
|
+
color: var(--pimolu-danger, #dc2626);
|
|
22
|
+
}
|
|
23
|
+
.pimolu-popconfirm__body {
|
|
24
|
+
min-width: 0;
|
|
25
|
+
}
|
|
26
|
+
.pimolu-popconfirm__title {
|
|
27
|
+
margin: 0;
|
|
28
|
+
color: var(--pimolu-foreground);
|
|
29
|
+
font-size: 0.9375rem;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 1.35;
|
|
32
|
+
}
|
|
33
|
+
.pimolu-popconfirm__description {
|
|
34
|
+
margin: 4px 0 0;
|
|
35
|
+
color: var(--pimolu-muted-foreground);
|
|
36
|
+
font-size: 0.8125rem;
|
|
37
|
+
line-height: 1.5;
|
|
38
|
+
}
|
|
39
|
+
.pimolu-popconfirm__actions {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: flex-end;
|
|
43
|
+
flex-wrap: wrap;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
}
|
|
46
|
+
.pimolu-popconfirm__button {
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
min-height: 32px;
|
|
52
|
+
padding: 0 12px;
|
|
53
|
+
border: 1px solid transparent;
|
|
54
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
55
|
+
font: inherit;
|
|
56
|
+
font-size: 0.8125rem;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
.pimolu-popconfirm__button:focus-visible {
|
|
61
|
+
outline: 2px solid var(--pimolu-focus-ring, Highlight);
|
|
62
|
+
outline-offset: 2px;
|
|
63
|
+
}
|
|
64
|
+
.pimolu-popconfirm__button--cancel {
|
|
65
|
+
border-color: var(--pimolu-border);
|
|
66
|
+
background: transparent;
|
|
67
|
+
color: var(--pimolu-foreground);
|
|
68
|
+
}
|
|
69
|
+
.pimolu-popconfirm__button--cancel:hover {
|
|
70
|
+
background: var(--pimolu-muted);
|
|
71
|
+
}
|
|
72
|
+
.pimolu-popconfirm__button--confirm {
|
|
73
|
+
background: var( --pimolu-primary, var(--pimolu-foreground) );
|
|
74
|
+
color: var(--pimolu-primary-foreground);
|
|
75
|
+
}
|
|
76
|
+
.pimolu-popconfirm__button--confirm:hover {
|
|
77
|
+
background: var( --pimolu-primary-hover, var(--pimolu-primary, var(--pimolu-foreground)) );
|
|
78
|
+
}
|
|
79
|
+
.pimolu-popconfirm[data-variant=destructive] .pimolu-popconfirm__button--confirm {
|
|
80
|
+
background: var(--pimolu-danger, #dc2626);
|
|
81
|
+
color: var(--pimolu-danger-foreground, #ffffff);
|
|
82
|
+
}
|
|
83
|
+
.pimolu-popconfirm[data-variant=destructive] .pimolu-popconfirm__button--confirm:hover {
|
|
84
|
+
background: color-mix(in srgb, var(--pimolu-danger, #dc2626) 86%, black);
|
|
85
|
+
}
|
|
86
|
+
@media (forced-colors: active) {
|
|
87
|
+
.pimolu-popconfirm__button {
|
|
88
|
+
border: 1px solid CanvasText;
|
|
89
|
+
background: Canvas;
|
|
90
|
+
color: CanvasText;
|
|
91
|
+
}
|
|
92
|
+
.pimolu-popconfirm__button:focus-visible {
|
|
93
|
+
outline: 2px solid Highlight;
|
|
94
|
+
}
|
|
95
|
+
}
|
package/dist/popover.css
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* src/popover.css */
|
|
2
|
+
.pimolu-popover {
|
|
3
|
+
--pimolu-popover-shift-x: 0px;
|
|
4
|
+
--pimolu-popover-shift-y: 6px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
min-width: 12rem;
|
|
7
|
+
padding: var(--pimolu-popover-padding, 16px);
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
overscroll-behavior: contain;
|
|
10
|
+
background: var( --pimolu-surface, var(--pimolu-background) );
|
|
11
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground) );
|
|
12
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
13
|
+
border-radius: var(--pimolu-radius-lg, 12px);
|
|
14
|
+
box-shadow: var(--pimolu-shadow-raised, none);
|
|
15
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
16
|
+
font-size: 0.875rem;
|
|
17
|
+
line-height: 1.5;
|
|
18
|
+
outline: none;
|
|
19
|
+
}
|
|
20
|
+
.pimolu-popover--padding-none {
|
|
21
|
+
--pimolu-popover-padding: 0px;
|
|
22
|
+
}
|
|
23
|
+
.pimolu-popover--padding-sm {
|
|
24
|
+
--pimolu-popover-padding: var( --pimolu-spacing-3, 12px );
|
|
25
|
+
}
|
|
26
|
+
.pimolu-popover--padding-md {
|
|
27
|
+
--pimolu-popover-padding: var( --pimolu-spacing-4, 16px );
|
|
28
|
+
}
|
|
29
|
+
.pimolu-popover--padding-lg {
|
|
30
|
+
--pimolu-popover-padding: var( --pimolu-spacing-6, 24px );
|
|
31
|
+
}
|
|
32
|
+
.pimolu-popover--match-width {
|
|
33
|
+
min-width: 0;
|
|
34
|
+
}
|
|
35
|
+
.pimolu-popover[data-side=left],
|
|
36
|
+
.pimolu-popover[data-side=right] {
|
|
37
|
+
min-width: 0;
|
|
38
|
+
}
|
|
39
|
+
.pimolu-popover[data-side=top] {
|
|
40
|
+
--pimolu-popover-shift-x: 0px;
|
|
41
|
+
--pimolu-popover-shift-y: 6px;
|
|
42
|
+
}
|
|
43
|
+
.pimolu-popover[data-side=bottom] {
|
|
44
|
+
--pimolu-popover-shift-x: 0px;
|
|
45
|
+
--pimolu-popover-shift-y: -6px;
|
|
46
|
+
}
|
|
47
|
+
.pimolu-popover[data-side=left] {
|
|
48
|
+
--pimolu-popover-shift-x: 6px;
|
|
49
|
+
--pimolu-popover-shift-y: 0px;
|
|
50
|
+
}
|
|
51
|
+
.pimolu-popover[data-side=right] {
|
|
52
|
+
--pimolu-popover-shift-x: -6px;
|
|
53
|
+
--pimolu-popover-shift-y: 0px;
|
|
54
|
+
}
|
|
55
|
+
.pimolu-popover[data-state=open] {
|
|
56
|
+
animation: pimolu-popover-in 160ms ease-out;
|
|
57
|
+
}
|
|
58
|
+
.pimolu-popover[data-state=closing] {
|
|
59
|
+
animation: pimolu-popover-out 120ms ease-in forwards;
|
|
60
|
+
}
|
|
61
|
+
@keyframes pimolu-popover-in {
|
|
62
|
+
from {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
transform: translate(var(--pimolu-popover-shift-x), var(--pimolu-popover-shift-y)) scale(0.98);
|
|
65
|
+
}
|
|
66
|
+
to {
|
|
67
|
+
opacity: 1;
|
|
68
|
+
transform: translate(0, 0) scale(1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@keyframes pimolu-popover-out {
|
|
72
|
+
from {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
transform: scale(1);
|
|
75
|
+
}
|
|
76
|
+
to {
|
|
77
|
+
opacity: 0;
|
|
78
|
+
transform: scale(0.98);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@media (prefers-reduced-motion: reduce) {
|
|
82
|
+
.pimolu-popover[data-state=open],
|
|
83
|
+
.pimolu-popover[data-state=closing] {
|
|
84
|
+
animation: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
@media (forced-colors: active) {
|
|
88
|
+
.pimolu-popover {
|
|
89
|
+
border: 1px solid CanvasText;
|
|
90
|
+
background: Canvas;
|
|
91
|
+
color: CanvasText;
|
|
92
|
+
box-shadow: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* src/progress.css */
|
|
2
|
+
.pimolu-progress {
|
|
3
|
+
--pimolu-progress-track-height: 8px;
|
|
4
|
+
--pimolu-progress-gap: 8px;
|
|
5
|
+
--pimolu-progress-tone: var(--pimolu-primary);
|
|
6
|
+
--pimolu-progress-track: var(--pimolu-muted, rgba(0, 0, 0, 0.12));
|
|
7
|
+
--pimolu-progress-value: 0%;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: var(--pimolu-progress-gap);
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
14
|
+
color: var(--pimolu-foreground, currentColor);
|
|
15
|
+
}
|
|
16
|
+
.pimolu-progress--sm {
|
|
17
|
+
--pimolu-progress-track-height: 4px;
|
|
18
|
+
--pimolu-progress-gap: 6px;
|
|
19
|
+
}
|
|
20
|
+
.pimolu-progress--md {
|
|
21
|
+
--pimolu-progress-track-height: 8px;
|
|
22
|
+
--pimolu-progress-gap: 8px;
|
|
23
|
+
}
|
|
24
|
+
.pimolu-progress--lg {
|
|
25
|
+
--pimolu-progress-track-height: 12px;
|
|
26
|
+
--pimolu-progress-gap: 10px;
|
|
27
|
+
}
|
|
28
|
+
.pimolu-progress__header {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: baseline;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
gap: 12px;
|
|
33
|
+
}
|
|
34
|
+
.pimolu-progress__label {
|
|
35
|
+
font-size: 0.875rem;
|
|
36
|
+
line-height: 1.25;
|
|
37
|
+
}
|
|
38
|
+
.pimolu-progress__value {
|
|
39
|
+
font-size: 0.8125rem;
|
|
40
|
+
font-variant-numeric: tabular-nums;
|
|
41
|
+
color: var(--pimolu-muted-foreground, currentColor);
|
|
42
|
+
}
|
|
43
|
+
.pimolu-progress__track {
|
|
44
|
+
position: relative;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: var(--pimolu-progress-track-height);
|
|
48
|
+
border-radius: 9999px;
|
|
49
|
+
background: var(--pimolu-progress-track);
|
|
50
|
+
}
|
|
51
|
+
.pimolu-progress__fill {
|
|
52
|
+
width: var(--pimolu-progress-value);
|
|
53
|
+
height: 100%;
|
|
54
|
+
border-radius: inherit;
|
|
55
|
+
background: var(--pimolu-progress-tone);
|
|
56
|
+
transition: width 200ms ease;
|
|
57
|
+
}
|
|
58
|
+
.pimolu-progress--indeterminate .pimolu-progress__fill {
|
|
59
|
+
width: 40%;
|
|
60
|
+
animation: pimolu-progress-sweep 1.4s ease-in-out infinite;
|
|
61
|
+
}
|
|
62
|
+
@keyframes pimolu-progress-sweep {
|
|
63
|
+
from {
|
|
64
|
+
transform: translateX(-100%);
|
|
65
|
+
}
|
|
66
|
+
to {
|
|
67
|
+
transform: translateX(300%);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
.pimolu-progress--neutral {
|
|
71
|
+
--pimolu-progress-tone: var(--pimolu-neutral, var(--pimolu-foreground));
|
|
72
|
+
}
|
|
73
|
+
.pimolu-progress--primary {
|
|
74
|
+
--pimolu-progress-tone: var(--pimolu-primary);
|
|
75
|
+
}
|
|
76
|
+
.pimolu-progress--secondary {
|
|
77
|
+
--pimolu-progress-tone: var(--pimolu-secondary, currentColor);
|
|
78
|
+
}
|
|
79
|
+
.pimolu-progress--success {
|
|
80
|
+
--pimolu-progress-tone: var(--pimolu-success, #15803d);
|
|
81
|
+
}
|
|
82
|
+
.pimolu-progress--warning {
|
|
83
|
+
--pimolu-progress-tone: var(--pimolu-warning, #d97706);
|
|
84
|
+
}
|
|
85
|
+
.pimolu-progress--danger {
|
|
86
|
+
--pimolu-progress-tone: var(--pimolu-danger, #dc2626);
|
|
87
|
+
}
|
|
88
|
+
@media (prefers-reduced-motion: reduce) {
|
|
89
|
+
.pimolu-progress__fill {
|
|
90
|
+
transition: none;
|
|
91
|
+
}
|
|
92
|
+
.pimolu-progress--indeterminate .pimolu-progress__fill {
|
|
93
|
+
animation: none;
|
|
94
|
+
transform: none;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@media (forced-colors: active) {
|
|
98
|
+
.pimolu-progress {
|
|
99
|
+
--pimolu-progress-tone: Highlight;
|
|
100
|
+
--pimolu-progress-track: Canvas;
|
|
101
|
+
}
|
|
102
|
+
.pimolu-progress__track {
|
|
103
|
+
border: 1px solid CanvasText;
|
|
104
|
+
}
|
|
105
|
+
}
|
package/dist/prose.css
ADDED
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/* src/prose.css */
|
|
2
|
+
.pimolu-prose {
|
|
3
|
+
--pimolu-prose-font-size: var(--pimolu-font-size-md, 1rem);
|
|
4
|
+
--pimolu-prose-line-height: 1.75;
|
|
5
|
+
--pimolu-prose-flow: var(--pimolu-spacing-4, 16px);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
max-width: 72ch;
|
|
9
|
+
color: var(--pimolu-foreground);
|
|
10
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
11
|
+
font-size: var(--pimolu-prose-font-size);
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
line-height: var(--pimolu-prose-line-height);
|
|
14
|
+
text-wrap: pretty;
|
|
15
|
+
overflow-wrap: anywhere;
|
|
16
|
+
}
|
|
17
|
+
.pimolu-prose--sm {
|
|
18
|
+
--pimolu-prose-font-size: var(--pimolu-font-size-sm, 0.875rem);
|
|
19
|
+
--pimolu-prose-line-height: 1.7;
|
|
20
|
+
--pimolu-prose-flow: var(--pimolu-spacing-3, 12px);
|
|
21
|
+
}
|
|
22
|
+
.pimolu-prose--md {
|
|
23
|
+
--pimolu-prose-font-size: var(--pimolu-font-size-md, 1rem);
|
|
24
|
+
--pimolu-prose-line-height: 1.75;
|
|
25
|
+
--pimolu-prose-flow: var(--pimolu-spacing-4, 16px);
|
|
26
|
+
}
|
|
27
|
+
.pimolu-prose--lg {
|
|
28
|
+
--pimolu-prose-font-size: var(--pimolu-font-size-lg, 1.125rem);
|
|
29
|
+
--pimolu-prose-line-height: 1.7;
|
|
30
|
+
--pimolu-prose-flow: var(--pimolu-spacing-5, 20px);
|
|
31
|
+
}
|
|
32
|
+
.pimolu-prose > :where(p, ul, ol, dl, blockquote, figure, pre, table, hr) {
|
|
33
|
+
margin-block: 0 var(--pimolu-prose-flow);
|
|
34
|
+
}
|
|
35
|
+
.pimolu-prose > .pimolu-anchor {
|
|
36
|
+
margin-block: calc(var(--pimolu-prose-flow) * 1.75) var(--pimolu-spacing-3, 12px);
|
|
37
|
+
}
|
|
38
|
+
.pimolu-prose > .pimolu-anchor:first-child {
|
|
39
|
+
margin-block-start: 0;
|
|
40
|
+
}
|
|
41
|
+
.pimolu-prose > :where(:first-child) {
|
|
42
|
+
margin-block-start: 0;
|
|
43
|
+
}
|
|
44
|
+
.pimolu-prose > :where(:last-child) {
|
|
45
|
+
margin-block-end: 0;
|
|
46
|
+
}
|
|
47
|
+
.pimolu-prose :where(h1, h2, h3, h4, h5, h6) {
|
|
48
|
+
color: var(--pimolu-foreground);
|
|
49
|
+
font-family: var(--pimolu-font-heading, inherit);
|
|
50
|
+
font-weight: 700;
|
|
51
|
+
line-height: 1.25;
|
|
52
|
+
letter-spacing: -0.015em;
|
|
53
|
+
text-wrap: balance;
|
|
54
|
+
overflow-wrap: anywhere;
|
|
55
|
+
scroll-margin-top: 5rem;
|
|
56
|
+
}
|
|
57
|
+
.pimolu-prose > :where(h1, h2, h3, h4, h5, h6) {
|
|
58
|
+
margin-block: calc(var(--pimolu-prose-flow) * 1.75) var(--pimolu-spacing-3, 12px);
|
|
59
|
+
}
|
|
60
|
+
.pimolu-prose > :where(h1, h2, h3, h4, h5, h6):first-child {
|
|
61
|
+
margin-block-start: 0;
|
|
62
|
+
}
|
|
63
|
+
.pimolu-prose :where(h1) {
|
|
64
|
+
font-size: 2em;
|
|
65
|
+
line-height: 1.1;
|
|
66
|
+
letter-spacing: -0.025em;
|
|
67
|
+
}
|
|
68
|
+
.pimolu-prose :where(h2) {
|
|
69
|
+
font-size: 1.5em;
|
|
70
|
+
}
|
|
71
|
+
.pimolu-prose :where(h3) {
|
|
72
|
+
font-size: 1.25em;
|
|
73
|
+
}
|
|
74
|
+
.pimolu-prose :where(h4) {
|
|
75
|
+
font-size: 1.125em;
|
|
76
|
+
}
|
|
77
|
+
.pimolu-prose :where(h5) {
|
|
78
|
+
font-size: 1em;
|
|
79
|
+
}
|
|
80
|
+
.pimolu-prose :where(h6) {
|
|
81
|
+
color: var(--pimolu-muted-foreground);
|
|
82
|
+
font-size: 0.875em;
|
|
83
|
+
letter-spacing: 0.04em;
|
|
84
|
+
text-transform: uppercase;
|
|
85
|
+
}
|
|
86
|
+
.pimolu-prose :where(strong, b) {
|
|
87
|
+
color: var(--pimolu-foreground);
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
}
|
|
90
|
+
.pimolu-prose :where(em, i) {
|
|
91
|
+
font-style: italic;
|
|
92
|
+
}
|
|
93
|
+
.pimolu-prose :where(small) {
|
|
94
|
+
font-size: 0.875em;
|
|
95
|
+
}
|
|
96
|
+
.pimolu-prose :where(sub, sup) {
|
|
97
|
+
font-size: 0.75em;
|
|
98
|
+
line-height: 0;
|
|
99
|
+
}
|
|
100
|
+
.pimolu-prose :where(a) {
|
|
101
|
+
border-radius: 2px;
|
|
102
|
+
color: var(--pimolu-primary);
|
|
103
|
+
font-weight: 500;
|
|
104
|
+
text-decoration-line: underline;
|
|
105
|
+
text-decoration-thickness: 1px;
|
|
106
|
+
text-underline-offset: 3px;
|
|
107
|
+
transition: color 150ms ease;
|
|
108
|
+
}
|
|
109
|
+
.pimolu-prose :where(a):hover {
|
|
110
|
+
color: var(--pimolu-primary-hover, var(--pimolu-primary));
|
|
111
|
+
}
|
|
112
|
+
.pimolu-prose :where(a):focus-visible {
|
|
113
|
+
outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary));
|
|
114
|
+
outline-offset: 2px;
|
|
115
|
+
}
|
|
116
|
+
.pimolu-prose :where(ul, ol) {
|
|
117
|
+
padding-inline-start: 1.5em;
|
|
118
|
+
}
|
|
119
|
+
.pimolu-prose :where(ul) {
|
|
120
|
+
list-style-type: disc;
|
|
121
|
+
}
|
|
122
|
+
.pimolu-prose :where(ol) {
|
|
123
|
+
list-style-type: decimal;
|
|
124
|
+
}
|
|
125
|
+
.pimolu-prose :where(li) {
|
|
126
|
+
margin-block: 0.25em;
|
|
127
|
+
padding-inline-start: 0.15em;
|
|
128
|
+
}
|
|
129
|
+
.pimolu-prose :where(li)::marker {
|
|
130
|
+
color: var(--pimolu-muted-foreground);
|
|
131
|
+
}
|
|
132
|
+
.pimolu-prose :where(ul ul, ul ol, ol ul, ol ol) {
|
|
133
|
+
margin-block: 0.35em 0;
|
|
134
|
+
}
|
|
135
|
+
.pimolu-prose :where(li > p) {
|
|
136
|
+
margin-block: 0 0.5em;
|
|
137
|
+
}
|
|
138
|
+
.pimolu-prose :where(li > p):last-child {
|
|
139
|
+
margin-block-end: 0;
|
|
140
|
+
}
|
|
141
|
+
.pimolu-prose :where(dt) {
|
|
142
|
+
color: var(--pimolu-foreground);
|
|
143
|
+
font-weight: 600;
|
|
144
|
+
}
|
|
145
|
+
.pimolu-prose :where(dd) {
|
|
146
|
+
margin-inline-start: 1.5em;
|
|
147
|
+
}
|
|
148
|
+
.pimolu-prose :where(blockquote) {
|
|
149
|
+
margin-inline: 0;
|
|
150
|
+
padding: var(--pimolu-spacing-3, 12px) var(--pimolu-spacing-4, 16px);
|
|
151
|
+
border-inline-start: 3px solid var(--pimolu-primary);
|
|
152
|
+
border-radius: 0 var(--pimolu-radius-sm, 6px) var(--pimolu-radius-sm, 6px) 0;
|
|
153
|
+
background: var(--pimolu-muted);
|
|
154
|
+
color: var(--pimolu-muted-foreground);
|
|
155
|
+
font-style: italic;
|
|
156
|
+
}
|
|
157
|
+
.pimolu-prose :where(blockquote p) {
|
|
158
|
+
margin-block: 0 0.5em;
|
|
159
|
+
}
|
|
160
|
+
.pimolu-prose :where(blockquote > :last-child) {
|
|
161
|
+
margin-block-end: 0;
|
|
162
|
+
}
|
|
163
|
+
.pimolu-prose :where(code) {
|
|
164
|
+
padding: 0.12em 0.35em;
|
|
165
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
166
|
+
border-radius: var(--pimolu-radius-sm, 6px);
|
|
167
|
+
background: var(--pimolu-muted);
|
|
168
|
+
color: var(--pimolu-foreground);
|
|
169
|
+
font-family: var( --pimolu-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace );
|
|
170
|
+
font-size: 0.875em;
|
|
171
|
+
line-height: 1.4;
|
|
172
|
+
overflow-wrap: anywhere;
|
|
173
|
+
}
|
|
174
|
+
.pimolu-prose :where(kbd) {
|
|
175
|
+
display: inline-grid;
|
|
176
|
+
place-items: center;
|
|
177
|
+
min-width: 1.6em;
|
|
178
|
+
padding: 0.1em 0.4em;
|
|
179
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
180
|
+
border-radius: var(--pimolu-radius-sm, 6px);
|
|
181
|
+
background: var(--pimolu-surface);
|
|
182
|
+
box-shadow: inset 0 -1px 0 var(--pimolu-border);
|
|
183
|
+
font-family: var( --pimolu-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace );
|
|
184
|
+
font-size: 0.85em;
|
|
185
|
+
line-height: 1.5;
|
|
186
|
+
white-space: nowrap;
|
|
187
|
+
}
|
|
188
|
+
.pimolu-prose :where(pre) {
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
max-width: 100%;
|
|
191
|
+
margin-inline: 0;
|
|
192
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
193
|
+
overflow-x: auto;
|
|
194
|
+
overscroll-behavior-inline: contain;
|
|
195
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
196
|
+
border-radius: var(--pimolu-radius-md, 10px);
|
|
197
|
+
background: var(--pimolu-muted);
|
|
198
|
+
color: var(--pimolu-foreground);
|
|
199
|
+
font-family: var( --pimolu-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace );
|
|
200
|
+
font-size: 0.875em;
|
|
201
|
+
line-height: 1.65;
|
|
202
|
+
tab-size: 2;
|
|
203
|
+
}
|
|
204
|
+
.pimolu-prose :where(pre code) {
|
|
205
|
+
padding: 0;
|
|
206
|
+
border: 0;
|
|
207
|
+
border-radius: 0;
|
|
208
|
+
background: transparent;
|
|
209
|
+
color: inherit;
|
|
210
|
+
font-size: inherit;
|
|
211
|
+
line-height: inherit;
|
|
212
|
+
white-space: pre;
|
|
213
|
+
}
|
|
214
|
+
.pimolu-prose :where(pre):focus-visible {
|
|
215
|
+
outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary));
|
|
216
|
+
outline-offset: 2px;
|
|
217
|
+
}
|
|
218
|
+
.pimolu-prose :where(table) {
|
|
219
|
+
display: block;
|
|
220
|
+
box-sizing: border-box;
|
|
221
|
+
width: max-content;
|
|
222
|
+
max-width: 100%;
|
|
223
|
+
max-height: 32rem;
|
|
224
|
+
margin-inline: 0;
|
|
225
|
+
overflow: auto;
|
|
226
|
+
border-collapse: collapse;
|
|
227
|
+
border-spacing: 0;
|
|
228
|
+
font-size: 0.9375em;
|
|
229
|
+
line-height: 1.5;
|
|
230
|
+
}
|
|
231
|
+
.pimolu-prose :where(caption) {
|
|
232
|
+
padding-block: var(--pimolu-spacing-2, 8px) 0;
|
|
233
|
+
color: var(--pimolu-muted-foreground);
|
|
234
|
+
font-size: 0.875em;
|
|
235
|
+
font-weight: 400;
|
|
236
|
+
text-align: start;
|
|
237
|
+
caption-side: bottom;
|
|
238
|
+
}
|
|
239
|
+
.pimolu-prose :where(th, td) {
|
|
240
|
+
padding: var(--pimolu-spacing-2, 8px) var(--pimolu-spacing-3, 12px);
|
|
241
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
242
|
+
text-align: start;
|
|
243
|
+
vertical-align: top;
|
|
244
|
+
}
|
|
245
|
+
.pimolu-prose :where(th) {
|
|
246
|
+
background: var(--pimolu-muted);
|
|
247
|
+
color: var(--pimolu-foreground);
|
|
248
|
+
font-weight: 600;
|
|
249
|
+
}
|
|
250
|
+
.pimolu-prose :where(figure) {
|
|
251
|
+
margin-inline: 0;
|
|
252
|
+
}
|
|
253
|
+
.pimolu-prose :where(img) {
|
|
254
|
+
display: block;
|
|
255
|
+
max-width: 100%;
|
|
256
|
+
height: auto;
|
|
257
|
+
border-radius: var(--pimolu-radius-md, 10px);
|
|
258
|
+
}
|
|
259
|
+
.pimolu-prose :where(figcaption) {
|
|
260
|
+
margin-block-start: var(--pimolu-spacing-2, 8px);
|
|
261
|
+
color: var(--pimolu-muted-foreground);
|
|
262
|
+
font-size: 0.875em;
|
|
263
|
+
text-align: center;
|
|
264
|
+
}
|
|
265
|
+
.pimolu-prose :where(hr) {
|
|
266
|
+
margin-block: calc(var(--pimolu-prose-flow) * 1.5);
|
|
267
|
+
border: 0;
|
|
268
|
+
border-block-start: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
269
|
+
}
|
|
270
|
+
@media (prefers-reduced-motion: reduce) {
|
|
271
|
+
.pimolu-prose :where(a) {
|
|
272
|
+
transition: none;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
@media (forced-colors: active) {
|
|
276
|
+
.pimolu-prose {
|
|
277
|
+
color: CanvasText;
|
|
278
|
+
}
|
|
279
|
+
.pimolu-prose :where(a) {
|
|
280
|
+
color: LinkText;
|
|
281
|
+
}
|
|
282
|
+
.pimolu-prose :where(a):focus-visible,
|
|
283
|
+
.pimolu-prose :where(pre):focus-visible {
|
|
284
|
+
outline-color: Highlight;
|
|
285
|
+
}
|
|
286
|
+
.pimolu-prose :where(code, pre, kbd, th, td, table) {
|
|
287
|
+
border-color: CanvasText;
|
|
288
|
+
background: Canvas;
|
|
289
|
+
color: CanvasText;
|
|
290
|
+
}
|
|
291
|
+
.pimolu-prose :where(blockquote) {
|
|
292
|
+
border-color: CanvasText;
|
|
293
|
+
background: Canvas;
|
|
294
|
+
color: CanvasText;
|
|
295
|
+
}
|
|
296
|
+
}
|