@vitral/themes 0.2.5 → 0.2.6

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.
@@ -982,6 +982,16 @@
982
982
  --vt-drawer-header-button-hover-background: var(--vt-content-hover-background);
983
983
  --vt-dynamicdialog-gap: 0.5rem;
984
984
  --vt-editor-transition-duration: var(--vt-form-field-transition-duration);
985
+ --vt-editor-chip-padding: 0 0.375rem;
986
+ --vt-editor-chip-border-radius: var(--vt-border-radius-sm);
987
+ --vt-editor-chip-font-weight: 500;
988
+ --vt-editor-chip-background: var(--vt-primary-subtle-background);
989
+ --vt-editor-chip-color: var(--vt-primary-subtle-color);
990
+ --vt-editor-chip-tag-background: var(--vt-secondary-subtle-background);
991
+ --vt-editor-chip-tag-color: var(--vt-secondary-subtle-color);
992
+ --vt-editor-chip-variable-background: var(--vt-warn-subtle-background);
993
+ --vt-editor-chip-variable-color: var(--vt-warn-subtle-color);
994
+ --vt-editor-chip-variable-font-family: var(--vt-font-family-mono);
985
995
  --vt-editor-toolbar-padding: 0.375rem;
986
996
  --vt-editor-toolbar-gap: 0.125rem;
987
997
  --vt-editor-toolbar-group-gap: 0.375rem;
@@ -1860,10 +1870,10 @@
1860
1870
  --vt-tabs-tab-font-weight: 400;
1861
1871
  --vt-tabs-tab-color: var(--vt-text-muted-color);
1862
1872
  --vt-tabs-tab-hover-color: var(--vt-text-color);
1863
- --vt-tabs-tab-active-color: var(--vt-text-hover-color);
1873
+ --vt-tabs-tab-active-color: var(--vt-primary-color);
1864
1874
  --vt-tabs-tab-background: transparent;
1865
1875
  --vt-tabs-tab-hover-background: var(--vt-content-hover-background);
1866
- --vt-tabs-tab-active-background: transparent;
1876
+ --vt-tabs-tab-active-background: color-mix(in srgb, var(--vt-primary-color) 10%, transparent);
1867
1877
  --vt-tabs-tab-border-radius: var(--vt-border-radius-sm);
1868
1878
  --vt-tabs-nav-button-size: 2rem;
1869
1879
  --vt-tabs-nav-button-color: var(--vt-text-muted-color);
@@ -1965,7 +1975,7 @@
1965
1975
  --vt-terminal-prompt-color: var(--vt-primary-color);
1966
1976
  --vt-terminal-prompt-gap: 0.5rem;
1967
1977
  --vt-terminal-response-color: var(--vt-text-muted-color);
1968
- --vt-textarea-resize: vertical;
1978
+ --vt-textarea-resize: both;
1969
1979
  --vt-textarea-resizer-size: 0.75rem;
1970
1980
  --vt-textarea-resizer-inset: 0.1875rem;
1971
1981
  --vt-textarea-resizer-color: var(--vt-text-muted-color);
package/dist/css/ink.css CHANGED
@@ -971,6 +971,16 @@
971
971
  --vt-drawer-header-button-hover-background: var(--vt-content-hover-background);
972
972
  --vt-dynamicdialog-gap: 0.5rem;
973
973
  --vt-editor-transition-duration: var(--vt-form-field-transition-duration);
974
+ --vt-editor-chip-padding: 0 0.375rem;
975
+ --vt-editor-chip-border-radius: var(--vt-border-radius-sm);
976
+ --vt-editor-chip-font-weight: 500;
977
+ --vt-editor-chip-background: var(--vt-primary-subtle-background);
978
+ --vt-editor-chip-color: var(--vt-primary-subtle-color);
979
+ --vt-editor-chip-tag-background: var(--vt-secondary-subtle-background);
980
+ --vt-editor-chip-tag-color: var(--vt-secondary-subtle-color);
981
+ --vt-editor-chip-variable-background: var(--vt-warn-subtle-background);
982
+ --vt-editor-chip-variable-color: var(--vt-warn-subtle-color);
983
+ --vt-editor-chip-variable-font-family: var(--vt-font-family-mono);
974
984
  --vt-editor-toolbar-padding: 0.375rem;
975
985
  --vt-editor-toolbar-gap: 0.125rem;
976
986
  --vt-editor-toolbar-group-gap: 0.375rem;
@@ -1849,10 +1859,10 @@
1849
1859
  --vt-tabs-tab-font-weight: 400;
1850
1860
  --vt-tabs-tab-color: var(--vt-text-muted-color);
1851
1861
  --vt-tabs-tab-hover-color: var(--vt-text-color);
1852
- --vt-tabs-tab-active-color: var(--vt-text-hover-color);
1862
+ --vt-tabs-tab-active-color: var(--vt-primary-color);
1853
1863
  --vt-tabs-tab-background: transparent;
1854
1864
  --vt-tabs-tab-hover-background: var(--vt-content-hover-background);
1855
- --vt-tabs-tab-active-background: transparent;
1865
+ --vt-tabs-tab-active-background: color-mix(in srgb, var(--vt-primary-color) 10%, transparent);
1856
1866
  --vt-tabs-tab-border-radius: var(--vt-border-radius-sm);
1857
1867
  --vt-tabs-nav-button-size: 2rem;
1858
1868
  --vt-tabs-nav-button-color: var(--vt-text-muted-color);
@@ -1954,7 +1964,7 @@
1954
1964
  --vt-terminal-prompt-color: var(--vt-primary-color);
1955
1965
  --vt-terminal-prompt-gap: 0.5rem;
1956
1966
  --vt-terminal-response-color: var(--vt-text-muted-color);
1957
- --vt-textarea-resize: vertical;
1967
+ --vt-textarea-resize: both;
1958
1968
  --vt-textarea-resizer-size: 0.75rem;
1959
1969
  --vt-textarea-resizer-inset: 0.1875rem;
1960
1970
  --vt-textarea-resizer-color: var(--vt-text-muted-color);
@@ -971,6 +971,16 @@
971
971
  --vt-drawer-header-button-hover-background: var(--vt-content-hover-background);
972
972
  --vt-dynamicdialog-gap: 0.5rem;
973
973
  --vt-editor-transition-duration: var(--vt-form-field-transition-duration);
974
+ --vt-editor-chip-padding: 0 0.375rem;
975
+ --vt-editor-chip-border-radius: var(--vt-border-radius-sm);
976
+ --vt-editor-chip-font-weight: 500;
977
+ --vt-editor-chip-background: var(--vt-primary-subtle-background);
978
+ --vt-editor-chip-color: var(--vt-primary-subtle-color);
979
+ --vt-editor-chip-tag-background: var(--vt-secondary-subtle-background);
980
+ --vt-editor-chip-tag-color: var(--vt-secondary-subtle-color);
981
+ --vt-editor-chip-variable-background: var(--vt-warn-subtle-background);
982
+ --vt-editor-chip-variable-color: var(--vt-warn-subtle-color);
983
+ --vt-editor-chip-variable-font-family: var(--vt-font-family-mono);
974
984
  --vt-editor-toolbar-padding: 0.375rem;
975
985
  --vt-editor-toolbar-gap: 0.125rem;
976
986
  --vt-editor-toolbar-group-gap: 0.375rem;
@@ -1849,10 +1859,10 @@
1849
1859
  --vt-tabs-tab-font-weight: 400;
1850
1860
  --vt-tabs-tab-color: var(--vt-text-muted-color);
1851
1861
  --vt-tabs-tab-hover-color: var(--vt-text-color);
1852
- --vt-tabs-tab-active-color: var(--vt-text-hover-color);
1862
+ --vt-tabs-tab-active-color: var(--vt-primary-color);
1853
1863
  --vt-tabs-tab-background: transparent;
1854
1864
  --vt-tabs-tab-hover-background: var(--vt-content-hover-background);
1855
- --vt-tabs-tab-active-background: transparent;
1865
+ --vt-tabs-tab-active-background: color-mix(in srgb, var(--vt-primary-color) 10%, transparent);
1856
1866
  --vt-tabs-tab-border-radius: var(--vt-border-radius-sm);
1857
1867
  --vt-tabs-nav-button-size: 2rem;
1858
1868
  --vt-tabs-nav-button-color: var(--vt-text-muted-color);
@@ -1954,7 +1964,7 @@
1954
1964
  --vt-terminal-prompt-color: var(--vt-primary-color);
1955
1965
  --vt-terminal-prompt-gap: 0.5rem;
1956
1966
  --vt-terminal-response-color: var(--vt-text-muted-color);
1957
- --vt-textarea-resize: vertical;
1967
+ --vt-textarea-resize: both;
1958
1968
  --vt-textarea-resizer-size: 0.75rem;
1959
1969
  --vt-textarea-resizer-inset: 0.1875rem;
1960
1970
  --vt-textarea-resizer-color: var(--vt-text-muted-color);
@@ -982,6 +982,16 @@
982
982
  --vt-drawer-header-button-hover-background: var(--vt-content-hover-background);
983
983
  --vt-dynamicdialog-gap: 0.5rem;
984
984
  --vt-editor-transition-duration: var(--vt-form-field-transition-duration);
985
+ --vt-editor-chip-padding: 0 0.375rem;
986
+ --vt-editor-chip-border-radius: var(--vt-border-radius-sm);
987
+ --vt-editor-chip-font-weight: 500;
988
+ --vt-editor-chip-background: var(--vt-primary-subtle-background);
989
+ --vt-editor-chip-color: var(--vt-primary-subtle-color);
990
+ --vt-editor-chip-tag-background: var(--vt-secondary-subtle-background);
991
+ --vt-editor-chip-tag-color: var(--vt-secondary-subtle-color);
992
+ --vt-editor-chip-variable-background: var(--vt-warn-subtle-background);
993
+ --vt-editor-chip-variable-color: var(--vt-warn-subtle-color);
994
+ --vt-editor-chip-variable-font-family: var(--vt-font-family-mono);
985
995
  --vt-editor-toolbar-padding: 0.375rem;
986
996
  --vt-editor-toolbar-gap: 0.125rem;
987
997
  --vt-editor-toolbar-group-gap: 0.375rem;
@@ -1860,10 +1870,10 @@
1860
1870
  --vt-tabs-tab-font-weight: 400;
1861
1871
  --vt-tabs-tab-color: var(--vt-text-muted-color);
1862
1872
  --vt-tabs-tab-hover-color: var(--vt-text-color);
1863
- --vt-tabs-tab-active-color: var(--vt-text-hover-color);
1873
+ --vt-tabs-tab-active-color: var(--vt-primary-color);
1864
1874
  --vt-tabs-tab-background: transparent;
1865
1875
  --vt-tabs-tab-hover-background: var(--vt-content-hover-background);
1866
- --vt-tabs-tab-active-background: transparent;
1876
+ --vt-tabs-tab-active-background: color-mix(in srgb, var(--vt-primary-color) 10%, transparent);
1867
1877
  --vt-tabs-tab-border-radius: var(--vt-border-radius-sm);
1868
1878
  --vt-tabs-nav-button-size: 2rem;
1869
1879
  --vt-tabs-nav-button-color: var(--vt-text-muted-color);
@@ -1965,7 +1975,7 @@
1965
1975
  --vt-terminal-prompt-color: var(--vt-primary-color);
1966
1976
  --vt-terminal-prompt-gap: 0.5rem;
1967
1977
  --vt-terminal-response-color: var(--vt-text-muted-color);
1968
- --vt-textarea-resize: vertical;
1978
+ --vt-textarea-resize: both;
1969
1979
  --vt-textarea-resizer-size: 0.75rem;
1970
1980
  --vt-textarea-resizer-inset: 0.1875rem;
1971
1981
  --vt-textarea-resizer-color: var(--vt-text-muted-color);
@@ -2,6 +2,18 @@ declare const _default: {
2
2
  root: {
3
3
  transitionDuration: string;
4
4
  };
5
+ chip: {
6
+ padding: string;
7
+ borderRadius: string;
8
+ fontWeight: string;
9
+ background: string;
10
+ color: string;
11
+ tagBackground: string;
12
+ tagColor: string;
13
+ variableBackground: string;
14
+ variableColor: string;
15
+ variableFontFamily: string;
16
+ };
5
17
  toolbar: {
6
18
  padding: string;
7
19
  gap: string;
@@ -19,6 +19,18 @@ var hues = [
19
19
  ];
20
20
  var editor_default = {
21
21
  root: { transitionDuration: "{formField.transitionDuration}" },
22
+ chip: {
23
+ padding: "0 0.375rem",
24
+ borderRadius: "{borderRadius.sm}",
25
+ fontWeight: "500",
26
+ background: "{primary.subtleBackground}",
27
+ color: "{primary.subtleColor}",
28
+ tagBackground: "{secondary.subtleBackground}",
29
+ tagColor: "{secondary.subtleColor}",
30
+ variableBackground: "{warn.subtleBackground}",
31
+ variableColor: "{warn.subtleColor}",
32
+ variableFontFamily: "{fontFamilyMono}"
33
+ },
22
34
  toolbar: {
23
35
  padding: "0.375rem",
24
36
  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 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 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;CACA,SAAS;EACL,SAAS;EACT,KAAK;EACL,UAAU;EACV,aAAa;EACb,gBAAgB;EAChB,aAAa;GACT,OAAO,EAAE,YAAY,eAAe;GACpC,MAAM,EAAE,YAAY,gBAAgB;EACxC;CACJ;CACA,QAAQ;EACJ,MAAM;EACN,SAAS;EACT,cAAc;EACd,OAAO;EACP,YAAY;EACZ,iBAAiB;EACjB,aAAa;EACb,kBAAkB;EAClB,iBAAiB;CACrB;CAGA,aAAa;EACT,MAAM;EACN,OAAO;EACP,QAAQ;CACZ;CACA,SAAS;EACL,WAAW;EACX,WAAW;EACX,SAAS;EACT,YAAY;EACZ,UAAU;EACV,kBAAkB;EAClB,iBAAiB;CACrB;CACA,SAAS;EACL,YAAY;EACZ,YAAY;EACZ,YAAY;EACZ,YAAY;EACZ,YAAY;EACZ,WAAW;C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AM,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 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 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,KAAK;EACL,UAAU;EACV,aAAa;EACb,gBAAgB;EAChB,aAAa;GACT,OAAO,EAAE,YAAY,eAAe;GACpC,MAAM,EAAE,YAAY,gBAAgB;EACxC;CACJ;CACA,QAAQ;EACJ,MAAM;EACN,SAAS;EACT,cAAc;EACd,OAAO;EACP,YAAY;EACZ,iBAAiB;EACjB,aAAa;EACb,kBAAkB;EAClB,iBAAiB;CACrB;CAGA,aAAa;EACT,MAAM;EACN,OAAO;EACP,QAAQ;CACZ;CACA,SAAS;EACL,WAAW;EACX,WAAW;EACX,SAAS;EACT,YAAY;EACZ,UAAU;EAC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AC,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"}
@@ -1125,6 +1125,18 @@ export declare const components: {
1125
1125
  root: {
1126
1126
  transitionDuration: string;
1127
1127
  };
1128
+ chip: {
1129
+ padding: string;
1130
+ borderRadius: string;
1131
+ fontWeight: string;
1132
+ background: string;
1133
+ color: string;
1134
+ tagBackground: string;
1135
+ tagColor: string;
1136
+ variableBackground: string;
1137
+ variableColor: string;
1138
+ variableFontFamily: string;
1139
+ };
1128
1140
  toolbar: {
1129
1141
  padding: string;
1130
1142
  gap: string;
@@ -11,10 +11,10 @@ var tabs_default = {
11
11
  fontWeight: "400",
12
12
  color: "{text.mutedColor}",
13
13
  hoverColor: "{text.color}",
14
- activeColor: "{text.hoverColor}",
14
+ activeColor: "{primary.color}",
15
15
  background: "transparent",
16
16
  hoverBackground: "{content.hoverBackground}",
17
- activeBackground: "transparent",
17
+ activeBackground: "color-mix(in srgb, {primary.color} 10%, transparent)",
18
18
  borderRadius: "{borderRadius.sm}"
19
19
  },
20
20
  navButton: {
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.js","names":[],"sources":["../../../../src/presets/base/components/tabs.ts"],"sourcesContent":["// The tab strip: quiet text items, a hover fill, and the selected one\n// marked by a short accent pill that slides to it. A preset that wants a\n// full-width underline sets `indicator.width` to `100%`.\nexport default {\n tablist: {\n gap: '0.25rem',\n padding: '0',\n borderWidth: '0',\n borderColor: '{content.borderColor}'\n },\n tab: {\n padding: '0.4375rem 0.75rem',\n fontWeight: '400',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}',\n activeColor: '{text.hoverColor}',\n background: 'transparent',\n hoverBackground: '{content.hoverBackground}',\n activeBackground: 'transparent',\n borderRadius: '{borderRadius.sm}'\n },\n // The buttons at the ends of a scrollable strip.\n navButton: {\n size: '2rem',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}',\n hoverBackground: '{content.hoverBackground}',\n borderRadius: '{borderRadius.sm}'\n },\n navGroup: {\n gap: '0.125rem'\n },\n indicator: {\n color: '{primary.color}',\n width: '1rem',\n thickness: '3px',\n borderRadius: '{borderRadius.pill}',\n duration: '0.25s'\n },\n tabpanel: {\n padding: '1rem 0',\n verticalPadding: '0 1rem',\n color: '{content.color}'\n }\n};\n"],"mappings":";AAGA,IAAA,eAAe;CACX,SAAS;EACL,KAAK;EACL,SAAS;EACT,aAAa;EACb,aAAa;CACjB;CACA,KAAK;EACD,SAAS;EACT,YAAY;EACZ,OAAO;EACP,YAAY;EACZ,aAAa;EACb,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,cAAc;CAClB;CAEA,WAAW;EACP,MAAM;EACN,OAAO;EACP,YAAY;EACZ,iBAAiB;EACjB,cAAc;CAClB;CACA,UAAU,EACN,KAAK,WACT;CACA,WAAW;EACP,OAAO;EACP,OAAO;EACP,WAAW;EACX,cAAc;EACd,UAAU;CACd;CACA,UAAU;EACN,SAAS;EACT,iBAAiB;EACjB,OAAO;CACX;AACJ"}
1
+ {"version":3,"file":"tabs.js","names":[],"sources":["../../../../src/presets/base/components/tabs.ts"],"sourcesContent":["// The tab strip: quiet text items, a hover fill, and the selected one on a\n// tint of the accent, with a short accent pill that slides to it. A preset\n// that wants the selection quieter sets `tab.activeBackground` to\n// `transparent`; one that wants a full-width underline sets `indicator.width`\n// to `100%`.\nexport default {\n tablist: {\n gap: '0.25rem',\n padding: '0',\n borderWidth: '0',\n borderColor: '{content.borderColor}'\n },\n tab: {\n padding: '0.4375rem 0.75rem',\n fontWeight: '400',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}',\n activeColor: '{primary.color}',\n background: 'transparent',\n hoverBackground: '{content.hoverBackground}',\n activeBackground: 'color-mix(in srgb, {primary.color} 10%, transparent)',\n borderRadius: '{borderRadius.sm}'\n },\n // The buttons at the ends of a scrollable strip.\n navButton: {\n size: '2rem',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}',\n hoverBackground: '{content.hoverBackground}',\n borderRadius: '{borderRadius.sm}'\n },\n navGroup: {\n gap: '0.125rem'\n },\n indicator: {\n color: '{primary.color}',\n width: '1rem',\n thickness: '3px',\n borderRadius: '{borderRadius.pill}',\n duration: '0.25s'\n },\n tabpanel: {\n padding: '1rem 0',\n verticalPadding: '0 1rem',\n color: '{content.color}'\n }\n};\n"],"mappings":";AAKA,IAAA,eAAe;CACX,SAAS;EACL,KAAK;EACL,SAAS;EACT,aAAa;EACb,aAAa;CACjB;CACA,KAAK;EACD,SAAS;EACT,YAAY;EACZ,OAAO;EACP,YAAY;EACZ,aAAa;EACb,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,cAAc;CAClB;CAEA,WAAW;EACP,MAAM;EACN,OAAO;EACP,YAAY;EACZ,iBAAiB;EACjB,cAAc;CAClB;CACA,UAAU,EACN,KAAK,WACT;CACA,WAAW;EACP,OAAO;EACP,OAAO;EACP,WAAW;EACX,cAAc;EACd,UAAU;CACd;CACA,UAAU;EACN,SAAS;EACT,iBAAiB;EACjB,OAAO;CACX;AACJ"}
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  root: {
3
- /** Which way the grip resizes the box: `vertical`, `horizontal`, `both` or `none`. An auto-resizing box never shows one. */
3
+ /** Which way the grip resizes the box: `both` (diagonally), `vertical`, `horizontal` or `none`. A fluid box keeps to `vertical`; an auto-resizing one shows no grip. */
4
4
  resize: string;
5
5
  };
6
6
  resizer: {
@@ -1,8 +1,8 @@
1
1
  //#region src/presets/base/components/textarea.ts
2
2
  var textarea_default = {
3
3
  root: {
4
- /** Which way the grip resizes the box: `vertical`, `horizontal`, `both` or `none`. An auto-resizing box never shows one. */
5
- resize: "vertical" },
4
+ /** Which way the grip resizes the box: `both` (diagonally), `vertical`, `horizontal` or `none`. A fluid box keeps to `vertical`; an auto-resizing one shows no grip. */
5
+ resize: "both" },
6
6
  resizer: {
7
7
  size: "0.75rem",
8
8
  inset: "0.1875rem",
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.js","names":[],"sources":["../../../../src/presets/base/components/textarea.ts"],"sourcesContent":["// The field chrome (border, background, focus) comes from the semantic\n// `formField` tokens, as every text-like control's does; these are only what\n// is particular to a multi-line box.\nexport default {\n root: {\n /** Which way the grip resizes the box: `vertical`, `horizontal`, `both` or `none`. An auto-resizing box never shows one. */\n resize: 'vertical'\n },\n // The grip is the library's own, drawn in the corner, rather than the one\n // each browser draws its own way.\n resizer: {\n size: '0.75rem',\n inset: '0.1875rem',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}'\n }\n};\n"],"mappings":";AAGA,IAAA,mBAAe;CACX,MAAM;;AAEF,QAAQ,WACZ;CAGA,SAAS;EACL,MAAM;EACN,OAAO;EACP,OAAO;EACP,YAAY;CAChB;AACJ"}
1
+ {"version":3,"file":"textarea.js","names":[],"sources":["../../../../src/presets/base/components/textarea.ts"],"sourcesContent":["// The field chrome (border, background, focus) comes from the semantic\n// `formField` tokens, as every text-like control's does; these are only what\n// is particular to a multi-line box.\nexport default {\n root: {\n /** Which way the grip resizes the box: `both` (diagonally), `vertical`, `horizontal` or `none`. A fluid box keeps to `vertical`; an auto-resizing one shows no grip. */\n resize: 'both'\n },\n // The grip is the library's own, drawn in the corner, rather than the one\n // each browser draws its own way.\n resizer: {\n size: '0.75rem',\n inset: '0.1875rem',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}'\n }\n};\n"],"mappings":";AAGA,IAAA,mBAAe;CACX,MAAM;;AAEF,QAAQ,OACZ;CAGA,SAAS;EACL,MAAM;EACN,OAAO;EACP,OAAO;EACP,YAAY;CAChB;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitral/themes",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
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.5"
43
+ "@vitral/core": "0.2.6"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/build-theme-css.mjs"