@vitral/themes 0.2.4 → 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.
- package/dist/css/avalonia.css +170 -3
- package/dist/css/ink.css +170 -3
- package/dist/css/prism.css +170 -3
- package/dist/css/simple.css +170 -3
- package/dist/presets/base/components/copybutton.d.ts +6 -0
- package/dist/presets/base/components/copybutton.js +6 -0
- package/dist/presets/base/components/copybutton.js.map +1 -0
- package/dist/presets/base/components/datagrid.d.ts +3 -0
- package/dist/presets/base/components/datagrid.js +9 -2
- package/dist/presets/base/components/datagrid.js.map +1 -1
- package/dist/presets/base/components/descriptionlist.d.ts +34 -0
- package/dist/presets/base/components/descriptionlist.js +32 -0
- package/dist/presets/base/components/descriptionlist.js.map +1 -0
- package/dist/presets/base/components/editor.d.ts +12 -0
- package/dist/presets/base/components/editor.js +12 -0
- package/dist/presets/base/components/editor.js.map +1 -1
- package/dist/presets/base/components/emptystate.d.ts +39 -0
- package/dist/presets/base/components/emptystate.js +41 -0
- package/dist/presets/base/components/emptystate.js.map +1 -0
- package/dist/presets/base/components/index.d.ts +284 -0
- package/dist/presets/base/components/index.js +12 -0
- package/dist/presets/base/components/index.js.map +1 -1
- package/dist/presets/base/components/kbd.d.ts +43 -0
- package/dist/presets/base/components/kbd.js +47 -0
- package/dist/presets/base/components/kbd.js.map +1 -0
- package/dist/presets/base/components/stat.d.ts +51 -0
- package/dist/presets/base/components/stat.js +47 -0
- package/dist/presets/base/components/stat.js.map +1 -0
- package/dist/presets/base/components/tabs.d.ts +10 -0
- package/dist/presets/base/components/tabs.js +10 -2
- package/dist/presets/base/components/tabs.js.map +1 -1
- package/dist/presets/base/components/textarea.d.ts +7 -1
- package/dist/presets/base/components/textarea.js +11 -3
- package/dist/presets/base/components/textarea.js.map +1 -1
- package/dist/presets/base/components/tour.d.ts +87 -0
- package/dist/presets/base/components/tour.js +87 -0
- package/dist/presets/base/components/tour.js.map +1 -0
- package/dist/presets/base/semantic.js +3 -1
- package/dist/presets/base/semantic.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.js","names":[],"sources":["../../../src/presets/base/semantic.ts"],"sourcesContent":["import type { TokenTree } from '../../engine/types';\n\n/**\n * The fills, borders and text colours one severity needs across every\n * component: a solid fill (buttons, badges), a subtle tint (messages, tags,\n * text buttons on hover), and the colours that sit on each.\n *\n * `shade` is the palette step the solid fill uses in light mode. It is 700 for\n * green and sky rather than 600, because white text on their 600 falls short of\n * the 4.5:1 contrast WCAG asks for.\n */\nexport function severityLight(palette: string, shade = 600, contrast = '#ffffff'): TokenTree {\n const s = (offset: number) => `{${palette}.${Math.min(950, shade + offset)}}`;\n return {\n color: s(0),\n contrastColor: contrast,\n hoverColor: s(100),\n activeColor: s(200),\n borderColor: s(0),\n hoverBorderColor: s(100),\n subtleBackground: `{${palette}.50}`,\n subtleHoverBackground: `{${palette}.100}`,\n subtleColor: `{${palette}.${Math.max(700, shade)}}`,\n subtleBorderColor: `{${palette}.200}`\n };\n}\n\nexport function severityDark(palette: string): TokenTree {\n return {\n color: `{${palette}.400}`,\n contrastColor: '{surface.950}',\n hoverColor: `{${palette}.300}`,\n activeColor: `{${palette}.200}`,\n borderColor: `{${palette}.400}`,\n hoverBorderColor: `{${palette}.300}`,\n subtleBackground: `color-mix(in srgb, {${palette}.500} 16%, transparent)`,\n subtleHoverBackground: `color-mix(in srgb, {${palette}.500} 26%, transparent)`,\n subtleColor: `{${palette}.300}`,\n subtleBorderColor: `color-mix(in srgb, {${palette}.500} 36%, transparent)`\n };\n}\n\nconst surface = {\n 0: '#ffffff',\n 50: '{zinc.50}',\n 100: '{zinc.100}',\n 200: '{zinc.200}',\n 300: '{zinc.300}',\n 400: '{zinc.400}',\n 500: '{zinc.500}',\n 600: '{zinc.600}',\n 700: '{zinc.700}',\n 800: '{zinc.800}',\n 900: '{zinc.900}',\n 950: '{zinc.950}'\n};\n\n/**\n * The semantic layer every component reads. Presets override pieces of it;\n * the component layer refers to it by name and never to a raw colour.\n */\nexport const semantic: TokenTree = {\n fontFamily: \"Inter, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif\",\n fontFamilyMono: \"'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace\",\n fontSize: '0.875rem',\n lineHeight: '1.5',\n transitionDuration: '0.15s',\n /* A named transition is a movement you are meant to notice, so it is slower than a hover. */\n transitionPresetDuration: '0.35s',\n disabledOpacity: '0.55',\n /**\n * `<Icon>`: the box every icon is drawn in unless a component sizes it, and\n * its stroke in units of the 24×24 drawing grid (2 is the drawn weight).\n */\n icon: { size: '1rem', strokeWidth: '2' },\n\n /**\n * The small icon-only buttons that close, remove or clear something: a\n * tag's ×, a dialog's close, a field's clear. One shape everywhere, so a\n * theme changes them together.\n */\n iconButton: { borderRadius: '{borderRadius.pill}' },\n anchorGutter: '4px',\n\n focusRing: { width: '2px', style: 'solid', color: '{primary.color}', offset: '2px' },\n\n primary: {\n 50: '{blue.50}',\n 100: '{blue.100}',\n 200: '{blue.200}',\n 300: '{blue.300}',\n 400: '{blue.400}',\n 500: '{blue.500}',\n 600: '{blue.600}',\n 700: '{blue.700}',\n 800: '{blue.800}',\n 900: '{blue.900}',\n 950: '{blue.950}'\n },\n\n /** Controls are sized by minimum height, the way a desktop control set is. */\n control: {\n minHeight: '2.25rem',\n sm: { minHeight: '1.875rem' },\n lg: { minHeight: '2.75rem' }\n },\n\n formField: {\n paddingX: '0.75rem',\n paddingY: '0.5rem',\n borderWidth: '1px',\n borderRadius: '{borderRadius.md}',\n transitionDuration: '{transitionDuration}',\n sm: { fontSize: '0.8125rem', paddingX: '0.625rem', paddingY: '0.3125rem' },\n lg: { fontSize: '1rem', paddingX: '0.875rem', paddingY: '0.625rem' }\n },\n\n list: {\n padding: '0.25rem',\n gap: '2px',\n header: { padding: '0.5rem 0.5rem 0.25rem' },\n option: { padding: '0.5rem 0.75rem', borderRadius: '{borderRadius.sm}' },\n optionGroup: { padding: '0.5rem 0.75rem', fontWeight: '600' }\n },\n\n content: { borderRadius: '{borderRadius.md}' },\n\n overlay: {\n select: { borderRadius: '{borderRadius.md}', shadow: '0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.08)' },\n popover: { borderRadius: '{borderRadius.md}', padding: '0.75rem', shadow: '0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.08)' },\n modal: { borderRadius: '{borderRadius.xl}', padding: '1.25rem', shadow: '0 20px 40px -8px rgba(0, 0, 0, 0.25)' },\n navigation: { shadow: '0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.08)' }\n },\n\n navigation: {\n list: { padding: '0.25rem', gap: '2px' },\n item: { padding: '0.5rem 0.75rem', borderRadius: '{borderRadius.sm}', gap: '0.5rem' },\n submenuLabel: { padding: '0.5rem 0.75rem', fontWeight: '600' },\n submenuIcon: { size: '0.875rem' }\n },\n\n chart: {\n 1: '{blue.500}',\n 2: '{pink.500}',\n 3: '{emerald.500}',\n 4: '{teal.500}',\n 5: '{amber.500}',\n 6: '{red.500}',\n 7: '{violet.500}',\n 8: '{slate.500}'\n },\n\n colorScheme: {\n light: {\n surface,\n primary: { ...severityLight('primary'), subtleColor: '{primary.700}' },\n highlight: { background: '{primary.50}', focusBackground: '{primary.100}', color: '{primary.700}', focusColor: '{primary.800}' },\n mask: { background: 'rgba(0, 0, 0, 0.4)', color: '{surface.200}' },\n app: { background: '{surface.50}' },\n formField: {\n background: '{surface.0}',\n hoverBackground: '{surface.0}',\n focusBackground: '{surface.0}',\n disabledBackground: '{surface.100}',\n filledBackground: '{surface.100}',\n filledHoverBackground: '{surface.100}',\n filledFocusBackground: '{surface.0}',\n borderColor: '{surface.300}',\n hoverBorderColor: '{surface.400}',\n focusBorderColor: '{primary.color}',\n invalidBorderColor: '{danger.color}',\n color: '{surface.900}',\n disabledColor: '{surface.500}',\n placeholderColor: '{surface.500}',\n invalidPlaceholderColor: '{danger.color}',\n iconColor: '{surface.500}',\n shadow: '0 1px 2px 0 rgba(18, 18, 23, 0.05)',\n focusShadow: '0 0 0 3px color-mix(in srgb, {primary.color} 20%, transparent)'\n },\n text: { color: '{surface.900}', hoverColor: '{surface.950}', mutedColor: '{surface.500}', hoverMutedColor: '{surface.700}' },\n content: { background: '{surface.0}', hoverBackground: '{surface.100}', borderColor: '{surface.200}', color: '{text.color}', hoverColor: '{text.hoverColor}' },\n overlay: {\n select: { background: '{surface.0}', borderColor: '{surface.200}', color: '{text.color}' },\n popover: { background: '{surface.0}', borderColor: '{surface.200}', color: '{text.color}' },\n modal: { background: '{surface.0}', borderColor: '{surface.200}', color: '{text.color}' }\n },\n list: {\n option: {\n focusBackground: '{surface.100}',\n selectedBackground: '{highlight.background}',\n selectedFocusBackground: '{highlight.focusBackground}',\n color: '{text.color}',\n focusColor: '{text.hoverColor}',\n selectedColor: '{highlight.color}',\n selectedFocusColor: '{highlight.focusColor}',\n selectedIndicator: 'transparent',\n icon: { color: '{surface.400}', focusColor: '{surface.500}' }\n },\n optionGroup: { background: 'transparent', color: '{text.mutedColor}' }\n },\n navigation: {\n item: {\n focusBackground: '{surface.100}',\n activeBackground: '{surface.100}',\n color: '{text.color}',\n focusColor: '{text.hoverColor}',\n activeColor: '{text.hoverColor}',\n activeIndicator: 'transparent',\n icon: { color: '{surface.400}', focusColor: '{surface.500}', activeColor: '{surface.500}' }\n },\n submenuLabel: { background: 'transparent', color: '{text.mutedColor}' },\n submenuIcon: { color: '{surface.400}', focusColor: '{surface.500}', activeColor: '{surface.500}' }\n },\n secondary: {\n color: '{surface.100}',\n contrastColor: '{surface.800}',\n hoverColor: '{surface.200}',\n activeColor: '{surface.300}',\n borderColor: '{surface.100}',\n hoverBorderColor: '{surface.200}',\n subtleBackground: '{surface.100}',\n subtleHoverBackground: '{surface.200}',\n subtleColor: '{surface.700}',\n subtleBorderColor: '{surface.200}'\n },\n success: severityLight('green', 700),\n info: severityLight('sky', 700),\n warn: { ...severityLight('amber', 400, '{amber.950}'), subtleColor: '{amber.800}' },\n danger: severityLight('red'),\n help: severityLight('violet'),\n contrast: {\n color: '{surface.950}',\n contrastColor: '{surface.0}',\n hoverColor: '{surface.800}',\n activeColor: '{surface.700}',\n borderColor: '{surface.950}',\n hoverBorderColor: '{surface.800}',\n subtleBackground: '{surface.100}',\n subtleHoverBackground: '{surface.200}',\n subtleColor: '{surface.950}',\n subtleBorderColor: '{surface.300}'\n }\n },\n dark: {\n surface,\n primary: severityDark('primary'),\n highlight: {\n background: 'color-mix(in srgb, {primary.400} 16%, transparent)',\n focusBackground: 'color-mix(in srgb, {primary.400} 24%, transparent)',\n color: 'rgba(255, 255, 255, 0.87)',\n focusColor: 'rgba(255, 255, 255, 0.87)'\n },\n mask: { background: 'rgba(0, 0, 0, 0.6)', color: '{surface.200}' },\n app: { background: '{surface.950}' },\n formField: {\n background: '{surface.950}',\n hoverBackground: '{surface.950}',\n focusBackground: '{surface.950}',\n disabledBackground: '{surface.800}',\n filledBackground: '{surface.800}',\n filledHoverBackground: '{surface.800}',\n filledFocusBackground: '{surface.800}',\n borderColor: '{surface.600}',\n hoverBorderColor: '{surface.500}',\n focusBorderColor: '{primary.color}',\n invalidBorderColor: '{danger.color}',\n color: '{surface.0}',\n disabledColor: '{surface.400}',\n placeholderColor: '{surface.400}',\n invalidPlaceholderColor: '{danger.color}',\n iconColor: '{surface.400}',\n shadow: '0 1px 2px 0 rgba(0, 0, 0, 0.2)',\n focusShadow: '0 0 0 3px color-mix(in srgb, {primary.color} 25%, transparent)'\n },\n text: { color: '{surface.0}', hoverColor: '{surface.0}', mutedColor: '{surface.400}', hoverMutedColor: '{surface.300}' },\n content: { background: '{surface.900}', hoverBackground: '{surface.800}', borderColor: '{surface.700}', color: '{text.color}', hoverColor: '{text.hoverColor}' },\n overlay: {\n select: { background: '{surface.900}', borderColor: '{surface.700}', color: '{text.color}' },\n popover: { background: '{surface.900}', borderColor: '{surface.700}', color: '{text.color}' },\n modal: { background: '{surface.900}', borderColor: '{surface.700}', color: '{text.color}' }\n },\n list: {\n option: {\n focusBackground: '{surface.800}',\n selectedBackground: '{highlight.background}',\n selectedFocusBackground: '{highlight.focusBackground}',\n color: '{text.color}',\n focusColor: '{text.hoverColor}',\n selectedColor: '{highlight.color}',\n selectedFocusColor: '{highlight.focusColor}',\n selectedIndicator: 'transparent',\n icon: { color: '{surface.500}', focusColor: '{surface.400}' }\n },\n optionGroup: { background: 'transparent', color: '{text.mutedColor}' }\n },\n navigation: {\n item: {\n focusBackground: '{surface.800}',\n activeBackground: '{surface.800}',\n color: '{text.color}',\n focusColor: '{text.hoverColor}',\n activeColor: '{text.hoverColor}',\n activeIndicator: 'transparent',\n icon: { color: '{surface.500}', focusColor: '{surface.400}', activeColor: '{surface.400}' }\n },\n submenuLabel: { background: 'transparent', color: '{text.mutedColor}' },\n submenuIcon: { color: '{surface.500}', focusColor: '{surface.400}', activeColor: '{surface.400}' }\n },\n secondary: {\n color: '{surface.800}',\n contrastColor: '{surface.0}',\n hoverColor: '{surface.700}',\n activeColor: '{surface.600}',\n borderColor: '{surface.800}',\n hoverBorderColor: '{surface.700}',\n subtleBackground: '{surface.800}',\n subtleHoverBackground: '{surface.700}',\n subtleColor: '{surface.300}',\n subtleBorderColor: '{surface.700}'\n },\n success: severityDark('green'),\n info: severityDark('sky'),\n warn: severityDark('amber'),\n danger: severityDark('red'),\n help: severityDark('violet'),\n contrast: {\n color: '{surface.0}',\n contrastColor: '{surface.950}',\n hoverColor: '{surface.100}',\n activeColor: '{surface.200}',\n borderColor: '{surface.0}',\n hoverBorderColor: '{surface.100}',\n subtleBackground: '{surface.800}',\n subtleHoverBackground: '{surface.700}',\n subtleColor: '{surface.0}',\n subtleBorderColor: '{surface.600}'\n }\n }\n }\n};\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,cAAc,SAAiB,QAAQ,KAAK,WAAW,WAAsB;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,eAAe;KACf,oBAAoB;KACpB,mBAAmB;KACnB,MAAM;MAAE,OAAO;MAAiB,YAAY;KAAgB;IAChE;IACA,aAAa;KAAE,YAAY;KAAe,OAAO;IAAoB;GACzE;GACA,YAAY;IACR,MAAM;KACF,iBAAiB;KACjB,kBAAkB;KAClB,OAAO;KACP,YAAY;KACZ,aAAa;KACb,iBAAiB;KACjB,MAAM;MAAE,OAAO;MAAiB,YAAY;MAAiB,aAAa;KAAgB;IAC9F;IACA,cAAc;KAAE,YAAY;KAAe,OAAO;IAAoB;IACtE,aAAa;KAAE,OAAO;KAAiB,YAAY;KAAiB,aAAa;IAAgB;GACrG;GACA,WAAW;IACP,OAAO;IACP,eAAe;IACf,YAAY;IACZ,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,uBAAuB;IACvB,aAAa;IACb,mBAAmB;GACvB;GACA,SAAS,aAAa,OAAO;GAC7B,MAAM,aAAa,KAAK;GACxB,MAAM,aAAa,OAAO;GAC1B,QAAQ,aAAa,KAAK;GAC1B,MAAM,aAAa,QAAQ;GAC3B,UAAU;IACN,OAAO;IACP,eAAe;IACf,YAAY;IACZ,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,uBAAuB;IACvB,aAAa;IACb,mBAAmB;GACvB;EACJ;CACJ;AACJ"}
|
|
1
|
+
{"version":3,"file":"semantic.js","names":[],"sources":["../../../src/presets/base/semantic.ts"],"sourcesContent":["import type { TokenTree } from '../../engine/types';\n\n/**\n * The fills, borders and text colours one severity needs across every\n * component: a solid fill (buttons, badges), a subtle tint (messages, tags,\n * text buttons on hover), and the colours that sit on each.\n *\n * `shade` is the palette step the solid fill uses in light mode. It is 700 for\n * green and sky rather than 600, because white text on their 600 falls short of\n * the 4.5:1 contrast WCAG asks for.\n */\nexport function severityLight(palette: string, shade = 600, contrast = '#ffffff'): TokenTree {\n const s = (offset: number) => `{${palette}.${Math.min(950, shade + offset)}}`;\n return {\n color: s(0),\n contrastColor: contrast,\n hoverColor: s(100),\n activeColor: s(200),\n borderColor: s(0),\n hoverBorderColor: s(100),\n subtleBackground: `{${palette}.50}`,\n subtleHoverBackground: `{${palette}.100}`,\n subtleColor: `{${palette}.${Math.max(700, shade)}}`,\n subtleBorderColor: `{${palette}.200}`\n };\n}\n\nexport function severityDark(palette: string): TokenTree {\n return {\n color: `{${palette}.400}`,\n contrastColor: '{surface.950}',\n hoverColor: `{${palette}.300}`,\n activeColor: `{${palette}.200}`,\n borderColor: `{${palette}.400}`,\n hoverBorderColor: `{${palette}.300}`,\n subtleBackground: `color-mix(in srgb, {${palette}.500} 16%, transparent)`,\n subtleHoverBackground: `color-mix(in srgb, {${palette}.500} 26%, transparent)`,\n subtleColor: `{${palette}.300}`,\n subtleBorderColor: `color-mix(in srgb, {${palette}.500} 36%, transparent)`\n };\n}\n\nconst surface = {\n 0: '#ffffff',\n 50: '{zinc.50}',\n 100: '{zinc.100}',\n 200: '{zinc.200}',\n 300: '{zinc.300}',\n 400: '{zinc.400}',\n 500: '{zinc.500}',\n 600: '{zinc.600}',\n 700: '{zinc.700}',\n 800: '{zinc.800}',\n 900: '{zinc.900}',\n 950: '{zinc.950}'\n};\n\n/**\n * The semantic layer every component reads. Presets override pieces of it;\n * the component layer refers to it by name and never to a raw colour.\n */\nexport const semantic: TokenTree = {\n fontFamily: \"Inter, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif\",\n fontFamilyMono: \"'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace\",\n fontSize: '0.875rem',\n lineHeight: '1.5',\n transitionDuration: '0.15s',\n /* A named transition is a movement you are meant to notice, so it is slower than a hover. */\n transitionPresetDuration: '0.35s',\n disabledOpacity: '0.55',\n /**\n * `<Icon>`: the box every icon is drawn in unless a component sizes it, and\n * its stroke in units of the 24×24 drawing grid (2 is the drawn weight).\n */\n icon: { size: '1rem', strokeWidth: '2' },\n\n /**\n * The small icon-only buttons that close, remove or clear something: a\n * tag's ×, a dialog's close, a field's clear. One shape everywhere, so a\n * theme changes them together.\n */\n iconButton: { borderRadius: '{borderRadius.pill}' },\n anchorGutter: '4px',\n\n focusRing: { width: '2px', style: 'solid', color: '{primary.color}', offset: '2px' },\n\n primary: {\n 50: '{blue.50}',\n 100: '{blue.100}',\n 200: '{blue.200}',\n 300: '{blue.300}',\n 400: '{blue.400}',\n 500: '{blue.500}',\n 600: '{blue.600}',\n 700: '{blue.700}',\n 800: '{blue.800}',\n 900: '{blue.900}',\n 950: '{blue.950}'\n },\n\n /** Controls are sized by minimum height, the way a desktop control set is. */\n control: {\n minHeight: '2.25rem',\n sm: { minHeight: '1.875rem' },\n lg: { minHeight: '2.75rem' }\n },\n\n formField: {\n paddingX: '0.75rem',\n paddingY: '0.5rem',\n borderWidth: '1px',\n borderRadius: '{borderRadius.md}',\n transitionDuration: '{transitionDuration}',\n sm: { fontSize: '0.8125rem', paddingX: '0.625rem', paddingY: '0.3125rem' },\n lg: { fontSize: '1rem', paddingX: '0.875rem', paddingY: '0.625rem' }\n },\n\n list: {\n padding: '0.25rem',\n gap: '2px',\n header: { padding: '0.5rem 0.5rem 0.25rem' },\n option: { padding: '0.5rem 0.75rem', borderRadius: '{borderRadius.sm}' },\n optionGroup: { padding: '0.5rem 0.75rem', fontWeight: '600' }\n },\n\n content: { borderRadius: '{borderRadius.md}' },\n\n overlay: {\n select: { borderRadius: '{borderRadius.md}', shadow: '0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.08)' },\n popover: { borderRadius: '{borderRadius.md}', padding: '0.75rem', shadow: '0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.08)' },\n modal: { borderRadius: '{borderRadius.xl}', padding: '1.25rem', shadow: '0 20px 40px -8px rgba(0, 0, 0, 0.25)' },\n navigation: { shadow: '0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.08)' },\n /** The pointer a popup can draw to its anchor. */\n arrow: { size: '0.75rem' }\n },\n\n navigation: {\n list: { padding: '0.25rem', gap: '2px' },\n item: { padding: '0.5rem 0.75rem', borderRadius: '{borderRadius.sm}', gap: '0.5rem' },\n submenuLabel: { padding: '0.5rem 0.75rem', fontWeight: '600' },\n submenuIcon: { size: '0.875rem' }\n },\n\n chart: {\n 1: '{blue.500}',\n 2: '{pink.500}',\n 3: '{emerald.500}',\n 4: '{teal.500}',\n 5: '{amber.500}',\n 6: '{red.500}',\n 7: '{violet.500}',\n 8: '{slate.500}'\n },\n\n colorScheme: {\n light: {\n surface,\n primary: { ...severityLight('primary'), subtleColor: '{primary.700}' },\n highlight: { background: '{primary.50}', focusBackground: '{primary.100}', color: '{primary.700}', focusColor: '{primary.800}' },\n mask: { background: 'rgba(0, 0, 0, 0.4)', color: '{surface.200}' },\n app: { background: '{surface.50}' },\n formField: {\n background: '{surface.0}',\n hoverBackground: '{surface.0}',\n focusBackground: '{surface.0}',\n disabledBackground: '{surface.100}',\n filledBackground: '{surface.100}',\n filledHoverBackground: '{surface.100}',\n filledFocusBackground: '{surface.0}',\n borderColor: '{surface.300}',\n hoverBorderColor: '{surface.400}',\n focusBorderColor: '{primary.color}',\n invalidBorderColor: '{danger.color}',\n color: '{surface.900}',\n disabledColor: '{surface.500}',\n placeholderColor: '{surface.500}',\n invalidPlaceholderColor: '{danger.color}',\n iconColor: '{surface.500}',\n shadow: '0 1px 2px 0 rgba(18, 18, 23, 0.05)',\n focusShadow: '0 0 0 3px color-mix(in srgb, {primary.color} 20%, transparent)'\n },\n text: { color: '{surface.900}', hoverColor: '{surface.950}', mutedColor: '{surface.500}', hoverMutedColor: '{surface.700}' },\n content: { background: '{surface.0}', hoverBackground: '{surface.100}', borderColor: '{surface.200}', color: '{text.color}', hoverColor: '{text.hoverColor}' },\n overlay: {\n select: { background: '{surface.0}', borderColor: '{surface.200}', color: '{text.color}' },\n popover: { background: '{surface.0}', borderColor: '{surface.200}', color: '{text.color}' },\n modal: { background: '{surface.0}', borderColor: '{surface.200}', color: '{text.color}' }\n },\n list: {\n option: {\n focusBackground: '{surface.100}',\n selectedBackground: '{highlight.background}',\n selectedFocusBackground: '{highlight.focusBackground}',\n color: '{text.color}',\n focusColor: '{text.hoverColor}',\n selectedColor: '{highlight.color}',\n selectedFocusColor: '{highlight.focusColor}',\n selectedIndicator: 'transparent',\n icon: { color: '{surface.400}', focusColor: '{surface.500}' }\n },\n optionGroup: { background: 'transparent', color: '{text.mutedColor}' }\n },\n navigation: {\n item: {\n focusBackground: '{surface.100}',\n activeBackground: '{surface.100}',\n color: '{text.color}',\n focusColor: '{text.hoverColor}',\n activeColor: '{text.hoverColor}',\n activeIndicator: 'transparent',\n icon: { color: '{surface.400}', focusColor: '{surface.500}', activeColor: '{surface.500}' }\n },\n submenuLabel: { background: 'transparent', color: '{text.mutedColor}' },\n submenuIcon: { color: '{surface.400}', focusColor: '{surface.500}', activeColor: '{surface.500}' }\n },\n secondary: {\n color: '{surface.100}',\n contrastColor: '{surface.800}',\n hoverColor: '{surface.200}',\n activeColor: '{surface.300}',\n borderColor: '{surface.100}',\n hoverBorderColor: '{surface.200}',\n subtleBackground: '{surface.100}',\n subtleHoverBackground: '{surface.200}',\n subtleColor: '{surface.700}',\n subtleBorderColor: '{surface.200}'\n },\n success: severityLight('green', 700),\n info: severityLight('sky', 700),\n warn: { ...severityLight('amber', 400, '{amber.950}'), subtleColor: '{amber.800}' },\n danger: severityLight('red'),\n help: severityLight('violet'),\n contrast: {\n color: '{surface.950}',\n contrastColor: '{surface.0}',\n hoverColor: '{surface.800}',\n activeColor: '{surface.700}',\n borderColor: '{surface.950}',\n hoverBorderColor: '{surface.800}',\n subtleBackground: '{surface.100}',\n subtleHoverBackground: '{surface.200}',\n subtleColor: '{surface.950}',\n subtleBorderColor: '{surface.300}'\n }\n },\n dark: {\n surface,\n primary: severityDark('primary'),\n highlight: {\n background: 'color-mix(in srgb, {primary.400} 16%, transparent)',\n focusBackground: 'color-mix(in srgb, {primary.400} 24%, transparent)',\n color: 'rgba(255, 255, 255, 0.87)',\n focusColor: 'rgba(255, 255, 255, 0.87)'\n },\n mask: { background: 'rgba(0, 0, 0, 0.6)', color: '{surface.200}' },\n app: { background: '{surface.950}' },\n formField: {\n background: '{surface.950}',\n hoverBackground: '{surface.950}',\n focusBackground: '{surface.950}',\n disabledBackground: '{surface.800}',\n filledBackground: '{surface.800}',\n filledHoverBackground: '{surface.800}',\n filledFocusBackground: '{surface.800}',\n borderColor: '{surface.600}',\n hoverBorderColor: '{surface.500}',\n focusBorderColor: '{primary.color}',\n invalidBorderColor: '{danger.color}',\n color: '{surface.0}',\n disabledColor: '{surface.400}',\n placeholderColor: '{surface.400}',\n invalidPlaceholderColor: '{danger.color}',\n iconColor: '{surface.400}',\n shadow: '0 1px 2px 0 rgba(0, 0, 0, 0.2)',\n focusShadow: '0 0 0 3px color-mix(in srgb, {primary.color} 25%, transparent)'\n },\n text: { color: '{surface.0}', hoverColor: '{surface.0}', mutedColor: '{surface.400}', hoverMutedColor: '{surface.300}' },\n content: { background: '{surface.900}', hoverBackground: '{surface.800}', borderColor: '{surface.700}', color: '{text.color}', hoverColor: '{text.hoverColor}' },\n overlay: {\n select: { background: '{surface.900}', borderColor: '{surface.700}', color: '{text.color}' },\n popover: { background: '{surface.900}', borderColor: '{surface.700}', color: '{text.color}' },\n modal: { background: '{surface.900}', borderColor: '{surface.700}', color: '{text.color}' }\n },\n list: {\n option: {\n focusBackground: '{surface.800}',\n selectedBackground: '{highlight.background}',\n selectedFocusBackground: '{highlight.focusBackground}',\n color: '{text.color}',\n focusColor: '{text.hoverColor}',\n selectedColor: '{highlight.color}',\n selectedFocusColor: '{highlight.focusColor}',\n selectedIndicator: 'transparent',\n icon: { color: '{surface.500}', focusColor: '{surface.400}' }\n },\n optionGroup: { background: 'transparent', color: '{text.mutedColor}' }\n },\n navigation: {\n item: {\n focusBackground: '{surface.800}',\n activeBackground: '{surface.800}',\n color: '{text.color}',\n focusColor: '{text.hoverColor}',\n activeColor: '{text.hoverColor}',\n activeIndicator: 'transparent',\n icon: { color: '{surface.500}', focusColor: '{surface.400}', activeColor: '{surface.400}' }\n },\n submenuLabel: { background: 'transparent', color: '{text.mutedColor}' },\n submenuIcon: { color: '{surface.500}', focusColor: '{surface.400}', activeColor: '{surface.400}' }\n },\n secondary: {\n color: '{surface.800}',\n contrastColor: '{surface.0}',\n hoverColor: '{surface.700}',\n activeColor: '{surface.600}',\n borderColor: '{surface.800}',\n hoverBorderColor: '{surface.700}',\n subtleBackground: '{surface.800}',\n subtleHoverBackground: '{surface.700}',\n subtleColor: '{surface.300}',\n subtleBorderColor: '{surface.700}'\n },\n success: severityDark('green'),\n info: severityDark('sky'),\n warn: severityDark('amber'),\n danger: severityDark('red'),\n help: severityDark('violet'),\n contrast: {\n color: '{surface.0}',\n contrastColor: '{surface.950}',\n hoverColor: '{surface.100}',\n activeColor: '{surface.200}',\n borderColor: '{surface.0}',\n hoverBorderColor: '{surface.100}',\n subtleBackground: '{surface.800}',\n subtleHoverBackground: '{surface.700}',\n subtleColor: '{surface.0}',\n subtleBorderColor: '{surface.600}'\n }\n }\n }\n};\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,cAAc,SAAiB,QAAQ,KAAK,WAAW,WAAsB;CACzF,MAAM,KAAK,WAAmB,IAAI,QAAQ,GAAG,KAAK,IAAI,KAAK,QAAQ,MAAM,EAAE;CAC3E,OAAO;EACH,OAAO,EAAE,CAAC;EACV,eAAe;EACf,YAAY,EAAE,GAAG;EACjB,aAAa,EAAE,GAAG;EAClB,aAAa,EAAE,CAAC;EAChB,kBAAkB,EAAE,GAAG;EACvB,kBAAkB,IAAI,QAAQ;EAC9B,uBAAuB,IAAI,QAAQ;EACnC,aAAa,IAAI,QAAQ,GAAG,KAAK,IAAI,KAAK,KAAK,EAAE;EACjD,mBAAmB,IAAI,QAAQ;CACnC;AACJ;AAEA,SAAgB,aAAa,SAA4B;CACrD,OAAO;EACH,OAAO,IA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GACA,WAAW;IACP,OAAO;IACP,eAAe;IACf,YAAY;IACZ,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,uBAAuB;IACvB,aAAa;IACb,mBAAmB;GACvB;GACA,SAAS,aAAa,OAAO;GAC7B,MAAM,aAAa,KAAK;GACxB,MAAM,aAAa,OAAO;GAC1B,QAAQ,aAAa,KAAK;GAC1B,MAAM,aAAa,QAAQ;GAC3B,UAAU;IACN,OAAO;IACP,eAAe;IACf,YAAY;IACZ,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,uBAAuB;IACvB,aAAa;IACb,mBAAmB;GACvB;EACJ;CACJ;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitral/themes",
|
|
3
|
-
"version": "0.2.
|
|
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.
|
|
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"
|