@cosborn2/ui 0.1.0-beta.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/LICENSE +21 -0
- package/README.md +163 -0
- package/dist/_escape-layer.d.ts +7 -0
- package/dist/_escape-layer.js +63 -0
- package/dist/_portal-theme.d.ts +3 -0
- package/dist/_portal-theme.js +35 -0
- package/dist/_settings-navigation.d.ts +25 -0
- package/dist/_settings-navigation.js +10 -0
- package/dist/actions-menu.d.ts +29 -0
- package/dist/actions-menu.js +55 -0
- package/dist/button.d.ts +9 -0
- package/dist/button.js +9 -0
- package/dist/color-picker.d.ts +16 -0
- package/dist/color-picker.js +7 -0
- package/dist/confirm-dialog.d.ts +17 -0
- package/dist/confirm-dialog.js +16 -0
- package/dist/data-table.d.ts +24 -0
- package/dist/data-table.js +28 -0
- package/dist/expandable-pill.d.ts +12 -0
- package/dist/expandable-pill.js +47 -0
- package/dist/ghost-text-button.d.ts +3 -0
- package/dist/ghost-text-button.js +4 -0
- package/dist/glass-popover-surface.d.ts +9 -0
- package/dist/glass-popover-surface.js +4 -0
- package/dist/header-shell.d.ts +21 -0
- package/dist/header-shell.js +22 -0
- package/dist/icon-button.d.ts +7 -0
- package/dist/icon-button.js +4 -0
- package/dist/input.d.ts +7 -0
- package/dist/input.js +8 -0
- package/dist/modal.d.ts +26 -0
- package/dist/modal.js +55 -0
- package/dist/notice.d.ts +10 -0
- package/dist/notice.js +5 -0
- package/dist/pagination.d.ts +30 -0
- package/dist/pagination.js +19 -0
- package/dist/pill.d.ts +12 -0
- package/dist/pill.js +12 -0
- package/dist/segmented-control.d.ts +18 -0
- package/dist/segmented-control.js +8 -0
- package/dist/select.d.ts +8 -0
- package/dist/select.js +9 -0
- package/dist/settings-rail.d.ts +11 -0
- package/dist/settings-rail.js +7 -0
- package/dist/settings.d.ts +56 -0
- package/dist/settings.js +25 -0
- package/dist/skeleton.d.ts +3 -0
- package/dist/skeleton.js +4 -0
- package/dist/styles/actions-menu.css +13 -0
- package/dist/styles/all.css +25 -0
- package/dist/styles/button.css +18 -0
- package/dist/styles/color-picker.css +11 -0
- package/dist/styles/confirm-dialog.css +8 -0
- package/dist/styles/data-table.css +15 -0
- package/dist/styles/expandable-pill.css +10 -0
- package/dist/styles/ghost-text-button.css +7 -0
- package/dist/styles/glass-popover-surface.css +5 -0
- package/dist/styles/header-shell.css +4 -0
- package/dist/styles/icon-button.css +11 -0
- package/dist/styles/input.css +11 -0
- package/dist/styles/modal.css +19 -0
- package/dist/styles/notice.css +14 -0
- package/dist/styles/pagination.css +18 -0
- package/dist/styles/pill.css +3 -0
- package/dist/styles/segmented-control.css +11 -0
- package/dist/styles/select.css +12 -0
- package/dist/styles/settings-rail.css +1 -0
- package/dist/styles/settings.css +434 -0
- package/dist/styles/skeleton.css +5 -0
- package/dist/styles/surface.css +6 -0
- package/dist/styles/switch.css +14 -0
- package/dist/styles/theme-toggle.css +9 -0
- package/dist/styles/theme.css +80 -0
- package/dist/styles/toast.css +22 -0
- package/dist/surface.d.ts +5 -0
- package/dist/surface.js +4 -0
- package/dist/switch.d.ts +8 -0
- package/dist/switch.js +10 -0
- package/dist/theme-toggle.d.ts +10 -0
- package/dist/theme-toggle.js +12 -0
- package/dist/toast.d.ts +38 -0
- package/dist/toast.js +17 -0
- package/dist/tokens.json +84 -0
- package/package.json +186 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-icon-button { box-sizing: border-box; display: inline-flex; width: 32px; height: 32px; flex-shrink: 0; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--bnh-text-mute); font: inherit; cursor: pointer; transition: background-color 100ms, color 100ms, opacity 100ms, transform 100ms; }
|
|
3
|
+
.bnh-icon-button:active { transform: scale(.98); }
|
|
4
|
+
.bnh-icon-button:focus-visible { opacity: 1; outline: 2px solid color-mix(in oklch, var(--bnh-accent) 55%, transparent); outline-offset: 2px; }
|
|
5
|
+
.bnh-icon-button--neutral:hover { background: var(--bnh-surface-2); color: var(--bnh-text); }
|
|
6
|
+
.bnh-icon-button--danger:hover { background: color-mix(in oklch, var(--bnh-red) 12%, transparent); color: var(--bnh-red); }
|
|
7
|
+
.bnh-icon-button--danger:focus-visible { outline-color: color-mix(in oklch, var(--bnh-red) 55%, transparent); }
|
|
8
|
+
.bnh-icon-button:disabled { opacity: .4; cursor: not-allowed; }
|
|
9
|
+
@media (min-width: 640px) and (hover: hover) { .bnh-icon-button--reveal { opacity: 0; } :where(.group, [data-bnh-group]):hover .bnh-icon-button--reveal, :where(.group, [data-bnh-group]):focus-within .bnh-icon-button--reveal, .bnh-icon-button--reveal:focus-visible { opacity: 1; } }
|
|
10
|
+
@media (prefers-reduced-motion: reduce) { .bnh-icon-button { transition: none; } .bnh-icon-button:active { transform: none; } }
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-input-field { display: flex; flex-direction: column; gap: 6px; }
|
|
3
|
+
.bnh-input-label { font-family: var(--bnh-font-sans, inherit); font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--bnh-text-dim); }
|
|
4
|
+
.bnh-input { box-sizing: border-box; height: 40px; width: 100%; min-width: 0; border: 1px solid var(--bnh-border); border-radius: var(--bnh-radius-md); background: var(--bnh-input); padding: 0 12px; font-family: var(--bnh-font-sans, inherit); font-size: 14px; line-height: 1.5; color: var(--bnh-text); transition: border-color 150ms, box-shadow 150ms; }
|
|
5
|
+
.bnh-input::placeholder { color: var(--bnh-text-mute); opacity: 1; }
|
|
6
|
+
.bnh-input:focus { border-color: var(--bnh-input-focus); outline: none; box-shadow: 0 0 0 2px var(--bnh-input-focus-ring); }
|
|
7
|
+
.bnh-input--error, .bnh-input--error:focus { border-color: var(--bnh-red); }
|
|
8
|
+
.bnh-input--error:focus { box-shadow: 0 0 0 2px color-mix(in oklch, var(--bnh-red) 20%, transparent); }
|
|
9
|
+
.bnh-input-error { margin: 0; font-family: var(--bnh-font-sans, inherit); font-size: 12px; line-height: 1.5; color: var(--bnh-red); }
|
|
10
|
+
@media (prefers-reduced-motion: reduce) { .bnh-input { transition: none; } }
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-modal-backdrop { position: fixed; inset: 0; z-index: var(--bnh-modal-z, 100); background: rgba(10, 8, 20, .5); -webkit-backdrop-filter: blur(var(--bnh-modal-backdrop-blur, 20px)) saturate(1.08); backdrop-filter: blur(var(--bnh-modal-backdrop-blur, 20px)) saturate(1.08); }
|
|
3
|
+
.bnh-modal { box-sizing: border-box; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: var(--bnh-modal-z, 100); display: flex; flex-direction: column; width: calc(100% - 40px); max-width: var(--bnh-modal-width, 640px); max-height: calc(100dvh - 40px); min-height: 0; overflow: hidden; border: 1px solid var(--bnh-border-2); border-radius: 20px; color: var(--bnh-text); font-family: var(--bnh-font-sans); background: var(--bnh-frosted-background); -webkit-backdrop-filter: blur(32px) saturate(1.5); backdrop-filter: blur(32px) saturate(1.5); box-shadow: var(--bnh-popover-shadow); animation: bnh-modal-in 150ms ease-out; }
|
|
4
|
+
.bnh-modal:focus { outline: none; }
|
|
5
|
+
.bnh-modal-close { position: absolute; right: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--bnh-text-dim); cursor: pointer; }
|
|
6
|
+
.bnh-modal-close:hover { background: var(--bnh-surface); color: var(--bnh-text); }
|
|
7
|
+
.bnh-modal-close:focus-visible { outline: 2px solid var(--bnh-accent); outline-offset: 2px; }
|
|
8
|
+
.bnh-modal-actions { flex-shrink: 0; padding: 18px 52px 18px 22px; border-bottom: 1px solid var(--bnh-border); }
|
|
9
|
+
.bnh-modal-heading { flex-shrink: 0; padding: 22px 52px 8px 26px; }
|
|
10
|
+
.bnh-modal-title { margin: 0; font-family: var(--bnh-font-display); font-size: 30px; font-weight: 400; line-height: 1; }
|
|
11
|
+
.bnh-modal-subtitle { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--bnh-text-dim); }
|
|
12
|
+
.bnh-modal-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 26px 22px; }
|
|
13
|
+
.bnh-modal-footer { flex-shrink: 0; border-top: 1px solid var(--bnh-border); padding: 14px 22px; }
|
|
14
|
+
.bnh-modal-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
15
|
+
@keyframes bnh-modal-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
|
|
16
|
+
@media (prefers-reduced-motion: reduce) { .bnh-modal { animation: none; } }
|
|
17
|
+
@media (max-width: 600px) { .bnh-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); } .bnh-modal-heading { padding-left: 18px; } .bnh-modal-body { padding: 16px 18px 20px; } .bnh-modal-footer { padding: 12px 18px; } }
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-notice { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--bnh-border-2); border-radius: var(--bnh-radius-md); background: var(--bnh-surface); color: var(--bnh-text-dim); font-family: var(--bnh-font-sans, inherit); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
3
|
+
.bnh-notice--success { background: color-mix(in oklch, var(--bnh-green) 10%, transparent); border-color: color-mix(in oklch, var(--bnh-green) 20%, transparent); color: var(--bnh-green); }
|
|
4
|
+
.bnh-notice--danger { background: color-mix(in oklch, var(--bnh-red) 10%, transparent); border-color: color-mix(in oklch, var(--bnh-red) 20%, transparent); color: var(--bnh-red); }
|
|
5
|
+
.bnh-notice-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding-top: .125em; }
|
|
6
|
+
.bnh-notice-icon > svg { width: 1.25em; height: 1.25em; }
|
|
7
|
+
.bnh-notice-content { flex: 1; min-width: 0; }
|
|
8
|
+
.bnh-notice-heading { font-weight: 600; }
|
|
9
|
+
.bnh-notice-heading + .bnh-notice-message { margin-top: 4px; }
|
|
10
|
+
.bnh-notice-message > :first-child { margin-top: 0; }
|
|
11
|
+
.bnh-notice-message > :last-child { margin-bottom: 0; }
|
|
12
|
+
.bnh-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
|
|
13
|
+
@media (max-width: 480px) { .bnh-notice-actions { flex-basis: 100%; } }
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import "./button.css";
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.bnh-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--bnh-font-sans, inherit); line-height: 1.5; }
|
|
5
|
+
.bnh-pagination__summary { font-size: 14px; color: var(--bnh-text-dim); }
|
|
6
|
+
.bnh-pagination__controls { display: flex; align-items: center; gap: 8px; }
|
|
7
|
+
.bnh-pagination__controls a { text-decoration: none; }
|
|
8
|
+
.bnh-pagination__icon { width: 12px; height: 12px; flex-shrink: 0; }
|
|
9
|
+
@media (max-width: 900px) {
|
|
10
|
+
.bnh-pagination { align-items: stretch; gap: 10px; }
|
|
11
|
+
.bnh-pagination__controls { justify-content: space-between; }
|
|
12
|
+
}
|
|
13
|
+
@media (max-width: 600px) {
|
|
14
|
+
.bnh-pagination { flex-direction: column; }
|
|
15
|
+
.bnh-pagination__controls { width: 100%; }
|
|
16
|
+
.bnh-pagination__controls > * { flex: 1; }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-pill { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 0 11px; border-radius: 999px; font-family: var(--bnh-font-sans, inherit); font-size: 11.5px; line-height: 1.5; color: var(--bnh-text-dim); }
|
|
3
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-segmented-control { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bnh-surface); border: 1px solid var(--bnh-border); align-self: flex-start; }
|
|
3
|
+
.bnh-segmented-control-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; border: none; background: transparent; color: var(--bnh-text-dim); font-family: var(--bnh-font-sans, inherit); font-weight: 400; font-size: 12px; line-height: 1.5; cursor: pointer; transition: background .12s, color .12s, box-shadow .12s; }
|
|
4
|
+
.bnh-segmented-control-item:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--bnh-surface-2); }
|
|
5
|
+
.bnh-segmented-control-item[aria-pressed="true"] { background: var(--bnh-hover); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--bnh-segment-accent) 45%, var(--bnh-border-2)); color: var(--bnh-text); font-weight: 600; }
|
|
6
|
+
.bnh-segmented-control-item:disabled { opacity: .5; cursor: not-allowed; }
|
|
7
|
+
.bnh-segmented-control-item:focus-visible { outline: 2px solid var(--bnh-accent); outline-offset: 2px; }
|
|
8
|
+
.bnh-segmented-control-dot { width: 6px; height: 6px; border-radius: 50%; }
|
|
9
|
+
.bnh-segmented-control-count { font-family: var(--bnh-font-mono, monospace); font-size: 10px; opacity: .7; }
|
|
10
|
+
@media (prefers-reduced-motion: reduce) { .bnh-segmented-control-item { transition: none; } }
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-select-field { display: flex; flex-direction: column; gap: 6px; }
|
|
3
|
+
.bnh-select-label { font-family: var(--bnh-font-sans, inherit); font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--bnh-text-dim); }
|
|
4
|
+
.bnh-select { box-sizing: border-box; width: 100%; min-width: 0; appearance: none; border: 1px solid var(--bnh-border); border-radius: var(--bnh-radius-md); background-color: var(--bnh-input); color: var(--bnh-text); font-family: var(--bnh-font-sans, inherit); line-height: 1.5; cursor: pointer; transition: border-color 150ms, box-shadow 150ms; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239a9389%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; }
|
|
5
|
+
.bnh-select--md { height: 40px; padding: 0 32px 0 12px; font-size: 14px; background-position: right 8px center; }
|
|
6
|
+
.bnh-select--sm { height: 32px; padding: 0 28px 0 10px; font-size: 12px; background-position: right 6px center; }
|
|
7
|
+
.bnh-select:focus { border-color: var(--bnh-input-focus); outline: none; box-shadow: 0 0 0 2px var(--bnh-input-focus-ring); }
|
|
8
|
+
.bnh-select--error, .bnh-select--error:focus { border-color: var(--bnh-red); }
|
|
9
|
+
.bnh-select--error:focus { box-shadow: 0 0 0 2px color-mix(in oklch, var(--bnh-red) 20%, transparent); }
|
|
10
|
+
.bnh-select-error { margin: 0; font-family: var(--bnh-font-sans, inherit); font-size: 12px; line-height: 1.5; color: var(--bnh-red); }
|
|
11
|
+
@media (prefers-reduced-motion: reduce) { .bnh-select { transition: none; } }
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./settings.css";
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-settings-page {
|
|
3
|
+
position: relative;
|
|
4
|
+
min-height: calc(100svh - var(--bnh-page-offset, 0px));
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
.bnh-settings-shell {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
height: calc(100svh - var(--bnh-page-offset, 0px));
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
}
|
|
13
|
+
.bnh-settings-body {
|
|
14
|
+
display: flex;
|
|
15
|
+
gap: 32px;
|
|
16
|
+
flex: 1;
|
|
17
|
+
min-height: 0;
|
|
18
|
+
width: 100%;
|
|
19
|
+
max-width: 1100px;
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
padding-left: 24px;
|
|
22
|
+
padding-right: 24px;
|
|
23
|
+
}
|
|
24
|
+
.bnh-settings-main {
|
|
25
|
+
flex: 1;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
padding-right: 8px;
|
|
29
|
+
}
|
|
30
|
+
.bnh-settings-content {
|
|
31
|
+
padding-top: 108px;
|
|
32
|
+
padding-bottom: 40px;
|
|
33
|
+
max-width: 720px;
|
|
34
|
+
}
|
|
35
|
+
.bnh-settings-title {
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: 44px;
|
|
38
|
+
line-height: 1;
|
|
39
|
+
letter-spacing: 0;
|
|
40
|
+
color: var(--bnh-text);
|
|
41
|
+
overflow-wrap: anywhere;
|
|
42
|
+
}
|
|
43
|
+
.bnh-settings-rail {
|
|
44
|
+
width: 220px;
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
border-right: 1px solid var(--bnh-border);
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
min-height: 0;
|
|
50
|
+
align-self: stretch;
|
|
51
|
+
}
|
|
52
|
+
.bnh-settings-rail-inner {
|
|
53
|
+
flex: 1;
|
|
54
|
+
min-height: 0;
|
|
55
|
+
overflow-y: auto;
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
gap: 2px;
|
|
59
|
+
padding-top: 108px;
|
|
60
|
+
padding-bottom: 24px;
|
|
61
|
+
}
|
|
62
|
+
.bnh-settings-rail-group {
|
|
63
|
+
font-size: 10px;
|
|
64
|
+
color: var(--bnh-text-mute);
|
|
65
|
+
letter-spacing: 0.12em;
|
|
66
|
+
text-transform: uppercase;
|
|
67
|
+
padding: 16px 14px 6px;
|
|
68
|
+
}
|
|
69
|
+
.bnh-settings-rail-item {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 10px;
|
|
73
|
+
padding: 8px 14px;
|
|
74
|
+
border: none;
|
|
75
|
+
border-left: 2px solid transparent;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
background: transparent;
|
|
78
|
+
color: var(--bnh-text-dim);
|
|
79
|
+
font-size: 13px;
|
|
80
|
+
font-family: inherit;
|
|
81
|
+
text-align: left;
|
|
82
|
+
transition: background 0.1s, color 0.1s, border-color 0.1s;
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
.bnh-settings-rail-item:hover {
|
|
86
|
+
color: var(--bnh-text);
|
|
87
|
+
}
|
|
88
|
+
.bnh-settings-rail-item.is-active {
|
|
89
|
+
background: var(--bnh-bg-2);
|
|
90
|
+
color: var(--bnh-text);
|
|
91
|
+
border-left-color: var(--bnh-accent);
|
|
92
|
+
}
|
|
93
|
+
.bnh-settings-card {
|
|
94
|
+
border-radius: 12px;
|
|
95
|
+
padding: 22px;
|
|
96
|
+
}
|
|
97
|
+
.bnh-settings-card-header {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: flex-start;
|
|
100
|
+
gap: 16px;
|
|
101
|
+
}
|
|
102
|
+
.bnh-settings-row {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
gap: 24px;
|
|
106
|
+
padding: 14px 0;
|
|
107
|
+
border-top: 1px solid var(--bnh-border);
|
|
108
|
+
}
|
|
109
|
+
.bnh-settings-row.is-first {
|
|
110
|
+
border-top: none;
|
|
111
|
+
}
|
|
112
|
+
.bnh-settings-row.is-vertical {
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
align-items: stretch;
|
|
115
|
+
gap: 8px;
|
|
116
|
+
}
|
|
117
|
+
.bnh-settings-row-label {
|
|
118
|
+
width: 200px;
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
}
|
|
121
|
+
.bnh-settings-row.is-vertical .bnh-settings-row-label {
|
|
122
|
+
width: auto;
|
|
123
|
+
}
|
|
124
|
+
.bnh-settings-row-control {
|
|
125
|
+
flex: 1;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: 10px;
|
|
129
|
+
min-width: 0;
|
|
130
|
+
flex-wrap: wrap;
|
|
131
|
+
}
|
|
132
|
+
@media (max-width: 760px) {
|
|
133
|
+
.bnh-settings-page {
|
|
134
|
+
overflow-x: hidden;
|
|
135
|
+
overflow-y: auto;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
@media (max-width: 760px) {
|
|
139
|
+
.bnh-settings-shell {
|
|
140
|
+
min-height: calc(100svh - var(--bnh-page-offset, 0px));
|
|
141
|
+
height: auto;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
@media (max-width: 760px) {
|
|
145
|
+
.bnh-settings-body {
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
gap: 18px;
|
|
148
|
+
min-height: auto;
|
|
149
|
+
padding: 92px 16px calc(96px + env(safe-area-inset-bottom));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@media (max-width: 760px) {
|
|
153
|
+
.bnh-settings-main {
|
|
154
|
+
overflow: visible;
|
|
155
|
+
padding-right: 0;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
@media (max-width: 760px) {
|
|
159
|
+
.bnh-settings-content {
|
|
160
|
+
max-width: none;
|
|
161
|
+
padding-top: 0;
|
|
162
|
+
padding-bottom: 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
@media (max-width: 760px) {
|
|
166
|
+
.bnh-settings-rail {
|
|
167
|
+
width: 100%;
|
|
168
|
+
align-self: auto;
|
|
169
|
+
border-right: none;
|
|
170
|
+
border-bottom: 1px solid var(--bnh-border);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
@media (max-width: 760px) {
|
|
174
|
+
.bnh-settings-rail-inner {
|
|
175
|
+
flex-direction: row;
|
|
176
|
+
overflow-x: auto;
|
|
177
|
+
overflow-y: hidden;
|
|
178
|
+
padding-top: 0;
|
|
179
|
+
padding-bottom: 8px;
|
|
180
|
+
gap: 8px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
@media (max-width: 760px) {
|
|
184
|
+
.bnh-settings-rail-section {
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
gap: 8px;
|
|
188
|
+
flex-shrink: 0;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
@media (max-width: 760px) {
|
|
192
|
+
.bnh-settings-rail-group {
|
|
193
|
+
display: none;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
@media (max-width: 760px) {
|
|
197
|
+
.bnh-settings-rail-item {
|
|
198
|
+
width: auto;
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
border-left: none;
|
|
201
|
+
border-bottom: 2px solid transparent;
|
|
202
|
+
border-radius: 8px 8px 0 0;
|
|
203
|
+
padding: 8px 10px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
@media (max-width: 760px) {
|
|
207
|
+
.bnh-settings-rail-item.is-active {
|
|
208
|
+
border-left-color: transparent;
|
|
209
|
+
border-bottom-color: var(--bnh-accent);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
@media (max-width: 760px) {
|
|
213
|
+
.bnh-settings-row:not(.is-vertical) {
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
align-items: stretch;
|
|
216
|
+
gap: 8px;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
@media (max-width: 760px) {
|
|
220
|
+
.bnh-settings-row-label {
|
|
221
|
+
width: auto;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
@media (max-width: 600px) {
|
|
225
|
+
.bnh-settings-title {
|
|
226
|
+
font-size: 34px;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
@media (max-width: 600px) {
|
|
230
|
+
.bnh-settings-body {
|
|
231
|
+
padding-left: 12px;
|
|
232
|
+
padding-right: 12px;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
@media (max-width: 600px) {
|
|
236
|
+
.bnh-settings-card {
|
|
237
|
+
padding: 16px;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
@media (max-width: 600px) {
|
|
241
|
+
.bnh-settings-card-header {
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
.bnh-settings-page {
|
|
246
|
+
color: var(--bnh-text);
|
|
247
|
+
font-family: var(--bnh-font-sans, sans-serif);
|
|
248
|
+
}
|
|
249
|
+
.bnh-settings-page *, .bnh-settings-card, .bnh-settings-row, .bnh-settings-section, .bnh-settings-rail, .bnh-settings-rail * {
|
|
250
|
+
box-sizing: border-box;
|
|
251
|
+
}
|
|
252
|
+
.bnh-settings-page-header {
|
|
253
|
+
margin-bottom: 24px;
|
|
254
|
+
}
|
|
255
|
+
.bnh-settings-eyebrow {
|
|
256
|
+
margin-bottom: 8px;
|
|
257
|
+
font-family: var(--bnh-font-mono, monospace);
|
|
258
|
+
font-size: 11px;
|
|
259
|
+
line-height: 1.5;
|
|
260
|
+
color: var(--bnh-text-mute);
|
|
261
|
+
letter-spacing: 0.12em;
|
|
262
|
+
text-transform: uppercase;
|
|
263
|
+
}
|
|
264
|
+
.bnh-settings-title {
|
|
265
|
+
font-family: var(--bnh-font-display, serif);
|
|
266
|
+
font-weight: 400;
|
|
267
|
+
}
|
|
268
|
+
.bnh-settings-description {
|
|
269
|
+
margin: 8px 0 0;
|
|
270
|
+
font-size: 13px;
|
|
271
|
+
line-height: 1.5;
|
|
272
|
+
color: var(--bnh-text-dim);
|
|
273
|
+
}
|
|
274
|
+
.bnh-settings-rail {
|
|
275
|
+
font-family: var(--bnh-font-sans, sans-serif);
|
|
276
|
+
}
|
|
277
|
+
.bnh-settings-rail-inner {
|
|
278
|
+
scrollbar-width: none;
|
|
279
|
+
}
|
|
280
|
+
.bnh-settings-rail-inner::-webkit-scrollbar {
|
|
281
|
+
display: none;
|
|
282
|
+
}
|
|
283
|
+
.bnh-settings-rail-group {
|
|
284
|
+
font-family: var(--bnh-font-mono, monospace);
|
|
285
|
+
line-height: 1.5;
|
|
286
|
+
}
|
|
287
|
+
.bnh-settings-rail-item {
|
|
288
|
+
line-height: 1.5;
|
|
289
|
+
text-decoration: none;
|
|
290
|
+
}
|
|
291
|
+
.bnh-settings-rail-item:focus-visible {
|
|
292
|
+
outline: 2px solid var(--bnh-accent);
|
|
293
|
+
outline-offset: -2px;
|
|
294
|
+
}
|
|
295
|
+
.bnh-settings-rail-icon {
|
|
296
|
+
width: 14px;
|
|
297
|
+
display: inline-flex;
|
|
298
|
+
justify-content: center;
|
|
299
|
+
opacity: 0.7;
|
|
300
|
+
}
|
|
301
|
+
.bnh-settings-rail-item.is-active .bnh-settings-rail-icon {
|
|
302
|
+
opacity: 1;
|
|
303
|
+
}
|
|
304
|
+
.bnh-settings-rail-label {
|
|
305
|
+
flex: 1;
|
|
306
|
+
font-weight: 400;
|
|
307
|
+
}
|
|
308
|
+
.bnh-settings-rail-item.is-active .bnh-settings-rail-label {
|
|
309
|
+
font-weight: 500;
|
|
310
|
+
}
|
|
311
|
+
.bnh-settings-rail-badge {
|
|
312
|
+
font-family: var(--bnh-font-mono, monospace);
|
|
313
|
+
font-size: 10px;
|
|
314
|
+
color: var(--bnh-text-mute);
|
|
315
|
+
padding: 1px 6px;
|
|
316
|
+
border-radius: 999px;
|
|
317
|
+
background: var(--bnh-surface);
|
|
318
|
+
}
|
|
319
|
+
.bnh-settings-card {
|
|
320
|
+
background: var(--bnh-bg-2);
|
|
321
|
+
border: 1px solid var(--bnh-border);
|
|
322
|
+
}
|
|
323
|
+
.bnh-settings-card--danger {
|
|
324
|
+
border-color: color-mix(in oklch, var(--bnh-red) 30%, var(--bnh-border));
|
|
325
|
+
}
|
|
326
|
+
.bnh-settings-card-header {
|
|
327
|
+
margin-bottom: 14px;
|
|
328
|
+
}
|
|
329
|
+
.bnh-settings-card-header--description {
|
|
330
|
+
margin-bottom: 18px;
|
|
331
|
+
}
|
|
332
|
+
.bnh-settings-card-heading {
|
|
333
|
+
flex: 1;
|
|
334
|
+
}
|
|
335
|
+
.bnh-settings-card-title {
|
|
336
|
+
margin: 0;
|
|
337
|
+
font-size: 15px;
|
|
338
|
+
line-height: 1.5;
|
|
339
|
+
font-weight: 600;
|
|
340
|
+
letter-spacing: -0.005em;
|
|
341
|
+
color: var(--bnh-text);
|
|
342
|
+
}
|
|
343
|
+
.bnh-settings-card-header--danger .bnh-settings-card-title {
|
|
344
|
+
color: var(--bnh-red);
|
|
345
|
+
}
|
|
346
|
+
.bnh-settings-card-subtitle {
|
|
347
|
+
margin: 4px 0 0;
|
|
348
|
+
font-size: 12.5px;
|
|
349
|
+
color: var(--bnh-text-dim);
|
|
350
|
+
line-height: 1.5;
|
|
351
|
+
}
|
|
352
|
+
.bnh-settings-row-title {
|
|
353
|
+
font-size: 13px;
|
|
354
|
+
line-height: 1.5;
|
|
355
|
+
font-weight: 500;
|
|
356
|
+
color: var(--bnh-text);
|
|
357
|
+
}
|
|
358
|
+
.bnh-settings-row-hint {
|
|
359
|
+
font-size: 11.5px;
|
|
360
|
+
color: var(--bnh-text-mute);
|
|
361
|
+
margin-top: 2px;
|
|
362
|
+
line-height: 1.45;
|
|
363
|
+
}
|
|
364
|
+
.bnh-settings-section {
|
|
365
|
+
border-radius: var(--bnh-radius-lg, 16px);
|
|
366
|
+
border: 1px solid var(--bnh-border);
|
|
367
|
+
background: var(--bnh-bg-2);
|
|
368
|
+
padding: 16px;
|
|
369
|
+
}
|
|
370
|
+
.bnh-settings-section--purple {
|
|
371
|
+
border-color: color-mix(in oklch, var(--bnh-accent) 20%, transparent);
|
|
372
|
+
background: color-mix(in oklch, var(--bnh-accent) 5%, transparent);
|
|
373
|
+
}
|
|
374
|
+
.bnh-settings-section--rose {
|
|
375
|
+
border-color: color-mix(in oklch, var(--bnh-red) 20%, transparent);
|
|
376
|
+
background: color-mix(in oklch, var(--bnh-red) 5%, transparent);
|
|
377
|
+
}
|
|
378
|
+
.bnh-settings-section-header {
|
|
379
|
+
display: flex;
|
|
380
|
+
flex-direction: column;
|
|
381
|
+
gap: 8px;
|
|
382
|
+
margin-bottom: 16px;
|
|
383
|
+
}
|
|
384
|
+
.bnh-settings-section-header--description {
|
|
385
|
+
margin-bottom: 8px;
|
|
386
|
+
}
|
|
387
|
+
.bnh-settings-section-title {
|
|
388
|
+
margin: 0;
|
|
389
|
+
font-family: var(--bnh-font-display, serif);
|
|
390
|
+
font-size: 18px;
|
|
391
|
+
line-height: 28px;
|
|
392
|
+
font-weight: 600;
|
|
393
|
+
}
|
|
394
|
+
.bnh-settings-section--rose .bnh-settings-section-title {
|
|
395
|
+
color: var(--bnh-red);
|
|
396
|
+
}
|
|
397
|
+
.bnh-settings-section-subtitle {
|
|
398
|
+
margin: 0 0 16px;
|
|
399
|
+
font-size: 14px;
|
|
400
|
+
line-height: 20px;
|
|
401
|
+
color: var(--bnh-text-dim);
|
|
402
|
+
}
|
|
403
|
+
.bnh-settings-enter {
|
|
404
|
+
animation: bnh-settings-fade-up 0.4s ease-out both;
|
|
405
|
+
}
|
|
406
|
+
@keyframes bnh-settings-fade-up {
|
|
407
|
+
from {
|
|
408
|
+
opacity: 0;
|
|
409
|
+
transform: translateY(12px);
|
|
410
|
+
}
|
|
411
|
+
to {
|
|
412
|
+
opacity: 1;
|
|
413
|
+
transform: translateY(0);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
@media (min-width: 640px) {
|
|
417
|
+
.bnh-settings-section {
|
|
418
|
+
padding: 24px;
|
|
419
|
+
}
|
|
420
|
+
.bnh-settings-section-header {
|
|
421
|
+
flex-direction: row;
|
|
422
|
+
align-items: center;
|
|
423
|
+
justify-content: space-between;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
@media (prefers-reduced-motion: reduce) {
|
|
427
|
+
.bnh-settings-enter {
|
|
428
|
+
animation: none;
|
|
429
|
+
}
|
|
430
|
+
.bnh-settings-rail-item {
|
|
431
|
+
transition: none;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-skeleton { border-radius: var(--bnh-radius-md); background: var(--bnh-hover); animation: bnh-pulse-soft 2s ease-in-out infinite; }
|
|
3
|
+
@keyframes bnh-pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
|
|
4
|
+
@media (prefers-reduced-motion: reduce) { .bnh-skeleton { animation: none; } }
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-surface { box-sizing: border-box; color: var(--bnh-text); border: 1px solid var(--bnh-border); border-radius: var(--bnh-radius-lg); }
|
|
3
|
+
.bnh-surface--raised { background: var(--bnh-bg-2); }
|
|
4
|
+
.bnh-surface--glass { background: var(--bnh-surface); border-color: var(--bnh-border-2); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: var(--bnh-glass-shadow); }
|
|
5
|
+
.bnh-surface--frosted { background: var(--bnh-frosted-background); border-color: var(--bnh-border-2); -webkit-backdrop-filter: blur(32px) saturate(1.5); backdrop-filter: blur(32px) saturate(1.5); box-shadow: var(--bnh-popover-shadow); }
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--bnh-font-sans, inherit); }
|
|
3
|
+
.bnh-switch-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
|
4
|
+
.bnh-switch-track { box-sizing: border-box; position: relative; width: var(--bnh-switch-width, 36px); height: var(--bnh-switch-height, 20px); flex-shrink: 0; border: 0; border-radius: 999px; background: var(--bnh-switch-inactive, var(--bnh-surface-2)); transition: background .15s; }
|
|
5
|
+
.bnh-switch-track::after { content: ""; position: absolute; top: var(--bnh-switch-inset, 2px); left: var(--bnh-switch-inset, 2px); width: var(--bnh-switch-thumb, 16px); height: var(--bnh-switch-thumb, 16px); border-radius: 50%; background: white; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); transition: transform .15s; }
|
|
6
|
+
.bnh-switch-input:checked + .bnh-switch-track { background: var(--bnh-switch-active, var(--bnh-accent)); }
|
|
7
|
+
.bnh-switch-input:checked + .bnh-switch-track::after { transform: translateX(calc(var(--bnh-switch-width, 36px) - var(--bnh-switch-thumb, 16px) - 2 * var(--bnh-switch-inset, 2px))); background: white; }
|
|
8
|
+
.bnh-switch-input:focus-visible + .bnh-switch-track { outline: 2px solid var(--bnh-accent); outline-offset: 3px; }
|
|
9
|
+
.bnh-switch-input:disabled ~ span { opacity: .5; cursor: not-allowed; }
|
|
10
|
+
.bnh-switch-copy { display: flex; flex-direction: column; gap: 2px; }
|
|
11
|
+
.bnh-switch-label { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--bnh-text); }
|
|
12
|
+
.bnh-switch-description { font-size: 11.5px; line-height: 1.45; color: var(--bnh-text-mute); }
|
|
13
|
+
@media (prefers-reduced-motion: reduce) { .bnh-switch-track, .bnh-switch-track::after { transition: none; } }
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.bnh-theme-toggle { box-sizing: border-box; display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--bnh-border); border-radius: 999px; background: var(--bnh-input); }
|
|
3
|
+
.bnh-theme-toggle > button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 6px; border: 0; border-radius: 999px; background: transparent; color: var(--bnh-text-mute); font: inherit; cursor: pointer; transition: background-color 150ms, color 150ms; }
|
|
4
|
+
.bnh-theme-toggle > button:hover { color: var(--bnh-text-dim); }
|
|
5
|
+
.bnh-theme-toggle > button[aria-pressed="true"] { background: var(--bnh-hover); color: var(--bnh-text); }
|
|
6
|
+
.bnh-theme-toggle > button:focus-visible { outline: 2px solid var(--bnh-accent); outline-offset: 2px; }
|
|
7
|
+
.bnh-theme-toggle > button:disabled { cursor: not-allowed; opacity: .4; }
|
|
8
|
+
@media (prefers-reduced-motion: reduce) { .bnh-theme-toggle > button { transition: none; } }
|
|
9
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* Generated from tokens.json. No reset, font downloads, or runtime provider. */
|
|
2
|
+
@layer theme, base, components, utilities;
|
|
3
|
+
@layer theme {
|
|
4
|
+
:root {
|
|
5
|
+
--bnh-font-sans: ui-sans-serif, system-ui, sans-serif;
|
|
6
|
+
--bnh-font-display: Georgia, serif;
|
|
7
|
+
--bnh-font-mono: ui-monospace, SFMono-Regular, monospace;
|
|
8
|
+
--bnh-header-top: 18px;
|
|
9
|
+
--bnh-header-offset: 0px;
|
|
10
|
+
--bnh-page-offset: 0px;
|
|
11
|
+
--bnh-radius-sm: 6px;
|
|
12
|
+
--bnh-radius-md: 10px;
|
|
13
|
+
--bnh-radius-lg: 16px;
|
|
14
|
+
--bnh-radius-xl: 24px;
|
|
15
|
+
--bnh-modal-backdrop-blur: 20px;
|
|
16
|
+
--bnh-popover-backdrop-blur: 56px;
|
|
17
|
+
}
|
|
18
|
+
:root, .bnh-theme-dark, [data-bnh-theme="dark"] {
|
|
19
|
+
--bnh-bg: oklch(0.245 0.015 275);
|
|
20
|
+
--bnh-bg-2: oklch(0.29 0.017 275);
|
|
21
|
+
--bnh-surface-3: oklch(0.325 0.018 275);
|
|
22
|
+
--bnh-input: oklch(0.35 0.018 275);
|
|
23
|
+
--bnh-hover: oklch(0.38 0.018 275);
|
|
24
|
+
--bnh-surface: rgba(255, 255, 255, 0.06);
|
|
25
|
+
--bnh-surface-2: rgba(255, 255, 255, 0.09);
|
|
26
|
+
--bnh-border: rgba(255, 255, 255, 0.08);
|
|
27
|
+
--bnh-border-2: rgba(255, 255, 255, 0.13);
|
|
28
|
+
--bnh-border-strong: oklch(0.48 0.015 275);
|
|
29
|
+
--bnh-text: oklch(0.97 0.005 270);
|
|
30
|
+
--bnh-text-dim: oklch(0.72 0.01 270);
|
|
31
|
+
--bnh-text-mute: oklch(0.55 0.01 270);
|
|
32
|
+
--bnh-accent: #a78bfa;
|
|
33
|
+
--bnh-input-focus: color-mix(in oklch, var(--bnh-accent) 55%, transparent);
|
|
34
|
+
--bnh-input-focus-ring: color-mix(in oklch, var(--bnh-accent) 20%, transparent);
|
|
35
|
+
--bnh-green: #22c55e;
|
|
36
|
+
--bnh-amber: #f59e0b;
|
|
37
|
+
--bnh-violet: #a78bfa;
|
|
38
|
+
--bnh-blue: #60a5fa;
|
|
39
|
+
--bnh-red: #fb7185;
|
|
40
|
+
--bnh-orange: #fb923c;
|
|
41
|
+
--bnh-link: #94a3b8;
|
|
42
|
+
--bnh-primary: #e8d5b5;
|
|
43
|
+
--bnh-primary-hover: #f0e4ce;
|
|
44
|
+
--bnh-glass-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 -1px 0 rgba(0,0,0,.15) inset, 0 20px 60px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.25);
|
|
45
|
+
--bnh-popover-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 -1px 0 rgba(0,0,0,.2) inset, 0 24px 70px rgba(0,0,0,.5), 0 6px 20px rgba(0,0,0,.35);
|
|
46
|
+
--bnh-popover-background: radial-gradient(ellipse 110% 65% at 50% -10%, color-mix(in oklch, var(--bnh-accent) 16%, transparent) 0%, transparent 70%), linear-gradient(135deg, color-mix(in oklch, white 8%, transparent), transparent 48%), color-mix(in oklch, var(--bnh-bg) 48%, transparent);
|
|
47
|
+
--bnh-frosted-background: radial-gradient(ellipse 110% 65% at 50% -10%, color-mix(in oklch, var(--bnh-accent) 14%, transparent), transparent 70%), color-mix(in oklch, var(--bnh-bg) 70%, transparent);
|
|
48
|
+
}
|
|
49
|
+
:root.light, .bnh-theme-light, [data-bnh-theme="light"] {
|
|
50
|
+
--bnh-bg: oklch(0.924 0.009 85);
|
|
51
|
+
--bnh-bg-2: oklch(0.978 0.004 85);
|
|
52
|
+
--bnh-surface-3: #fffefa;
|
|
53
|
+
--bnh-input: oklch(0.93 0.007 85);
|
|
54
|
+
--bnh-hover: oklch(0.9 0.008 85);
|
|
55
|
+
--bnh-surface: rgba(255, 254, 250, 0.55);
|
|
56
|
+
--bnh-surface-2: rgba(255, 254, 250, 0.92);
|
|
57
|
+
--bnh-border: rgba(62, 52, 36, 0.11);
|
|
58
|
+
--bnh-border-2: rgba(62, 52, 36, 0.17);
|
|
59
|
+
--bnh-border-strong: #aca69c;
|
|
60
|
+
--bnh-text: oklch(0.24 0.012 70);
|
|
61
|
+
--bnh-text-dim: oklch(0.45 0.014 70);
|
|
62
|
+
--bnh-text-mute: oklch(0.6 0.012 75);
|
|
63
|
+
--bnh-accent: #7c3aed;
|
|
64
|
+
--bnh-input-focus: color-mix(in oklch, var(--bnh-accent) 55%, transparent);
|
|
65
|
+
--bnh-input-focus-ring: color-mix(in oklch, var(--bnh-accent) 20%, transparent);
|
|
66
|
+
--bnh-green: #16a34a;
|
|
67
|
+
--bnh-amber: #d97706;
|
|
68
|
+
--bnh-violet: #7c3aed;
|
|
69
|
+
--bnh-blue: #2563eb;
|
|
70
|
+
--bnh-red: #e11d48;
|
|
71
|
+
--bnh-orange: #ea580c;
|
|
72
|
+
--bnh-link: #64748b;
|
|
73
|
+
--bnh-primary: #7c6540;
|
|
74
|
+
--bnh-primary-hover: #6b5636;
|
|
75
|
+
--bnh-glass-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(0,0,0,.04) inset, 0 12px 40px rgba(30,20,60,.1), 0 2px 8px rgba(30,20,60,.06);
|
|
76
|
+
--bnh-popover-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(0,0,0,.05) inset, 0 16px 50px rgba(30,20,60,.15), 0 3px 10px rgba(30,20,60,.08);
|
|
77
|
+
--bnh-popover-background: radial-gradient(ellipse 110% 65% at 50% -10%, color-mix(in oklch, var(--bnh-accent) 10%, transparent) 0%, transparent 70%), linear-gradient(135deg, color-mix(in oklch, white 42%, transparent), transparent 52%), color-mix(in oklch, var(--bnh-bg-2) 58%, transparent);
|
|
78
|
+
--bnh-frosted-background: radial-gradient(ellipse 110% 65% at 50% -10%, color-mix(in oklch, var(--bnh-accent) 9%, transparent), transparent 70%), color-mix(in oklch, var(--bnh-bg-2) 75%, transparent);
|
|
79
|
+
}
|
|
80
|
+
}
|