@junoput01/junoui 0.2.0
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/CHANGELOG.md +199 -0
- package/README.md +117 -0
- package/dist/android/colors.xml +94 -0
- package/dist/android/dimens.xml +49 -0
- package/dist/css/juno-fonts.css +45 -0
- package/dist/css/juno-tokens.css +345 -0
- package/dist/css/juno.css +4481 -0
- package/dist/flutter/juno_tokens.dart +143 -0
- package/dist/fonts/b612-400.woff2 +0 -0
- package/dist/fonts/b612-700.woff2 +0 -0
- package/dist/fonts/b612-mono-400.woff2 +0 -0
- package/dist/fonts/b612-mono-700.woff2 +0 -0
- package/dist/icons/juno-icons.svg +69 -0
- package/dist/ios/JunoTokens.swift +149 -0
- package/dist/js/tokens.d.ts +11 -0
- package/dist/js/tokens.js +244 -0
- package/dist/json/tokens.json +921 -0
- package/dist/scss/_juno-tokens.scss +176 -0
- package/package.json +92 -0
- package/src/css/base.css +120 -0
- package/src/css/components/accordion.css +83 -0
- package/src/css/components/alert.css +90 -0
- package/src/css/components/avatar.css +82 -0
- package/src/css/components/badge.css +55 -0
- package/src/css/components/breadcrumb.css +64 -0
- package/src/css/components/button.css +59 -0
- package/src/css/components/card.css +68 -0
- package/src/css/components/checkbox.css +89 -0
- package/src/css/components/chip.css +89 -0
- package/src/css/components/divider.css +50 -0
- package/src/css/components/dock.css +74 -0
- package/src/css/components/dot.css +35 -0
- package/src/css/components/drawer.css +80 -0
- package/src/css/components/field.css +37 -0
- package/src/css/components/gauge.css +78 -0
- package/src/css/components/icon.css +35 -0
- package/src/css/components/input.css +60 -0
- package/src/css/components/list.css +135 -0
- package/src/css/components/loader.css +159 -0
- package/src/css/components/menu.css +114 -0
- package/src/css/components/modal.css +161 -0
- package/src/css/components/navbar.css +103 -0
- package/src/css/components/pagination.css +72 -0
- package/src/css/components/pillbar.css +111 -0
- package/src/css/components/popover.css +73 -0
- package/src/css/components/rail.css +96 -0
- package/src/css/components/readout.css +45 -0
- package/src/css/components/segmented.css +99 -0
- package/src/css/components/select.css +38 -0
- package/src/css/components/skeleton.css +62 -0
- package/src/css/components/slider.css +117 -0
- package/src/css/components/spark.css +26 -0
- package/src/css/components/stepper.css +121 -0
- package/src/css/components/switch.css +131 -0
- package/src/css/components/table.css +443 -0
- package/src/css/components/tabs.css +66 -0
- package/src/css/components/thumb.css +69 -0
- package/src/css/components/toast.css +109 -0
- package/src/css/components/toggle-button.css +91 -0
- package/src/css/components/tooltip.css +155 -0
- package/src/css/density.css +40 -0
- package/src/css/fonts.css +45 -0
- package/src/css/layout.css +99 -0
- package/src/css/typescale.css +27 -0
- package/src/css/utilities.css +76 -0
- package/src/fonts/LICENSE +93 -0
- package/src/fonts/b612-400.woff2 +0 -0
- package/src/fonts/b612-700.woff2 +0 -0
- package/src/fonts/b612-mono-400.woff2 +0 -0
- package/src/fonts/b612-mono-700.woff2 +0 -0
- package/src/icons/LICENSE +21 -0
- package/src/icons/arrow-clockwise.svg +1 -0
- package/src/icons/arrow-down.svg +1 -0
- package/src/icons/arrow-left.svg +1 -0
- package/src/icons/arrow-right.svg +1 -0
- package/src/icons/arrow-up.svg +1 -0
- package/src/icons/arrows-clockwise.svg +1 -0
- package/src/icons/arrows-out.svg +1 -0
- package/src/icons/bell.svg +1 -0
- package/src/icons/calendar-blank.svg +1 -0
- package/src/icons/caret-down.svg +1 -0
- package/src/icons/caret-left.svg +1 -0
- package/src/icons/caret-right.svg +1 -0
- package/src/icons/caret-up.svg +1 -0
- package/src/icons/chat-circle.svg +1 -0
- package/src/icons/check-circle.svg +1 -0
- package/src/icons/check.svg +1 -0
- package/src/icons/clock.svg +1 -0
- package/src/icons/cloud-arrow-down.svg +1 -0
- package/src/icons/cloud.svg +1 -0
- package/src/icons/copy.svg +1 -0
- package/src/icons/cpu.svg +1 -0
- package/src/icons/dots-three-vertical.svg +1 -0
- package/src/icons/dots-three.svg +1 -0
- package/src/icons/download.svg +1 -0
- package/src/icons/envelope.svg +1 -0
- package/src/icons/eye-slash.svg +1 -0
- package/src/icons/eye.svg +1 -0
- package/src/icons/file.svg +1 -0
- package/src/icons/film-strip.svg +1 -0
- package/src/icons/floppy-disk.svg +1 -0
- package/src/icons/folder.svg +1 -0
- package/src/icons/funnel.svg +1 -0
- package/src/icons/gear.svg +1 -0
- package/src/icons/hard-drives.svg +1 -0
- package/src/icons/heart.svg +1 -0
- package/src/icons/hexagon.svg +1 -0
- package/src/icons/house.svg +1 -0
- package/src/icons/images.svg +1 -0
- package/src/icons/info.svg +1 -0
- package/src/icons/link.svg +1 -0
- package/src/icons/list.svg +1 -0
- package/src/icons/lock-open.svg +1 -0
- package/src/icons/lock.svg +1 -0
- package/src/icons/magnifying-glass.svg +1 -0
- package/src/icons/minus.svg +1 -0
- package/src/icons/moon.svg +1 -0
- package/src/icons/pencil-simple.svg +1 -0
- package/src/icons/play.svg +1 -0
- package/src/icons/plus.svg +1 -0
- package/src/icons/puzzle-piece.svg +1 -0
- package/src/icons/question.svg +1 -0
- package/src/icons/sliders-horizontal.svg +1 -0
- package/src/icons/sliders.svg +1 -0
- package/src/icons/squares-four.svg +1 -0
- package/src/icons/star.svg +1 -0
- package/src/icons/sun.svg +1 -0
- package/src/icons/trash.svg +1 -0
- package/src/icons/upload-simple.svg +1 -0
- package/src/icons/upload.svg +1 -0
- package/src/icons/user.svg +1 -0
- package/src/icons/users.svg +1 -0
- package/src/icons/warning-circle.svg +1 -0
- package/src/icons/warning.svg +1 -0
- package/src/icons/x-circle.svg +1 -0
- package/src/icons/x.svg +1 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* ════════════════════════════════════════════════════════════════════
|
|
2
|
+
* Component — Toggle button
|
|
3
|
+
* Airbus-style illuminated-legend pushbutton: the body stays dark; a top
|
|
4
|
+
* strip lights (NOMINAL) and the surround glows when engaged. A real
|
|
5
|
+
* <button aria-pressed>; the app flips aria-pressed.
|
|
6
|
+
* Usage:
|
|
7
|
+
* <button class="juno-toggle-btn" aria-pressed="true">
|
|
8
|
+
* <span class="juno-toggle-btn__strip"></span>
|
|
9
|
+
* <span class="juno-toggle-btn__row">
|
|
10
|
+
* <span class="juno-toggle-btn__text">
|
|
11
|
+
* <span class="juno-toggle-btn__legend">AUTO-SCALING</span>
|
|
12
|
+
* <span class="juno-toggle-btn__desc">Scale workers with load</span>
|
|
13
|
+
* </span>
|
|
14
|
+
* <span class="juno-toggle-btn__status">ON</span>
|
|
15
|
+
* </span>
|
|
16
|
+
* </button>
|
|
17
|
+
* ════════════════════════════════════════════════════════════════════ */
|
|
18
|
+
|
|
19
|
+
.juno-toggle-btn {
|
|
20
|
+
--juno-role: var(--juno-nominal);
|
|
21
|
+
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
inline-size: 100%;
|
|
25
|
+
padding: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
background: var(--juno-control-surface);
|
|
28
|
+
border: var(--juno-border-width-1) solid var(--juno-control-edge-strong);
|
|
29
|
+
border-radius: var(--juno-radius-4);
|
|
30
|
+
text-align: start;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
transition:
|
|
33
|
+
border-color var(--juno-motion-duration-quick) var(--juno-motion-ease-standard),
|
|
34
|
+
box-shadow var(--juno-motion-duration-quick) var(--juno-motion-ease-standard);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.juno-toggle-btn[aria-pressed='true'] {
|
|
38
|
+
border-color: var(--juno-role);
|
|
39
|
+
box-shadow: 0 0 12px color-mix(in srgb, var(--juno-role) 20%, transparent);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.juno-toggle-btn__strip {
|
|
43
|
+
block-size: var(--juno-space-4);
|
|
44
|
+
background: var(--juno-s3);
|
|
45
|
+
transition:
|
|
46
|
+
background var(--juno-motion-duration-quick) var(--juno-motion-ease-standard),
|
|
47
|
+
box-shadow var(--juno-motion-duration-quick) var(--juno-motion-ease-standard);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.juno-toggle-btn[aria-pressed='true'] .juno-toggle-btn__strip {
|
|
51
|
+
background: var(--juno-role);
|
|
52
|
+
box-shadow: 0 0 8px var(--juno-role);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.juno-toggle-btn__row {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
gap: var(--juno-space-12);
|
|
60
|
+
padding: var(--juno-pad-control-block) var(--juno-space-16);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.juno-toggle-btn__text {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: var(--juno-space-2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.juno-toggle-btn__legend {
|
|
70
|
+
font-family: var(--juno-font-family-mono);
|
|
71
|
+
font-size: var(--juno-font-size-13);
|
|
72
|
+
font-weight: var(--juno-font-weight-bold);
|
|
73
|
+
letter-spacing: var(--juno-font-tracking-tight);
|
|
74
|
+
color: var(--juno-data);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.juno-toggle-btn__desc { font-size: var(--juno-font-size-11); color: var(--juno-label); }
|
|
78
|
+
|
|
79
|
+
.juno-toggle-btn__status {
|
|
80
|
+
font-family: var(--juno-font-family-mono);
|
|
81
|
+
font-size: var(--juno-font-size-10);
|
|
82
|
+
letter-spacing: var(--juno-font-tracking-caps);
|
|
83
|
+
color: var(--juno-muted);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.juno-toggle-btn[aria-pressed='true'] .juno-toggle-btn__status { color: var(--juno-role); }
|
|
87
|
+
|
|
88
|
+
.juno-toggle-btn:disabled {
|
|
89
|
+
opacity: var(--juno-opacity-disabled);
|
|
90
|
+
cursor: not-allowed;
|
|
91
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* ════════════════════════════════════════════════════════════════════
|
|
2
|
+
* Component — Tooltip
|
|
3
|
+
* Transient hover/focus label. Pure CSS reveal (no JS): the bubble shows
|
|
4
|
+
* on hover or keyboard focus of the wrapper. Four placements with an arrow.
|
|
5
|
+
* Usage:
|
|
6
|
+
* <span class="juno-tooltip">
|
|
7
|
+
* <button tabindex="0">RPS</button>
|
|
8
|
+
* <span class="juno-tooltip__bubble" role="tooltip">
|
|
9
|
+
* Requests / sec · 248
|
|
10
|
+
* <span class="juno-tooltip__arrow"></span>
|
|
11
|
+
* </span>
|
|
12
|
+
* </span>
|
|
13
|
+
* Default placement is top; add --right / --bottom / --left on the bubble.
|
|
14
|
+
* ════════════════════════════════════════════════════════════════════ */
|
|
15
|
+
|
|
16
|
+
.juno-tooltip {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.juno-tooltip__bubble {
|
|
22
|
+
position: absolute;
|
|
23
|
+
z-index: var(--juno-z-anchored);
|
|
24
|
+
inset-block-end: calc(100% + var(--juno-space-8));
|
|
25
|
+
inset-inline-start: 50%;
|
|
26
|
+
transform: translateX(-50%) translateY(var(--juno-space-4));
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
background: var(--juno-s3);
|
|
29
|
+
color: var(--juno-data);
|
|
30
|
+
border: var(--juno-border-width-1) solid var(--juno-border);
|
|
31
|
+
border-radius: var(--juno-radius-4);
|
|
32
|
+
box-shadow: var(--juno-shadow-2);
|
|
33
|
+
padding: var(--juno-space-4) var(--juno-space-10);
|
|
34
|
+
font-family: var(--juno-font-family-mono);
|
|
35
|
+
font-size: var(--juno-font-size-11);
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
opacity: 0;
|
|
38
|
+
visibility: hidden;
|
|
39
|
+
transition:
|
|
40
|
+
opacity var(--juno-motion-duration-quick) var(--juno-motion-ease-decel),
|
|
41
|
+
transform var(--juno-motion-duration-quick) var(--juno-motion-ease-decel),
|
|
42
|
+
visibility var(--juno-motion-duration-quick);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.juno-tooltip:hover .juno-tooltip__bubble,
|
|
46
|
+
.juno-tooltip:focus-within .juno-tooltip__bubble {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
visibility: visible;
|
|
49
|
+
transform: translateX(-50%) translateY(0);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ── top-layer mode ─────────────────────────────────────────────────────
|
|
53
|
+
The pure-CSS reveal above is clipped if an ancestor sets overflow/clip.
|
|
54
|
+
Promote the bubble to a `popover="hint"` (a stateless enhancer toggles it
|
|
55
|
+
on hover/focus and points position-anchor at the trigger) and it renders in
|
|
56
|
+
the TOP LAYER — never clipped. CSS anchor positioning replaces the
|
|
57
|
+
wrapper-relative offsets; the arrow + placement classes still apply. */
|
|
58
|
+
.juno-tooltip__bubble[popover] {
|
|
59
|
+
position: fixed;
|
|
60
|
+
margin: 0;
|
|
61
|
+
inset: auto;
|
|
62
|
+
position-area: block-start;
|
|
63
|
+
position-try-fallbacks: flip-block;
|
|
64
|
+
transform: translateY(var(--juno-space-4));
|
|
65
|
+
transition:
|
|
66
|
+
opacity var(--juno-motion-duration-quick) var(--juno-motion-ease-decel),
|
|
67
|
+
transform var(--juno-motion-duration-quick) var(--juno-motion-ease-decel),
|
|
68
|
+
overlay var(--juno-motion-duration-quick) allow-discrete,
|
|
69
|
+
display var(--juno-motion-duration-quick) allow-discrete;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.juno-tooltip__bubble--bottom[popover] {
|
|
73
|
+
position-area: block-end;
|
|
74
|
+
transform: translateY(calc(-1 * var(--juno-space-4)));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.juno-tooltip__bubble--right[popover] {
|
|
78
|
+
position-area: inline-end;
|
|
79
|
+
transform: translateX(calc(-1 * var(--juno-space-4)));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.juno-tooltip__bubble--left[popover] {
|
|
83
|
+
position-area: inline-start;
|
|
84
|
+
transform: translateX(var(--juno-space-4));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.juno-tooltip__bubble[popover]:popover-open {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
visibility: visible;
|
|
90
|
+
transform: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@starting-style {
|
|
94
|
+
.juno-tooltip__bubble[popover]:popover-open { opacity: 0; }
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* arrow — a rotated square straddling the bubble edge nearest the target.
|
|
98
|
+
The bubble overlaps its inner half, leaving a clean notch. */
|
|
99
|
+
.juno-tooltip__arrow {
|
|
100
|
+
position: absolute;
|
|
101
|
+
inline-size: var(--juno-space-8);
|
|
102
|
+
block-size: var(--juno-space-8);
|
|
103
|
+
background: var(--juno-s3);
|
|
104
|
+
border: var(--juno-border-width-1) solid var(--juno-border);
|
|
105
|
+
transform: rotate(45deg);
|
|
106
|
+
inset-block-start: calc(100% - var(--juno-space-4));
|
|
107
|
+
inset-inline-start: calc(50% - var(--juno-space-4));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* ── placements (set on the bubble) ───────────────────────────────────── */
|
|
111
|
+
.juno-tooltip__bubble--bottom {
|
|
112
|
+
inset-block: calc(100% + var(--juno-space-8)) auto;
|
|
113
|
+
transform: translateX(-50%) translateY(calc(-1 * var(--juno-space-4)));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.juno-tooltip:hover .juno-tooltip__bubble--bottom,
|
|
117
|
+
.juno-tooltip:focus-within .juno-tooltip__bubble--bottom {
|
|
118
|
+
transform: translateX(-50%) translateY(0);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.juno-tooltip__bubble--bottom .juno-tooltip__arrow {
|
|
122
|
+
inset-block-start: calc(-1 * var(--juno-space-4));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.juno-tooltip__bubble--right {
|
|
126
|
+
inset-block: 50% auto;
|
|
127
|
+
inset-inline-start: calc(100% + var(--juno-space-8));
|
|
128
|
+
transform: translateY(-50%) translateX(calc(-1 * var(--juno-space-4)));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.juno-tooltip:hover .juno-tooltip__bubble--right,
|
|
132
|
+
.juno-tooltip:focus-within .juno-tooltip__bubble--right {
|
|
133
|
+
transform: translateY(-50%) translateX(0);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.juno-tooltip__bubble--right .juno-tooltip__arrow {
|
|
137
|
+
inset-block-start: calc(50% - var(--juno-space-4));
|
|
138
|
+
inset-inline-start: calc(-1 * var(--juno-space-4));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.juno-tooltip__bubble--left {
|
|
142
|
+
inset-block: 50% auto;
|
|
143
|
+
inset-inline: auto calc(100% + var(--juno-space-8));
|
|
144
|
+
transform: translateY(-50%) translateX(var(--juno-space-4));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.juno-tooltip:hover .juno-tooltip__bubble--left,
|
|
148
|
+
.juno-tooltip:focus-within .juno-tooltip__bubble--left {
|
|
149
|
+
transform: translateY(-50%) translateX(0);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.juno-tooltip__bubble--left .juno-tooltip__arrow {
|
|
153
|
+
inset-block-start: calc(50% - var(--juno-space-4));
|
|
154
|
+
inset-inline-start: calc(100% - var(--juno-space-4));
|
|
155
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* ════════════════════════════════════════════════════════════════════
|
|
2
|
+
* junoui — density layer
|
|
3
|
+
* Semantic padding/gap aliases that switch with [data-juno-density].
|
|
4
|
+
* Components reference these instead of raw --juno-space-* for their
|
|
5
|
+
* internal padding, so the whole UI compacts from one attribute:
|
|
6
|
+
*
|
|
7
|
+
* <body data-juno-density="compact"> → dense, data-heavy layout
|
|
8
|
+
* <body> → comfortable (default)
|
|
9
|
+
*
|
|
10
|
+
* Density is intentionally NON-linear: compact removes more block
|
|
11
|
+
* (vertical) padding than inline, so text never crowds its edges.
|
|
12
|
+
* Interactive controls keep their min-height (WCAG tap target) — only
|
|
13
|
+
* padding shrinks. Add a new archetype only when a component needs one.
|
|
14
|
+
* ════════════════════════════════════════════════════════════════════ */
|
|
15
|
+
|
|
16
|
+
:root,
|
|
17
|
+
[data-juno-density='comfortable'] {
|
|
18
|
+
/* interactive controls — button, future input/select */
|
|
19
|
+
--juno-pad-control-block: var(--juno-space-10);
|
|
20
|
+
--juno-pad-control-inline: var(--juno-space-20);
|
|
21
|
+
--juno-gap-control: var(--juno-space-8);
|
|
22
|
+
|
|
23
|
+
/* surfaces — card / panel bodies */
|
|
24
|
+
--juno-pad-surface-block: var(--juno-space-16);
|
|
25
|
+
--juno-pad-surface-inline: var(--juno-space-16);
|
|
26
|
+
|
|
27
|
+
/* content — media/tile walls (.juno-grid-auto--tiles) re-densify too */
|
|
28
|
+
--juno-tile-min: 150px;
|
|
29
|
+
--juno-gap-content: var(--juno-space-10);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-juno-density='compact'] {
|
|
33
|
+
--juno-pad-control-block: var(--juno-space-4);
|
|
34
|
+
--juno-pad-control-inline: var(--juno-space-12);
|
|
35
|
+
--juno-gap-control: var(--juno-space-4);
|
|
36
|
+
--juno-pad-surface-block: var(--juno-space-10);
|
|
37
|
+
--juno-pad-surface-inline: var(--juno-space-12);
|
|
38
|
+
--juno-tile-min: 108px;
|
|
39
|
+
--juno-gap-content: var(--juno-space-4);
|
|
40
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* ════════════════════════════════════════════════════════════════════
|
|
2
|
+
* junoui — fonts (opt-in)
|
|
3
|
+
* Self-hosted B612 / B612 Mono (@font-face, local woff2). This file is NOT
|
|
4
|
+
* bundled into juno.css — import it separately if you want junoui to supply
|
|
5
|
+
* the typeface, or skip it and load B612 yourself (e.g. @fontsource):
|
|
6
|
+
*
|
|
7
|
+
* import 'junoui/css'; // tokens + components (no network fonts)
|
|
8
|
+
* import 'junoui/fonts.css'; // ← only if you want junoui's fonts
|
|
9
|
+
*
|
|
10
|
+
* Never fetches cross-origin, so it is safe under a strict CSP. Paths are
|
|
11
|
+
* relative to dist/css/, resolving to the woff2 shipped in dist/fonts/.
|
|
12
|
+
* B612 is licensed under the SIL OFL 1.1 — see the fonts' LICENSE.
|
|
13
|
+
* ════════════════════════════════════════════════════════════════════ */
|
|
14
|
+
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: 'B612';
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
src: url('../fonts/b612-400.woff2') format('woff2');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'B612';
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
font-display: swap;
|
|
28
|
+
src: url('../fonts/b612-700.woff2') format('woff2');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-family: 'B612 Mono';
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
font-display: swap;
|
|
36
|
+
src: url('../fonts/b612-mono-400.woff2') format('woff2');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@font-face {
|
|
40
|
+
font-family: 'B612 Mono';
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
font-display: swap;
|
|
44
|
+
src: url('../fonts/b612-mono-700.woff2') format('woff2');
|
|
45
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* ════════════════════════════════════════════════════════════════════
|
|
2
|
+
* junoui — layout layer (intrinsic & responsive)
|
|
3
|
+
*
|
|
4
|
+
* Composition primitives that reflow by the space available — no media
|
|
5
|
+
* queries, no per-app config. Wrap a region in one of these and it adapts
|
|
6
|
+
* on resize. Every knob is a custom property with a token default, so you
|
|
7
|
+
* override per instance: <div class="juno-grid-auto" style="--juno-grid-min:280px">.
|
|
8
|
+
*
|
|
9
|
+
* Pattern vocabulary follows the well-known "Every Layout" primitives
|
|
10
|
+
* (stack / cluster / sidebar / switcher / grid) for familiarity.
|
|
11
|
+
* ════════════════════════════════════════════════════════════════════ */
|
|
12
|
+
|
|
13
|
+
/* Center — page/section wrapper with a max measure and fluid gutters. */
|
|
14
|
+
.juno-center {
|
|
15
|
+
box-sizing: content-box;
|
|
16
|
+
max-width: var(--juno-measure, var(--juno-bp-xl));
|
|
17
|
+
margin-inline: auto;
|
|
18
|
+
padding-inline: clamp(var(--juno-space-16), 4vw, var(--juno-space-40));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Stack — vertical rhythm. Gap between siblings only. */
|
|
22
|
+
.juno-stack {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
}
|
|
26
|
+
.juno-stack > * { margin-block: 0; }
|
|
27
|
+
.juno-stack > * + * { margin-block-start: var(--juno-stack-space, var(--juno-space-16)); }
|
|
28
|
+
|
|
29
|
+
/* Cluster — wrapping inline group (toolbars, tag rows, button groups). */
|
|
30
|
+
.juno-cluster {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
align-items: var(--juno-cluster-align, center);
|
|
34
|
+
gap: var(--juno-cluster-space, var(--juno-space-8));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Grid-auto — responsive cards. Columns collapse on their own; no breakpoints.
|
|
38
|
+
Each column is at least --juno-grid-min, then as many as fit. */
|
|
39
|
+
.juno-grid-auto {
|
|
40
|
+
display: grid;
|
|
41
|
+
gap: var(--juno-grid-space, var(--juno-space-16));
|
|
42
|
+
grid-template-columns: repeat(auto-fit, minmax(min(var(--juno-grid-min, 240px), 100%), 1fr));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Tiles — a grid-auto wired to the density layer: min size + gap follow
|
|
46
|
+
[data-juno-density], so a whole media wall re-densifies from the one
|
|
47
|
+
attribute. auto-fill keeps tile size honest when few items remain. */
|
|
48
|
+
.juno-grid-auto--tiles {
|
|
49
|
+
gap: var(--juno-grid-space, var(--juno-gap-content));
|
|
50
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--juno-grid-min, var(--juno-tile-min)), 100%), 1fr));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Sidebar — a fixed-ish aside next to fluid content; stacks when the content
|
|
54
|
+
would get narrower than --juno-sidebar-content-min. No media query. */
|
|
55
|
+
.juno-sidebar {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
gap: var(--juno-sidebar-space, var(--juno-space-24));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.juno-sidebar > .juno-sidebar__aside {
|
|
62
|
+
flex-grow: 1;
|
|
63
|
+
flex-basis: var(--juno-sidebar-width, 280px);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.juno-sidebar > .juno-sidebar__main {
|
|
67
|
+
flex-grow: 999;
|
|
68
|
+
flex-basis: 0;
|
|
69
|
+
min-inline-size: var(--juno-sidebar-content-min, 60%);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Switcher — N children side by side, or all stacked, flipping at a threshold
|
|
73
|
+
container width (--juno-switcher-threshold). Pure flex-basis math. */
|
|
74
|
+
.juno-switcher {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
gap: var(--juno-switcher-space, var(--juno-space-16));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.juno-switcher > * {
|
|
81
|
+
flex-grow: 1;
|
|
82
|
+
flex-basis: calc((var(--juno-switcher-threshold, var(--juno-bp-sm)) - 100%) * 999);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Reel — horizontal scroll row (overflowing chips, timelines). */
|
|
86
|
+
.juno-reel {
|
|
87
|
+
display: flex;
|
|
88
|
+
gap: var(--juno-reel-space, var(--juno-space-12));
|
|
89
|
+
overflow-x: auto;
|
|
90
|
+
overscroll-behavior-inline: contain;
|
|
91
|
+
scroll-snap-type: inline mandatory;
|
|
92
|
+
}
|
|
93
|
+
.juno-reel > * { scroll-snap-align: start; flex: 0 0 auto; }
|
|
94
|
+
|
|
95
|
+
/* Hide/show by viewport breakpoint — the rare case an intrinsic primitive
|
|
96
|
+
can't express (e.g. swap a nav for a menu button). */
|
|
97
|
+
@media (width <= 767.98px) { .juno-hide-below-md { display: none !important; } }
|
|
98
|
+
|
|
99
|
+
@media (width >= 768px) { .juno-hide-from-md { display: none !important; } }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* ════════════════════════════════════════════════════════════════════
|
|
2
|
+
* junoui — type-scale layer
|
|
3
|
+
* One multiplier, --juno-font-scale, scales every --juno-font-size-*
|
|
4
|
+
* token (the generated token CSS routes each size through it). Set it
|
|
5
|
+
* per [data-juno-text] to enlarge all UI text without touching density:
|
|
6
|
+
*
|
|
7
|
+
* <html data-juno-text="large"> → +12.5% type
|
|
8
|
+
* <html data-juno-text="xl"> → +25% type
|
|
9
|
+
* <html> → base (default)
|
|
10
|
+
*
|
|
11
|
+
* Orthogonal to density: density changes padding/gap, type-scale changes
|
|
12
|
+
* glyph size. Combine freely. Larger text aids low-vision / squint
|
|
13
|
+
* legibility (WCAG 1.4.4 resize text).
|
|
14
|
+
* ════════════════════════════════════════════════════════════════════ */
|
|
15
|
+
|
|
16
|
+
:root,
|
|
17
|
+
[data-juno-text='base'] {
|
|
18
|
+
--juno-font-scale: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-juno-text='large'] {
|
|
22
|
+
--juno-font-scale: 1.125;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-juno-text='xl'] {
|
|
26
|
+
--juno-font-scale: 1.25;
|
|
27
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* ════════════════════════════════════════════════════════════════════
|
|
2
|
+
* junoui — utilities layer
|
|
3
|
+
*
|
|
4
|
+
* Role helpers set a single custom property --juno-role. Components read
|
|
5
|
+
* var(--juno-role), so one class (.juno--warning) re-colors a badge, dot,
|
|
6
|
+
* button, card accent, or readout identically. Color = status, always.
|
|
7
|
+
* ════════════════════════════════════════════════════════════════════ */
|
|
8
|
+
|
|
9
|
+
.juno--nominal { --juno-role: var(--juno-nominal); }
|
|
10
|
+
.juno--active { --juno-role: var(--juno-active); }
|
|
11
|
+
.juno--target { --juno-role: var(--juno-target); }
|
|
12
|
+
.juno--caution { --juno-role: var(--juno-caution); }
|
|
13
|
+
.juno--warning { --juno-role: var(--juno-warning); }
|
|
14
|
+
.juno--muted { --juno-role: var(--juno-muted); }
|
|
15
|
+
|
|
16
|
+
/* Text color roles */
|
|
17
|
+
.juno-text-nominal { color: var(--juno-nominal); }
|
|
18
|
+
.juno-text-active { color: var(--juno-active); }
|
|
19
|
+
.juno-text-target { color: var(--juno-target); }
|
|
20
|
+
.juno-text-caution { color: var(--juno-caution); }
|
|
21
|
+
.juno-text-warning { color: var(--juno-warning); }
|
|
22
|
+
.juno-text-data { color: var(--juno-data); }
|
|
23
|
+
.juno-text-label { color: var(--juno-label); }
|
|
24
|
+
.juno-text-muted { color: var(--juno-muted); }
|
|
25
|
+
|
|
26
|
+
/* Surface backgrounds (depth hierarchy) */
|
|
27
|
+
.juno-bg-s0 { background: var(--juno-s0); }
|
|
28
|
+
.juno-bg-s1 { background: var(--juno-s1); }
|
|
29
|
+
.juno-bg-s2 { background: var(--juno-s2); }
|
|
30
|
+
.juno-bg-s3 { background: var(--juno-s3); }
|
|
31
|
+
|
|
32
|
+
/* Typography helpers */
|
|
33
|
+
.juno-mono { font-family: var(--juno-font-family-mono); }
|
|
34
|
+
|
|
35
|
+
.juno-value {
|
|
36
|
+
font-family: var(--juno-font-family-mono);
|
|
37
|
+
font-weight: var(--juno-font-weight-bold);
|
|
38
|
+
color: var(--juno-data);
|
|
39
|
+
line-height: var(--juno-font-lineHeight-none);
|
|
40
|
+
font-variant-numeric: tabular-nums;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.juno-label {
|
|
44
|
+
font-size: var(--juno-font-size-13);
|
|
45
|
+
color: var(--juno-label);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Section eyebrow / micro label — 10px uppercase, widely tracked */
|
|
49
|
+
.juno-eyebrow {
|
|
50
|
+
font-size: var(--juno-font-size-10);
|
|
51
|
+
letter-spacing: var(--juno-font-tracking-widest);
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
color: var(--juno-label);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.juno-heading {
|
|
57
|
+
font-family: var(--juno-font-family-sans);
|
|
58
|
+
font-weight: var(--juno-font-weight-bold);
|
|
59
|
+
font-size: var(--juno-font-size-18);
|
|
60
|
+
letter-spacing: var(--juno-font-tracking-normal);
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
color: var(--juno-data);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Visually hidden, still announced — legends, skip links, icon-only labels */
|
|
66
|
+
.juno-sr-only {
|
|
67
|
+
position: absolute;
|
|
68
|
+
inline-size: 1px;
|
|
69
|
+
block-size: 1px;
|
|
70
|
+
padding: 0;
|
|
71
|
+
margin: -1px;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
clip-path: inset(50%);
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
border: 0;
|
|
76
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2012 The B612 Project Authors (https://github.com/polarsys/b612)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Phosphor Icons
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"/></svg>
|