@motion-proto/live-tokens 0.11.0 → 0.12.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/.claude/skills/live-tokens-build-page/SKILL.md +35 -0
- package/.claude/skills/live-tokens-create-component/SKILL.md +483 -0
- package/.claude/skills/live-tokens-pick-component/SKILL.md +77 -0
- package/README.md +30 -6
- package/bin/check-component.mjs +244 -0
- package/bin/cli.mjs +101 -0
- package/package.json +5 -1
- package/src/editor/component-editor/CodeSnippetEditor.svelte +61 -0
- package/src/editor/component-editor/ToggleEditor.svelte +93 -0
- package/src/editor/component-editor/registry.ts +22 -0
- package/src/editor/ui/VariablesTab.svelte +6 -1
- package/src/editor/ui/sections/TokenScaleTable.svelte +28 -7
- package/src/editor/ui/sections/tokenScales.ts +5 -0
- package/src/system/components/CodeSnippet.svelte +118 -0
- package/src/system/components/Toggle.svelte +176 -0
- package/src/system/styles/tokens.generated.css +61 -44
- package/.claude/skills/live-tokens-add-component/SKILL.md +0 -488
|
@@ -22,13 +22,14 @@
|
|
|
22
22
|
/** Visual layout variant. Each variant matches one of the seven scales the
|
|
23
23
|
* parent renders; the markup differs only in the preview swatch. */
|
|
24
24
|
type ScaleKind =
|
|
25
|
-
| 'spacing'
|
|
26
|
-
| 'border'
|
|
27
|
-
| 'radius'
|
|
28
|
-
| 'font-size'
|
|
29
|
-
| 'font-weight'
|
|
30
|
-
| 'line-height'
|
|
31
|
-
| '
|
|
25
|
+
| 'spacing' // horizontal bar sized by width: var(--xx)
|
|
26
|
+
| 'border' // horizontal bar sized by height: var(--xx)
|
|
27
|
+
| 'radius' // square box with border-radius: var(--xx)
|
|
28
|
+
| 'font-size' // "Ag" text sized by font-size: var(--xx)
|
|
29
|
+
| 'font-weight' // "Ag" text weighted by font-weight: var(--xx)
|
|
30
|
+
| 'line-height' // no preview, table-only rows
|
|
31
|
+
| 'letter-spacing' // "AV" text spaced by letter-spacing: var(--xx)
|
|
32
|
+
| 'icon-size'; // star icon sized by font-size: var(--xx)
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
|
|
@@ -162,6 +163,18 @@
|
|
|
162
163
|
</div>
|
|
163
164
|
{/each}
|
|
164
165
|
</div>
|
|
166
|
+
{:else if kind === 'letter-spacing'}
|
|
167
|
+
<div class="font-weight-demos">
|
|
168
|
+
{#each resolved as token}
|
|
169
|
+
<div class="font-weight-item">
|
|
170
|
+
<span class="letter-spacing-preview" style="letter-spacing: var({token.variable});">AV</span>
|
|
171
|
+
<div class="token-info">
|
|
172
|
+
<button class="token-variable copyable" class:copied={copiedVar === token.variable} onclick={() => copy(token.variable)}>{copiedVar === token.variable ? 'copied!' : token.variable}</button>
|
|
173
|
+
<span class="token-value">{token.value}</span>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
{/each}
|
|
177
|
+
</div>
|
|
165
178
|
{:else if kind === 'icon-size'}
|
|
166
179
|
<div class="font-size-demos">
|
|
167
180
|
{#each resolved as token}
|
|
@@ -321,6 +334,14 @@
|
|
|
321
334
|
min-width: 2rem;
|
|
322
335
|
}
|
|
323
336
|
|
|
337
|
+
.letter-spacing-preview {
|
|
338
|
+
font-size: var(--ui-font-size-xl);
|
|
339
|
+
font-family: var(--ui-font-sans);
|
|
340
|
+
color: var(--ui-text-primary);
|
|
341
|
+
line-height: 1;
|
|
342
|
+
min-width: 2.5rem;
|
|
343
|
+
}
|
|
344
|
+
|
|
324
345
|
.font-weight-item .token-info {
|
|
325
346
|
flex-direction: row;
|
|
326
347
|
gap: var(--ui-space-8);
|
|
@@ -46,6 +46,11 @@ export const LINE_HEIGHT_VARS = [
|
|
|
46
46
|
'--line-height-lg', '--line-height-xl',
|
|
47
47
|
] as const;
|
|
48
48
|
|
|
49
|
+
export const LETTER_SPACING_VARS = [
|
|
50
|
+
'--letter-spacing-tighter', '--letter-spacing-tight', '--letter-spacing-normal',
|
|
51
|
+
'--letter-spacing-wide', '--letter-spacing-wider',
|
|
52
|
+
] as const;
|
|
53
|
+
|
|
49
54
|
export interface TokenItem {
|
|
50
55
|
variable: string;
|
|
51
56
|
value: string;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
CodeSnippet.svelte — single-line code display with a copy button. Click the
|
|
3
|
+
button to copy `code` to the clipboard; a Tooltip-rendered confirmation
|
|
4
|
+
("Copied") flashes briefly above the button.
|
|
5
|
+
-->
|
|
6
|
+
<script lang="ts">
|
|
7
|
+
import Tooltip from './Tooltip.svelte';
|
|
8
|
+
|
|
9
|
+
interface Props {
|
|
10
|
+
code: string;
|
|
11
|
+
/** ARIA label for the copy button. */
|
|
12
|
+
copyLabel?: string;
|
|
13
|
+
/** Editor preview hook: adds `.force-hover` so hover tokens paint without a pointer. */
|
|
14
|
+
class?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
let {
|
|
18
|
+
code,
|
|
19
|
+
copyLabel = 'Copy to clipboard',
|
|
20
|
+
class: className = '',
|
|
21
|
+
}: Props = $props();
|
|
22
|
+
|
|
23
|
+
let copied = $state(false);
|
|
24
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
25
|
+
|
|
26
|
+
async function copy() {
|
|
27
|
+
try {
|
|
28
|
+
await navigator.clipboard.writeText(code);
|
|
29
|
+
} catch {
|
|
30
|
+
// Clipboard unavailable (insecure context, denied permission). Still flash
|
|
31
|
+
// the confirmation so the editor preview shows the popover behavior.
|
|
32
|
+
}
|
|
33
|
+
copied = true;
|
|
34
|
+
if (timer) clearTimeout(timer);
|
|
35
|
+
timer = setTimeout(() => { copied = false; }, 1500);
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<div class="codesnippet {className}">
|
|
40
|
+
<code class="code">{code}</code>
|
|
41
|
+
<Tooltip text={copied ? 'Copied' : ''} open={copied} position="top">
|
|
42
|
+
<button
|
|
43
|
+
type="button"
|
|
44
|
+
class="copy"
|
|
45
|
+
onclick={copy}
|
|
46
|
+
aria-label={copyLabel}
|
|
47
|
+
>
|
|
48
|
+
<i class="fas fa-copy" aria-hidden="true"></i>
|
|
49
|
+
</button>
|
|
50
|
+
</Tooltip>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<style>
|
|
54
|
+
:global(:root) {
|
|
55
|
+
/* Container. */
|
|
56
|
+
--codesnippet-surface: var(--surface-neutral-lower);
|
|
57
|
+
--codesnippet-border: var(--border-neutral-subtle);
|
|
58
|
+
--codesnippet-border-width: var(--border-width-1);
|
|
59
|
+
--codesnippet-radius: var(--radius-md);
|
|
60
|
+
--codesnippet-padding: var(--space-16);
|
|
61
|
+
--codesnippet-gap: var(--space-16);
|
|
62
|
+
|
|
63
|
+
/* Code text. */
|
|
64
|
+
--codesnippet-code-text: var(--text-primary);
|
|
65
|
+
--codesnippet-code-font-family: var(--font-mono);
|
|
66
|
+
--codesnippet-code-font-size: var(--font-size-sm);
|
|
67
|
+
--codesnippet-code-font-weight: var(--font-weight-normal);
|
|
68
|
+
--codesnippet-code-line-height: var(--line-height-md);
|
|
69
|
+
|
|
70
|
+
/* Copy icon (default + hover). */
|
|
71
|
+
--codesnippet-icon: var(--text-secondary);
|
|
72
|
+
--codesnippet-icon-size: var(--font-size-md);
|
|
73
|
+
--codesnippet-hover-icon: var(--text-primary);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.codesnippet {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: var(--codesnippet-gap);
|
|
80
|
+
max-width: 100%;
|
|
81
|
+
padding: var(--codesnippet-padding);
|
|
82
|
+
background: var(--codesnippet-surface);
|
|
83
|
+
border: var(--codesnippet-border-width) solid var(--codesnippet-border);
|
|
84
|
+
border-radius: var(--codesnippet-radius);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.code {
|
|
88
|
+
flex: 1 1 auto;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
color: var(--codesnippet-code-text);
|
|
91
|
+
font-family: var(--codesnippet-code-font-family);
|
|
92
|
+
font-size: var(--codesnippet-code-font-size);
|
|
93
|
+
font-weight: var(--codesnippet-code-font-weight);
|
|
94
|
+
line-height: var(--codesnippet-code-line-height);
|
|
95
|
+
white-space: pre;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
text-overflow: ellipsis;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.copy {
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
flex: none;
|
|
105
|
+
padding: 0;
|
|
106
|
+
background: transparent;
|
|
107
|
+
border: none;
|
|
108
|
+
color: var(--codesnippet-icon);
|
|
109
|
+
font-size: var(--codesnippet-icon-size);
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
transition: color var(--duration-150);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.copy:hover,
|
|
115
|
+
.codesnippet.force-hover .copy {
|
|
116
|
+
color: var(--codesnippet-hover-icon);
|
|
117
|
+
}
|
|
118
|
+
</style>
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Toggle.svelte — Cloudscape-style on/off switch. The default state is "off",
|
|
3
|
+
whose tokens carry the baseline appearance plus all geometry and label
|
|
4
|
+
typography. "On" is a state that recolors track + thumb when the toggle is
|
|
5
|
+
checked; hover and disabled layer over the active component state.
|
|
6
|
+
-->
|
|
7
|
+
<script lang="ts">
|
|
8
|
+
interface Props {
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
ariaLabel?: string | undefined;
|
|
13
|
+
/** Editor preview hook — adds `.force-hover` so hover tokens paint without a real pointer. */
|
|
14
|
+
class?: string;
|
|
15
|
+
onchange?: (checked: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let {
|
|
19
|
+
checked = false,
|
|
20
|
+
disabled = false,
|
|
21
|
+
label = '',
|
|
22
|
+
ariaLabel = undefined,
|
|
23
|
+
class: className = '',
|
|
24
|
+
onchange,
|
|
25
|
+
}: Props = $props();
|
|
26
|
+
|
|
27
|
+
function toggle() {
|
|
28
|
+
if (disabled) return;
|
|
29
|
+
onchange?.(!checked);
|
|
30
|
+
}
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<button
|
|
34
|
+
type="button"
|
|
35
|
+
role="switch"
|
|
36
|
+
aria-checked={checked}
|
|
37
|
+
aria-label={ariaLabel ?? label}
|
|
38
|
+
class="toggle {className}"
|
|
39
|
+
class:on={checked}
|
|
40
|
+
{disabled}
|
|
41
|
+
onclick={toggle}
|
|
42
|
+
>
|
|
43
|
+
<span class="track">
|
|
44
|
+
<span class="thumb"></span>
|
|
45
|
+
</span>
|
|
46
|
+
{#if label}
|
|
47
|
+
<span class="label">{label}</span>
|
|
48
|
+
{/if}
|
|
49
|
+
</button>
|
|
50
|
+
|
|
51
|
+
<style>
|
|
52
|
+
:global(:root) {
|
|
53
|
+
/* Default (off resting) — also carries all geometry + label typography. */
|
|
54
|
+
--toggle-track-surface: var(--surface-neutral);
|
|
55
|
+
--toggle-track-border: var(--border-neutral);
|
|
56
|
+
--toggle-track-border-width: var(--border-width-1);
|
|
57
|
+
--toggle-track-radius: var(--radius-full);
|
|
58
|
+
--toggle-track-width: var(--space-32);
|
|
59
|
+
--toggle-track-thickness: var(--space-16);
|
|
60
|
+
--toggle-thumb-surface: var(--surface-neutral-highest);
|
|
61
|
+
--toggle-thumb-border: var(--border-neutral-strong);
|
|
62
|
+
--toggle-thumb-size: var(--space-12);
|
|
63
|
+
--toggle-label-text: var(--text-primary);
|
|
64
|
+
--toggle-label-font-family: var(--font-sans);
|
|
65
|
+
--toggle-label-font-size: var(--font-size-sm);
|
|
66
|
+
--toggle-label-font-weight: var(--font-weight-normal);
|
|
67
|
+
--toggle-gap: var(--space-8);
|
|
68
|
+
|
|
69
|
+
/* Hover (default + hover interaction). */
|
|
70
|
+
--toggle-hover-track-surface: var(--surface-neutral-high);
|
|
71
|
+
--toggle-hover-thumb-surface: var(--text-primary);
|
|
72
|
+
|
|
73
|
+
/* On (selected — toggle is checked). */
|
|
74
|
+
--toggle-on-track-surface: var(--surface-brand-high);
|
|
75
|
+
--toggle-on-track-border: var(--border-brand);
|
|
76
|
+
--toggle-on-thumb-surface: var(--text-primary);
|
|
77
|
+
--toggle-on-thumb-border: var(--border-brand-strong);
|
|
78
|
+
|
|
79
|
+
/* On + hover. */
|
|
80
|
+
--toggle-on-hover-track-surface: var(--surface-brand-higher);
|
|
81
|
+
--toggle-on-hover-thumb-surface: var(--text-primary);
|
|
82
|
+
|
|
83
|
+
/* Disabled (terminal — applies regardless of on/off). */
|
|
84
|
+
--toggle-disabled-track-surface: var(--surface-neutral-lower);
|
|
85
|
+
--toggle-disabled-thumb-surface: var(--surface-neutral);
|
|
86
|
+
--toggle-disabled-label-text: var(--text-disabled);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.toggle {
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: var(--toggle-gap);
|
|
93
|
+
background: transparent;
|
|
94
|
+
border: none;
|
|
95
|
+
padding: 0;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
.toggle:disabled { cursor: not-allowed; }
|
|
99
|
+
|
|
100
|
+
.track {
|
|
101
|
+
position: relative;
|
|
102
|
+
flex: none;
|
|
103
|
+
display: inline-block;
|
|
104
|
+
width: var(--toggle-track-width);
|
|
105
|
+
height: var(--toggle-track-thickness);
|
|
106
|
+
background: var(--toggle-track-surface);
|
|
107
|
+
border: var(--toggle-track-border-width) solid var(--toggle-track-border);
|
|
108
|
+
border-radius: var(--toggle-track-radius);
|
|
109
|
+
transition: background var(--duration-150, 150ms), border-color var(--duration-150, 150ms);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.thumb {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 50%;
|
|
115
|
+
left: var(--space-2);
|
|
116
|
+
width: var(--toggle-thumb-size);
|
|
117
|
+
height: var(--toggle-thumb-size);
|
|
118
|
+
transform: translateY(-50%);
|
|
119
|
+
background: var(--toggle-thumb-surface);
|
|
120
|
+
border: var(--toggle-track-border-width) solid var(--toggle-thumb-border);
|
|
121
|
+
border-radius: var(--radius-full);
|
|
122
|
+
transition: left var(--duration-200, 200ms) ease, background var(--duration-150, 150ms), border-color var(--duration-150, 150ms);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.label {
|
|
126
|
+
color: var(--toggle-label-text);
|
|
127
|
+
font-family: var(--toggle-label-font-family);
|
|
128
|
+
font-size: var(--toggle-label-font-size);
|
|
129
|
+
font-weight: var(--toggle-label-font-weight);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Hover (default state). */
|
|
133
|
+
.toggle:hover:not(:disabled) .track,
|
|
134
|
+
.toggle.force-hover:not(:disabled) .track {
|
|
135
|
+
background: var(--toggle-hover-track-surface);
|
|
136
|
+
}
|
|
137
|
+
.toggle:hover:not(:disabled) .thumb,
|
|
138
|
+
.toggle.force-hover:not(:disabled) .thumb {
|
|
139
|
+
background: var(--toggle-hover-thumb-surface);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* On state — slide thumb, recolor track + thumb. */
|
|
143
|
+
.toggle.on .track {
|
|
144
|
+
background: var(--toggle-on-track-surface);
|
|
145
|
+
border-color: var(--toggle-on-track-border);
|
|
146
|
+
}
|
|
147
|
+
.toggle.on .thumb {
|
|
148
|
+
/* Calc keeps thumb flush with the right edge as track width and thumb size change. */
|
|
149
|
+
left: calc(var(--toggle-track-width) - var(--toggle-thumb-size) - var(--space-2) - (var(--toggle-track-border-width) * 2));
|
|
150
|
+
background: var(--toggle-on-thumb-surface);
|
|
151
|
+
border-color: var(--toggle-on-thumb-border);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* On + hover. */
|
|
155
|
+
.toggle.on:hover:not(:disabled) .track,
|
|
156
|
+
.toggle.on.force-hover:not(:disabled) .track {
|
|
157
|
+
background: var(--toggle-on-hover-track-surface);
|
|
158
|
+
}
|
|
159
|
+
.toggle.on:hover:not(:disabled) .thumb,
|
|
160
|
+
.toggle.on.force-hover:not(:disabled) .thumb {
|
|
161
|
+
background: var(--toggle-on-hover-thumb-surface);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Disabled — terminal, beats both default and on. */
|
|
165
|
+
.toggle:disabled .track {
|
|
166
|
+
background: var(--toggle-disabled-track-surface);
|
|
167
|
+
border-color: var(--toggle-disabled-track-surface);
|
|
168
|
+
}
|
|
169
|
+
.toggle:disabled .thumb {
|
|
170
|
+
background: var(--toggle-disabled-thumb-surface);
|
|
171
|
+
border-color: var(--toggle-disabled-thumb-surface);
|
|
172
|
+
}
|
|
173
|
+
.toggle:disabled .label {
|
|
174
|
+
color: var(--toggle-disabled-label-text);
|
|
175
|
+
}
|
|
176
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Generated by themeFileApi from the production theme and component configs. Do not edit. */
|
|
2
2
|
/* tokens.css holds developer-authored defaults; this file holds editor overrides. */
|
|
3
3
|
|
|
4
|
-
/* Production theme:
|
|
4
|
+
/* Production theme: my-theme */
|
|
5
5
|
:root:root {
|
|
6
6
|
--gradient-1: linear-gradient(90deg, var(--color-brand-500) 0%, var(--color-accent-500) 100%);
|
|
7
7
|
--gradient-2: linear-gradient(135deg, var(--color-brand-500) 0%, var(--color-special-500) 100%);
|
|
@@ -54,12 +54,16 @@
|
|
|
54
54
|
--dialog-secondary-hover-border-width: var(--border-width-1);
|
|
55
55
|
--dialog-secondary-hover-radius: var(--radius-md);
|
|
56
56
|
--dialog-secondary-hover-padding: var(--space-8);
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
57
|
+
--columns-count: 12;
|
|
58
|
+
--columns-max-width: 1440px;
|
|
59
|
+
--columns-gutter: 32px;
|
|
60
|
+
--columns-margin: 0px;
|
|
61
|
+
--overlay-low: color-mix(in srgb, var(--surface-neutral-lowest) 38%, transparent);
|
|
62
|
+
--overlay: color-mix(in srgb, var(--surface-neutral-lowest) 51%, transparent);
|
|
63
|
+
--overlay-high: color-mix(in srgb, var(--surface-neutral-lowest) 64%, transparent);
|
|
64
|
+
--hover-low: color-mix(in srgb, var(--text-primary) 5%, transparent);
|
|
65
|
+
--hover: color-mix(in srgb, var(--text-primary) 10%, transparent);
|
|
66
|
+
--hover-high: color-mix(in srgb, var(--text-primary) 15%, transparent);
|
|
63
67
|
--shadow-sm: 1px 1px 2px 0px hsla(237, 18%, 3%, 0.9);
|
|
64
68
|
--shadow-md: 3px 3px 6px 0px hsla(237, 18%, 3%, 0.9);
|
|
65
69
|
--shadow-lg: 5px 5px 9px 0px hsla(237, 18%, 3%, 0.9);
|
|
@@ -152,15 +156,15 @@
|
|
|
152
156
|
--page-bg: #15142b;
|
|
153
157
|
--page-bg-attachment: scroll;
|
|
154
158
|
--color-brand-100: #ffbad3;
|
|
155
|
-
--color-brand-200: #
|
|
156
|
-
--color-brand-300: #
|
|
157
|
-
--color-brand-400: #
|
|
158
|
-
--color-brand-500: #
|
|
159
|
-
--color-brand-600: #
|
|
160
|
-
--color-brand-700: #
|
|
161
|
-
--color-brand-800: #
|
|
162
|
-
--color-brand-850: #
|
|
163
|
-
--color-brand-900: #
|
|
159
|
+
--color-brand-200: #ff7fb5;
|
|
160
|
+
--color-brand-300: #ff49a1;
|
|
161
|
+
--color-brand-400: #fb3199;
|
|
162
|
+
--color-brand-500: #fb2898;
|
|
163
|
+
--color-brand-600: #df0083;
|
|
164
|
+
--color-brand-700: #930055;
|
|
165
|
+
--color-brand-800: #5c0033;
|
|
166
|
+
--color-brand-850: #38001d;
|
|
167
|
+
--color-brand-900: #20000e;
|
|
164
168
|
--color-brand-950: #100005;
|
|
165
169
|
--surface-brand-lowest: #1d000c;
|
|
166
170
|
--surface-brand-lower: #3e0020;
|
|
@@ -235,34 +239,34 @@
|
|
|
235
239
|
--text-special-tertiary: #5c4e8b;
|
|
236
240
|
--text-special-muted: #3e3a4f;
|
|
237
241
|
--text-special-disabled: #303032;
|
|
238
|
-
--color-info-100: #
|
|
239
|
-
--color-info-200: #
|
|
240
|
-
--color-info-300: #
|
|
241
|
-
--color-info-400: #
|
|
242
|
-
--color-info-500: #
|
|
243
|
-
--color-info-600: #
|
|
244
|
-
--color-info-700: #
|
|
245
|
-
--color-info-800: #
|
|
246
|
-
--color-info-850: #
|
|
247
|
-
--color-info-900: #
|
|
248
|
-
--color-info-950: #
|
|
249
|
-
--surface-info-lowest: #
|
|
250
|
-
--surface-info-lower: #
|
|
251
|
-
--surface-info-low: #
|
|
252
|
-
--surface-info: #
|
|
253
|
-
--surface-info-high: #
|
|
254
|
-
--surface-info-higher: #
|
|
255
|
-
--surface-info-highest: #
|
|
256
|
-
--border-info-faint: #
|
|
257
|
-
--border-info-subtle: #
|
|
258
|
-
--border-info: #
|
|
259
|
-
--border-info-medium: #
|
|
260
|
-
--border-info-strong: #
|
|
261
|
-
--text-info: #
|
|
262
|
-
--text-info-secondary: #
|
|
263
|
-
--text-info-tertiary: #
|
|
264
|
-
--text-info-muted: #
|
|
265
|
-
--text-info-disabled: #
|
|
242
|
+
--color-info-100: #9adbff;
|
|
243
|
+
--color-info-200: #4ebbf1;
|
|
244
|
+
--color-info-300: #109bd4;
|
|
245
|
+
--color-info-400: #007fae;
|
|
246
|
+
--color-info-500: #00658c;
|
|
247
|
+
--color-info-600: #004e6d;
|
|
248
|
+
--color-info-700: #003a53;
|
|
249
|
+
--color-info-800: #00293c;
|
|
250
|
+
--color-info-850: #001a28;
|
|
251
|
+
--color-info-900: #000e18;
|
|
252
|
+
--color-info-950: #00050b;
|
|
253
|
+
--surface-info-lowest: #000d17;
|
|
254
|
+
--surface-info-lower: #002232;
|
|
255
|
+
--surface-info-low: #003951;
|
|
256
|
+
--surface-info: #005171;
|
|
257
|
+
--surface-info-high: #2c6a89;
|
|
258
|
+
--surface-info-higher: #598198;
|
|
259
|
+
--surface-info-highest: #8299a7;
|
|
260
|
+
--border-info-faint: #002537;
|
|
261
|
+
--border-info-subtle: #004662;
|
|
262
|
+
--border-info: #006991;
|
|
263
|
+
--border-info-medium: #008ec3;
|
|
264
|
+
--border-info-strong: #00b6f8;
|
|
265
|
+
--text-info: #64caff;
|
|
266
|
+
--text-info-secondary: #0083b4;
|
|
267
|
+
--text-info-tertiary: #1c506a;
|
|
268
|
+
--text-info-muted: #1d2c34;
|
|
269
|
+
--text-info-disabled: #181a1b;
|
|
266
270
|
--color-success-100: #92e9a3;
|
|
267
271
|
--color-success-200: #69c67e;
|
|
268
272
|
--color-success-300: #42a75d;
|
|
@@ -372,6 +376,15 @@
|
|
|
372
376
|
--card-default-body-padding-bottom: var(--space-16);
|
|
373
377
|
--card-default-body-padding-left: var(--space-20);
|
|
374
378
|
|
|
379
|
+
/* codesnippet (my-code-snippet) */
|
|
380
|
+
--codesnippet-surface: color-mix(in srgb, var(--surface-neutral-lowest) 76%, transparent);
|
|
381
|
+
--codesnippet-border: var(--border-neutral);
|
|
382
|
+
--codesnippet-code-text: var(--text-brand-secondary);
|
|
383
|
+
--codesnippet-code-font-size: var(--font-size-md);
|
|
384
|
+
|
|
385
|
+
/* image (my-image) */
|
|
386
|
+
--image-default-radius: var(--radius-2xl);
|
|
387
|
+
|
|
375
388
|
/* imagelightbox (my-image-lightbox) */
|
|
376
389
|
--imagelightbox-tile-border: transparent;
|
|
377
390
|
--imagelightbox-overlay-surface: color-mix(in srgb, var(--color-neutral-950) 76%, transparent);
|
|
@@ -389,4 +402,8 @@
|
|
|
389
402
|
--table-default-row-divider: var(--border-neutral-subtle);
|
|
390
403
|
--table-default-column-divider: var(--border-neutral-faint);
|
|
391
404
|
--table-default-column-divider-width: var(--border-width-1);
|
|
405
|
+
|
|
406
|
+
/* tooltip (my-tooltip) */
|
|
407
|
+
--tooltip-surface: color-mix(in srgb, var(--surface-canvas-lowest) 75%, transparent);
|
|
408
|
+
--tooltip-border-width: var(--border-width-1);
|
|
392
409
|
}
|