@vitral/themes 0.2.8 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1003,6 +1003,25 @@
1003
1003
  --vt-editor-chip-variable-background: var(--vt-warn-subtle-background);
1004
1004
  --vt-editor-chip-variable-color: var(--vt-warn-subtle-color);
1005
1005
  --vt-editor-chip-variable-font-family: var(--vt-font-family-mono);
1006
+ --vt-editor-math-border-radius: var(--vt-border-radius-sm);
1007
+ --vt-editor-math-hover-background: var(--vt-content-hover-background);
1008
+ --vt-editor-math-value-hover-background: var(--vt-highlight-background);
1009
+ --vt-editor-math-pending-color: var(--vt-text-muted-color);
1010
+ --vt-editor-math-pending-font-family: var(--vt-font-family-mono);
1011
+ --vt-editor-math-input-background: var(--vt-form-field-background);
1012
+ --vt-editor-math-input-color: var(--vt-form-field-color);
1013
+ --vt-editor-math-input-border-color: var(--vt-primary-color);
1014
+ --vt-editor-math-input-font-family: var(--vt-font-family-mono);
1015
+ --vt-editor-math-input-shadow: var(--vt-overlay-popover-shadow);
1016
+ --vt-editor-math-panel-width: 24rem;
1017
+ --vt-editor-math-preview-font-size: 1.375rem;
1018
+ --vt-editor-math-preview-min-height: 4rem;
1019
+ --vt-editor-math-preview-border-color: var(--vt-content-border-color);
1020
+ --vt-editor-math-template-font-size: 0.875rem;
1021
+ --vt-editor-math-template-size: 2.25rem;
1022
+ --vt-editor-math-templates-max-height: 7.5rem;
1023
+ --vt-editor-math-template-border-color: var(--vt-content-border-color);
1024
+ --vt-editor-math-template-hover-background: var(--vt-content-hover-background);
1006
1025
  --vt-editor-toolbar-padding: 0.375rem;
1007
1026
  --vt-editor-toolbar-gap: 0.125rem;
1008
1027
  --vt-editor-toolbar-group-gap: 0.375rem;
package/dist/css/ink.css CHANGED
@@ -992,6 +992,25 @@
992
992
  --vt-editor-chip-variable-background: var(--vt-warn-subtle-background);
993
993
  --vt-editor-chip-variable-color: var(--vt-warn-subtle-color);
994
994
  --vt-editor-chip-variable-font-family: var(--vt-font-family-mono);
995
+ --vt-editor-math-border-radius: var(--vt-border-radius-sm);
996
+ --vt-editor-math-hover-background: var(--vt-content-hover-background);
997
+ --vt-editor-math-value-hover-background: var(--vt-highlight-background);
998
+ --vt-editor-math-pending-color: var(--vt-text-muted-color);
999
+ --vt-editor-math-pending-font-family: var(--vt-font-family-mono);
1000
+ --vt-editor-math-input-background: var(--vt-form-field-background);
1001
+ --vt-editor-math-input-color: var(--vt-form-field-color);
1002
+ --vt-editor-math-input-border-color: var(--vt-primary-color);
1003
+ --vt-editor-math-input-font-family: var(--vt-font-family-mono);
1004
+ --vt-editor-math-input-shadow: var(--vt-overlay-popover-shadow);
1005
+ --vt-editor-math-panel-width: 24rem;
1006
+ --vt-editor-math-preview-font-size: 1.375rem;
1007
+ --vt-editor-math-preview-min-height: 4rem;
1008
+ --vt-editor-math-preview-border-color: var(--vt-content-border-color);
1009
+ --vt-editor-math-template-font-size: 0.875rem;
1010
+ --vt-editor-math-template-size: 2.25rem;
1011
+ --vt-editor-math-templates-max-height: 7.5rem;
1012
+ --vt-editor-math-template-border-color: var(--vt-content-border-color);
1013
+ --vt-editor-math-template-hover-background: var(--vt-content-hover-background);
995
1014
  --vt-editor-toolbar-padding: 0.375rem;
996
1015
  --vt-editor-toolbar-gap: 0.125rem;
997
1016
  --vt-editor-toolbar-group-gap: 0.375rem;
@@ -992,6 +992,25 @@
992
992
  --vt-editor-chip-variable-background: var(--vt-warn-subtle-background);
993
993
  --vt-editor-chip-variable-color: var(--vt-warn-subtle-color);
994
994
  --vt-editor-chip-variable-font-family: var(--vt-font-family-mono);
995
+ --vt-editor-math-border-radius: var(--vt-border-radius-sm);
996
+ --vt-editor-math-hover-background: var(--vt-content-hover-background);
997
+ --vt-editor-math-value-hover-background: var(--vt-highlight-background);
998
+ --vt-editor-math-pending-color: var(--vt-text-muted-color);
999
+ --vt-editor-math-pending-font-family: var(--vt-font-family-mono);
1000
+ --vt-editor-math-input-background: var(--vt-form-field-background);
1001
+ --vt-editor-math-input-color: var(--vt-form-field-color);
1002
+ --vt-editor-math-input-border-color: var(--vt-primary-color);
1003
+ --vt-editor-math-input-font-family: var(--vt-font-family-mono);
1004
+ --vt-editor-math-input-shadow: var(--vt-overlay-popover-shadow);
1005
+ --vt-editor-math-panel-width: 24rem;
1006
+ --vt-editor-math-preview-font-size: 1.375rem;
1007
+ --vt-editor-math-preview-min-height: 4rem;
1008
+ --vt-editor-math-preview-border-color: var(--vt-content-border-color);
1009
+ --vt-editor-math-template-font-size: 0.875rem;
1010
+ --vt-editor-math-template-size: 2.25rem;
1011
+ --vt-editor-math-templates-max-height: 7.5rem;
1012
+ --vt-editor-math-template-border-color: var(--vt-content-border-color);
1013
+ --vt-editor-math-template-hover-background: var(--vt-content-hover-background);
995
1014
  --vt-editor-toolbar-padding: 0.375rem;
996
1015
  --vt-editor-toolbar-gap: 0.125rem;
997
1016
  --vt-editor-toolbar-group-gap: 0.375rem;
@@ -1003,6 +1003,25 @@
1003
1003
  --vt-editor-chip-variable-background: var(--vt-warn-subtle-background);
1004
1004
  --vt-editor-chip-variable-color: var(--vt-warn-subtle-color);
1005
1005
  --vt-editor-chip-variable-font-family: var(--vt-font-family-mono);
1006
+ --vt-editor-math-border-radius: var(--vt-border-radius-sm);
1007
+ --vt-editor-math-hover-background: var(--vt-content-hover-background);
1008
+ --vt-editor-math-value-hover-background: var(--vt-highlight-background);
1009
+ --vt-editor-math-pending-color: var(--vt-text-muted-color);
1010
+ --vt-editor-math-pending-font-family: var(--vt-font-family-mono);
1011
+ --vt-editor-math-input-background: var(--vt-form-field-background);
1012
+ --vt-editor-math-input-color: var(--vt-form-field-color);
1013
+ --vt-editor-math-input-border-color: var(--vt-primary-color);
1014
+ --vt-editor-math-input-font-family: var(--vt-font-family-mono);
1015
+ --vt-editor-math-input-shadow: var(--vt-overlay-popover-shadow);
1016
+ --vt-editor-math-panel-width: 24rem;
1017
+ --vt-editor-math-preview-font-size: 1.375rem;
1018
+ --vt-editor-math-preview-min-height: 4rem;
1019
+ --vt-editor-math-preview-border-color: var(--vt-content-border-color);
1020
+ --vt-editor-math-template-font-size: 0.875rem;
1021
+ --vt-editor-math-template-size: 2.25rem;
1022
+ --vt-editor-math-templates-max-height: 7.5rem;
1023
+ --vt-editor-math-template-border-color: var(--vt-content-border-color);
1024
+ --vt-editor-math-template-hover-background: var(--vt-content-hover-background);
1006
1025
  --vt-editor-toolbar-padding: 0.375rem;
1007
1026
  --vt-editor-toolbar-gap: 0.125rem;
1008
1027
  --vt-editor-toolbar-group-gap: 0.375rem;
@@ -14,6 +14,27 @@ declare const _default: {
14
14
  variableColor: string;
15
15
  variableFontFamily: string;
16
16
  };
17
+ math: {
18
+ borderRadius: string;
19
+ hoverBackground: string;
20
+ valueHoverBackground: string;
21
+ pendingColor: string;
22
+ pendingFontFamily: string;
23
+ inputBackground: string;
24
+ inputColor: string;
25
+ inputBorderColor: string;
26
+ inputFontFamily: string;
27
+ inputShadow: string;
28
+ panelWidth: string;
29
+ previewFontSize: string;
30
+ previewMinHeight: string;
31
+ previewBorderColor: string;
32
+ templateFontSize: string;
33
+ templateSize: string;
34
+ templatesMaxHeight: string;
35
+ templateBorderColor: string;
36
+ templateHoverBackground: string;
37
+ };
17
38
  toolbar: {
18
39
  padding: string;
19
40
  gap: string;
@@ -31,6 +31,27 @@ var editor_default = {
31
31
  variableColor: "{warn.subtleColor}",
32
32
  variableFontFamily: "{fontFamilyMono}"
33
33
  },
34
+ math: {
35
+ borderRadius: "{borderRadius.sm}",
36
+ hoverBackground: "{content.hoverBackground}",
37
+ valueHoverBackground: "{highlight.background}",
38
+ pendingColor: "{text.mutedColor}",
39
+ pendingFontFamily: "{fontFamilyMono}",
40
+ inputBackground: "{formField.background}",
41
+ inputColor: "{formField.color}",
42
+ inputBorderColor: "{primary.color}",
43
+ inputFontFamily: "{fontFamilyMono}",
44
+ inputShadow: "{overlay.popover.shadow}",
45
+ panelWidth: "24rem",
46
+ previewFontSize: "1.375rem",
47
+ previewMinHeight: "4rem",
48
+ previewBorderColor: "{content.borderColor}",
49
+ templateFontSize: "0.875rem",
50
+ templateSize: "2.25rem",
51
+ templatesMaxHeight: "7.5rem",
52
+ templateBorderColor: "{content.borderColor}",
53
+ templateHoverBackground: "{content.hoverBackground}"
54
+ },
34
55
  toolbar: {
35
56
  padding: "0.375rem",
36
57
  gap: "0.125rem",
@@ -1 +1 @@
1
- {"version":3,"file":"editor.js","names":[],"sources":["../../../../src/presets/base/components/editor.ts"],"sourcesContent":["// The rich-text editor: the `formField` chrome around a toolbar, the text and a\n// footer, and the typography of the content, so a theme restyles what people\n// write as well as the frame around it. The palette is what the colour and\n// highlight pickers offer; content refers to it by name, so a colour follows\n// the scheme.\n\nconst tint = (name: string) => ({ color: `{${name}.600}`, highlight: `{${name}.200}` });\nconst darkTint = (name: string) => ({ color: `{${name}.400}`, highlight: `color-mix(in srgb, {${name}.500} 38%, transparent)` });\nconst hues = ['red', 'orange', 'yellow', 'green', 'teal', 'blue', 'purple', 'pink'];\n\nexport default {\n root: {\n transitionDuration: '{formField.transitionDuration}'\n },\n // An inline chip: a mention, a tag, a variable. It reads as one thing in\n // the line, in the accent's quiet tint; a tag and a variable take their own.\n chip: {\n padding: '0 0.375rem',\n borderRadius: '{borderRadius.sm}',\n fontWeight: '500',\n background: '{primary.subtleBackground}',\n color: '{primary.subtleColor}',\n tagBackground: '{secondary.subtleBackground}',\n tagColor: '{secondary.subtleColor}',\n variableBackground: '{warn.subtleBackground}',\n variableColor: '{warn.subtleColor}',\n variableFontFamily: '{fontFamilyMono}'\n },\n toolbar: {\n padding: '0.375rem',\n gap: '0.125rem',\n groupGap: '0.375rem',\n borderColor: '{formField.borderColor}',\n separatorColor: '{content.borderColor}',\n colorScheme: {\n light: { background: '{surface.50}' },\n dark: { background: '{surface.900}' }\n }\n },\n button: {\n size: '2rem',\n padding: '0 0.375rem',\n borderRadius: '{borderRadius.sm}',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}',\n hoverBackground: '{content.hoverBackground}',\n activeColor: '{highlight.color}',\n activeBackground: '{highlight.background}',\n disabledOpacity: '{disabledOpacity}'\n },\n // The find bar: every match washed in yellow, the one in hand in orange,\n // the way a browser's own find shows them.\n find: {\n padding: '0.375rem',\n gap: '0.25rem',\n fieldWidth: '14rem',\n matchBackground: 'color-mix(in srgb, {yellow.300} 55%, transparent)',\n currentBackground: '{orange.300}',\n currentColor: '{surface.950}'\n },\n // The handle beside a block sits in a gutter down the leading edge: the\n // gutter is as wide as the handle plus the padding the text would have had.\n blockHandle: {\n size: '1.5rem',\n inset: '0.25rem',\n gutter: '2rem'\n },\n content: {\n minHeight: '9rem',\n maxHeight: '32rem',\n padding: '0.75rem 1rem',\n lineHeight: '1.6',\n blockGap: '0.75em',\n placeholderColor: '{formField.placeholderColor}',\n selectedOutline: '{primary.color}'\n },\n heading: {\n fontWeight: '650',\n lineHeight: '1.25',\n h1FontSize: '1.75em',\n h2FontSize: '1.375em',\n h3FontSize: '1.125em',\n marginTop: '1.25em'\n },\n link: {\n color: '{primary.color}',\n hoverColor: '{primary.hoverColor}'\n },\n list: {\n indent: '1.5em',\n itemGap: '0.25em',\n checkboxColor: '{primary.color}'\n },\n blockquote: {\n borderWidth: '3px',\n borderColor: '{content.borderColor}',\n color: '{text.mutedColor}',\n padding: '0 0 0 1em'\n },\n code: {\n fontFamily: '{fontFamilyMono}',\n fontSize: '0.875em',\n padding: '0.125em 0.375em',\n borderRadius: '{borderRadius.sm}',\n colorScheme: {\n light: { background: '{surface.100}', color: '{pink.700}' },\n dark: { background: '{surface.800}', color: '{pink.300}' }\n }\n },\n codeBlock: {\n padding: '0.75em 1em',\n borderRadius: '{borderRadius.md}',\n colorScheme: {\n light: { background: '{surface.900}', color: '{surface.50}', labelColor: '{surface.400}' },\n dark: { background: '{surface.950}', color: '{surface.100}', labelColor: '{surface.500}' }\n }\n },\n rule: {\n color: '{content.borderColor}',\n width: '1px'\n },\n image: {\n borderRadius: '{borderRadius.md}'\n },\n table: {\n borderColor: '{content.borderColor}',\n cellPadding: '0.375em 0.625em',\n headerFontWeight: '600',\n colorScheme: {\n light: { headerBackground: '{surface.50}' },\n dark: { headerBackground: '{surface.800}' }\n }\n },\n footer: {\n padding: '0.375rem 0.75rem',\n fontSize: '0.75rem',\n color: '{text.mutedColor}',\n limitColor: '{danger.color}',\n borderColor: '{content.borderColor}'\n },\n bubble: {\n padding: '0.25rem',\n gap: '0.125rem',\n background: '{overlay.popover.background}',\n borderColor: '{overlay.popover.borderColor}',\n borderRadius: '{overlay.popover.borderRadius}',\n shadow: '{overlay.popover.shadow}'\n },\n panel: {\n padding: '0.75rem',\n gap: '0.625rem',\n width: '18rem'\n },\n swatch: {\n size: '1.625rem',\n gap: '0.375rem',\n borderRadius: '{borderRadius.sm}',\n borderColor: '{content.borderColor}',\n selectedRing: '{primary.color}'\n },\n palette: {\n colorScheme: {\n light: {\n gray: { color: '{zinc.600}', highlight: '{zinc.200}' },\n ...Object.fromEntries(hues.map((h) => [h, tint(h)]))\n },\n dark: {\n gray: { color: '{zinc.400}', highlight: 'color-mix(in srgb, {zinc.400} 30%, transparent)' },\n ...Object.fromEntries(hues.map((h) => [h, darkTint(h)]))\n }\n }\n }\n};\n"],"mappings":";AAMA,IAAM,QAAQ,UAAkB;CAAE,OAAO,IAAI,KAAK;CAAQ,WAAW,IAAI,KAAK;AAAO;AACrF,IAAM,YAAY,UAAkB;CAAE,OAAO,IAAI,KAAK;CAAQ,WAAW,uBAAuB,KAAK;AAAyB;AAC9H,IAAM,OAAO;CAAC;CAAO;CAAU;CAAU;CAAS;CAAQ;CAAQ;CAAU;AAAM;AAElF,IAAA,iBAAe;CACX,MAAM,EACF,oBAAoB,iCACxB;CAGA,MAAM;EACF,SAAS;EACT,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,OAAO;EACP,eAAe;EACf,UAAU;EACV,oBAAoB;EACpB,eAAe;EACf,oBAAoB;CACxB;CACA,SAAS;EACL,SAAS;EACT,K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AM,EAAE,kBAAkB,gBAAgB;EAC9C;CACJ;CACA,QAAQ;EACJ,SAAS;EACT,UAAU;EACV,OAAO;EACP,YAAY;EACZ,aAAa;CACjB;CACA,QAAQ;EACJ,SAAS;EACT,KAAK;EACL,YAAY;EACZ,aAAa;EACb,cAAc;EACd,QAAQ;CACZ;CACA,OAAO;EACH,SAAS;EACT,KAAK;EACL,OAAO;CACX;CACA,QAAQ;EACJ,MAAM;EACN,KAAK;EACL,cAAc;EACd,aAAa;EACb,cAAc;CAClB;CACA,SAAS,EACL,aAAa;EACT,OAAO;GACH,MAAM;IAAE,OAAO;IAAc,WAAW;GAAa;GACrD,GAAG,OAAO,YAAY,KAAK,KAAK,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;EACvD;EACA,MAAM;GACF,MAAM;IAAE,OAAO;IAAc,WAAW;GAAkD;GAC1F,GAAG,OAAO,YAAY,KAAK,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;EAC3D;CACJ,EACJ;AACJ"}
1
+ {"version":3,"file":"editor.js","names":[],"sources":["../../../../src/presets/base/components/editor.ts"],"sourcesContent":["// The rich-text editor: the `formField` chrome around a toolbar, the text and a\n// footer, and the typography of the content, so a theme restyles what people\n// write as well as the frame around it. The palette is what the colour and\n// highlight pickers offer; content refers to it by name, so a colour follows\n// the scheme.\n\nconst tint = (name: string) => ({ color: `{${name}.600}`, highlight: `{${name}.200}` });\nconst darkTint = (name: string) => ({ color: `{${name}.400}`, highlight: `color-mix(in srgb, {${name}.500} 38%, transparent)` });\nconst hues = ['red', 'orange', 'yellow', 'green', 'teal', 'blue', 'purple', 'pink'];\n\nexport default {\n root: {\n transitionDuration: '{formField.transitionDuration}'\n },\n // An inline chip: a mention, a tag, a variable. It reads as one thing in\n // the line, in the accent's quiet tint; a tag and a variable take their own.\n chip: {\n padding: '0 0.375rem',\n borderRadius: '{borderRadius.sm}',\n fontWeight: '500',\n background: '{primary.subtleBackground}',\n color: '{primary.subtleColor}',\n tagBackground: '{secondary.subtleBackground}',\n tagColor: '{secondary.subtleColor}',\n variableBackground: '{warn.subtleBackground}',\n variableColor: '{warn.subtleColor}',\n variableFontFamily: '{fontFamilyMono}'\n },\n // A formula: drawn in the text's own colour, with a quiet wash under the\n // pointer to say it can be pressed and a stronger one on the value the\n // press would edit. The box that opens over a value is a small field.\n math: {\n borderRadius: '{borderRadius.sm}',\n hoverBackground: '{content.hoverBackground}',\n valueHoverBackground: '{highlight.background}',\n pendingColor: '{text.mutedColor}',\n pendingFontFamily: '{fontFamilyMono}',\n inputBackground: '{formField.background}',\n inputColor: '{formField.color}',\n inputBorderColor: '{primary.color}',\n inputFontFamily: '{fontFamilyMono}',\n inputShadow: '{overlay.popover.shadow}',\n panelWidth: '24rem',\n previewFontSize: '1.375rem',\n previewMinHeight: '4rem',\n previewBorderColor: '{content.borderColor}',\n templateFontSize: '0.875rem',\n templateSize: '2.25rem',\n templatesMaxHeight: '7.5rem',\n templateBorderColor: '{content.borderColor}',\n templateHoverBackground: '{content.hoverBackground}'\n },\n toolbar: {\n padding: '0.375rem',\n gap: '0.125rem',\n groupGap: '0.375rem',\n borderColor: '{formField.borderColor}',\n separatorColor: '{content.borderColor}',\n colorScheme: {\n light: { background: '{surface.50}' },\n dark: { background: '{surface.900}' }\n }\n },\n button: {\n size: '2rem',\n padding: '0 0.375rem',\n borderRadius: '{borderRadius.sm}',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}',\n hoverBackground: '{content.hoverBackground}',\n activeColor: '{highlight.color}',\n activeBackground: '{highlight.background}',\n disabledOpacity: '{disabledOpacity}'\n },\n // The find bar: every match washed in yellow, the one in hand in orange,\n // the way a browser's own find shows them.\n find: {\n padding: '0.375rem',\n gap: '0.25rem',\n fieldWidth: '14rem',\n matchBackground: 'color-mix(in srgb, {yellow.300} 55%, transparent)',\n currentBackground: '{orange.300}',\n currentColor: '{surface.950}'\n },\n // The handle beside a block sits in a gutter down the leading edge: the\n // gutter is as wide as the handle plus the padding the text would have had.\n blockHandle: {\n size: '1.5rem',\n inset: '0.25rem',\n gutter: '2rem'\n },\n content: {\n minHeight: '9rem',\n maxHeight: '32rem',\n padding: '0.75rem 1rem',\n lineHeight: '1.6',\n blockGap: '0.75em',\n placeholderColor: '{formField.placeholderColor}',\n selectedOutline: '{primary.color}'\n },\n heading: {\n fontWeight: '650',\n lineHeight: '1.25',\n h1FontSize: '1.75em',\n h2FontSize: '1.375em',\n h3FontSize: '1.125em',\n marginTop: '1.25em'\n },\n link: {\n color: '{primary.color}',\n hoverColor: '{primary.hoverColor}'\n },\n list: {\n indent: '1.5em',\n itemGap: '0.25em',\n checkboxColor: '{primary.color}'\n },\n blockquote: {\n borderWidth: '3px',\n borderColor: '{content.borderColor}',\n color: '{text.mutedColor}',\n padding: '0 0 0 1em'\n },\n code: {\n fontFamily: '{fontFamilyMono}',\n fontSize: '0.875em',\n padding: '0.125em 0.375em',\n borderRadius: '{borderRadius.sm}',\n colorScheme: {\n light: { background: '{surface.100}', color: '{pink.700}' },\n dark: { background: '{surface.800}', color: '{pink.300}' }\n }\n },\n codeBlock: {\n padding: '0.75em 1em',\n borderRadius: '{borderRadius.md}',\n colorScheme: {\n light: { background: '{surface.900}', color: '{surface.50}', labelColor: '{surface.400}' },\n dark: { background: '{surface.950}', color: '{surface.100}', labelColor: '{surface.500}' }\n }\n },\n rule: {\n color: '{content.borderColor}',\n width: '1px'\n },\n image: {\n borderRadius: '{borderRadius.md}'\n },\n table: {\n borderColor: '{content.borderColor}',\n cellPadding: '0.375em 0.625em',\n headerFontWeight: '600',\n colorScheme: {\n light: { headerBackground: '{surface.50}' },\n dark: { headerBackground: '{surface.800}' }\n }\n },\n footer: {\n padding: '0.375rem 0.75rem',\n fontSize: '0.75rem',\n color: '{text.mutedColor}',\n limitColor: '{danger.color}',\n borderColor: '{content.borderColor}'\n },\n bubble: {\n padding: '0.25rem',\n gap: '0.125rem',\n background: '{overlay.popover.background}',\n borderColor: '{overlay.popover.borderColor}',\n borderRadius: '{overlay.popover.borderRadius}',\n shadow: '{overlay.popover.shadow}'\n },\n panel: {\n padding: '0.75rem',\n gap: '0.625rem',\n width: '18rem'\n },\n swatch: {\n size: '1.625rem',\n gap: '0.375rem',\n borderRadius: '{borderRadius.sm}',\n borderColor: '{content.borderColor}',\n selectedRing: '{primary.color}'\n },\n palette: {\n colorScheme: {\n light: {\n gray: { color: '{zinc.600}', highlight: '{zinc.200}' },\n ...Object.fromEntries(hues.map((h) => [h, tint(h)]))\n },\n dark: {\n gray: { color: '{zinc.400}', highlight: 'color-mix(in srgb, {zinc.400} 30%, transparent)' },\n ...Object.fromEntries(hues.map((h) => [h, darkTint(h)]))\n }\n }\n }\n};\n"],"mappings":";AAMA,IAAM,QAAQ,UAAkB;CAAE,OAAO,IAAI,KAAK;CAAQ,WAAW,IAAI,KAAK;AAAO;AACrF,IAAM,YAAY,UAAkB;CAAE,OAAO,IAAI,KAAK;CAAQ,WAAW,uBAAuB,KAAK;AAAyB;AAC9H,IAAM,OAAO;CAAC;CAAO;CAAU;CAAU;CAAS;CAAQ;CAAQ;CAAU;AAAM;AAElF,IAAA,iBAAe;CACX,MAAM,EACF,oBAAoB,iCACxB;CAGA,MAAM;EACF,SAAS;EACT,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,OAAO;EACP,eAAe;EACf,UAAU;EACV,oBAAoB;EACpB,eAAe;EACf,oBAAoB;CACxB;CAIA,MAAM;EACF,cAAc;EACd,iBAAiB;EACjB,sBAAsB;EACtB,cAAc;EACd,mBAAmB;EACnB,iBAAiB;EACjB,YAAY;EACZ,kBAAkB;EAClB,iBAAiB;EACjB,aAAa;EACb,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,oBAAoB;EACpB,kBAAkB;EAClB,cAAc;EACd,oBAAoB;EACpB,qBAAqB;EACrB,yBAAyB;CAC7B;CACA,SAAS;EACL,SAAS;EACT,KAAK;EACL,UAAU;EACV,aAAa;EACb,gBAAgB;EAChB,aA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Q;EACJ,SAAS;EACT,UAAU;EACV,OAAO;EACP,YAAY;EACZ,aAAa;CACjB;CACA,QAAQ;EACJ,SAAS;EACT,KAAK;EACL,YAAY;EACZ,aAAa;EACb,cAAc;EACd,QAAQ;CACZ;CACA,OAAO;EACH,SAAS;EACT,KAAK;EACL,OAAO;CACX;CACA,QAAQ;EACJ,MAAM;EACN,KAAK;EACL,cAAc;EACd,aAAa;EACb,cAAc;CAClB;CACA,SAAS,EACL,aAAa;EACT,OAAO;GACH,MAAM;IAAE,OAAO;IAAc,WAAW;GAAa;GACrD,GAAG,OAAO,YAAY,KAAK,KAAK,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;EACvD;EACA,MAAM;GACF,MAAM;IAAE,OAAO;IAAc,WAAW;GAAkD;GAC1F,GAAG,OAAO,YAAY,KAAK,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;EAC3D;CACJ,EACJ;AACJ"}
@@ -1160,6 +1160,27 @@ export declare const components: {
1160
1160
  variableColor: string;
1161
1161
  variableFontFamily: string;
1162
1162
  };
1163
+ math: {
1164
+ borderRadius: string;
1165
+ hoverBackground: string;
1166
+ valueHoverBackground: string;
1167
+ pendingColor: string;
1168
+ pendingFontFamily: string;
1169
+ inputBackground: string;
1170
+ inputColor: string;
1171
+ inputBorderColor: string;
1172
+ inputFontFamily: string;
1173
+ inputShadow: string;
1174
+ panelWidth: string;
1175
+ previewFontSize: string;
1176
+ previewMinHeight: string;
1177
+ previewBorderColor: string;
1178
+ templateFontSize: string;
1179
+ templateSize: string;
1180
+ templatesMaxHeight: string;
1181
+ templateBorderColor: string;
1182
+ templateHoverBackground: string;
1183
+ };
1163
1184
  toolbar: {
1164
1185
  padding: string;
1165
1186
  gap: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitral/themes",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "Design-token engine and presets (Prism, Ink, Avalonia, Simple) for Vitral.",
5
5
  "keywords": [
6
6
  "vitral",
@@ -40,7 +40,7 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@vitral/core": "0.2.8"
43
+ "@vitral/core": "0.2.10"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/build-theme-css.mjs"