@choco-vanille/theme 0.0.0-stage → 0.1.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +216 -2
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2743 -0
- package/dist/index.d.ts +2743 -0
- package/dist/index.js +18 -0
- package/dist/styles.css +2 -0
- package/dist/theme/constants/index.cjs +2 -0
- package/dist/theme/constants/index.cjs.map +1 -0
- package/dist/theme/constants/index.js +9 -0
- package/dist/theme/constants/index.js.map +1 -0
- package/dist/theme/flavors/contrast/constants/index.cjs +2 -0
- package/dist/theme/flavors/contrast/constants/index.cjs.map +1 -0
- package/dist/theme/flavors/contrast/constants/index.js +58 -0
- package/dist/theme/flavors/contrast/constants/index.js.map +1 -0
- package/dist/theme/flavors/contrast/contrastFlavor.const.cjs +2 -0
- package/dist/theme/flavors/contrast/contrastFlavor.const.cjs.map +1 -0
- package/dist/theme/flavors/contrast/contrastFlavor.const.js +149 -0
- package/dist/theme/flavors/contrast/contrastFlavor.const.js.map +1 -0
- package/dist/theme/flavors/contrast/utils/createContrastIntents.utils.cjs +2 -0
- package/dist/theme/flavors/contrast/utils/createContrastIntents.utils.cjs.map +1 -0
- package/dist/theme/flavors/contrast/utils/createContrastIntents.utils.js +20 -0
- package/dist/theme/flavors/contrast/utils/createContrastIntents.utils.js.map +1 -0
- package/dist/theme/flavors/default/constants/index.cjs +2 -0
- package/dist/theme/flavors/default/constants/index.cjs.map +1 -0
- package/dist/theme/flavors/default/constants/index.js +58 -0
- package/dist/theme/flavors/default/constants/index.js.map +1 -0
- package/dist/theme/flavors/default/defaultDarkTheme.const.cjs +2 -0
- package/dist/theme/flavors/default/defaultDarkTheme.const.cjs.map +1 -0
- package/dist/theme/flavors/default/defaultDarkTheme.const.js +93 -0
- package/dist/theme/flavors/default/defaultDarkTheme.const.js.map +1 -0
- package/dist/theme/flavors/default/defaultFlavor.const.cjs +2 -0
- package/dist/theme/flavors/default/defaultFlavor.const.cjs.map +1 -0
- package/dist/theme/flavors/default/defaultFlavor.const.js +12 -0
- package/dist/theme/flavors/default/defaultFlavor.const.js.map +1 -0
- package/dist/theme/flavors/default/defaultLightTheme.const.cjs +2 -0
- package/dist/theme/flavors/default/defaultLightTheme.const.cjs.map +1 -0
- package/dist/theme/flavors/default/defaultLightTheme.const.js +93 -0
- package/dist/theme/flavors/default/defaultLightTheme.const.js.map +1 -0
- package/dist/theme/flavors/neutral/neutralFlavor.const.cjs +2 -0
- package/dist/theme/flavors/neutral/neutralFlavor.const.cjs.map +1 -0
- package/dist/theme/flavors/neutral/neutralFlavor.const.js +32 -0
- package/dist/theme/flavors/neutral/neutralFlavor.const.js.map +1 -0
- package/dist/theme/hooks/viewport/use-breakpoint/useBreakpoint.hook.cjs +2 -0
- package/dist/theme/hooks/viewport/use-breakpoint/useBreakpoint.hook.cjs.map +1 -0
- package/dist/theme/hooks/viewport/use-breakpoint/useBreakpoint.hook.js +11 -0
- package/dist/theme/hooks/viewport/use-breakpoint/useBreakpoint.hook.js.map +1 -0
- package/dist/theme/hooks/viewport/use-breakpoint/utils/mediaQueryStore.utils.cjs +2 -0
- package/dist/theme/hooks/viewport/use-breakpoint/utils/mediaQueryStore.utils.cjs.map +1 -0
- package/dist/theme/hooks/viewport/use-breakpoint/utils/mediaQueryStore.utils.js +20 -0
- package/dist/theme/hooks/viewport/use-breakpoint/utils/mediaQueryStore.utils.js.map +1 -0
- package/dist/theme/styles/themes.css.cjs +1 -0
- package/dist/theme/styles/themes.css.js +1 -0
- package/dist/theme/styles/vars.css.cjs +2 -0
- package/dist/theme/styles/vars.css.cjs.map +1 -0
- package/dist/theme/styles/vars.css.js +366 -0
- package/dist/theme/styles/vars.css.js.map +1 -0
- package/dist/theme/theme-provider/ThemeProvider.cjs +2 -0
- package/dist/theme/theme-provider/ThemeProvider.cjs.map +1 -0
- package/dist/theme/theme-provider/ThemeProvider.css.cjs +2 -0
- package/dist/theme/theme-provider/ThemeProvider.css.cjs.map +1 -0
- package/dist/theme/theme-provider/ThemeProvider.css.js +6 -0
- package/dist/theme/theme-provider/ThemeProvider.css.js.map +1 -0
- package/dist/theme/theme-provider/ThemeProvider.js +45 -0
- package/dist/theme/theme-provider/ThemeProvider.js.map +1 -0
- package/dist/theme/theme-provider/constants/index.cjs +2 -0
- package/dist/theme/theme-provider/constants/index.cjs.map +1 -0
- package/dist/theme/theme-provider/constants/index.js +13 -0
- package/dist/theme/theme-provider/constants/index.js.map +1 -0
- package/dist/theme/theme-provider/contexts/FlavorRegistryContext.cjs +2 -0
- package/dist/theme/theme-provider/contexts/FlavorRegistryContext.cjs.map +1 -0
- package/dist/theme/theme-provider/contexts/FlavorRegistryContext.js +6 -0
- package/dist/theme/theme-provider/contexts/FlavorRegistryContext.js.map +1 -0
- package/dist/theme/theme-provider/contexts/ThemeContext.cjs +2 -0
- package/dist/theme/theme-provider/contexts/ThemeContext.cjs.map +1 -0
- package/dist/theme/theme-provider/contexts/ThemeContext.js +6 -0
- package/dist/theme/theme-provider/contexts/ThemeContext.js.map +1 -0
- package/dist/theme/theme-provider/contexts/ThemeSetterContext.cjs +2 -0
- package/dist/theme/theme-provider/contexts/ThemeSetterContext.cjs.map +1 -0
- package/dist/theme/theme-provider/contexts/ThemeSetterContext.js +6 -0
- package/dist/theme/theme-provider/contexts/ThemeSetterContext.js.map +1 -0
- package/dist/theme/theme-provider/hooks/use-controllable-selection/useControllableSelection.hook.cjs +2 -0
- package/dist/theme/theme-provider/hooks/use-controllable-selection/useControllableSelection.hook.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/use-controllable-selection/useControllableSelection.hook.js +41 -0
- package/dist/theme/theme-provider/hooks/use-controllable-selection/useControllableSelection.hook.js.map +1 -0
- package/dist/theme/theme-provider/hooks/use-document-scope/useDocumentScope.hook.cjs +2 -0
- package/dist/theme/theme-provider/hooks/use-document-scope/useDocumentScope.hook.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/use-document-scope/useDocumentScope.hook.js +30 -0
- package/dist/theme/theme-provider/hooks/use-document-scope/useDocumentScope.hook.js.map +1 -0
- package/dist/theme/theme-provider/hooks/use-flavor-registry/useFlavorRegistry.hook.cjs +2 -0
- package/dist/theme/theme-provider/hooks/use-flavor-registry/useFlavorRegistry.hook.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/use-flavor-registry/useFlavorRegistry.hook.js +30 -0
- package/dist/theme/theme-provider/hooks/use-flavor-registry/useFlavorRegistry.hook.js.map +1 -0
- package/dist/theme/theme-provider/hooks/use-flavor-registry/utils/areFlavorListsEqual.utils.cjs +2 -0
- package/dist/theme/theme-provider/hooks/use-flavor-registry/utils/areFlavorListsEqual.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/use-flavor-registry/utils/areFlavorListsEqual.utils.js +5 -0
- package/dist/theme/theme-provider/hooks/use-flavor-registry/utils/areFlavorListsEqual.utils.js.map +1 -0
- package/dist/theme/theme-provider/hooks/use-theme-provider/useThemeProvider.hook.cjs +2 -0
- package/dist/theme/theme-provider/hooks/use-theme-provider/useThemeProvider.hook.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/use-theme-provider/useThemeProvider.hook.js +80 -0
- package/dist/theme/theme-provider/hooks/use-theme-provider/useThemeProvider.hook.js.map +1 -0
- package/dist/theme/theme-provider/hooks/use-token-styles/useTokenStyles.hook.cjs +2 -0
- package/dist/theme/theme-provider/hooks/use-token-styles/useTokenStyles.hook.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/use-token-styles/useTokenStyles.hook.js +11 -0
- package/dist/theme/theme-provider/hooks/use-token-styles/useTokenStyles.hook.js.map +1 -0
- package/dist/theme/theme-provider/hooks/use-token-styles/utils/areTokenStylesEqual.utils.cjs +2 -0
- package/dist/theme/theme-provider/hooks/use-token-styles/utils/areTokenStylesEqual.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/use-token-styles/utils/areTokenStylesEqual.utils.js +8 -0
- package/dist/theme/theme-provider/hooks/use-token-styles/utils/areTokenStylesEqual.utils.js.map +1 -0
- package/dist/theme/theme-provider/hooks/useResolvedTheme.hook.cjs +2 -0
- package/dist/theme/theme-provider/hooks/useResolvedTheme.hook.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/useResolvedTheme.hook.js +13 -0
- package/dist/theme/theme-provider/hooks/useResolvedTheme.hook.js.map +1 -0
- package/dist/theme/theme-provider/hooks/useSetTheme.hook.cjs +2 -0
- package/dist/theme/theme-provider/hooks/useSetTheme.hook.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/useSetTheme.hook.js +11 -0
- package/dist/theme/theme-provider/hooks/useSetTheme.hook.js.map +1 -0
- package/dist/theme/theme-provider/hooks/useTheme.hook.cjs +2 -0
- package/dist/theme/theme-provider/hooks/useTheme.hook.cjs.map +1 -0
- package/dist/theme/theme-provider/hooks/useTheme.hook.js +11 -0
- package/dist/theme/theme-provider/hooks/useTheme.hook.js.map +1 -0
- package/dist/theme/theme-provider/utils/createFlavorValidator.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/createFlavorValidator.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/createFlavorValidator.utils.js +11 -0
- package/dist/theme/theme-provider/utils/createFlavorValidator.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/get-flavor-stylesheet/getFlavorStylesheet.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/get-flavor-stylesheet/getFlavorStylesheet.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/get-flavor-stylesheet/getFlavorStylesheet.utils.js +15 -0
- package/dist/theme/theme-provider/utils/get-flavor-stylesheet/getFlavorStylesheet.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/get-flavor-stylesheet/utils/hashString.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/get-flavor-stylesheet/utils/hashString.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/get-flavor-stylesheet/utils/hashString.utils.js +9 -0
- package/dist/theme/theme-provider/utils/get-flavor-stylesheet/utils/hashString.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/getReferencedFlavors.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/getReferencedFlavors.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/getReferencedFlavors.utils.js +6 -0
- package/dist/theme/theme-provider/utils/getReferencedFlavors.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/getServerSystemTheme.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/getServerSystemTheme.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/getServerSystemTheme.utils.js +5 -0
- package/dist/theme/theme-provider/utils/getServerSystemTheme.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/getSystemTheme.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/getSystemTheme.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/getSystemTheme.utils.js +6 -0
- package/dist/theme/theme-provider/utils/getSystemTheme.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/register-document-scope/registerDocumentScope.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/register-document-scope/registerDocumentScope.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/register-document-scope/registerDocumentScope.utils.js +33 -0
- package/dist/theme/theme-provider/utils/register-document-scope/registerDocumentScope.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/applyDocumentScope.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/applyDocumentScope.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/applyDocumentScope.utils.js +16 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/applyDocumentScope.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/syncAttribute.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/syncAttribute.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/syncAttribute.utils.js +7 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/syncAttribute.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/syncProperty.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/syncProperty.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/syncProperty.utils.js +7 -0
- package/dist/theme/theme-provider/utils/register-document-scope/utils/syncProperty.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/subscribeToNothing.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/subscribeToNothing.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/subscribeToNothing.utils.js +5 -0
- package/dist/theme/theme-provider/utils/subscribeToNothing.utils.js.map +1 -0
- package/dist/theme/theme-provider/utils/subscribeToSystemTheme.utils.cjs +2 -0
- package/dist/theme/theme-provider/utils/subscribeToSystemTheme.utils.cjs.map +1 -0
- package/dist/theme/theme-provider/utils/subscribeToSystemTheme.utils.js +10 -0
- package/dist/theme/theme-provider/utils/subscribeToSystemTheme.utils.js.map +1 -0
- package/dist/theme/tokens/primitives/breakpoints.const.cjs +2 -0
- package/dist/theme/tokens/primitives/breakpoints.const.cjs.map +1 -0
- package/dist/theme/tokens/primitives/breakpoints.const.js +19 -0
- package/dist/theme/tokens/primitives/breakpoints.const.js.map +1 -0
- package/dist/theme/tokens/primitives/palette.const.cjs +2 -0
- package/dist/theme/tokens/primitives/palette.const.cjs.map +1 -0
- package/dist/theme/tokens/primitives/palette.const.js +602 -0
- package/dist/theme/tokens/primitives/palette.const.js.map +1 -0
- package/dist/theme/tokens/primitives/scales.const.cjs +2 -0
- package/dist/theme/tokens/primitives/scales.const.cjs.map +1 -0
- package/dist/theme/tokens/primitives/scales.const.js +125 -0
- package/dist/theme/tokens/primitives/scales.const.js.map +1 -0
- package/dist/theme/tokens/shared/sharedThemeTokens.const.cjs +2 -0
- package/dist/theme/tokens/shared/sharedThemeTokens.const.cjs.map +1 -0
- package/dist/theme/tokens/shared/sharedThemeTokens.const.js +21 -0
- package/dist/theme/tokens/shared/sharedThemeTokens.const.js.map +1 -0
- package/dist/theme/utils/colors/create-accent/constants/index.cjs +2 -0
- package/dist/theme/utils/colors/create-accent/constants/index.cjs.map +1 -0
- package/dist/theme/utils/colors/create-accent/constants/index.js +9 -0
- package/dist/theme/utils/colors/create-accent/constants/index.js.map +1 -0
- package/dist/theme/utils/colors/create-accent/createAccent.utils.cjs +2 -0
- package/dist/theme/utils/colors/create-accent/createAccent.utils.cjs.map +1 -0
- package/dist/theme/utils/colors/create-accent/createAccent.utils.js +23 -0
- package/dist/theme/utils/colors/create-accent/createAccent.utils.js.map +1 -0
- package/dist/theme/utils/colors/mixColors.utils.cjs +2 -0
- package/dist/theme/utils/colors/mixColors.utils.cjs.map +1 -0
- package/dist/theme/utils/colors/mixColors.utils.js +12 -0
- package/dist/theme/utils/colors/mixColors.utils.js.map +1 -0
- package/dist/theme/utils/flavors/collect-flavor-styles/collectFlavorStyles.utils.cjs +2 -0
- package/dist/theme/utils/flavors/collect-flavor-styles/collectFlavorStyles.utils.cjs.map +1 -0
- package/dist/theme/utils/flavors/collect-flavor-styles/collectFlavorStyles.utils.js +24 -0
- package/dist/theme/utils/flavors/collect-flavor-styles/collectFlavorStyles.utils.js.map +1 -0
- package/dist/theme/utils/flavors/constants/index.cjs +2 -0
- package/dist/theme/utils/flavors/constants/index.cjs.map +1 -0
- package/dist/theme/utils/flavors/constants/index.js +6 -0
- package/dist/theme/utils/flavors/constants/index.js.map +1 -0
- package/dist/theme/utils/flavors/createFlavor.utils.cjs +2 -0
- package/dist/theme/utils/flavors/createFlavor.utils.cjs.map +1 -0
- package/dist/theme/utils/flavors/createFlavor.utils.js +20 -0
- package/dist/theme/utils/flavors/createFlavor.utils.js.map +1 -0
- package/dist/theme/utils/flavors/get-flavor-css/getFlavorCss.utils.cjs +3 -0
- package/dist/theme/utils/flavors/get-flavor-css/getFlavorCss.utils.cjs.map +1 -0
- package/dist/theme/utils/flavors/get-flavor-css/getFlavorCss.utils.js +19 -0
- package/dist/theme/utils/flavors/get-flavor-css/getFlavorCss.utils.js.map +1 -0
- package/dist/theme/utils/flavors/get-flavor-css/utils/get-flavor-selectors/getFlavorSelectors.utils.cjs +2 -0
- package/dist/theme/utils/flavors/get-flavor-css/utils/get-flavor-selectors/getFlavorSelectors.utils.cjs.map +1 -0
- package/dist/theme/utils/flavors/get-flavor-css/utils/get-flavor-selectors/getFlavorSelectors.utils.js +13 -0
- package/dist/theme/utils/flavors/get-flavor-css/utils/get-flavor-selectors/getFlavorSelectors.utils.js.map +1 -0
- package/dist/theme/utils/flavors/get-flavor-css/utils/serializeDeclarations.utils.cjs +2 -0
- package/dist/theme/utils/flavors/get-flavor-css/utils/serializeDeclarations.utils.cjs.map +1 -0
- package/dist/theme/utils/flavors/get-flavor-css/utils/serializeDeclarations.utils.js +5 -0
- package/dist/theme/utils/flavors/get-flavor-css/utils/serializeDeclarations.utils.js.map +1 -0
- package/dist/theme/utils/flavors/getFlavorReferenceName.utils.cjs +2 -0
- package/dist/theme/utils/flavors/getFlavorReferenceName.utils.cjs.map +1 -0
- package/dist/theme/utils/flavors/getFlavorReferenceName.utils.js +6 -0
- package/dist/theme/utils/flavors/getFlavorReferenceName.utils.js.map +1 -0
- package/dist/theme/utils/guards/isRecord.utils.cjs +2 -0
- package/dist/theme/utils/guards/isRecord.utils.cjs.map +1 -0
- package/dist/theme/utils/guards/isRecord.utils.js +5 -0
- package/dist/theme/utils/guards/isRecord.utils.js.map +1 -0
- package/dist/theme/utils/server-rendering/get-theme-root-props/getThemeRootProps.utils.cjs +2 -0
- package/dist/theme/utils/server-rendering/get-theme-root-props/getThemeRootProps.utils.cjs.map +1 -0
- package/dist/theme/utils/server-rendering/get-theme-root-props/getThemeRootProps.utils.js +14 -0
- package/dist/theme/utils/server-rendering/get-theme-root-props/getThemeRootProps.utils.js.map +1 -0
- package/dist/theme/utils/tokens/assertCompleteTheme.utils.cjs +2 -0
- package/dist/theme/utils/tokens/assertCompleteTheme.utils.cjs.map +1 -0
- package/dist/theme/utils/tokens/assertCompleteTheme.utils.js +9 -0
- package/dist/theme/utils/tokens/assertCompleteTheme.utils.js.map +1 -0
- package/dist/theme/utils/tokens/collect-token-styles/collectTokenStyles.utils.cjs +2 -0
- package/dist/theme/utils/tokens/collect-token-styles/collectTokenStyles.utils.cjs.map +1 -0
- package/dist/theme/utils/tokens/collect-token-styles/collectTokenStyles.utils.js +25 -0
- package/dist/theme/utils/tokens/collect-token-styles/collectTokenStyles.utils.js.map +1 -0
- package/dist/theme/utils/tokens/create-theme-tokens/createThemeTokens.utils.cjs +2 -0
- package/dist/theme/utils/tokens/create-theme-tokens/createThemeTokens.utils.cjs.map +1 -0
- package/dist/theme/utils/tokens/create-theme-tokens/createThemeTokens.utils.js +12 -0
- package/dist/theme/utils/tokens/create-theme-tokens/createThemeTokens.utils.js.map +1 -0
- package/dist/theme/utils/tokens/create-theme-tokens/utils/mergeTokens.utils.cjs +2 -0
- package/dist/theme/utils/tokens/create-theme-tokens/utils/mergeTokens.utils.cjs.map +1 -0
- package/dist/theme/utils/tokens/create-theme-tokens/utils/mergeTokens.utils.js +9 -0
- package/dist/theme/utils/tokens/create-theme-tokens/utils/mergeTokens.utils.js.map +1 -0
- package/dist/theme/utils/tokens/getSharedTokenStyles.utils.cjs +2 -0
- package/dist/theme/utils/tokens/getSharedTokenStyles.utils.cjs.map +1 -0
- package/dist/theme/utils/tokens/getSharedTokenStyles.utils.js +12 -0
- package/dist/theme/utils/tokens/getSharedTokenStyles.utils.js.map +1 -0
- package/dist/theme/utils/tokens/getThemeTokenStyles.utils.cjs +2 -0
- package/dist/theme/utils/tokens/getThemeTokenStyles.utils.cjs.map +1 -0
- package/dist/theme/utils/tokens/getThemeTokenStyles.utils.js +12 -0
- package/dist/theme/utils/tokens/getThemeTokenStyles.utils.js.map +1 -0
- package/dist/theme/utils/validation/assertFlavorName.utils.cjs +2 -0
- package/dist/theme/utils/validation/assertFlavorName.utils.cjs.map +1 -0
- package/dist/theme/utils/validation/assertFlavorName.utils.js +10 -0
- package/dist/theme/utils/validation/assertFlavorName.utils.js.map +1 -0
- package/dist/theme/utils/validation/assertThemeName.utils.cjs +2 -0
- package/dist/theme/utils/validation/assertThemeName.utils.cjs.map +1 -0
- package/dist/theme/utils/validation/assertThemeName.utils.js +9 -0
- package/dist/theme/utils/validation/assertThemeName.utils.js.map +1 -0
- package/package.json +83 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2743 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
4
|
+
/** Side of a breakpoint: `above` from its width up, `below` under it. */
|
|
5
|
+
export declare type BreakpointDirection = 'above' | 'below';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Viewport widths where layouts may change, named after the smallest device
|
|
9
|
+
* class they start at. CSS variables cannot be read inside media queries, so
|
|
10
|
+
* these values are static constants rather than theme tokens. Phones in
|
|
11
|
+
* portrait are the default layout and need no breakpoint.
|
|
12
|
+
*/
|
|
13
|
+
export declare const breakpoints: {
|
|
14
|
+
/** 480px: large phones and phones in landscape. */
|
|
15
|
+
readonly largePhone: "30rem";
|
|
16
|
+
/** 640px: small tablets and foldables unfolded. */
|
|
17
|
+
readonly smallTablet: "40rem";
|
|
18
|
+
/** 768px: tablets in portrait. */
|
|
19
|
+
readonly tablet: "48rem";
|
|
20
|
+
/** 1024px: tablets in landscape and small laptops. */
|
|
21
|
+
readonly laptop: "64rem";
|
|
22
|
+
/** 1280px: desktops and large laptops. */
|
|
23
|
+
readonly desktop: "80rem";
|
|
24
|
+
/** 1536px: wide desktop monitors. */
|
|
25
|
+
readonly wide: "96rem";
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export declare type BreakpointToken = keyof typeof breakpoints;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* High-contrast flavor: text, foregrounds and links reach 7:1 (WCAG AAA),
|
|
32
|
+
* focus rings, intent borders and the strong borders 4.5:1, over purer
|
|
33
|
+
* backgrounds. Intent text also reaches 7:1 on the subtle fills.
|
|
34
|
+
*
|
|
35
|
+
* Disabled controls, though exempt from WCAG, stay legible and delimited:
|
|
36
|
+
* their text and foregrounds reach 4.5:1 and their border 3:1, while staying
|
|
37
|
+
* achromatic and dimmer than tertiary text and the strong border. Skeleton
|
|
38
|
+
* fills stand out by 1.25:1 from the background, the surfaces and each
|
|
39
|
+
* other, their placeholder icons reach 3:1 on both fills and their border
|
|
40
|
+
* 3:1 on the surfaces. Scrollbar thumbs, opaque, reach 4.5:1 on the
|
|
41
|
+
* background and the surfaces, at rest and hovered.
|
|
42
|
+
*
|
|
43
|
+
* Solid fills are not delimited by their own color: bright fills in light
|
|
44
|
+
* mode and deep fills in dark mode stay close to the page, so outline them
|
|
45
|
+
* with the intent `border` when their edge matters. The focus ring is only
|
|
46
|
+
* measured against the background and surfaces: draw it with
|
|
47
|
+
* `outline-offset` (`vars.focusRing.offset`) so it sits on the surface,
|
|
48
|
+
* never against a solid fill.
|
|
49
|
+
*/
|
|
50
|
+
export declare const contrastFlavor: Readonly<{
|
|
51
|
+
name: FlavorName;
|
|
52
|
+
light: Theme;
|
|
53
|
+
dark: Theme;
|
|
54
|
+
}>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Creates a flavor from a base flavor and the colors it replaces in each
|
|
58
|
+
* mode. Naming it `default` replaces the built-in flavor
|
|
59
|
+
* once registered on a provider.
|
|
60
|
+
*
|
|
61
|
+
* @param options Flavor options.
|
|
62
|
+
* @param options.name Flavor name.
|
|
63
|
+
* @param options.extends Base flavor, `defaultFlavor` when absent; it is not
|
|
64
|
+
* mutated.
|
|
65
|
+
* @param options.light Light mode overrides.
|
|
66
|
+
* @param options.dark Dark mode overrides.
|
|
67
|
+
* @returns A flavor with complete light and dark themes.
|
|
68
|
+
* @throws {TypeError} When the name is invalid, an override is not a color
|
|
69
|
+
* token, or a value is empty or unsafe in a stylesheet.
|
|
70
|
+
*/
|
|
71
|
+
export declare const createFlavor: ({ name, extends: base, light, dark, }: FlavorOptions) => Flavor;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Creates a complete theme from a base theme and partial overrides.
|
|
75
|
+
*
|
|
76
|
+
* @param base Complete theme to extend, spaces included; it is not mutated.
|
|
77
|
+
* @param overrides Deep partial theme tokens, `space` excepted.
|
|
78
|
+
* @returns A new complete theme.
|
|
79
|
+
* @throws {TypeError} When the base is incomplete, the overrides set `space`,
|
|
80
|
+
* or a token is unknown or malformed.
|
|
81
|
+
*/
|
|
82
|
+
export declare const createThemeTokens: (base: Theme, overrides?: ThemeTokenOverrides) => Theme;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Built-in flavor, always available: `styles.css` applies it without any
|
|
86
|
+
* registration. Other flavors extend it by default.
|
|
87
|
+
*/
|
|
88
|
+
export declare const defaultFlavor: {
|
|
89
|
+
name: "default";
|
|
90
|
+
light: {
|
|
91
|
+
readonly space: {
|
|
92
|
+
readonly 0: "0";
|
|
93
|
+
readonly 1: "1px";
|
|
94
|
+
readonly 2: "0.125rem";
|
|
95
|
+
readonly 4: "0.25rem";
|
|
96
|
+
readonly 6: "0.375rem";
|
|
97
|
+
readonly 8: "0.5rem";
|
|
98
|
+
readonly 10: "0.625rem";
|
|
99
|
+
readonly 12: "0.75rem";
|
|
100
|
+
readonly 14: "0.875rem";
|
|
101
|
+
readonly 16: "1rem";
|
|
102
|
+
readonly 18: "1.125rem";
|
|
103
|
+
readonly 20: "1.25rem";
|
|
104
|
+
readonly 24: "1.5rem";
|
|
105
|
+
readonly 28: "1.75rem";
|
|
106
|
+
readonly 32: "2rem";
|
|
107
|
+
readonly 36: "2.25rem";
|
|
108
|
+
readonly 40: "2.5rem";
|
|
109
|
+
readonly 44: "2.75rem";
|
|
110
|
+
readonly 48: "3rem";
|
|
111
|
+
readonly 56: "3.5rem";
|
|
112
|
+
readonly 64: "4rem";
|
|
113
|
+
readonly 80: "5rem";
|
|
114
|
+
readonly 96: "6rem";
|
|
115
|
+
readonly 112: "7rem";
|
|
116
|
+
readonly 128: "8rem";
|
|
117
|
+
};
|
|
118
|
+
readonly radius: {
|
|
119
|
+
readonly none: "0";
|
|
120
|
+
readonly xs: "0.125rem";
|
|
121
|
+
readonly sm: "0.25rem";
|
|
122
|
+
readonly md: "0.375rem";
|
|
123
|
+
readonly lg: "0.5rem";
|
|
124
|
+
readonly xl: "0.75rem";
|
|
125
|
+
readonly '2xl': "1rem";
|
|
126
|
+
readonly '3xl': "1.5rem";
|
|
127
|
+
readonly full: "9999px";
|
|
128
|
+
};
|
|
129
|
+
readonly fontFamily: {
|
|
130
|
+
readonly sans: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
|
|
131
|
+
readonly serif: "ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif";
|
|
132
|
+
readonly mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
133
|
+
};
|
|
134
|
+
readonly fontSize: {
|
|
135
|
+
readonly 10: "0.625rem";
|
|
136
|
+
readonly 12: "0.75rem";
|
|
137
|
+
readonly 14: "0.875rem";
|
|
138
|
+
readonly 16: "1rem";
|
|
139
|
+
readonly 18: "1.125rem";
|
|
140
|
+
readonly 20: "1.25rem";
|
|
141
|
+
readonly 24: "1.5rem";
|
|
142
|
+
readonly 28: "1.75rem";
|
|
143
|
+
readonly 32: "2rem";
|
|
144
|
+
readonly 36: "2.25rem";
|
|
145
|
+
readonly 40: "2.5rem";
|
|
146
|
+
readonly 48: "3rem";
|
|
147
|
+
readonly 60: "3.75rem";
|
|
148
|
+
readonly 72: "4.5rem";
|
|
149
|
+
};
|
|
150
|
+
readonly fontWeight: {
|
|
151
|
+
readonly regular: "400";
|
|
152
|
+
readonly medium: "500";
|
|
153
|
+
readonly semibold: "600";
|
|
154
|
+
readonly bold: "700";
|
|
155
|
+
};
|
|
156
|
+
readonly lineHeight: {
|
|
157
|
+
readonly none: "1";
|
|
158
|
+
readonly tight: "1.2";
|
|
159
|
+
readonly snug: "1.35";
|
|
160
|
+
readonly normal: "1.5";
|
|
161
|
+
readonly relaxed: "1.65";
|
|
162
|
+
};
|
|
163
|
+
readonly letterSpacing: {
|
|
164
|
+
readonly tighter: "-0.02em";
|
|
165
|
+
readonly tight: "-0.01em";
|
|
166
|
+
readonly normal: "0";
|
|
167
|
+
readonly wide: "0.02em";
|
|
168
|
+
readonly wider: "0.05em";
|
|
169
|
+
readonly widest: "0.08em";
|
|
170
|
+
};
|
|
171
|
+
readonly opacity: {
|
|
172
|
+
readonly hidden: "0";
|
|
173
|
+
readonly disabled: "0.48";
|
|
174
|
+
readonly muted: "0.72";
|
|
175
|
+
readonly visible: "1";
|
|
176
|
+
};
|
|
177
|
+
readonly focusRing: {
|
|
178
|
+
readonly width: "2px";
|
|
179
|
+
readonly offset: "2px";
|
|
180
|
+
};
|
|
181
|
+
readonly shadow: {
|
|
182
|
+
readonly none: "none";
|
|
183
|
+
readonly low: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
184
|
+
readonly raised: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
|
|
185
|
+
readonly floating: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
|
|
186
|
+
readonly overlay: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
|
|
187
|
+
readonly modal: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
|
|
188
|
+
};
|
|
189
|
+
readonly dropShadow: {
|
|
190
|
+
readonly none: "none";
|
|
191
|
+
readonly low: "drop-shadow(0 1px 2px rgb(0 0 0 / 0.05))";
|
|
192
|
+
readonly raised: "drop-shadow(0 1px 3px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.1))";
|
|
193
|
+
readonly floating: "drop-shadow(0 4px 6px rgb(0 0 0 / 0.1)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.1))";
|
|
194
|
+
readonly overlay: "drop-shadow(0 10px 15px rgb(0 0 0 / 0.1)) drop-shadow(0 4px 6px rgb(0 0 0 / 0.1))";
|
|
195
|
+
readonly modal: "drop-shadow(0 20px 25px rgb(0 0 0 / 0.1)) drop-shadow(0 8px 10px rgb(0 0 0 / 0.1))";
|
|
196
|
+
};
|
|
197
|
+
readonly zIndex: {
|
|
198
|
+
readonly hide: "-1";
|
|
199
|
+
readonly base: "0";
|
|
200
|
+
readonly docked: "10";
|
|
201
|
+
readonly sticky: "100";
|
|
202
|
+
readonly banner: "200";
|
|
203
|
+
readonly overlay: "1100";
|
|
204
|
+
readonly modal: "1200";
|
|
205
|
+
readonly dropdown: "1250";
|
|
206
|
+
readonly popover: "1300";
|
|
207
|
+
readonly toast: "1350";
|
|
208
|
+
readonly tooltip: "1400";
|
|
209
|
+
};
|
|
210
|
+
readonly duration: {
|
|
211
|
+
readonly instant: "0ms";
|
|
212
|
+
readonly fast: "120ms";
|
|
213
|
+
readonly normal: "180ms";
|
|
214
|
+
readonly slow: "240ms";
|
|
215
|
+
readonly slower: "320ms";
|
|
216
|
+
};
|
|
217
|
+
readonly easing: {
|
|
218
|
+
readonly linear: "linear";
|
|
219
|
+
readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
|
|
220
|
+
readonly in: "cubic-bezier(0.4, 0, 1, 1)";
|
|
221
|
+
readonly out: "cubic-bezier(0, 0, 0.2, 1)";
|
|
222
|
+
readonly inOut: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
223
|
+
readonly overshoot: "cubic-bezier(0.2, 0, 0, 1.2)";
|
|
224
|
+
};
|
|
225
|
+
readonly color: {
|
|
226
|
+
readonly primary: Readonly<{
|
|
227
|
+
main: string;
|
|
228
|
+
hover: string;
|
|
229
|
+
pressed: string;
|
|
230
|
+
foreground: string;
|
|
231
|
+
subtle: string;
|
|
232
|
+
subtleHover: string;
|
|
233
|
+
subtlePressed: string;
|
|
234
|
+
subtleForeground: string;
|
|
235
|
+
text: string;
|
|
236
|
+
border: string;
|
|
237
|
+
subtleBorder: string;
|
|
238
|
+
}>;
|
|
239
|
+
readonly secondary: Readonly<{
|
|
240
|
+
main: string;
|
|
241
|
+
hover: string;
|
|
242
|
+
pressed: string;
|
|
243
|
+
foreground: string;
|
|
244
|
+
subtle: string;
|
|
245
|
+
subtleHover: string;
|
|
246
|
+
subtlePressed: string;
|
|
247
|
+
subtleForeground: string;
|
|
248
|
+
text: string;
|
|
249
|
+
border: string;
|
|
250
|
+
subtleBorder: string;
|
|
251
|
+
}>;
|
|
252
|
+
readonly neutral: {
|
|
253
|
+
readonly main: "#15181d";
|
|
254
|
+
readonly hover: "#25282e";
|
|
255
|
+
readonly pressed: "#3b3e44";
|
|
256
|
+
readonly foreground: "#ffffff";
|
|
257
|
+
readonly subtle: "#eeeff0";
|
|
258
|
+
readonly subtleHover: "#e3e4e7";
|
|
259
|
+
readonly subtlePressed: "#d6d8dc";
|
|
260
|
+
readonly subtleForeground: "#15181d";
|
|
261
|
+
readonly text: "#3b3e44";
|
|
262
|
+
readonly border: "#c8cacf";
|
|
263
|
+
readonly subtleBorder: "#d6d8dc";
|
|
264
|
+
};
|
|
265
|
+
readonly success: Readonly<{
|
|
266
|
+
main: string;
|
|
267
|
+
hover: string;
|
|
268
|
+
pressed: string;
|
|
269
|
+
foreground: string;
|
|
270
|
+
subtle: string;
|
|
271
|
+
subtleHover: string;
|
|
272
|
+
subtlePressed: string;
|
|
273
|
+
subtleForeground: string;
|
|
274
|
+
text: string;
|
|
275
|
+
border: string;
|
|
276
|
+
subtleBorder: string;
|
|
277
|
+
}>;
|
|
278
|
+
readonly warning: Readonly<{
|
|
279
|
+
main: string;
|
|
280
|
+
hover: string;
|
|
281
|
+
pressed: string;
|
|
282
|
+
foreground: string;
|
|
283
|
+
subtle: string;
|
|
284
|
+
subtleHover: string;
|
|
285
|
+
subtlePressed: string;
|
|
286
|
+
subtleForeground: string;
|
|
287
|
+
text: string;
|
|
288
|
+
border: string;
|
|
289
|
+
subtleBorder: string;
|
|
290
|
+
}>;
|
|
291
|
+
readonly info: Readonly<{
|
|
292
|
+
main: string;
|
|
293
|
+
hover: string;
|
|
294
|
+
pressed: string;
|
|
295
|
+
foreground: string;
|
|
296
|
+
subtle: string;
|
|
297
|
+
subtleHover: string;
|
|
298
|
+
subtlePressed: string;
|
|
299
|
+
subtleForeground: string;
|
|
300
|
+
text: string;
|
|
301
|
+
border: string;
|
|
302
|
+
subtleBorder: string;
|
|
303
|
+
}>;
|
|
304
|
+
readonly danger: Readonly<{
|
|
305
|
+
main: string;
|
|
306
|
+
hover: string;
|
|
307
|
+
pressed: string;
|
|
308
|
+
foreground: string;
|
|
309
|
+
subtle: string;
|
|
310
|
+
subtleHover: string;
|
|
311
|
+
subtlePressed: string;
|
|
312
|
+
subtleForeground: string;
|
|
313
|
+
text: string;
|
|
314
|
+
border: string;
|
|
315
|
+
subtleBorder: string;
|
|
316
|
+
}>;
|
|
317
|
+
readonly accentOrange: Readonly<{
|
|
318
|
+
main: string;
|
|
319
|
+
hover: string;
|
|
320
|
+
pressed: string;
|
|
321
|
+
foreground: string;
|
|
322
|
+
subtle: string;
|
|
323
|
+
subtleHover: string;
|
|
324
|
+
subtlePressed: string;
|
|
325
|
+
subtleForeground: string;
|
|
326
|
+
text: string;
|
|
327
|
+
border: string;
|
|
328
|
+
subtleBorder: string;
|
|
329
|
+
}>;
|
|
330
|
+
readonly accentYellow: Readonly<{
|
|
331
|
+
main: string;
|
|
332
|
+
hover: string;
|
|
333
|
+
pressed: string;
|
|
334
|
+
foreground: string;
|
|
335
|
+
subtle: string;
|
|
336
|
+
subtleHover: string;
|
|
337
|
+
subtlePressed: string;
|
|
338
|
+
subtleForeground: string;
|
|
339
|
+
text: string;
|
|
340
|
+
border: string;
|
|
341
|
+
subtleBorder: string;
|
|
342
|
+
}>;
|
|
343
|
+
readonly accentLime: Readonly<{
|
|
344
|
+
main: string;
|
|
345
|
+
hover: string;
|
|
346
|
+
pressed: string;
|
|
347
|
+
foreground: string;
|
|
348
|
+
subtle: string;
|
|
349
|
+
subtleHover: string;
|
|
350
|
+
subtlePressed: string;
|
|
351
|
+
subtleForeground: string;
|
|
352
|
+
text: string;
|
|
353
|
+
border: string;
|
|
354
|
+
subtleBorder: string;
|
|
355
|
+
}>;
|
|
356
|
+
readonly accentCyan: Readonly<{
|
|
357
|
+
main: string;
|
|
358
|
+
hover: string;
|
|
359
|
+
pressed: string;
|
|
360
|
+
foreground: string;
|
|
361
|
+
subtle: string;
|
|
362
|
+
subtleHover: string;
|
|
363
|
+
subtlePressed: string;
|
|
364
|
+
subtleForeground: string;
|
|
365
|
+
text: string;
|
|
366
|
+
border: string;
|
|
367
|
+
subtleBorder: string;
|
|
368
|
+
}>;
|
|
369
|
+
readonly accentPurple: Readonly<{
|
|
370
|
+
main: string;
|
|
371
|
+
hover: string;
|
|
372
|
+
pressed: string;
|
|
373
|
+
foreground: string;
|
|
374
|
+
subtle: string;
|
|
375
|
+
subtleHover: string;
|
|
376
|
+
subtlePressed: string;
|
|
377
|
+
subtleForeground: string;
|
|
378
|
+
text: string;
|
|
379
|
+
border: string;
|
|
380
|
+
subtleBorder: string;
|
|
381
|
+
}>;
|
|
382
|
+
readonly accentPink: Readonly<{
|
|
383
|
+
main: string;
|
|
384
|
+
hover: string;
|
|
385
|
+
pressed: string;
|
|
386
|
+
foreground: string;
|
|
387
|
+
subtle: string;
|
|
388
|
+
subtleHover: string;
|
|
389
|
+
subtlePressed: string;
|
|
390
|
+
subtleForeground: string;
|
|
391
|
+
text: string;
|
|
392
|
+
border: string;
|
|
393
|
+
subtleBorder: string;
|
|
394
|
+
}>;
|
|
395
|
+
readonly currentColor: "currentColor";
|
|
396
|
+
readonly transparent: "transparent";
|
|
397
|
+
readonly background: "#f9f9fa";
|
|
398
|
+
readonly overlay: "rgb(11 13 18 / 0.48)";
|
|
399
|
+
readonly focusRing: "#7265f9";
|
|
400
|
+
readonly text: {
|
|
401
|
+
readonly primary: "#0b0d12";
|
|
402
|
+
readonly secondary: "#474a51";
|
|
403
|
+
readonly tertiary: "#61656c";
|
|
404
|
+
};
|
|
405
|
+
readonly surface: {
|
|
406
|
+
readonly main: "#ffffff";
|
|
407
|
+
readonly foreground: "#0b0d12";
|
|
408
|
+
readonly elevated: "#ffffff";
|
|
409
|
+
readonly elevatedForeground: "#0b0d12";
|
|
410
|
+
readonly muted: "#f3f4f5";
|
|
411
|
+
readonly mutedForeground: "#53575d";
|
|
412
|
+
readonly inverse: "#15181d";
|
|
413
|
+
readonly inverseForeground: "#f3f4f5";
|
|
414
|
+
};
|
|
415
|
+
readonly link: {
|
|
416
|
+
readonly main: "#5d4cda";
|
|
417
|
+
readonly hover: "#4a35ba";
|
|
418
|
+
readonly pressed: "#381e9a";
|
|
419
|
+
};
|
|
420
|
+
readonly border: {
|
|
421
|
+
readonly subtle: "#eeeff0";
|
|
422
|
+
readonly muted: "#e3e4e7";
|
|
423
|
+
readonly main: "#d6d8dc";
|
|
424
|
+
readonly strong: "#b8bbc1";
|
|
425
|
+
readonly stronger: "#7f838a";
|
|
426
|
+
};
|
|
427
|
+
readonly disabled: {
|
|
428
|
+
readonly main: "rgb(11 13 18 / 0.08)";
|
|
429
|
+
readonly foreground: "#92969d";
|
|
430
|
+
readonly subtle: "rgb(11 13 18 / 0.04)";
|
|
431
|
+
readonly subtleForeground: "#92969d";
|
|
432
|
+
readonly text: "#92969d";
|
|
433
|
+
readonly border: "rgb(11 13 18 / 0.1)";
|
|
434
|
+
};
|
|
435
|
+
readonly highlight: {
|
|
436
|
+
readonly main: "#fff0b1";
|
|
437
|
+
readonly foreground: "#0b0d12";
|
|
438
|
+
};
|
|
439
|
+
readonly skeleton: {
|
|
440
|
+
readonly base: "rgb(11 13 18 / 0.1)";
|
|
441
|
+
readonly highlight: "rgb(11 13 18 / 0.04)";
|
|
442
|
+
readonly foreground: "#a5a9af";
|
|
443
|
+
readonly border: "rgb(11 13 18 / 0.1)";
|
|
444
|
+
};
|
|
445
|
+
readonly scrollbar: {
|
|
446
|
+
readonly thumb: "rgb(11 13 18 / 0.46)";
|
|
447
|
+
readonly thumbHover: "rgb(11 13 18 / 0.62)";
|
|
448
|
+
readonly track: "transparent";
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
dark: {
|
|
453
|
+
readonly space: {
|
|
454
|
+
readonly 0: "0";
|
|
455
|
+
readonly 1: "1px";
|
|
456
|
+
readonly 2: "0.125rem";
|
|
457
|
+
readonly 4: "0.25rem";
|
|
458
|
+
readonly 6: "0.375rem";
|
|
459
|
+
readonly 8: "0.5rem";
|
|
460
|
+
readonly 10: "0.625rem";
|
|
461
|
+
readonly 12: "0.75rem";
|
|
462
|
+
readonly 14: "0.875rem";
|
|
463
|
+
readonly 16: "1rem";
|
|
464
|
+
readonly 18: "1.125rem";
|
|
465
|
+
readonly 20: "1.25rem";
|
|
466
|
+
readonly 24: "1.5rem";
|
|
467
|
+
readonly 28: "1.75rem";
|
|
468
|
+
readonly 32: "2rem";
|
|
469
|
+
readonly 36: "2.25rem";
|
|
470
|
+
readonly 40: "2.5rem";
|
|
471
|
+
readonly 44: "2.75rem";
|
|
472
|
+
readonly 48: "3rem";
|
|
473
|
+
readonly 56: "3.5rem";
|
|
474
|
+
readonly 64: "4rem";
|
|
475
|
+
readonly 80: "5rem";
|
|
476
|
+
readonly 96: "6rem";
|
|
477
|
+
readonly 112: "7rem";
|
|
478
|
+
readonly 128: "8rem";
|
|
479
|
+
};
|
|
480
|
+
readonly radius: {
|
|
481
|
+
readonly none: "0";
|
|
482
|
+
readonly xs: "0.125rem";
|
|
483
|
+
readonly sm: "0.25rem";
|
|
484
|
+
readonly md: "0.375rem";
|
|
485
|
+
readonly lg: "0.5rem";
|
|
486
|
+
readonly xl: "0.75rem";
|
|
487
|
+
readonly '2xl': "1rem";
|
|
488
|
+
readonly '3xl': "1.5rem";
|
|
489
|
+
readonly full: "9999px";
|
|
490
|
+
};
|
|
491
|
+
readonly fontFamily: {
|
|
492
|
+
readonly sans: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
|
|
493
|
+
readonly serif: "ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif";
|
|
494
|
+
readonly mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
495
|
+
};
|
|
496
|
+
readonly fontSize: {
|
|
497
|
+
readonly 10: "0.625rem";
|
|
498
|
+
readonly 12: "0.75rem";
|
|
499
|
+
readonly 14: "0.875rem";
|
|
500
|
+
readonly 16: "1rem";
|
|
501
|
+
readonly 18: "1.125rem";
|
|
502
|
+
readonly 20: "1.25rem";
|
|
503
|
+
readonly 24: "1.5rem";
|
|
504
|
+
readonly 28: "1.75rem";
|
|
505
|
+
readonly 32: "2rem";
|
|
506
|
+
readonly 36: "2.25rem";
|
|
507
|
+
readonly 40: "2.5rem";
|
|
508
|
+
readonly 48: "3rem";
|
|
509
|
+
readonly 60: "3.75rem";
|
|
510
|
+
readonly 72: "4.5rem";
|
|
511
|
+
};
|
|
512
|
+
readonly fontWeight: {
|
|
513
|
+
readonly regular: "400";
|
|
514
|
+
readonly medium: "500";
|
|
515
|
+
readonly semibold: "600";
|
|
516
|
+
readonly bold: "700";
|
|
517
|
+
};
|
|
518
|
+
readonly lineHeight: {
|
|
519
|
+
readonly none: "1";
|
|
520
|
+
readonly tight: "1.2";
|
|
521
|
+
readonly snug: "1.35";
|
|
522
|
+
readonly normal: "1.5";
|
|
523
|
+
readonly relaxed: "1.65";
|
|
524
|
+
};
|
|
525
|
+
readonly letterSpacing: {
|
|
526
|
+
readonly tighter: "-0.02em";
|
|
527
|
+
readonly tight: "-0.01em";
|
|
528
|
+
readonly normal: "0";
|
|
529
|
+
readonly wide: "0.02em";
|
|
530
|
+
readonly wider: "0.05em";
|
|
531
|
+
readonly widest: "0.08em";
|
|
532
|
+
};
|
|
533
|
+
readonly opacity: {
|
|
534
|
+
readonly hidden: "0";
|
|
535
|
+
readonly disabled: "0.48";
|
|
536
|
+
readonly muted: "0.72";
|
|
537
|
+
readonly visible: "1";
|
|
538
|
+
};
|
|
539
|
+
readonly focusRing: {
|
|
540
|
+
readonly width: "2px";
|
|
541
|
+
readonly offset: "2px";
|
|
542
|
+
};
|
|
543
|
+
readonly shadow: {
|
|
544
|
+
readonly none: "none";
|
|
545
|
+
readonly low: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
546
|
+
readonly raised: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
|
|
547
|
+
readonly floating: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
|
|
548
|
+
readonly overlay: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
|
|
549
|
+
readonly modal: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
|
|
550
|
+
};
|
|
551
|
+
readonly dropShadow: {
|
|
552
|
+
readonly none: "none";
|
|
553
|
+
readonly low: "drop-shadow(0 1px 2px rgb(0 0 0 / 0.05))";
|
|
554
|
+
readonly raised: "drop-shadow(0 1px 3px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.1))";
|
|
555
|
+
readonly floating: "drop-shadow(0 4px 6px rgb(0 0 0 / 0.1)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.1))";
|
|
556
|
+
readonly overlay: "drop-shadow(0 10px 15px rgb(0 0 0 / 0.1)) drop-shadow(0 4px 6px rgb(0 0 0 / 0.1))";
|
|
557
|
+
readonly modal: "drop-shadow(0 20px 25px rgb(0 0 0 / 0.1)) drop-shadow(0 8px 10px rgb(0 0 0 / 0.1))";
|
|
558
|
+
};
|
|
559
|
+
readonly zIndex: {
|
|
560
|
+
readonly hide: "-1";
|
|
561
|
+
readonly base: "0";
|
|
562
|
+
readonly docked: "10";
|
|
563
|
+
readonly sticky: "100";
|
|
564
|
+
readonly banner: "200";
|
|
565
|
+
readonly overlay: "1100";
|
|
566
|
+
readonly modal: "1200";
|
|
567
|
+
readonly dropdown: "1250";
|
|
568
|
+
readonly popover: "1300";
|
|
569
|
+
readonly toast: "1350";
|
|
570
|
+
readonly tooltip: "1400";
|
|
571
|
+
};
|
|
572
|
+
readonly duration: {
|
|
573
|
+
readonly instant: "0ms";
|
|
574
|
+
readonly fast: "120ms";
|
|
575
|
+
readonly normal: "180ms";
|
|
576
|
+
readonly slow: "240ms";
|
|
577
|
+
readonly slower: "320ms";
|
|
578
|
+
};
|
|
579
|
+
readonly easing: {
|
|
580
|
+
readonly linear: "linear";
|
|
581
|
+
readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
|
|
582
|
+
readonly in: "cubic-bezier(0.4, 0, 1, 1)";
|
|
583
|
+
readonly out: "cubic-bezier(0, 0, 0.2, 1)";
|
|
584
|
+
readonly inOut: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
585
|
+
readonly overshoot: "cubic-bezier(0.2, 0, 0, 1.2)";
|
|
586
|
+
};
|
|
587
|
+
readonly color: {
|
|
588
|
+
readonly primary: Readonly<{
|
|
589
|
+
main: string;
|
|
590
|
+
hover: string;
|
|
591
|
+
pressed: string;
|
|
592
|
+
foreground: string;
|
|
593
|
+
subtle: string;
|
|
594
|
+
subtleHover: string;
|
|
595
|
+
subtlePressed: string;
|
|
596
|
+
subtleForeground: string;
|
|
597
|
+
text: string;
|
|
598
|
+
border: string;
|
|
599
|
+
subtleBorder: string;
|
|
600
|
+
}>;
|
|
601
|
+
readonly secondary: Readonly<{
|
|
602
|
+
main: string;
|
|
603
|
+
hover: string;
|
|
604
|
+
pressed: string;
|
|
605
|
+
foreground: string;
|
|
606
|
+
subtle: string;
|
|
607
|
+
subtleHover: string;
|
|
608
|
+
subtlePressed: string;
|
|
609
|
+
subtleForeground: string;
|
|
610
|
+
text: string;
|
|
611
|
+
border: string;
|
|
612
|
+
subtleBorder: string;
|
|
613
|
+
}>;
|
|
614
|
+
readonly neutral: {
|
|
615
|
+
readonly main: "#f4f4f4";
|
|
616
|
+
readonly hover: "#e4e4e4";
|
|
617
|
+
readonly pressed: "#cacaca";
|
|
618
|
+
readonly foreground: "#0d0d0d";
|
|
619
|
+
readonly subtle: "#333333";
|
|
620
|
+
readonly subtleHover: "#3e3e3e";
|
|
621
|
+
readonly subtlePressed: "#4a4a4a";
|
|
622
|
+
readonly subtleForeground: "#f4f4f4";
|
|
623
|
+
readonly text: "#bbbbbb";
|
|
624
|
+
readonly border: "#656565";
|
|
625
|
+
readonly subtleBorder: "#4a4a4a";
|
|
626
|
+
};
|
|
627
|
+
readonly success: Readonly<{
|
|
628
|
+
main: string;
|
|
629
|
+
hover: string;
|
|
630
|
+
pressed: string;
|
|
631
|
+
foreground: string;
|
|
632
|
+
subtle: string;
|
|
633
|
+
subtleHover: string;
|
|
634
|
+
subtlePressed: string;
|
|
635
|
+
subtleForeground: string;
|
|
636
|
+
text: string;
|
|
637
|
+
border: string;
|
|
638
|
+
subtleBorder: string;
|
|
639
|
+
}>;
|
|
640
|
+
readonly warning: Readonly<{
|
|
641
|
+
main: string;
|
|
642
|
+
hover: string;
|
|
643
|
+
pressed: string;
|
|
644
|
+
foreground: string;
|
|
645
|
+
subtle: string;
|
|
646
|
+
subtleHover: string;
|
|
647
|
+
subtlePressed: string;
|
|
648
|
+
subtleForeground: string;
|
|
649
|
+
text: string;
|
|
650
|
+
border: string;
|
|
651
|
+
subtleBorder: string;
|
|
652
|
+
}>;
|
|
653
|
+
readonly info: Readonly<{
|
|
654
|
+
main: string;
|
|
655
|
+
hover: string;
|
|
656
|
+
pressed: string;
|
|
657
|
+
foreground: string;
|
|
658
|
+
subtle: string;
|
|
659
|
+
subtleHover: string;
|
|
660
|
+
subtlePressed: string;
|
|
661
|
+
subtleForeground: string;
|
|
662
|
+
text: string;
|
|
663
|
+
border: string;
|
|
664
|
+
subtleBorder: string;
|
|
665
|
+
}>;
|
|
666
|
+
readonly danger: Readonly<{
|
|
667
|
+
main: string;
|
|
668
|
+
hover: string;
|
|
669
|
+
pressed: string;
|
|
670
|
+
foreground: string;
|
|
671
|
+
subtle: string;
|
|
672
|
+
subtleHover: string;
|
|
673
|
+
subtlePressed: string;
|
|
674
|
+
subtleForeground: string;
|
|
675
|
+
text: string;
|
|
676
|
+
border: string;
|
|
677
|
+
subtleBorder: string;
|
|
678
|
+
}>;
|
|
679
|
+
readonly accentOrange: Readonly<{
|
|
680
|
+
main: string;
|
|
681
|
+
hover: string;
|
|
682
|
+
pressed: string;
|
|
683
|
+
foreground: string;
|
|
684
|
+
subtle: string;
|
|
685
|
+
subtleHover: string;
|
|
686
|
+
subtlePressed: string;
|
|
687
|
+
subtleForeground: string;
|
|
688
|
+
text: string;
|
|
689
|
+
border: string;
|
|
690
|
+
subtleBorder: string;
|
|
691
|
+
}>;
|
|
692
|
+
readonly accentYellow: Readonly<{
|
|
693
|
+
main: string;
|
|
694
|
+
hover: string;
|
|
695
|
+
pressed: string;
|
|
696
|
+
foreground: string;
|
|
697
|
+
subtle: string;
|
|
698
|
+
subtleHover: string;
|
|
699
|
+
subtlePressed: string;
|
|
700
|
+
subtleForeground: string;
|
|
701
|
+
text: string;
|
|
702
|
+
border: string;
|
|
703
|
+
subtleBorder: string;
|
|
704
|
+
}>;
|
|
705
|
+
readonly accentLime: Readonly<{
|
|
706
|
+
main: string;
|
|
707
|
+
hover: string;
|
|
708
|
+
pressed: string;
|
|
709
|
+
foreground: string;
|
|
710
|
+
subtle: string;
|
|
711
|
+
subtleHover: string;
|
|
712
|
+
subtlePressed: string;
|
|
713
|
+
subtleForeground: string;
|
|
714
|
+
text: string;
|
|
715
|
+
border: string;
|
|
716
|
+
subtleBorder: string;
|
|
717
|
+
}>;
|
|
718
|
+
readonly accentCyan: Readonly<{
|
|
719
|
+
main: string;
|
|
720
|
+
hover: string;
|
|
721
|
+
pressed: string;
|
|
722
|
+
foreground: string;
|
|
723
|
+
subtle: string;
|
|
724
|
+
subtleHover: string;
|
|
725
|
+
subtlePressed: string;
|
|
726
|
+
subtleForeground: string;
|
|
727
|
+
text: string;
|
|
728
|
+
border: string;
|
|
729
|
+
subtleBorder: string;
|
|
730
|
+
}>;
|
|
731
|
+
readonly accentPurple: Readonly<{
|
|
732
|
+
main: string;
|
|
733
|
+
hover: string;
|
|
734
|
+
pressed: string;
|
|
735
|
+
foreground: string;
|
|
736
|
+
subtle: string;
|
|
737
|
+
subtleHover: string;
|
|
738
|
+
subtlePressed: string;
|
|
739
|
+
subtleForeground: string;
|
|
740
|
+
text: string;
|
|
741
|
+
border: string;
|
|
742
|
+
subtleBorder: string;
|
|
743
|
+
}>;
|
|
744
|
+
readonly accentPink: Readonly<{
|
|
745
|
+
main: string;
|
|
746
|
+
hover: string;
|
|
747
|
+
pressed: string;
|
|
748
|
+
foreground: string;
|
|
749
|
+
subtle: string;
|
|
750
|
+
subtleHover: string;
|
|
751
|
+
subtlePressed: string;
|
|
752
|
+
subtleForeground: string;
|
|
753
|
+
text: string;
|
|
754
|
+
border: string;
|
|
755
|
+
subtleBorder: string;
|
|
756
|
+
}>;
|
|
757
|
+
readonly currentColor: "currentColor";
|
|
758
|
+
readonly transparent: "transparent";
|
|
759
|
+
readonly background: "#181818";
|
|
760
|
+
readonly overlay: "rgb(0 0 0 / 0.64)";
|
|
761
|
+
readonly focusRing: "#8a87ff";
|
|
762
|
+
readonly text: {
|
|
763
|
+
readonly primary: "#f4f4f4";
|
|
764
|
+
readonly secondary: "#bbbbbb";
|
|
765
|
+
readonly tertiary: "#a9a9a9";
|
|
766
|
+
};
|
|
767
|
+
readonly surface: {
|
|
768
|
+
readonly main: "#202020";
|
|
769
|
+
readonly foreground: "#f4f4f4";
|
|
770
|
+
readonly elevated: "#282828";
|
|
771
|
+
readonly elevatedForeground: "#f4f4f4";
|
|
772
|
+
readonly muted: "#333333";
|
|
773
|
+
readonly mutedForeground: "#a9a9a9";
|
|
774
|
+
readonly inverse: "#f4f4f4";
|
|
775
|
+
readonly inverseForeground: "#0d0d0d";
|
|
776
|
+
};
|
|
777
|
+
readonly link: {
|
|
778
|
+
readonly main: "#a6a8ff";
|
|
779
|
+
readonly hover: "#c4c7ff";
|
|
780
|
+
readonly pressed: "#9898ff";
|
|
781
|
+
};
|
|
782
|
+
readonly border: {
|
|
783
|
+
readonly subtle: "#282828";
|
|
784
|
+
readonly muted: "#333333";
|
|
785
|
+
readonly main: "#3e3e3e";
|
|
786
|
+
readonly strong: "#575757";
|
|
787
|
+
readonly stronger: "#969696";
|
|
788
|
+
};
|
|
789
|
+
readonly disabled: {
|
|
790
|
+
readonly main: "rgb(255 255 255 / 0.06)";
|
|
791
|
+
readonly foreground: "#737373";
|
|
792
|
+
readonly subtle: "rgb(255 255 255 / 0.03)";
|
|
793
|
+
readonly subtleForeground: "#737373";
|
|
794
|
+
readonly text: "#737373";
|
|
795
|
+
readonly border: "rgb(255 255 255 / 0.08)";
|
|
796
|
+
};
|
|
797
|
+
readonly highlight: {
|
|
798
|
+
readonly main: "#7e6b02";
|
|
799
|
+
readonly foreground: "#f4f4f4";
|
|
800
|
+
};
|
|
801
|
+
readonly skeleton: {
|
|
802
|
+
readonly base: "rgb(255 255 255 / 0.05)";
|
|
803
|
+
readonly highlight: "rgb(255 255 255 / 0.1)";
|
|
804
|
+
readonly foreground: "#656565";
|
|
805
|
+
readonly border: "rgb(255 255 255 / 0.08)";
|
|
806
|
+
};
|
|
807
|
+
readonly scrollbar: {
|
|
808
|
+
readonly thumb: "rgb(255 255 255 / 0.38)";
|
|
809
|
+
readonly thumbHover: "rgb(255 255 255 / 0.54)";
|
|
810
|
+
readonly track: "transparent";
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
/** Flavor used when none is given: the built-in colors of the library. */
|
|
817
|
+
declare const defaultFlavorName = "default";
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Light theme of the default flavor; its shape defines the theme contract.
|
|
821
|
+
* Disabled and skeleton fills and borders are translucent veils of ink
|
|
822
|
+
* (`gray[950]`), so they darken whatever surface they sit on and stay visible
|
|
823
|
+
* on the background and every surface; their text and icons stay opaque.
|
|
824
|
+
*/
|
|
825
|
+
declare const defaultLightTheme: {
|
|
826
|
+
readonly space: {
|
|
827
|
+
readonly 0: "0";
|
|
828
|
+
readonly 1: "1px";
|
|
829
|
+
readonly 2: "0.125rem";
|
|
830
|
+
readonly 4: "0.25rem";
|
|
831
|
+
readonly 6: "0.375rem";
|
|
832
|
+
readonly 8: "0.5rem";
|
|
833
|
+
readonly 10: "0.625rem";
|
|
834
|
+
readonly 12: "0.75rem";
|
|
835
|
+
readonly 14: "0.875rem";
|
|
836
|
+
readonly 16: "1rem";
|
|
837
|
+
readonly 18: "1.125rem";
|
|
838
|
+
readonly 20: "1.25rem";
|
|
839
|
+
readonly 24: "1.5rem";
|
|
840
|
+
readonly 28: "1.75rem";
|
|
841
|
+
readonly 32: "2rem";
|
|
842
|
+
readonly 36: "2.25rem";
|
|
843
|
+
readonly 40: "2.5rem";
|
|
844
|
+
readonly 44: "2.75rem";
|
|
845
|
+
readonly 48: "3rem";
|
|
846
|
+
readonly 56: "3.5rem";
|
|
847
|
+
readonly 64: "4rem";
|
|
848
|
+
readonly 80: "5rem";
|
|
849
|
+
readonly 96: "6rem";
|
|
850
|
+
readonly 112: "7rem";
|
|
851
|
+
readonly 128: "8rem";
|
|
852
|
+
};
|
|
853
|
+
readonly radius: {
|
|
854
|
+
readonly none: "0";
|
|
855
|
+
readonly xs: "0.125rem";
|
|
856
|
+
readonly sm: "0.25rem";
|
|
857
|
+
readonly md: "0.375rem";
|
|
858
|
+
readonly lg: "0.5rem";
|
|
859
|
+
readonly xl: "0.75rem";
|
|
860
|
+
readonly '2xl': "1rem";
|
|
861
|
+
readonly '3xl': "1.5rem";
|
|
862
|
+
readonly full: "9999px";
|
|
863
|
+
};
|
|
864
|
+
readonly fontFamily: {
|
|
865
|
+
readonly sans: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
|
|
866
|
+
readonly serif: "ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif";
|
|
867
|
+
readonly mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
868
|
+
};
|
|
869
|
+
readonly fontSize: {
|
|
870
|
+
readonly 10: "0.625rem";
|
|
871
|
+
readonly 12: "0.75rem";
|
|
872
|
+
readonly 14: "0.875rem";
|
|
873
|
+
readonly 16: "1rem";
|
|
874
|
+
readonly 18: "1.125rem";
|
|
875
|
+
readonly 20: "1.25rem";
|
|
876
|
+
readonly 24: "1.5rem";
|
|
877
|
+
readonly 28: "1.75rem";
|
|
878
|
+
readonly 32: "2rem";
|
|
879
|
+
readonly 36: "2.25rem";
|
|
880
|
+
readonly 40: "2.5rem";
|
|
881
|
+
readonly 48: "3rem";
|
|
882
|
+
readonly 60: "3.75rem";
|
|
883
|
+
readonly 72: "4.5rem";
|
|
884
|
+
};
|
|
885
|
+
readonly fontWeight: {
|
|
886
|
+
readonly regular: "400";
|
|
887
|
+
readonly medium: "500";
|
|
888
|
+
readonly semibold: "600";
|
|
889
|
+
readonly bold: "700";
|
|
890
|
+
};
|
|
891
|
+
readonly lineHeight: {
|
|
892
|
+
readonly none: "1";
|
|
893
|
+
readonly tight: "1.2";
|
|
894
|
+
readonly snug: "1.35";
|
|
895
|
+
readonly normal: "1.5";
|
|
896
|
+
readonly relaxed: "1.65";
|
|
897
|
+
};
|
|
898
|
+
readonly letterSpacing: {
|
|
899
|
+
readonly tighter: "-0.02em";
|
|
900
|
+
readonly tight: "-0.01em";
|
|
901
|
+
readonly normal: "0";
|
|
902
|
+
readonly wide: "0.02em";
|
|
903
|
+
readonly wider: "0.05em";
|
|
904
|
+
readonly widest: "0.08em";
|
|
905
|
+
};
|
|
906
|
+
readonly opacity: {
|
|
907
|
+
readonly hidden: "0";
|
|
908
|
+
readonly disabled: "0.48";
|
|
909
|
+
readonly muted: "0.72";
|
|
910
|
+
readonly visible: "1";
|
|
911
|
+
};
|
|
912
|
+
readonly focusRing: {
|
|
913
|
+
readonly width: "2px";
|
|
914
|
+
readonly offset: "2px";
|
|
915
|
+
};
|
|
916
|
+
readonly shadow: {
|
|
917
|
+
readonly none: "none";
|
|
918
|
+
readonly low: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
919
|
+
readonly raised: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
|
|
920
|
+
readonly floating: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
|
|
921
|
+
readonly overlay: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
|
|
922
|
+
readonly modal: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
|
|
923
|
+
};
|
|
924
|
+
readonly dropShadow: {
|
|
925
|
+
readonly none: "none";
|
|
926
|
+
readonly low: "drop-shadow(0 1px 2px rgb(0 0 0 / 0.05))";
|
|
927
|
+
readonly raised: "drop-shadow(0 1px 3px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.1))";
|
|
928
|
+
readonly floating: "drop-shadow(0 4px 6px rgb(0 0 0 / 0.1)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.1))";
|
|
929
|
+
readonly overlay: "drop-shadow(0 10px 15px rgb(0 0 0 / 0.1)) drop-shadow(0 4px 6px rgb(0 0 0 / 0.1))";
|
|
930
|
+
readonly modal: "drop-shadow(0 20px 25px rgb(0 0 0 / 0.1)) drop-shadow(0 8px 10px rgb(0 0 0 / 0.1))";
|
|
931
|
+
};
|
|
932
|
+
readonly zIndex: {
|
|
933
|
+
readonly hide: "-1";
|
|
934
|
+
readonly base: "0";
|
|
935
|
+
readonly docked: "10";
|
|
936
|
+
readonly sticky: "100";
|
|
937
|
+
readonly banner: "200";
|
|
938
|
+
readonly overlay: "1100";
|
|
939
|
+
readonly modal: "1200";
|
|
940
|
+
readonly dropdown: "1250";
|
|
941
|
+
readonly popover: "1300";
|
|
942
|
+
readonly toast: "1350";
|
|
943
|
+
readonly tooltip: "1400";
|
|
944
|
+
};
|
|
945
|
+
readonly duration: {
|
|
946
|
+
readonly instant: "0ms";
|
|
947
|
+
readonly fast: "120ms";
|
|
948
|
+
readonly normal: "180ms";
|
|
949
|
+
readonly slow: "240ms";
|
|
950
|
+
readonly slower: "320ms";
|
|
951
|
+
};
|
|
952
|
+
readonly easing: {
|
|
953
|
+
readonly linear: "linear";
|
|
954
|
+
readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
|
|
955
|
+
readonly in: "cubic-bezier(0.4, 0, 1, 1)";
|
|
956
|
+
readonly out: "cubic-bezier(0, 0, 0.2, 1)";
|
|
957
|
+
readonly inOut: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
958
|
+
readonly overshoot: "cubic-bezier(0.2, 0, 0, 1.2)";
|
|
959
|
+
};
|
|
960
|
+
readonly color: {
|
|
961
|
+
readonly primary: Readonly<{
|
|
962
|
+
main: string;
|
|
963
|
+
hover: string;
|
|
964
|
+
pressed: string;
|
|
965
|
+
foreground: string;
|
|
966
|
+
subtle: string;
|
|
967
|
+
subtleHover: string;
|
|
968
|
+
subtlePressed: string;
|
|
969
|
+
subtleForeground: string;
|
|
970
|
+
text: string;
|
|
971
|
+
border: string;
|
|
972
|
+
subtleBorder: string;
|
|
973
|
+
}>;
|
|
974
|
+
readonly secondary: Readonly<{
|
|
975
|
+
main: string;
|
|
976
|
+
hover: string;
|
|
977
|
+
pressed: string;
|
|
978
|
+
foreground: string;
|
|
979
|
+
subtle: string;
|
|
980
|
+
subtleHover: string;
|
|
981
|
+
subtlePressed: string;
|
|
982
|
+
subtleForeground: string;
|
|
983
|
+
text: string;
|
|
984
|
+
border: string;
|
|
985
|
+
subtleBorder: string;
|
|
986
|
+
}>;
|
|
987
|
+
readonly neutral: {
|
|
988
|
+
readonly main: "#15181d";
|
|
989
|
+
readonly hover: "#25282e";
|
|
990
|
+
readonly pressed: "#3b3e44";
|
|
991
|
+
readonly foreground: "#ffffff";
|
|
992
|
+
readonly subtle: "#eeeff0";
|
|
993
|
+
readonly subtleHover: "#e3e4e7";
|
|
994
|
+
readonly subtlePressed: "#d6d8dc";
|
|
995
|
+
readonly subtleForeground: "#15181d";
|
|
996
|
+
readonly text: "#3b3e44";
|
|
997
|
+
readonly border: "#c8cacf";
|
|
998
|
+
readonly subtleBorder: "#d6d8dc";
|
|
999
|
+
};
|
|
1000
|
+
readonly success: Readonly<{
|
|
1001
|
+
main: string;
|
|
1002
|
+
hover: string;
|
|
1003
|
+
pressed: string;
|
|
1004
|
+
foreground: string;
|
|
1005
|
+
subtle: string;
|
|
1006
|
+
subtleHover: string;
|
|
1007
|
+
subtlePressed: string;
|
|
1008
|
+
subtleForeground: string;
|
|
1009
|
+
text: string;
|
|
1010
|
+
border: string;
|
|
1011
|
+
subtleBorder: string;
|
|
1012
|
+
}>;
|
|
1013
|
+
readonly warning: Readonly<{
|
|
1014
|
+
main: string;
|
|
1015
|
+
hover: string;
|
|
1016
|
+
pressed: string;
|
|
1017
|
+
foreground: string;
|
|
1018
|
+
subtle: string;
|
|
1019
|
+
subtleHover: string;
|
|
1020
|
+
subtlePressed: string;
|
|
1021
|
+
subtleForeground: string;
|
|
1022
|
+
text: string;
|
|
1023
|
+
border: string;
|
|
1024
|
+
subtleBorder: string;
|
|
1025
|
+
}>;
|
|
1026
|
+
readonly info: Readonly<{
|
|
1027
|
+
main: string;
|
|
1028
|
+
hover: string;
|
|
1029
|
+
pressed: string;
|
|
1030
|
+
foreground: string;
|
|
1031
|
+
subtle: string;
|
|
1032
|
+
subtleHover: string;
|
|
1033
|
+
subtlePressed: string;
|
|
1034
|
+
subtleForeground: string;
|
|
1035
|
+
text: string;
|
|
1036
|
+
border: string;
|
|
1037
|
+
subtleBorder: string;
|
|
1038
|
+
}>;
|
|
1039
|
+
readonly danger: Readonly<{
|
|
1040
|
+
main: string;
|
|
1041
|
+
hover: string;
|
|
1042
|
+
pressed: string;
|
|
1043
|
+
foreground: string;
|
|
1044
|
+
subtle: string;
|
|
1045
|
+
subtleHover: string;
|
|
1046
|
+
subtlePressed: string;
|
|
1047
|
+
subtleForeground: string;
|
|
1048
|
+
text: string;
|
|
1049
|
+
border: string;
|
|
1050
|
+
subtleBorder: string;
|
|
1051
|
+
}>;
|
|
1052
|
+
readonly accentOrange: Readonly<{
|
|
1053
|
+
main: string;
|
|
1054
|
+
hover: string;
|
|
1055
|
+
pressed: string;
|
|
1056
|
+
foreground: string;
|
|
1057
|
+
subtle: string;
|
|
1058
|
+
subtleHover: string;
|
|
1059
|
+
subtlePressed: string;
|
|
1060
|
+
subtleForeground: string;
|
|
1061
|
+
text: string;
|
|
1062
|
+
border: string;
|
|
1063
|
+
subtleBorder: string;
|
|
1064
|
+
}>;
|
|
1065
|
+
readonly accentYellow: Readonly<{
|
|
1066
|
+
main: string;
|
|
1067
|
+
hover: string;
|
|
1068
|
+
pressed: string;
|
|
1069
|
+
foreground: string;
|
|
1070
|
+
subtle: string;
|
|
1071
|
+
subtleHover: string;
|
|
1072
|
+
subtlePressed: string;
|
|
1073
|
+
subtleForeground: string;
|
|
1074
|
+
text: string;
|
|
1075
|
+
border: string;
|
|
1076
|
+
subtleBorder: string;
|
|
1077
|
+
}>;
|
|
1078
|
+
readonly accentLime: Readonly<{
|
|
1079
|
+
main: string;
|
|
1080
|
+
hover: string;
|
|
1081
|
+
pressed: string;
|
|
1082
|
+
foreground: string;
|
|
1083
|
+
subtle: string;
|
|
1084
|
+
subtleHover: string;
|
|
1085
|
+
subtlePressed: string;
|
|
1086
|
+
subtleForeground: string;
|
|
1087
|
+
text: string;
|
|
1088
|
+
border: string;
|
|
1089
|
+
subtleBorder: string;
|
|
1090
|
+
}>;
|
|
1091
|
+
readonly accentCyan: Readonly<{
|
|
1092
|
+
main: string;
|
|
1093
|
+
hover: string;
|
|
1094
|
+
pressed: string;
|
|
1095
|
+
foreground: string;
|
|
1096
|
+
subtle: string;
|
|
1097
|
+
subtleHover: string;
|
|
1098
|
+
subtlePressed: string;
|
|
1099
|
+
subtleForeground: string;
|
|
1100
|
+
text: string;
|
|
1101
|
+
border: string;
|
|
1102
|
+
subtleBorder: string;
|
|
1103
|
+
}>;
|
|
1104
|
+
readonly accentPurple: Readonly<{
|
|
1105
|
+
main: string;
|
|
1106
|
+
hover: string;
|
|
1107
|
+
pressed: string;
|
|
1108
|
+
foreground: string;
|
|
1109
|
+
subtle: string;
|
|
1110
|
+
subtleHover: string;
|
|
1111
|
+
subtlePressed: string;
|
|
1112
|
+
subtleForeground: string;
|
|
1113
|
+
text: string;
|
|
1114
|
+
border: string;
|
|
1115
|
+
subtleBorder: string;
|
|
1116
|
+
}>;
|
|
1117
|
+
readonly accentPink: Readonly<{
|
|
1118
|
+
main: string;
|
|
1119
|
+
hover: string;
|
|
1120
|
+
pressed: string;
|
|
1121
|
+
foreground: string;
|
|
1122
|
+
subtle: string;
|
|
1123
|
+
subtleHover: string;
|
|
1124
|
+
subtlePressed: string;
|
|
1125
|
+
subtleForeground: string;
|
|
1126
|
+
text: string;
|
|
1127
|
+
border: string;
|
|
1128
|
+
subtleBorder: string;
|
|
1129
|
+
}>;
|
|
1130
|
+
readonly currentColor: "currentColor";
|
|
1131
|
+
readonly transparent: "transparent";
|
|
1132
|
+
readonly background: "#f9f9fa";
|
|
1133
|
+
readonly overlay: "rgb(11 13 18 / 0.48)";
|
|
1134
|
+
readonly focusRing: "#7265f9";
|
|
1135
|
+
readonly text: {
|
|
1136
|
+
readonly primary: "#0b0d12";
|
|
1137
|
+
readonly secondary: "#474a51";
|
|
1138
|
+
readonly tertiary: "#61656c";
|
|
1139
|
+
};
|
|
1140
|
+
readonly surface: {
|
|
1141
|
+
readonly main: "#ffffff";
|
|
1142
|
+
readonly foreground: "#0b0d12";
|
|
1143
|
+
readonly elevated: "#ffffff";
|
|
1144
|
+
readonly elevatedForeground: "#0b0d12";
|
|
1145
|
+
readonly muted: "#f3f4f5";
|
|
1146
|
+
readonly mutedForeground: "#53575d";
|
|
1147
|
+
readonly inverse: "#15181d";
|
|
1148
|
+
readonly inverseForeground: "#f3f4f5";
|
|
1149
|
+
};
|
|
1150
|
+
readonly link: {
|
|
1151
|
+
readonly main: "#5d4cda";
|
|
1152
|
+
readonly hover: "#4a35ba";
|
|
1153
|
+
readonly pressed: "#381e9a";
|
|
1154
|
+
};
|
|
1155
|
+
readonly border: {
|
|
1156
|
+
readonly subtle: "#eeeff0";
|
|
1157
|
+
readonly muted: "#e3e4e7";
|
|
1158
|
+
readonly main: "#d6d8dc";
|
|
1159
|
+
readonly strong: "#b8bbc1";
|
|
1160
|
+
readonly stronger: "#7f838a";
|
|
1161
|
+
};
|
|
1162
|
+
/**
|
|
1163
|
+
* Disabled controls. `main`, `subtle` and `border` may be translucent
|
|
1164
|
+
* and are then composited on the surface beneath; `foreground`,
|
|
1165
|
+
* `subtleForeground` and `text` are written on top of them.
|
|
1166
|
+
*/
|
|
1167
|
+
readonly disabled: {
|
|
1168
|
+
readonly main: "rgb(11 13 18 / 0.08)";
|
|
1169
|
+
readonly foreground: "#92969d";
|
|
1170
|
+
readonly subtle: "rgb(11 13 18 / 0.04)";
|
|
1171
|
+
readonly subtleForeground: "#92969d";
|
|
1172
|
+
readonly text: "#92969d";
|
|
1173
|
+
readonly border: "rgb(11 13 18 / 0.1)";
|
|
1174
|
+
};
|
|
1175
|
+
readonly highlight: {
|
|
1176
|
+
readonly main: "#fff0b1";
|
|
1177
|
+
readonly foreground: "#0b0d12";
|
|
1178
|
+
};
|
|
1179
|
+
/**
|
|
1180
|
+
* Loading placeholders. `base`, `highlight` and `border` may be
|
|
1181
|
+
* translucent and are then composited on the surface beneath.
|
|
1182
|
+
* `highlight` is the peak of the shimmer: paint it in place of `base`
|
|
1183
|
+
* (e.g. the middle stop of a gradient between `base` stops), directly
|
|
1184
|
+
* on the surface, never layered over `base`.
|
|
1185
|
+
*/
|
|
1186
|
+
readonly skeleton: {
|
|
1187
|
+
readonly base: "rgb(11 13 18 / 0.1)";
|
|
1188
|
+
readonly highlight: "rgb(11 13 18 / 0.04)";
|
|
1189
|
+
readonly foreground: "#a5a9af";
|
|
1190
|
+
readonly border: "rgb(11 13 18 / 0.1)";
|
|
1191
|
+
};
|
|
1192
|
+
/**
|
|
1193
|
+
* Scrollbars: the thumb at rest and while hovered or dragged, on its
|
|
1194
|
+
* track. `thumb`, `thumbHover` and `track` may be translucent and are
|
|
1195
|
+
* then composited on the surface beneath; `track` is `transparent`
|
|
1196
|
+
* when the scrolled surface shows through.
|
|
1197
|
+
*/
|
|
1198
|
+
readonly scrollbar: {
|
|
1199
|
+
readonly thumb: "rgb(11 13 18 / 0.46)";
|
|
1200
|
+
readonly thumbHover: "rgb(11 13 18 / 0.62)";
|
|
1201
|
+
readonly track: "transparent";
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* `filter` drop shadows matching the `shadows` levels, which follow the
|
|
1208
|
+
* painted shape (arrows, transparent images) instead of the border box.
|
|
1209
|
+
*/
|
|
1210
|
+
declare const dropShadows: {
|
|
1211
|
+
readonly none: "none";
|
|
1212
|
+
readonly low: "drop-shadow(0 1px 2px rgb(0 0 0 / 0.05))";
|
|
1213
|
+
readonly raised: "drop-shadow(0 1px 3px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.1))";
|
|
1214
|
+
readonly floating: "drop-shadow(0 4px 6px rgb(0 0 0 / 0.1)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.1))";
|
|
1215
|
+
readonly overlay: "drop-shadow(0 10px 15px rgb(0 0 0 / 0.1)) drop-shadow(0 4px 6px rgb(0 0 0 / 0.1))";
|
|
1216
|
+
readonly modal: "drop-shadow(0 20px 25px rgb(0 0 0 / 0.1)) drop-shadow(0 8px 10px rgb(0 0 0 / 0.1))";
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
export declare type DropShadowToken = keyof typeof dropShadows;
|
|
1220
|
+
|
|
1221
|
+
declare const durations: {
|
|
1222
|
+
readonly instant: "0ms";
|
|
1223
|
+
readonly fast: "120ms";
|
|
1224
|
+
readonly normal: "180ms";
|
|
1225
|
+
readonly slow: "240ms";
|
|
1226
|
+
readonly slower: "320ms";
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1229
|
+
export declare type DurationToken = keyof typeof durations;
|
|
1230
|
+
|
|
1231
|
+
declare const easings: {
|
|
1232
|
+
readonly linear: "linear";
|
|
1233
|
+
readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
|
|
1234
|
+
readonly in: "cubic-bezier(0.4, 0, 1, 1)";
|
|
1235
|
+
readonly out: "cubic-bezier(0, 0, 0.2, 1)";
|
|
1236
|
+
readonly inOut: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
1237
|
+
readonly overshoot: "cubic-bezier(0.2, 0, 0, 1.2)";
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
export declare type EasingToken = keyof typeof easings;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Color theme declined in a light and a dark mode. Only the colors of each
|
|
1244
|
+
* mode are applied; the other scales stay shared.
|
|
1245
|
+
*/
|
|
1246
|
+
export declare type Flavor = Readonly<{
|
|
1247
|
+
/** Name written to `flavorAttribute`, e.g. `contrast`. */
|
|
1248
|
+
name: FlavorName;
|
|
1249
|
+
/** Complete theme applied in light mode. */
|
|
1250
|
+
light: Theme;
|
|
1251
|
+
/** Complete theme applied in dark mode. */
|
|
1252
|
+
dark: Theme;
|
|
1253
|
+
}>;
|
|
1254
|
+
|
|
1255
|
+
/** Attribute carrying the flavor name on a themed element. */
|
|
1256
|
+
export declare const flavorAttribute = "data-cv-flavor";
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* The built-in `default` flavor or the name of a registered flavor. The
|
|
1260
|
+
* intersection keeps editor autocompletion while accepting any string.
|
|
1261
|
+
*/
|
|
1262
|
+
export declare type FlavorName = typeof defaultFlavorName | (string & Record<never, never>);
|
|
1263
|
+
|
|
1264
|
+
export declare type FlavorOptions = Readonly<{
|
|
1265
|
+
/** Lowercase letters, digits and hyphens, starting with a letter. */
|
|
1266
|
+
name: FlavorName;
|
|
1267
|
+
/** Flavor providing the values not overridden; `defaultFlavor` when absent. */
|
|
1268
|
+
extends?: Flavor;
|
|
1269
|
+
/** Colors replaced in light mode; `{}` keeps the base ones. */
|
|
1270
|
+
light: FlavorOverrides;
|
|
1271
|
+
/** Colors replaced in dark mode; `{}` keeps the base ones. */
|
|
1272
|
+
dark: FlavorOverrides;
|
|
1273
|
+
}>;
|
|
1274
|
+
|
|
1275
|
+
/** Deep partial colors of one mode of a flavor. */
|
|
1276
|
+
export declare type FlavorOverrides = ThemeOverrides<FlavorTokens>;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* A flavor given by name, registered on the provider or one of its parents,
|
|
1280
|
+
* or as a flavor object, registered on the spot.
|
|
1281
|
+
*/
|
|
1282
|
+
export declare type FlavorReference = FlavorName | Flavor;
|
|
1283
|
+
|
|
1284
|
+
/** Token groups whose values change with the mode and the flavor. */
|
|
1285
|
+
export declare type FlavorTokens = Pick<Theme, 'color'>;
|
|
1286
|
+
|
|
1287
|
+
declare const fontFamilies: {
|
|
1288
|
+
readonly sans: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif";
|
|
1289
|
+
readonly serif: "ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif";
|
|
1290
|
+
readonly mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace";
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
export declare type FontFamilyToken = keyof typeof fontFamilies;
|
|
1294
|
+
|
|
1295
|
+
declare const fontSizes: {
|
|
1296
|
+
readonly 10: "0.625rem";
|
|
1297
|
+
readonly 12: "0.75rem";
|
|
1298
|
+
readonly 14: "0.875rem";
|
|
1299
|
+
readonly 16: "1rem";
|
|
1300
|
+
readonly 18: "1.125rem";
|
|
1301
|
+
readonly 20: "1.25rem";
|
|
1302
|
+
readonly 24: "1.5rem";
|
|
1303
|
+
readonly 28: "1.75rem";
|
|
1304
|
+
readonly 32: "2rem";
|
|
1305
|
+
readonly 36: "2.25rem";
|
|
1306
|
+
readonly 40: "2.5rem";
|
|
1307
|
+
readonly 48: "3rem";
|
|
1308
|
+
readonly 60: "3.75rem";
|
|
1309
|
+
readonly 72: "4.5rem";
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
export declare type FontSizeToken = keyof typeof fontSizes;
|
|
1313
|
+
|
|
1314
|
+
declare const fontWeights: {
|
|
1315
|
+
readonly regular: "400";
|
|
1316
|
+
readonly medium: "500";
|
|
1317
|
+
readonly semibold: "600";
|
|
1318
|
+
readonly bold: "700";
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
export declare type FontWeightToken = keyof typeof fontWeights;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Generates the stylesheet of a flavor: its colors in light, dark and system
|
|
1325
|
+
* modes, in the flavor layer that wins over the built-in modes. Providers
|
|
1326
|
+
* render it for every registered flavor; it can also be written to a static
|
|
1327
|
+
* file, e.g. under a strict Content Security Policy.
|
|
1328
|
+
*
|
|
1329
|
+
* @param flavor Flavor to serialize.
|
|
1330
|
+
* @returns The CSS of the flavor.
|
|
1331
|
+
* @throws {TypeError} When the flavor is malformed.
|
|
1332
|
+
*/
|
|
1333
|
+
export declare const getFlavorCss: (flavor: Flavor) => string;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Props to spread on the server-rendered `<html>` so the document is themed
|
|
1337
|
+
* before hydration (no flash). Pass the same values as the root provider,
|
|
1338
|
+
* which also renders the stylesheets of its flavors.
|
|
1339
|
+
*
|
|
1340
|
+
* @param options Root provider values.
|
|
1341
|
+
* @param options.theme Theme of the root provider, `system` by default.
|
|
1342
|
+
* @param options.flavor Flavor of the root provider, name or object,
|
|
1343
|
+
* `default` by default.
|
|
1344
|
+
* @param options.tokens Mode-independent token overrides of the root
|
|
1345
|
+
* provider; colors are set through the flavor, and spaces cannot be
|
|
1346
|
+
* overridden.
|
|
1347
|
+
* @returns The theme and flavor attributes and the custom properties of the
|
|
1348
|
+
* overrides.
|
|
1349
|
+
* @throws {TypeError} When the theme or flavor name is invalid, or a token is
|
|
1350
|
+
* a color or space, unknown or malformed.
|
|
1351
|
+
*/
|
|
1352
|
+
export declare const getThemeRootProps: ({ theme, flavor, tokens, }?: ThemeRootOptions) => ThemeRootProps;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Converts partial token overrides into CSS custom properties. Spaces are
|
|
1356
|
+
* refused, even `undefined`: each is named after its value, so no override
|
|
1357
|
+
* is legitimate.
|
|
1358
|
+
*
|
|
1359
|
+
* @param overrides Deep partial theme tokens, `space` excepted.
|
|
1360
|
+
* @returns Only the supplied custom properties, keyed by name.
|
|
1361
|
+
* @throws {TypeError} When `space` is set, or a token is unknown or
|
|
1362
|
+
* malformed.
|
|
1363
|
+
*/
|
|
1364
|
+
export declare const getThemeTokenStyles: (overrides?: ThemeTokenOverrides) => TokenStyles;
|
|
1365
|
+
|
|
1366
|
+
declare const letterSpacings: {
|
|
1367
|
+
readonly tighter: "-0.02em";
|
|
1368
|
+
readonly tight: "-0.01em";
|
|
1369
|
+
readonly normal: "0";
|
|
1370
|
+
readonly wide: "0.02em";
|
|
1371
|
+
readonly wider: "0.05em";
|
|
1372
|
+
readonly widest: "0.08em";
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
export declare type LetterSpacingToken = keyof typeof letterSpacings;
|
|
1376
|
+
|
|
1377
|
+
declare const lineHeights: {
|
|
1378
|
+
readonly none: "1";
|
|
1379
|
+
readonly tight: "1.2";
|
|
1380
|
+
readonly snug: "1.35";
|
|
1381
|
+
readonly normal: "1.5";
|
|
1382
|
+
readonly relaxed: "1.65";
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
export declare type LineHeightToken = keyof typeof lineHeights;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Mobile-first media queries matching viewports at least as wide as each
|
|
1389
|
+
* breakpoint: style the narrowest layout by default, then widen it.
|
|
1390
|
+
*/
|
|
1391
|
+
export declare const mediaQueries: {
|
|
1392
|
+
readonly largePhone: "screen and (min-width: 30rem)";
|
|
1393
|
+
readonly smallTablet: "screen and (min-width: 40rem)";
|
|
1394
|
+
readonly tablet: "screen and (min-width: 48rem)";
|
|
1395
|
+
readonly laptop: "screen and (min-width: 64rem)";
|
|
1396
|
+
readonly desktop: "screen and (min-width: 80rem)";
|
|
1397
|
+
readonly wide: "screen and (min-width: 96rem)";
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* Monochrome flavor: the primary intent, links and focus rings take the
|
|
1402
|
+
* neutral ink of each mode, the secondary intent a muted slate; status and
|
|
1403
|
+
* decorative hues keep their colors. In dark mode the ink follows the
|
|
1404
|
+
* achromatic ramp of the default dark surfaces.
|
|
1405
|
+
*/
|
|
1406
|
+
export declare const neutralFlavor: Readonly<{
|
|
1407
|
+
name: FlavorName;
|
|
1408
|
+
light: Theme;
|
|
1409
|
+
dark: Theme;
|
|
1410
|
+
}>;
|
|
1411
|
+
|
|
1412
|
+
declare const opacities: {
|
|
1413
|
+
readonly hidden: "0";
|
|
1414
|
+
readonly disabled: "0.48";
|
|
1415
|
+
readonly muted: "0.72";
|
|
1416
|
+
readonly visible: "1";
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
export declare type OpacityToken = keyof typeof opacities;
|
|
1420
|
+
|
|
1421
|
+
export declare type Palette = typeof palette;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Raw sRGB color ramps: neutrals, then muted tones, then vivid hues ordered by
|
|
1425
|
+
* hue angle. Every hue exposes the same twenty steps, from `0` (lightest tint)
|
|
1426
|
+
* to `950` (darkest shade) every 50; `500` is the reference tone of the hue.
|
|
1427
|
+
*
|
|
1428
|
+
* Ramps are generated in OKLCH: every hue keeps a constant hue angle from tint
|
|
1429
|
+
* to shade, with its chroma peak at `500` fading towards tints and shades.
|
|
1430
|
+
* Neutrals and muted tones share one luminance curve; each vivid hue places
|
|
1431
|
+
* `500` at the lightness where it is most saturated (kept within 0.6–0.8, up to 0.88 for a true yellow and at most 0.72 for a
|
|
1432
|
+
* classic green), so
|
|
1433
|
+
* yellows and oranges stay bright while blues and purples stay deep; its other
|
|
1434
|
+
* steps follow a smooth monotone curve from `0` to `950` through that point,
|
|
1435
|
+
* `50` being the OKLab midpoint between `0` and `100`.
|
|
1436
|
+
*/
|
|
1437
|
+
export declare const palette: {
|
|
1438
|
+
readonly gray: {
|
|
1439
|
+
readonly 0: "#f9f9fa";
|
|
1440
|
+
readonly 50: "#f3f4f5";
|
|
1441
|
+
readonly 100: "#eeeff0";
|
|
1442
|
+
readonly 150: "#e3e4e7";
|
|
1443
|
+
readonly 200: "#d6d8dc";
|
|
1444
|
+
readonly 250: "#c8cacf";
|
|
1445
|
+
readonly 300: "#b8bbc1";
|
|
1446
|
+
readonly 350: "#a5a9af";
|
|
1447
|
+
readonly 400: "#92969d";
|
|
1448
|
+
readonly 450: "#7f838a";
|
|
1449
|
+
readonly 500: "#6f737a";
|
|
1450
|
+
readonly 550: "#61656c";
|
|
1451
|
+
readonly 600: "#53575d";
|
|
1452
|
+
readonly 650: "#474a51";
|
|
1453
|
+
readonly 700: "#3b3e44";
|
|
1454
|
+
readonly 750: "#303339";
|
|
1455
|
+
readonly 800: "#25282e";
|
|
1456
|
+
readonly 850: "#1e2126";
|
|
1457
|
+
readonly 900: "#15181d";
|
|
1458
|
+
readonly 950: "#0b0d12";
|
|
1459
|
+
};
|
|
1460
|
+
readonly neutral: {
|
|
1461
|
+
readonly 0: "#f9f9f9";
|
|
1462
|
+
readonly 50: "#f4f4f4";
|
|
1463
|
+
readonly 100: "#efefef";
|
|
1464
|
+
readonly 150: "#e4e4e4";
|
|
1465
|
+
readonly 200: "#d8d8d8";
|
|
1466
|
+
readonly 250: "#cacaca";
|
|
1467
|
+
readonly 300: "#bbbbbb";
|
|
1468
|
+
readonly 350: "#a9a9a9";
|
|
1469
|
+
readonly 400: "#969696";
|
|
1470
|
+
readonly 450: "#838383";
|
|
1471
|
+
readonly 500: "#737373";
|
|
1472
|
+
readonly 550: "#656565";
|
|
1473
|
+
readonly 600: "#575757";
|
|
1474
|
+
readonly 650: "#4a4a4a";
|
|
1475
|
+
readonly 700: "#3e3e3e";
|
|
1476
|
+
readonly 750: "#333333";
|
|
1477
|
+
readonly 800: "#282828";
|
|
1478
|
+
readonly 850: "#202020";
|
|
1479
|
+
readonly 900: "#181818";
|
|
1480
|
+
readonly 950: "#0d0d0d";
|
|
1481
|
+
};
|
|
1482
|
+
readonly slate: {
|
|
1483
|
+
readonly 0: "#f8f9fb";
|
|
1484
|
+
readonly 50: "#f2f4f6";
|
|
1485
|
+
readonly 100: "#eceff2";
|
|
1486
|
+
readonly 150: "#dfe5ea";
|
|
1487
|
+
readonly 200: "#d1d9e1";
|
|
1488
|
+
readonly 250: "#c1cbd6";
|
|
1489
|
+
readonly 300: "#afbcc9";
|
|
1490
|
+
readonly 350: "#9cabb9";
|
|
1491
|
+
readonly 400: "#8898a7";
|
|
1492
|
+
readonly 450: "#748595";
|
|
1493
|
+
readonly 500: "#647585";
|
|
1494
|
+
readonly 550: "#576776";
|
|
1495
|
+
readonly 600: "#495867";
|
|
1496
|
+
readonly 650: "#3d4c5a";
|
|
1497
|
+
readonly 700: "#31404d";
|
|
1498
|
+
readonly 750: "#273441";
|
|
1499
|
+
readonly 800: "#1d2a36";
|
|
1500
|
+
readonly 850: "#15222d";
|
|
1501
|
+
readonly 900: "#0d1924";
|
|
1502
|
+
readonly 950: "#040e18";
|
|
1503
|
+
};
|
|
1504
|
+
readonly stone: {
|
|
1505
|
+
readonly 0: "#faf9f8";
|
|
1506
|
+
readonly 50: "#f5f3f2";
|
|
1507
|
+
readonly 100: "#f0eeed";
|
|
1508
|
+
readonly 150: "#e7e3e1";
|
|
1509
|
+
readonly 200: "#dcd7d3";
|
|
1510
|
+
readonly 250: "#d0c9c4";
|
|
1511
|
+
readonly 300: "#c2b9b3";
|
|
1512
|
+
readonly 350: "#b1a7a0";
|
|
1513
|
+
readonly 400: "#9e948c";
|
|
1514
|
+
readonly 450: "#8c8179";
|
|
1515
|
+
readonly 500: "#7c7169";
|
|
1516
|
+
readonly 550: "#6d635b";
|
|
1517
|
+
readonly 600: "#5f554e";
|
|
1518
|
+
readonly 650: "#524841";
|
|
1519
|
+
readonly 700: "#463c36";
|
|
1520
|
+
readonly 750: "#3a312b";
|
|
1521
|
+
readonly 800: "#2f2721";
|
|
1522
|
+
readonly 850: "#271f19";
|
|
1523
|
+
readonly 900: "#1e1611";
|
|
1524
|
+
readonly 950: "#130c07";
|
|
1525
|
+
};
|
|
1526
|
+
readonly sage: {
|
|
1527
|
+
readonly 0: "#f8f9f8";
|
|
1528
|
+
readonly 50: "#f2f4f2";
|
|
1529
|
+
readonly 100: "#ecf0ed";
|
|
1530
|
+
readonly 150: "#e0e6e2";
|
|
1531
|
+
readonly 200: "#d2dad5";
|
|
1532
|
+
readonly 250: "#c2cdc6";
|
|
1533
|
+
readonly 300: "#b0beb6";
|
|
1534
|
+
readonly 350: "#9dada3";
|
|
1535
|
+
readonly 400: "#899a90";
|
|
1536
|
+
readonly 450: "#75877d";
|
|
1537
|
+
readonly 500: "#65776d";
|
|
1538
|
+
readonly 550: "#58695f";
|
|
1539
|
+
readonly 600: "#4a5a51";
|
|
1540
|
+
readonly 650: "#3e4e45";
|
|
1541
|
+
readonly 700: "#324239";
|
|
1542
|
+
readonly 750: "#28362e";
|
|
1543
|
+
readonly 800: "#1e2b24";
|
|
1544
|
+
readonly 850: "#16231c";
|
|
1545
|
+
readonly 900: "#0e1a14";
|
|
1546
|
+
readonly 950: "#051009";
|
|
1547
|
+
};
|
|
1548
|
+
readonly bronze: {
|
|
1549
|
+
readonly 0: "#fdf8f7";
|
|
1550
|
+
readonly 50: "#fbf2f1";
|
|
1551
|
+
readonly 100: "#f8eceb";
|
|
1552
|
+
readonly 150: "#f3e0dd";
|
|
1553
|
+
readonly 200: "#edd2ce";
|
|
1554
|
+
readonly 250: "#e5c2bd";
|
|
1555
|
+
readonly 300: "#dbb1ab";
|
|
1556
|
+
readonly 350: "#cd9d97";
|
|
1557
|
+
readonly 400: "#bd8982";
|
|
1558
|
+
readonly 450: "#ab756e";
|
|
1559
|
+
readonly 500: "#9a655e";
|
|
1560
|
+
readonly 550: "#8b5851";
|
|
1561
|
+
readonly 600: "#7b4a43";
|
|
1562
|
+
readonly 650: "#6c3d37";
|
|
1563
|
+
readonly 700: "#5e322c";
|
|
1564
|
+
readonly 750: "#512621";
|
|
1565
|
+
readonly 800: "#451c18";
|
|
1566
|
+
readonly 850: "#3b1410";
|
|
1567
|
+
readonly 900: "#300b08";
|
|
1568
|
+
readonly 950: "#230202";
|
|
1569
|
+
};
|
|
1570
|
+
readonly brown: {
|
|
1571
|
+
readonly 0: "#fdf8f5";
|
|
1572
|
+
readonly 50: "#faf2ed";
|
|
1573
|
+
readonly 100: "#f7ede5";
|
|
1574
|
+
readonly 150: "#f3e1d4";
|
|
1575
|
+
readonly 200: "#edd3c1";
|
|
1576
|
+
readonly 250: "#e5c4ac";
|
|
1577
|
+
readonly 300: "#dbb396";
|
|
1578
|
+
readonly 350: "#cda07e";
|
|
1579
|
+
readonly 400: "#bd8c67";
|
|
1580
|
+
readonly 450: "#aa7851";
|
|
1581
|
+
readonly 500: "#9a6840";
|
|
1582
|
+
readonly 550: "#8b5a33";
|
|
1583
|
+
readonly 600: "#7b4c25";
|
|
1584
|
+
readonly 650: "#6c3f19";
|
|
1585
|
+
readonly 700: "#5e330b";
|
|
1586
|
+
readonly 750: "#512800";
|
|
1587
|
+
readonly 800: "#421f00";
|
|
1588
|
+
readonly 850: "#361900";
|
|
1589
|
+
readonly 900: "#291200";
|
|
1590
|
+
readonly 950: "#1a0900";
|
|
1591
|
+
};
|
|
1592
|
+
readonly sand: {
|
|
1593
|
+
readonly 0: "#fbf9f5";
|
|
1594
|
+
readonly 50: "#f6f3ed";
|
|
1595
|
+
readonly 100: "#f2eee6";
|
|
1596
|
+
readonly 150: "#ebe4d5";
|
|
1597
|
+
readonly 200: "#e1d7c2";
|
|
1598
|
+
readonly 250: "#d6c9ac";
|
|
1599
|
+
readonly 300: "#c9b996";
|
|
1600
|
+
readonly 350: "#baa77f";
|
|
1601
|
+
readonly 400: "#a89468";
|
|
1602
|
+
readonly 450: "#958052";
|
|
1603
|
+
readonly 500: "#867041";
|
|
1604
|
+
readonly 550: "#776234";
|
|
1605
|
+
readonly 600: "#685426";
|
|
1606
|
+
readonly 650: "#5b471a";
|
|
1607
|
+
readonly 700: "#4e3b0d";
|
|
1608
|
+
readonly 750: "#423001";
|
|
1609
|
+
readonly 800: "#352600";
|
|
1610
|
+
readonly 850: "#2b1e00";
|
|
1611
|
+
readonly 900: "#211600";
|
|
1612
|
+
readonly 950: "#140c00";
|
|
1613
|
+
};
|
|
1614
|
+
readonly moss: {
|
|
1615
|
+
readonly 0: "#f7faf6";
|
|
1616
|
+
readonly 50: "#f0f5ef";
|
|
1617
|
+
readonly 100: "#eaf1e8";
|
|
1618
|
+
readonly 150: "#dce7d9";
|
|
1619
|
+
readonly 200: "#cdddc8";
|
|
1620
|
+
readonly 250: "#bbd0b4";
|
|
1621
|
+
readonly 300: "#a9c2a0";
|
|
1622
|
+
readonly 350: "#94b18b";
|
|
1623
|
+
readonly 400: "#7f9e75";
|
|
1624
|
+
readonly 450: "#6b8b60";
|
|
1625
|
+
readonly 500: "#5b7b50";
|
|
1626
|
+
readonly 550: "#4e6d43";
|
|
1627
|
+
readonly 600: "#405e36";
|
|
1628
|
+
readonly 650: "#34512a";
|
|
1629
|
+
readonly 700: "#29451f";
|
|
1630
|
+
readonly 750: "#1e3914";
|
|
1631
|
+
readonly 800: "#142e0a";
|
|
1632
|
+
readonly 850: "#0d2603";
|
|
1633
|
+
readonly 900: "#061d00";
|
|
1634
|
+
readonly 950: "#031100";
|
|
1635
|
+
};
|
|
1636
|
+
readonly spruce: {
|
|
1637
|
+
readonly 0: "#f5fafa";
|
|
1638
|
+
readonly 50: "#edf5f5";
|
|
1639
|
+
readonly 100: "#e6f1f0";
|
|
1640
|
+
readonly 150: "#d5e8e7";
|
|
1641
|
+
readonly 200: "#c2dddc";
|
|
1642
|
+
readonly 250: "#add1cf";
|
|
1643
|
+
readonly 300: "#97c3c1";
|
|
1644
|
+
readonly 350: "#7fb2b0";
|
|
1645
|
+
readonly 400: "#67a09d";
|
|
1646
|
+
readonly 450: "#508d8a";
|
|
1647
|
+
readonly 500: "#3e7d7a";
|
|
1648
|
+
readonly 550: "#306e6c";
|
|
1649
|
+
readonly 600: "#21605e";
|
|
1650
|
+
readonly 650: "#115351";
|
|
1651
|
+
readonly 700: "#014644";
|
|
1652
|
+
readonly 750: "#003a38";
|
|
1653
|
+
readonly 800: "#002e2d";
|
|
1654
|
+
readonly 850: "#002524";
|
|
1655
|
+
readonly 900: "#001c1b";
|
|
1656
|
+
readonly 950: "#00100f";
|
|
1657
|
+
};
|
|
1658
|
+
readonly denim: {
|
|
1659
|
+
readonly 0: "#f6f9fd";
|
|
1660
|
+
readonly 50: "#eff4fb";
|
|
1661
|
+
readonly 100: "#e9eff8";
|
|
1662
|
+
readonly 150: "#dae5f4";
|
|
1663
|
+
readonly 200: "#cadaee";
|
|
1664
|
+
readonly 250: "#b7cce7";
|
|
1665
|
+
readonly 300: "#a4bdde";
|
|
1666
|
+
readonly 350: "#8eabd0";
|
|
1667
|
+
readonly 400: "#7998c0";
|
|
1668
|
+
readonly 450: "#6585af";
|
|
1669
|
+
readonly 500: "#55759e";
|
|
1670
|
+
readonly 550: "#47678f";
|
|
1671
|
+
readonly 600: "#3a587f";
|
|
1672
|
+
readonly 650: "#2e4b70";
|
|
1673
|
+
readonly 700: "#233f63";
|
|
1674
|
+
readonly 750: "#183455";
|
|
1675
|
+
readonly 800: "#0e2949";
|
|
1676
|
+
readonly 850: "#07213f";
|
|
1677
|
+
readonly 900: "#011835";
|
|
1678
|
+
readonly 950: "#000d23";
|
|
1679
|
+
};
|
|
1680
|
+
readonly mauve: {
|
|
1681
|
+
readonly 0: "#fbf8fc";
|
|
1682
|
+
readonly 50: "#f7f2f8";
|
|
1683
|
+
readonly 100: "#f3edf5";
|
|
1684
|
+
readonly 150: "#ece1ef";
|
|
1685
|
+
readonly 200: "#e3d3e8";
|
|
1686
|
+
readonly 250: "#d8c3df";
|
|
1687
|
+
readonly 300: "#ccb2d4";
|
|
1688
|
+
readonly 350: "#bc9fc5";
|
|
1689
|
+
readonly 400: "#aa8bb4";
|
|
1690
|
+
readonly 450: "#9877a2";
|
|
1691
|
+
readonly 500: "#886792";
|
|
1692
|
+
readonly 550: "#795a83";
|
|
1693
|
+
readonly 600: "#6a4c74";
|
|
1694
|
+
readonly 650: "#5d3f66";
|
|
1695
|
+
readonly 700: "#503458";
|
|
1696
|
+
readonly 750: "#44284c";
|
|
1697
|
+
readonly 800: "#381e40";
|
|
1698
|
+
readonly 850: "#2f1637";
|
|
1699
|
+
readonly 900: "#260e2d";
|
|
1700
|
+
readonly 950: "#1a0420";
|
|
1701
|
+
};
|
|
1702
|
+
readonly red: {
|
|
1703
|
+
readonly 0: "#fff3f1";
|
|
1704
|
+
readonly 50: "#ffebe7";
|
|
1705
|
+
readonly 100: "#ffe2de";
|
|
1706
|
+
readonly 150: "#ffd0ca";
|
|
1707
|
+
readonly 200: "#ffbfb6";
|
|
1708
|
+
readonly 250: "#ffaca2";
|
|
1709
|
+
readonly 300: "#ff988d";
|
|
1710
|
+
readonly 350: "#ff8277";
|
|
1711
|
+
readonly 400: "#ff695e";
|
|
1712
|
+
readonly 450: "#ff4a43";
|
|
1713
|
+
readonly 500: "#fc1724";
|
|
1714
|
+
readonly 550: "#e9041b";
|
|
1715
|
+
readonly 600: "#d30317";
|
|
1716
|
+
readonly 650: "#be0314";
|
|
1717
|
+
readonly 700: "#a90210";
|
|
1718
|
+
readonly 750: "#95010d";
|
|
1719
|
+
readonly 800: "#80010a";
|
|
1720
|
+
readonly 850: "#6d0107";
|
|
1721
|
+
readonly 900: "#590004";
|
|
1722
|
+
readonly 950: "#470003";
|
|
1723
|
+
};
|
|
1724
|
+
readonly orange: {
|
|
1725
|
+
readonly 0: "#fff3ed";
|
|
1726
|
+
readonly 50: "#ffeee5";
|
|
1727
|
+
readonly 100: "#ffe9dd";
|
|
1728
|
+
readonly 150: "#ffdecd";
|
|
1729
|
+
readonly 200: "#ffd3bc";
|
|
1730
|
+
readonly 250: "#ffc8aa";
|
|
1731
|
+
readonly 300: "#ffbb96";
|
|
1732
|
+
readonly 350: "#ffae80";
|
|
1733
|
+
readonly 400: "#ff9e66";
|
|
1734
|
+
readonly 450: "#ff8d46";
|
|
1735
|
+
readonly 500: "#fc7a15";
|
|
1736
|
+
readonly 550: "#ec7004";
|
|
1737
|
+
readonly 600: "#d86603";
|
|
1738
|
+
readonly 650: "#c35b02";
|
|
1739
|
+
readonly 700: "#ac5002";
|
|
1740
|
+
readonly 750: "#954401";
|
|
1741
|
+
readonly 800: "#7e3801";
|
|
1742
|
+
readonly 850: "#662c01";
|
|
1743
|
+
readonly 900: "#502100";
|
|
1744
|
+
readonly 950: "#391600";
|
|
1745
|
+
};
|
|
1746
|
+
readonly amber: {
|
|
1747
|
+
readonly 0: "#fcf4ec";
|
|
1748
|
+
readonly 50: "#fef1e4";
|
|
1749
|
+
readonly 100: "#ffeedb";
|
|
1750
|
+
readonly 150: "#ffe7cd";
|
|
1751
|
+
readonly 200: "#ffe0bf";
|
|
1752
|
+
readonly 250: "#ffd9af";
|
|
1753
|
+
readonly 300: "#ffd19d";
|
|
1754
|
+
readonly 350: "#ffc888";
|
|
1755
|
+
readonly 400: "#ffbe6f";
|
|
1756
|
+
readonly 450: "#ffb24e";
|
|
1757
|
+
readonly 500: "#fda51a";
|
|
1758
|
+
readonly 550: "#f09a05";
|
|
1759
|
+
readonly 600: "#dd8e04";
|
|
1760
|
+
readonly 650: "#c88003";
|
|
1761
|
+
readonly 700: "#b17002";
|
|
1762
|
+
readonly 750: "#986002";
|
|
1763
|
+
readonly 800: "#7e4f01";
|
|
1764
|
+
readonly 850: "#643d01";
|
|
1765
|
+
readonly 900: "#4a2c00";
|
|
1766
|
+
readonly 950: "#321c00";
|
|
1767
|
+
};
|
|
1768
|
+
readonly yellow: {
|
|
1769
|
+
readonly 0: "#f8f6eb";
|
|
1770
|
+
readonly 50: "#faf5e0";
|
|
1771
|
+
readonly 100: "#fcf4d5";
|
|
1772
|
+
readonly 150: "#fff2bd";
|
|
1773
|
+
readonly 200: "#fff0b1";
|
|
1774
|
+
readonly 250: "#ffeda3";
|
|
1775
|
+
readonly 300: "#ffe992";
|
|
1776
|
+
readonly 350: "#ffe67e";
|
|
1777
|
+
readonly 400: "#ffe162";
|
|
1778
|
+
readonly 450: "#ffdb37";
|
|
1779
|
+
readonly 500: "#fad620";
|
|
1780
|
+
readonly 550: "#f1cd0d";
|
|
1781
|
+
readonly 600: "#e2c006";
|
|
1782
|
+
readonly 650: "#ceae05";
|
|
1783
|
+
readonly 700: "#b69a04";
|
|
1784
|
+
readonly 750: "#9b8303";
|
|
1785
|
+
readonly 800: "#7e6b02";
|
|
1786
|
+
readonly 850: "#615101";
|
|
1787
|
+
readonly 900: "#443900";
|
|
1788
|
+
readonly 950: "#292100";
|
|
1789
|
+
};
|
|
1790
|
+
readonly lime: {
|
|
1791
|
+
readonly 0: "#f2f8ed";
|
|
1792
|
+
readonly 50: "#ecf8e1";
|
|
1793
|
+
readonly 100: "#e6f8d5";
|
|
1794
|
+
readonly 150: "#daf8be";
|
|
1795
|
+
readonly 200: "#cef7a6";
|
|
1796
|
+
readonly 250: "#c3f58f";
|
|
1797
|
+
readonly 300: "#b8f177";
|
|
1798
|
+
readonly 350: "#aded60";
|
|
1799
|
+
readonly 400: "#a3e749";
|
|
1800
|
+
readonly 450: "#99df32";
|
|
1801
|
+
readonly 500: "#90d61c";
|
|
1802
|
+
readonly 550: "#86cb05";
|
|
1803
|
+
readonly 600: "#7bbb05";
|
|
1804
|
+
readonly 650: "#6fa904";
|
|
1805
|
+
readonly 700: "#619503";
|
|
1806
|
+
readonly 750: "#538002";
|
|
1807
|
+
readonly 800: "#446a01";
|
|
1808
|
+
readonly 850: "#345301";
|
|
1809
|
+
readonly 900: "#253d00";
|
|
1810
|
+
readonly 950: "#162700";
|
|
1811
|
+
};
|
|
1812
|
+
readonly green: {
|
|
1813
|
+
readonly 0: "#eff9ef";
|
|
1814
|
+
readonly 50: "#e4f9e5";
|
|
1815
|
+
readonly 100: "#d9f8da";
|
|
1816
|
+
readonly 150: "#c3f5c5";
|
|
1817
|
+
readonly 200: "#adf2b1";
|
|
1818
|
+
readonly 250: "#96ee9d";
|
|
1819
|
+
readonly 300: "#7fe989";
|
|
1820
|
+
readonly 350: "#68e277";
|
|
1821
|
+
readonly 400: "#51da65";
|
|
1822
|
+
readonly 450: "#3bd056";
|
|
1823
|
+
readonly 500: "#24c548";
|
|
1824
|
+
readonly 550: "#05b83c";
|
|
1825
|
+
readonly 600: "#04a836";
|
|
1826
|
+
readonly 650: "#039730";
|
|
1827
|
+
readonly 700: "#028629";
|
|
1828
|
+
readonly 750: "#027322";
|
|
1829
|
+
readonly 800: "#01611b";
|
|
1830
|
+
readonly 850: "#014e14";
|
|
1831
|
+
readonly 900: "#003c0e";
|
|
1832
|
+
readonly 950: "#002b07";
|
|
1833
|
+
};
|
|
1834
|
+
readonly emerald: {
|
|
1835
|
+
readonly 0: "#eef9f3";
|
|
1836
|
+
readonly 50: "#e4faee";
|
|
1837
|
+
readonly 100: "#dafae8";
|
|
1838
|
+
readonly 150: "#c6fbdd";
|
|
1839
|
+
readonly 200: "#b0fbd2";
|
|
1840
|
+
readonly 250: "#9afac7";
|
|
1841
|
+
readonly 300: "#83f7bd";
|
|
1842
|
+
readonly 350: "#6df4b3";
|
|
1843
|
+
readonly 400: "#56eea9";
|
|
1844
|
+
readonly 450: "#40e7a0";
|
|
1845
|
+
readonly 500: "#2bdf97";
|
|
1846
|
+
readonly 550: "#14d38c";
|
|
1847
|
+
readonly 600: "#06c381";
|
|
1848
|
+
readonly 650: "#05b174";
|
|
1849
|
+
readonly 700: "#049c66";
|
|
1850
|
+
readonly 750: "#038557";
|
|
1851
|
+
readonly 800: "#026e47";
|
|
1852
|
+
readonly 850: "#015737";
|
|
1853
|
+
readonly 900: "#014027";
|
|
1854
|
+
readonly 950: "#002a18";
|
|
1855
|
+
};
|
|
1856
|
+
readonly teal: {
|
|
1857
|
+
readonly 0: "#eef8f6";
|
|
1858
|
+
readonly 50: "#e4f9f4";
|
|
1859
|
+
readonly 100: "#daf9f3";
|
|
1860
|
+
readonly 150: "#c6f9f0";
|
|
1861
|
+
readonly 200: "#b0f8ed";
|
|
1862
|
+
readonly 250: "#9af6e8";
|
|
1863
|
+
readonly 300: "#83f3e4";
|
|
1864
|
+
readonly 350: "#6defde";
|
|
1865
|
+
readonly 400: "#56e9d8";
|
|
1866
|
+
readonly 450: "#40e2d0";
|
|
1867
|
+
readonly 500: "#2bd9c7";
|
|
1868
|
+
readonly 550: "#14cebc";
|
|
1869
|
+
readonly 600: "#06bfae";
|
|
1870
|
+
readonly 650: "#05ac9d";
|
|
1871
|
+
readonly 700: "#04988b";
|
|
1872
|
+
readonly 750: "#038277";
|
|
1873
|
+
readonly 800: "#026b62";
|
|
1874
|
+
readonly 850: "#01554d";
|
|
1875
|
+
readonly 900: "#013e38";
|
|
1876
|
+
readonly 950: "#002824";
|
|
1877
|
+
};
|
|
1878
|
+
readonly cyan: {
|
|
1879
|
+
readonly 0: "#eef8fa";
|
|
1880
|
+
readonly 50: "#e4f8fc";
|
|
1881
|
+
readonly 100: "#daf7fd";
|
|
1882
|
+
readonly 150: "#c8f6ff";
|
|
1883
|
+
readonly 200: "#b7f3ff";
|
|
1884
|
+
readonly 250: "#a5f0ff";
|
|
1885
|
+
readonly 300: "#8fedff";
|
|
1886
|
+
readonly 350: "#73e9ff";
|
|
1887
|
+
readonly 400: "#55e4fc";
|
|
1888
|
+
readonly 450: "#3fddf6";
|
|
1889
|
+
readonly 500: "#2bd4ee";
|
|
1890
|
+
readonly 550: "#14c8e2";
|
|
1891
|
+
readonly 600: "#06b9d1";
|
|
1892
|
+
readonly 650: "#05a8bd";
|
|
1893
|
+
readonly 700: "#0394a7";
|
|
1894
|
+
readonly 750: "#027f8f";
|
|
1895
|
+
readonly 800: "#026877";
|
|
1896
|
+
readonly 850: "#01525e";
|
|
1897
|
+
readonly 900: "#013c45";
|
|
1898
|
+
readonly 950: "#00272d";
|
|
1899
|
+
};
|
|
1900
|
+
readonly sky: {
|
|
1901
|
+
readonly 0: "#eef7fd";
|
|
1902
|
+
readonly 50: "#e6f5fe";
|
|
1903
|
+
readonly 100: "#def2ff";
|
|
1904
|
+
readonly 150: "#cfedff";
|
|
1905
|
+
readonly 200: "#bfe7ff";
|
|
1906
|
+
readonly 250: "#aee1ff";
|
|
1907
|
+
readonly 300: "#9cdaff";
|
|
1908
|
+
readonly 350: "#87d3ff";
|
|
1909
|
+
readonly 400: "#6ecbff";
|
|
1910
|
+
readonly 450: "#4dc2ff";
|
|
1911
|
+
readonly 500: "#24b8fb";
|
|
1912
|
+
readonly 550: "#08aced";
|
|
1913
|
+
readonly 600: "#049dda";
|
|
1914
|
+
readonly 650: "#038ec4";
|
|
1915
|
+
readonly 700: "#027dae";
|
|
1916
|
+
readonly 750: "#026b96";
|
|
1917
|
+
readonly 800: "#01597e";
|
|
1918
|
+
readonly 850: "#014766";
|
|
1919
|
+
readonly 900: "#00364e";
|
|
1920
|
+
readonly 950: "#002537";
|
|
1921
|
+
};
|
|
1922
|
+
readonly blue: {
|
|
1923
|
+
readonly 0: "#f1f6ff";
|
|
1924
|
+
readonly 50: "#e6f0ff";
|
|
1925
|
+
readonly 100: "#dce9ff";
|
|
1926
|
+
readonly 150: "#c7dbff";
|
|
1927
|
+
readonly 200: "#b2cdff";
|
|
1928
|
+
readonly 250: "#9dc0ff";
|
|
1929
|
+
readonly 300: "#88b2ff";
|
|
1930
|
+
readonly 350: "#73a3ff";
|
|
1931
|
+
readonly 400: "#5d95ff";
|
|
1932
|
+
readonly 450: "#4786fe";
|
|
1933
|
+
readonly 500: "#3577f9";
|
|
1934
|
+
readonly 550: "#296aea";
|
|
1935
|
+
readonly 600: "#1f5eda";
|
|
1936
|
+
readonly 650: "#1552ca";
|
|
1937
|
+
readonly 700: "#0a46ba";
|
|
1938
|
+
readonly 750: "#013baa";
|
|
1939
|
+
readonly 800: "#003295";
|
|
1940
|
+
readonly 850: "#002a7f";
|
|
1941
|
+
readonly 900: "#00226b";
|
|
1942
|
+
readonly 950: "#001a57";
|
|
1943
|
+
};
|
|
1944
|
+
readonly indigo: {
|
|
1945
|
+
readonly 0: "#f4f5ff";
|
|
1946
|
+
readonly 50: "#eceeff";
|
|
1947
|
+
readonly 100: "#e4e6ff";
|
|
1948
|
+
readonly 150: "#d4d6ff";
|
|
1949
|
+
readonly 200: "#c4c7ff";
|
|
1950
|
+
readonly 250: "#b5b8ff";
|
|
1951
|
+
readonly 300: "#a6a8ff";
|
|
1952
|
+
readonly 350: "#9898ff";
|
|
1953
|
+
readonly 400: "#8a87ff";
|
|
1954
|
+
readonly 450: "#7e75fe";
|
|
1955
|
+
readonly 500: "#7265f9";
|
|
1956
|
+
readonly 550: "#6858ea";
|
|
1957
|
+
readonly 600: "#5d4cda";
|
|
1958
|
+
readonly 650: "#5440ca";
|
|
1959
|
+
readonly 700: "#4a35ba";
|
|
1960
|
+
readonly 750: "#4129aa";
|
|
1961
|
+
readonly 800: "#381e9a";
|
|
1962
|
+
readonly 850: "#301189";
|
|
1963
|
+
readonly 900: "#280379";
|
|
1964
|
+
readonly 950: "#1f0064";
|
|
1965
|
+
};
|
|
1966
|
+
readonly purple: {
|
|
1967
|
+
readonly 0: "#f8f3ff";
|
|
1968
|
+
readonly 50: "#f3eaff";
|
|
1969
|
+
readonly 100: "#eee1ff";
|
|
1970
|
+
readonly 150: "#e4d0ff";
|
|
1971
|
+
readonly 200: "#dbbdff";
|
|
1972
|
+
readonly 250: "#d2abff";
|
|
1973
|
+
readonly 300: "#c997ff";
|
|
1974
|
+
readonly 350: "#c083ff";
|
|
1975
|
+
readonly 400: "#b86eff";
|
|
1976
|
+
readonly 450: "#b055fe";
|
|
1977
|
+
readonly 500: "#a63cf9";
|
|
1978
|
+
readonly 550: "#992dea";
|
|
1979
|
+
readonly 600: "#8d1cda";
|
|
1980
|
+
readonly 650: "#8003ca";
|
|
1981
|
+
readonly 700: "#7202b4";
|
|
1982
|
+
readonly 750: "#64019f";
|
|
1983
|
+
readonly 800: "#57018b";
|
|
1984
|
+
readonly 850: "#4a0177";
|
|
1985
|
+
readonly 900: "#3d0164";
|
|
1986
|
+
readonly 950: "#310051";
|
|
1987
|
+
};
|
|
1988
|
+
readonly magenta: {
|
|
1989
|
+
readonly 0: "#fff1fd";
|
|
1990
|
+
readonly 50: "#ffeafc";
|
|
1991
|
+
readonly 100: "#ffe3fb";
|
|
1992
|
+
readonly 150: "#ffd4fa";
|
|
1993
|
+
readonly 200: "#ffc5f9";
|
|
1994
|
+
readonly 250: "#ffb4f7";
|
|
1995
|
+
readonly 300: "#ffa2f7";
|
|
1996
|
+
readonly 350: "#ff8df6";
|
|
1997
|
+
readonly 400: "#ff74f6";
|
|
1998
|
+
readonly 450: "#ff52f6";
|
|
1999
|
+
readonly 500: "#fa25f3";
|
|
2000
|
+
readonly 550: "#eb05e4";
|
|
2001
|
+
readonly 600: "#d704d0";
|
|
2002
|
+
readonly 650: "#c103bb";
|
|
2003
|
+
readonly 700: "#ab03a6";
|
|
2004
|
+
readonly 750: "#950290";
|
|
2005
|
+
readonly 800: "#7e017a";
|
|
2006
|
+
readonly 850: "#680164";
|
|
2007
|
+
readonly 900: "#52014f";
|
|
2008
|
+
readonly 950: "#3c003a";
|
|
2009
|
+
};
|
|
2010
|
+
readonly pink: {
|
|
2011
|
+
readonly 0: "#fff2f6";
|
|
2012
|
+
readonly 50: "#ffeaf0";
|
|
2013
|
+
readonly 100: "#ffe2eb";
|
|
2014
|
+
readonly 150: "#ffd1e1";
|
|
2015
|
+
readonly 200: "#ffc0d6";
|
|
2016
|
+
readonly 250: "#ffaecb";
|
|
2017
|
+
readonly 300: "#ff9bc1";
|
|
2018
|
+
readonly 350: "#ff85b6";
|
|
2019
|
+
readonly 400: "#ff6cab";
|
|
2020
|
+
readonly 450: "#ff4ca0";
|
|
2021
|
+
readonly 500: "#fa2195";
|
|
2022
|
+
readonly 550: "#ea0488";
|
|
2023
|
+
readonly 600: "#d5037c";
|
|
2024
|
+
readonly 650: "#c0036f";
|
|
2025
|
+
readonly 700: "#aa0262";
|
|
2026
|
+
readonly 750: "#950155";
|
|
2027
|
+
readonly 800: "#800148";
|
|
2028
|
+
readonly 850: "#6b013b";
|
|
2029
|
+
readonly 900: "#57002f";
|
|
2030
|
+
readonly 950: "#430023";
|
|
2031
|
+
};
|
|
2032
|
+
readonly white: "#ffffff";
|
|
2033
|
+
readonly black: "#000000";
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
export declare type PaletteHue = {
|
|
2037
|
+
[Key in keyof Palette]: Palette[Key] extends string ? never : Key;
|
|
2038
|
+
}[keyof Palette];
|
|
2039
|
+
|
|
2040
|
+
export declare type PaletteRamp = Readonly<Record<PaletteStep, string>>;
|
|
2041
|
+
|
|
2042
|
+
export declare type PaletteStep = keyof Palette['gray'];
|
|
2043
|
+
|
|
2044
|
+
/**
|
|
2045
|
+
* Corner radius scale, ranked from `none` to `3xl`, plus `full` for pills and
|
|
2046
|
+
* circles. Ranks do not name their value, so the `tokens` prop can override
|
|
2047
|
+
* them.
|
|
2048
|
+
*/
|
|
2049
|
+
declare const radii: {
|
|
2050
|
+
readonly none: "0";
|
|
2051
|
+
readonly xs: "0.125rem";
|
|
2052
|
+
readonly sm: "0.25rem";
|
|
2053
|
+
readonly md: "0.375rem";
|
|
2054
|
+
readonly lg: "0.5rem";
|
|
2055
|
+
readonly xl: "0.75rem";
|
|
2056
|
+
readonly '2xl': "1rem";
|
|
2057
|
+
readonly '3xl': "1.5rem";
|
|
2058
|
+
readonly full: "9999px";
|
|
2059
|
+
};
|
|
2060
|
+
|
|
2061
|
+
export declare type RadiusToken = keyof typeof radii;
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Box shadows ranked by elevation, from flush with the page to modal dialogs,
|
|
2065
|
+
* each named after the role of the layer it lifts. Shared by every mode: in
|
|
2066
|
+
* dark mode, elevation mostly relies on surfaces and borders.
|
|
2067
|
+
*/
|
|
2068
|
+
declare const shadows: {
|
|
2069
|
+
readonly none: "none";
|
|
2070
|
+
readonly low: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
2071
|
+
readonly raised: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
|
|
2072
|
+
readonly floating: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
|
|
2073
|
+
readonly overlay: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
|
|
2074
|
+
readonly modal: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
|
|
2075
|
+
};
|
|
2076
|
+
|
|
2077
|
+
export declare type ShadowToken = keyof typeof shadows;
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* Deep partial mode-independent tokens, shared by every flavor and mode;
|
|
2081
|
+
* colors are set through a flavor instead.
|
|
2082
|
+
*/
|
|
2083
|
+
export declare type SharedTokenOverrides = Omit<ThemeTokenOverrides, keyof FlavorTokens>;
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Spacing scale, keyed by pixel reference at a 16px root. Each key names its
|
|
2087
|
+
* value, so spaces cannot be overridden anywhere: every token API refuses
|
|
2088
|
+
* them, since an override would make the name wrong.
|
|
2089
|
+
*/
|
|
2090
|
+
declare const spaces: {
|
|
2091
|
+
readonly 0: "0";
|
|
2092
|
+
readonly 1: "1px";
|
|
2093
|
+
readonly 2: "0.125rem";
|
|
2094
|
+
readonly 4: "0.25rem";
|
|
2095
|
+
readonly 6: "0.375rem";
|
|
2096
|
+
readonly 8: "0.5rem";
|
|
2097
|
+
readonly 10: "0.625rem";
|
|
2098
|
+
readonly 12: "0.75rem";
|
|
2099
|
+
readonly 14: "0.875rem";
|
|
2100
|
+
readonly 16: "1rem";
|
|
2101
|
+
readonly 18: "1.125rem";
|
|
2102
|
+
readonly 20: "1.25rem";
|
|
2103
|
+
readonly 24: "1.5rem";
|
|
2104
|
+
readonly 28: "1.75rem";
|
|
2105
|
+
readonly 32: "2rem";
|
|
2106
|
+
readonly 36: "2.25rem";
|
|
2107
|
+
readonly 40: "2.5rem";
|
|
2108
|
+
readonly 44: "2.75rem";
|
|
2109
|
+
readonly 48: "3rem";
|
|
2110
|
+
readonly 56: "3.5rem";
|
|
2111
|
+
readonly 64: "4rem";
|
|
2112
|
+
readonly 80: "5rem";
|
|
2113
|
+
readonly 96: "6rem";
|
|
2114
|
+
readonly 112: "7rem";
|
|
2115
|
+
readonly 128: "8rem";
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
export declare type SpaceToken = keyof typeof spaces;
|
|
2119
|
+
|
|
2120
|
+
export declare type Theme = ThemeTokens<typeof defaultLightTheme>;
|
|
2121
|
+
|
|
2122
|
+
/** Attribute carrying the theme name on a themed element. */
|
|
2123
|
+
export declare const themeAttribute = "data-cv-theme";
|
|
2124
|
+
|
|
2125
|
+
export declare type ThemeColor = {
|
|
2126
|
+
[Key in keyof ThemeColors]: ThemeColors[Key] extends string ? Key : `${Key}.${Extract<keyof ThemeColors[Key], string>}`;
|
|
2127
|
+
}[keyof ThemeColors];
|
|
2128
|
+
|
|
2129
|
+
export declare type ThemeColorAccent = Readonly<{
|
|
2130
|
+
/** Solid fill for high-emphasis elements. */
|
|
2131
|
+
main: string;
|
|
2132
|
+
/** Solid fill on hover. */
|
|
2133
|
+
hover: string;
|
|
2134
|
+
/** Solid fill while pressed or active. */
|
|
2135
|
+
pressed: string;
|
|
2136
|
+
/** Text and icons on the solid fills. */
|
|
2137
|
+
foreground: string;
|
|
2138
|
+
/** Tinted fill for low-emphasis elements. */
|
|
2139
|
+
subtle: string;
|
|
2140
|
+
/** Tinted fill on hover. */
|
|
2141
|
+
subtleHover: string;
|
|
2142
|
+
/** Tinted fill while pressed or active. */
|
|
2143
|
+
subtlePressed: string;
|
|
2144
|
+
/** Text and icons on the tinted fills. */
|
|
2145
|
+
subtleForeground: string;
|
|
2146
|
+
/** Colored text and icons on the background and surfaces. */
|
|
2147
|
+
text: string;
|
|
2148
|
+
/** Intent outline on the background and surfaces: no contrast guarantee in `default` and `neutral`, 4.5:1 in `contrast`. */
|
|
2149
|
+
border: string;
|
|
2150
|
+
/** Decorative outline paired with the tinted fills. */
|
|
2151
|
+
subtleBorder: string;
|
|
2152
|
+
}>;
|
|
2153
|
+
|
|
2154
|
+
export declare type ThemeColorIntent = {
|
|
2155
|
+
[Key in keyof ThemeColors]: ThemeColors[Key] extends ThemeColorAccent ? Key : never;
|
|
2156
|
+
}[keyof ThemeColors];
|
|
2157
|
+
|
|
2158
|
+
export declare type ThemeColorOverrides = ThemeOverrides<ThemeColors>;
|
|
2159
|
+
|
|
2160
|
+
export declare type ThemeColors = Theme['color'];
|
|
2161
|
+
|
|
2162
|
+
export declare type ThemeContextValue = Readonly<{
|
|
2163
|
+
/** Selected theme, possibly `system`. */
|
|
2164
|
+
theme: ThemeName;
|
|
2165
|
+
/** Effective theme: `system` is replaced by the OS preference. */
|
|
2166
|
+
resolvedTheme: ThemeName;
|
|
2167
|
+
/** Requests a theme change; throws when the name is empty. */
|
|
2168
|
+
setTheme: (theme: ThemeName) => void;
|
|
2169
|
+
/** Selected flavor, `default` unless another one is selected. */
|
|
2170
|
+
flavor: FlavorName;
|
|
2171
|
+
/** Selectable flavors: `default` first, then the registered ones. */
|
|
2172
|
+
flavors: readonly FlavorName[];
|
|
2173
|
+
/** Requests a flavor change; throws when the flavor is not registered. */
|
|
2174
|
+
setFlavor: (flavor: FlavorName) => void;
|
|
2175
|
+
}>;
|
|
2176
|
+
|
|
2177
|
+
/** Class applying the dark theme to an element without `themeAttribute`. */
|
|
2178
|
+
export declare const themeDarkClass = "cv-theme-dark";
|
|
2179
|
+
|
|
2180
|
+
/** Cascade layer holding every rule of the theme stylesheet. */
|
|
2181
|
+
export declare const themeLayer = "cv.theme";
|
|
2182
|
+
|
|
2183
|
+
/** Class applying the light theme to an element without `themeAttribute`. */
|
|
2184
|
+
export declare const themeLightClass = "cv-theme-light";
|
|
2185
|
+
|
|
2186
|
+
/** Built-in mode: a fixed light or dark theme, or the OS preference. */
|
|
2187
|
+
export declare type ThemeMode = (typeof themeModes)[number];
|
|
2188
|
+
|
|
2189
|
+
/** Built-in modes, in display order. */
|
|
2190
|
+
export declare const themeModes: readonly ["light", "dark", "system"];
|
|
2191
|
+
|
|
2192
|
+
/**
|
|
2193
|
+
* A built-in mode or the name of a custom CSS theme. The intersection keeps
|
|
2194
|
+
* editor autocompletion of the built-in modes while accepting any string.
|
|
2195
|
+
*/
|
|
2196
|
+
export declare type ThemeName = ThemeMode | (string & Record<never, never>);
|
|
2197
|
+
|
|
2198
|
+
/** Deep partial token tree; `undefined` leaves keep the inherited value. */
|
|
2199
|
+
export declare type ThemeOverrides<T = Theme> = {
|
|
2200
|
+
readonly [Key in keyof T]?: T[Key] extends string ? string | undefined : ThemeOverrides<T[Key]> | undefined;
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* Applies a theme, a flavor and token overrides, and exposes them to
|
|
2205
|
+
* `useTheme` and `useSetTheme`. The stylesheets of the registered flavors
|
|
2206
|
+
* are rendered as hoisted `<style>` elements, server rendering included. The root provider themes the whole document, portals
|
|
2207
|
+
* included, through `<html>`; its wrapper uses `display: contents` and also
|
|
2208
|
+
* carries the theme and tokens so server-rendered content is themed before
|
|
2209
|
+
* hydration. A nested provider themes its own subtree: with `theme` or
|
|
2210
|
+
* `defaultTheme` it creates a local theme, without them it follows its
|
|
2211
|
+
* parent, whose theme its `setTheme` changes; the flavor works alike.
|
|
2212
|
+
*
|
|
2213
|
+
* As a trade-off of the document wrapper, themed variables (colors) a
|
|
2214
|
+
* stylesheet redefines on `html` are re-declared below it: such overrides
|
|
2215
|
+
* belong in a flavor created with `createFlavor`.
|
|
2216
|
+
*
|
|
2217
|
+
* @param props Provider props and native `div` attributes.
|
|
2218
|
+
* @param props.theme Controlled theme; keep it always defined or absent.
|
|
2219
|
+
* @param props.defaultTheme Initial theme of an uncontrolled provider,
|
|
2220
|
+
* `system` by default for a root provider.
|
|
2221
|
+
* @param props.flavor Controlled flavor, a name or a flavor object, which
|
|
2222
|
+
* is then registered; keep it always defined or absent.
|
|
2223
|
+
* @param props.defaultFlavor Initial flavor of an uncontrolled provider, a
|
|
2224
|
+
* name or a flavor object, which is then registered; `default` by default
|
|
2225
|
+
* for a root provider.
|
|
2226
|
+
* @param props.flavors Flavors made selectable in this subtree.
|
|
2227
|
+
* @param props.scope `document` by default for a root provider, `subtree`
|
|
2228
|
+
* for a nested one.
|
|
2229
|
+
* @param props.tokens Overrides of the mode-independent tokens (radii,
|
|
2230
|
+
* typography, shadows, motion…) applied on top of the theme; colors are set
|
|
2231
|
+
* through a flavor, and spaces, named after their value, cannot be
|
|
2232
|
+
* overridden.
|
|
2233
|
+
* @param props.onThemeChange Called with every accepted or requested change.
|
|
2234
|
+
* @param props.onFlavorChange Called with every accepted or requested flavor
|
|
2235
|
+
* change.
|
|
2236
|
+
* @param props.className Class added to the wrapper.
|
|
2237
|
+
* @param props.style Inline style of the wrapper, applied over the tokens.
|
|
2238
|
+
* @param props.children Themed content.
|
|
2239
|
+
* @returns The wrapper `div`, which receives the `ref` and the other native
|
|
2240
|
+
* attributes.
|
|
2241
|
+
* @throws {TypeError} When a theme name is empty, a flavor is malformed or
|
|
2242
|
+
* not registered, or a token is a color or space, unknown or malformed.
|
|
2243
|
+
* @throws {Error} When the provider switches between controlled and
|
|
2244
|
+
* uncontrolled, or `defaultTheme` or `defaultFlavor` changes after mount.
|
|
2245
|
+
*/
|
|
2246
|
+
export declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
2247
|
+
|
|
2248
|
+
export declare type ThemeProviderProps = Readonly<ComponentPropsWithRef<'div'> & {
|
|
2249
|
+
/** Controlled theme; keep it always defined or always absent. */
|
|
2250
|
+
theme?: ThemeName;
|
|
2251
|
+
/** Initial theme of an uncontrolled provider; read once, at mount. */
|
|
2252
|
+
defaultTheme?: ThemeName;
|
|
2253
|
+
/**
|
|
2254
|
+
* Controlled flavor; keep it always defined or always absent. A flavor
|
|
2255
|
+
* object is registered as if listed in `flavors`.
|
|
2256
|
+
*/
|
|
2257
|
+
flavor?: FlavorReference;
|
|
2258
|
+
/**
|
|
2259
|
+
* Initial flavor of an uncontrolled provider; its name is read once, at
|
|
2260
|
+
* mount. A flavor object is registered as if listed in `flavors`.
|
|
2261
|
+
*/
|
|
2262
|
+
defaultFlavor?: FlavorReference;
|
|
2263
|
+
/**
|
|
2264
|
+
* Flavors made selectable in this subtree, on top of those of the
|
|
2265
|
+
* parent providers; a flavor named `default` replaces the built-in
|
|
2266
|
+
* one. Only the flavors listed here are styled.
|
|
2267
|
+
*/
|
|
2268
|
+
flavors?: readonly Flavor[];
|
|
2269
|
+
/**
|
|
2270
|
+
* Themed element: `document` by default for a root provider, `subtree`
|
|
2271
|
+
* for a nested one.
|
|
2272
|
+
*/
|
|
2273
|
+
scope?: ThemeProviderScope;
|
|
2274
|
+
/**
|
|
2275
|
+
* Mode-independent token overrides applied on top of the theme; none
|
|
2276
|
+
* when absent. Colors are set through a flavor; spaces, named after
|
|
2277
|
+
* their value, cannot be overridden.
|
|
2278
|
+
*/
|
|
2279
|
+
tokens?: SharedTokenOverrides;
|
|
2280
|
+
/** Called with every accepted or requested theme change. */
|
|
2281
|
+
onThemeChange?: (theme: ThemeName) => void;
|
|
2282
|
+
/** Called with every accepted or requested flavor change. */
|
|
2283
|
+
onFlavorChange?: (flavor: FlavorName) => void;
|
|
2284
|
+
}>;
|
|
2285
|
+
|
|
2286
|
+
/** Element a provider themes: the whole document or its own subtree. */
|
|
2287
|
+
export declare type ThemeProviderScope = 'document' | 'subtree';
|
|
2288
|
+
|
|
2289
|
+
export declare type ThemeRootOptions = Readonly<{
|
|
2290
|
+
/** Theme of the root provider, `system` when absent. */
|
|
2291
|
+
theme?: ThemeName;
|
|
2292
|
+
/** Flavor of the root provider, name or object; `default` when absent. */
|
|
2293
|
+
flavor?: FlavorReference;
|
|
2294
|
+
/** Mode-independent token overrides of the root provider; none when absent. */
|
|
2295
|
+
tokens?: SharedTokenOverrides;
|
|
2296
|
+
}>;
|
|
2297
|
+
|
|
2298
|
+
export declare type ThemeRootProps = Readonly<{
|
|
2299
|
+
/** Theme name, matched by the theme stylesheet. */
|
|
2300
|
+
[themeAttribute]: ThemeName;
|
|
2301
|
+
/** Flavor name, matched by the flavor stylesheets. */
|
|
2302
|
+
[flavorAttribute]: FlavorName;
|
|
2303
|
+
/** Custom properties of the token overrides, empty without overrides. */
|
|
2304
|
+
style: TokenStyles;
|
|
2305
|
+
}>;
|
|
2306
|
+
|
|
2307
|
+
/** Class following the OS preference on an element without `themeAttribute`. */
|
|
2308
|
+
export declare const themeSystemClass = "cv-theme-system";
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* Deep partial theme tokens accepted by every token API: all groups but
|
|
2312
|
+
* `space`, whose keys name their values, so no override is legitimate.
|
|
2313
|
+
*/
|
|
2314
|
+
export declare type ThemeTokenOverrides = ThemeOverrides<Omit<Theme, 'space'>>;
|
|
2315
|
+
|
|
2316
|
+
/** Token tree of the same shape as `T` whose leaves accept any CSS string. */
|
|
2317
|
+
declare type ThemeTokens<T> = {
|
|
2318
|
+
readonly [Key in keyof T]: T[Key] extends string ? string : ThemeTokens<T[Key]>;
|
|
2319
|
+
};
|
|
2320
|
+
|
|
2321
|
+
export declare type ThemeVars = typeof vars;
|
|
2322
|
+
|
|
2323
|
+
/** CSS custom properties and their values, keyed by property name. */
|
|
2324
|
+
export declare type TokenStyles = Readonly<Record<string, string>>;
|
|
2325
|
+
|
|
2326
|
+
/** Nested token object whose leaves are CSS values or variable references. */
|
|
2327
|
+
export declare type TokenTree = {
|
|
2328
|
+
readonly [key: string]: string | TokenTree;
|
|
2329
|
+
};
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* Compares the viewport width with a breakpoint through its mobile-first
|
|
2333
|
+
* media query, for layouts that change in JavaScript rather than in CSS.
|
|
2334
|
+
* Components following the same breakpoint share one media query listener,
|
|
2335
|
+
* removed when the last one unmounts, and only re-render when the comparison
|
|
2336
|
+
* changes. Server and hydration renders, and environments without
|
|
2337
|
+
* `matchMedia`, reach no breakpoint: `above` is `false` and `below` is `true`.
|
|
2338
|
+
*
|
|
2339
|
+
* @param breakpoint Breakpoint to compare the viewport with.
|
|
2340
|
+
* @param direction `above` for a viewport at least as wide as the
|
|
2341
|
+
* breakpoint, `below` for a narrower one; `above` by default.
|
|
2342
|
+
* @returns Whether the viewport is on the given side of the breakpoint.
|
|
2343
|
+
*/
|
|
2344
|
+
export declare const useBreakpoint: (breakpoint: BreakpointToken, direction?: BreakpointDirection) => boolean;
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* Reads only the stable `setTheme` of the closest `ThemeProvider`; the
|
|
2348
|
+
* calling component does not re-render when the theme changes.
|
|
2349
|
+
*
|
|
2350
|
+
* @returns The theme setter, whose identity never changes.
|
|
2351
|
+
* @throws {Error} When called outside a `ThemeProvider`.
|
|
2352
|
+
*/
|
|
2353
|
+
export declare const useSetTheme: () => ThemeContextValue["setTheme"];
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* Reads the theme of the closest `ThemeProvider`.
|
|
2357
|
+
*
|
|
2358
|
+
* @returns The selected theme, its resolved name and its setter.
|
|
2359
|
+
* @throws {Error} When called outside a `ThemeProvider`.
|
|
2360
|
+
*/
|
|
2361
|
+
export declare const useTheme: () => ThemeContextValue;
|
|
2362
|
+
|
|
2363
|
+
/** CSS variable references of the theme contract (`--theme-*`). */
|
|
2364
|
+
export declare const vars: {
|
|
2365
|
+
readonly space: {
|
|
2366
|
+
readonly 0: `var(--${string})`;
|
|
2367
|
+
readonly 1: `var(--${string})`;
|
|
2368
|
+
readonly 2: `var(--${string})`;
|
|
2369
|
+
readonly 4: `var(--${string})`;
|
|
2370
|
+
readonly 6: `var(--${string})`;
|
|
2371
|
+
readonly 8: `var(--${string})`;
|
|
2372
|
+
readonly 10: `var(--${string})`;
|
|
2373
|
+
readonly 12: `var(--${string})`;
|
|
2374
|
+
readonly 14: `var(--${string})`;
|
|
2375
|
+
readonly 16: `var(--${string})`;
|
|
2376
|
+
readonly 18: `var(--${string})`;
|
|
2377
|
+
readonly 20: `var(--${string})`;
|
|
2378
|
+
readonly 24: `var(--${string})`;
|
|
2379
|
+
readonly 28: `var(--${string})`;
|
|
2380
|
+
readonly 32: `var(--${string})`;
|
|
2381
|
+
readonly 36: `var(--${string})`;
|
|
2382
|
+
readonly 40: `var(--${string})`;
|
|
2383
|
+
readonly 44: `var(--${string})`;
|
|
2384
|
+
readonly 48: `var(--${string})`;
|
|
2385
|
+
readonly 56: `var(--${string})`;
|
|
2386
|
+
readonly 64: `var(--${string})`;
|
|
2387
|
+
readonly 80: `var(--${string})`;
|
|
2388
|
+
readonly 96: `var(--${string})`;
|
|
2389
|
+
readonly 112: `var(--${string})`;
|
|
2390
|
+
readonly 128: `var(--${string})`;
|
|
2391
|
+
};
|
|
2392
|
+
readonly radius: {
|
|
2393
|
+
readonly none: `var(--${string})`;
|
|
2394
|
+
readonly xs: `var(--${string})`;
|
|
2395
|
+
readonly sm: `var(--${string})`;
|
|
2396
|
+
readonly md: `var(--${string})`;
|
|
2397
|
+
readonly lg: `var(--${string})`;
|
|
2398
|
+
readonly xl: `var(--${string})`;
|
|
2399
|
+
readonly '2xl': `var(--${string})`;
|
|
2400
|
+
readonly '3xl': `var(--${string})`;
|
|
2401
|
+
readonly full: `var(--${string})`;
|
|
2402
|
+
};
|
|
2403
|
+
readonly fontFamily: {
|
|
2404
|
+
readonly sans: `var(--${string})`;
|
|
2405
|
+
readonly serif: `var(--${string})`;
|
|
2406
|
+
readonly mono: `var(--${string})`;
|
|
2407
|
+
};
|
|
2408
|
+
readonly fontSize: {
|
|
2409
|
+
readonly 10: `var(--${string})`;
|
|
2410
|
+
readonly 12: `var(--${string})`;
|
|
2411
|
+
readonly 14: `var(--${string})`;
|
|
2412
|
+
readonly 16: `var(--${string})`;
|
|
2413
|
+
readonly 18: `var(--${string})`;
|
|
2414
|
+
readonly 20: `var(--${string})`;
|
|
2415
|
+
readonly 24: `var(--${string})`;
|
|
2416
|
+
readonly 28: `var(--${string})`;
|
|
2417
|
+
readonly 32: `var(--${string})`;
|
|
2418
|
+
readonly 36: `var(--${string})`;
|
|
2419
|
+
readonly 40: `var(--${string})`;
|
|
2420
|
+
readonly 48: `var(--${string})`;
|
|
2421
|
+
readonly 60: `var(--${string})`;
|
|
2422
|
+
readonly 72: `var(--${string})`;
|
|
2423
|
+
};
|
|
2424
|
+
readonly fontWeight: {
|
|
2425
|
+
readonly regular: `var(--${string})`;
|
|
2426
|
+
readonly medium: `var(--${string})`;
|
|
2427
|
+
readonly semibold: `var(--${string})`;
|
|
2428
|
+
readonly bold: `var(--${string})`;
|
|
2429
|
+
};
|
|
2430
|
+
readonly lineHeight: {
|
|
2431
|
+
readonly none: `var(--${string})`;
|
|
2432
|
+
readonly tight: `var(--${string})`;
|
|
2433
|
+
readonly snug: `var(--${string})`;
|
|
2434
|
+
readonly normal: `var(--${string})`;
|
|
2435
|
+
readonly relaxed: `var(--${string})`;
|
|
2436
|
+
};
|
|
2437
|
+
readonly letterSpacing: {
|
|
2438
|
+
readonly tighter: `var(--${string})`;
|
|
2439
|
+
readonly tight: `var(--${string})`;
|
|
2440
|
+
readonly normal: `var(--${string})`;
|
|
2441
|
+
readonly wide: `var(--${string})`;
|
|
2442
|
+
readonly wider: `var(--${string})`;
|
|
2443
|
+
readonly widest: `var(--${string})`;
|
|
2444
|
+
};
|
|
2445
|
+
readonly opacity: {
|
|
2446
|
+
readonly hidden: `var(--${string})`;
|
|
2447
|
+
readonly disabled: `var(--${string})`;
|
|
2448
|
+
readonly muted: `var(--${string})`;
|
|
2449
|
+
readonly visible: `var(--${string})`;
|
|
2450
|
+
};
|
|
2451
|
+
readonly focusRing: {
|
|
2452
|
+
readonly width: `var(--${string})`;
|
|
2453
|
+
readonly offset: `var(--${string})`;
|
|
2454
|
+
};
|
|
2455
|
+
readonly shadow: {
|
|
2456
|
+
readonly none: `var(--${string})`;
|
|
2457
|
+
readonly low: `var(--${string})`;
|
|
2458
|
+
readonly raised: `var(--${string})`;
|
|
2459
|
+
readonly floating: `var(--${string})`;
|
|
2460
|
+
readonly overlay: `var(--${string})`;
|
|
2461
|
+
readonly modal: `var(--${string})`;
|
|
2462
|
+
};
|
|
2463
|
+
readonly dropShadow: {
|
|
2464
|
+
readonly none: `var(--${string})`;
|
|
2465
|
+
readonly low: `var(--${string})`;
|
|
2466
|
+
readonly raised: `var(--${string})`;
|
|
2467
|
+
readonly floating: `var(--${string})`;
|
|
2468
|
+
readonly overlay: `var(--${string})`;
|
|
2469
|
+
readonly modal: `var(--${string})`;
|
|
2470
|
+
};
|
|
2471
|
+
readonly zIndex: {
|
|
2472
|
+
readonly hide: `var(--${string})`;
|
|
2473
|
+
readonly base: `var(--${string})`;
|
|
2474
|
+
readonly docked: `var(--${string})`;
|
|
2475
|
+
readonly sticky: `var(--${string})`;
|
|
2476
|
+
readonly banner: `var(--${string})`;
|
|
2477
|
+
readonly overlay: `var(--${string})`;
|
|
2478
|
+
readonly modal: `var(--${string})`;
|
|
2479
|
+
readonly dropdown: `var(--${string})`;
|
|
2480
|
+
readonly popover: `var(--${string})`;
|
|
2481
|
+
readonly toast: `var(--${string})`;
|
|
2482
|
+
readonly tooltip: `var(--${string})`;
|
|
2483
|
+
};
|
|
2484
|
+
readonly duration: {
|
|
2485
|
+
readonly instant: `var(--${string})`;
|
|
2486
|
+
readonly fast: `var(--${string})`;
|
|
2487
|
+
readonly normal: `var(--${string})`;
|
|
2488
|
+
readonly slow: `var(--${string})`;
|
|
2489
|
+
readonly slower: `var(--${string})`;
|
|
2490
|
+
};
|
|
2491
|
+
readonly easing: {
|
|
2492
|
+
readonly linear: `var(--${string})`;
|
|
2493
|
+
readonly standard: `var(--${string})`;
|
|
2494
|
+
readonly in: `var(--${string})`;
|
|
2495
|
+
readonly out: `var(--${string})`;
|
|
2496
|
+
readonly inOut: `var(--${string})`;
|
|
2497
|
+
readonly overshoot: `var(--${string})`;
|
|
2498
|
+
};
|
|
2499
|
+
readonly color: {
|
|
2500
|
+
readonly primary: {
|
|
2501
|
+
readonly main: `var(--${string})`;
|
|
2502
|
+
readonly hover: `var(--${string})`;
|
|
2503
|
+
readonly pressed: `var(--${string})`;
|
|
2504
|
+
readonly foreground: `var(--${string})`;
|
|
2505
|
+
readonly subtle: `var(--${string})`;
|
|
2506
|
+
readonly subtleHover: `var(--${string})`;
|
|
2507
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2508
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2509
|
+
readonly text: `var(--${string})`;
|
|
2510
|
+
readonly border: `var(--${string})`;
|
|
2511
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2512
|
+
};
|
|
2513
|
+
readonly secondary: {
|
|
2514
|
+
readonly main: `var(--${string})`;
|
|
2515
|
+
readonly hover: `var(--${string})`;
|
|
2516
|
+
readonly pressed: `var(--${string})`;
|
|
2517
|
+
readonly foreground: `var(--${string})`;
|
|
2518
|
+
readonly subtle: `var(--${string})`;
|
|
2519
|
+
readonly subtleHover: `var(--${string})`;
|
|
2520
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2521
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2522
|
+
readonly text: `var(--${string})`;
|
|
2523
|
+
readonly border: `var(--${string})`;
|
|
2524
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2525
|
+
};
|
|
2526
|
+
readonly neutral: {
|
|
2527
|
+
readonly main: `var(--${string})`;
|
|
2528
|
+
readonly hover: `var(--${string})`;
|
|
2529
|
+
readonly pressed: `var(--${string})`;
|
|
2530
|
+
readonly foreground: `var(--${string})`;
|
|
2531
|
+
readonly subtle: `var(--${string})`;
|
|
2532
|
+
readonly subtleHover: `var(--${string})`;
|
|
2533
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2534
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2535
|
+
readonly text: `var(--${string})`;
|
|
2536
|
+
readonly border: `var(--${string})`;
|
|
2537
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2538
|
+
};
|
|
2539
|
+
readonly success: {
|
|
2540
|
+
readonly main: `var(--${string})`;
|
|
2541
|
+
readonly hover: `var(--${string})`;
|
|
2542
|
+
readonly pressed: `var(--${string})`;
|
|
2543
|
+
readonly foreground: `var(--${string})`;
|
|
2544
|
+
readonly subtle: `var(--${string})`;
|
|
2545
|
+
readonly subtleHover: `var(--${string})`;
|
|
2546
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2547
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2548
|
+
readonly text: `var(--${string})`;
|
|
2549
|
+
readonly border: `var(--${string})`;
|
|
2550
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2551
|
+
};
|
|
2552
|
+
readonly warning: {
|
|
2553
|
+
readonly main: `var(--${string})`;
|
|
2554
|
+
readonly hover: `var(--${string})`;
|
|
2555
|
+
readonly pressed: `var(--${string})`;
|
|
2556
|
+
readonly foreground: `var(--${string})`;
|
|
2557
|
+
readonly subtle: `var(--${string})`;
|
|
2558
|
+
readonly subtleHover: `var(--${string})`;
|
|
2559
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2560
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2561
|
+
readonly text: `var(--${string})`;
|
|
2562
|
+
readonly border: `var(--${string})`;
|
|
2563
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2564
|
+
};
|
|
2565
|
+
readonly info: {
|
|
2566
|
+
readonly main: `var(--${string})`;
|
|
2567
|
+
readonly hover: `var(--${string})`;
|
|
2568
|
+
readonly pressed: `var(--${string})`;
|
|
2569
|
+
readonly foreground: `var(--${string})`;
|
|
2570
|
+
readonly subtle: `var(--${string})`;
|
|
2571
|
+
readonly subtleHover: `var(--${string})`;
|
|
2572
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2573
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2574
|
+
readonly text: `var(--${string})`;
|
|
2575
|
+
readonly border: `var(--${string})`;
|
|
2576
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2577
|
+
};
|
|
2578
|
+
readonly danger: {
|
|
2579
|
+
readonly main: `var(--${string})`;
|
|
2580
|
+
readonly hover: `var(--${string})`;
|
|
2581
|
+
readonly pressed: `var(--${string})`;
|
|
2582
|
+
readonly foreground: `var(--${string})`;
|
|
2583
|
+
readonly subtle: `var(--${string})`;
|
|
2584
|
+
readonly subtleHover: `var(--${string})`;
|
|
2585
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2586
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2587
|
+
readonly text: `var(--${string})`;
|
|
2588
|
+
readonly border: `var(--${string})`;
|
|
2589
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2590
|
+
};
|
|
2591
|
+
readonly accentOrange: {
|
|
2592
|
+
readonly main: `var(--${string})`;
|
|
2593
|
+
readonly hover: `var(--${string})`;
|
|
2594
|
+
readonly pressed: `var(--${string})`;
|
|
2595
|
+
readonly foreground: `var(--${string})`;
|
|
2596
|
+
readonly subtle: `var(--${string})`;
|
|
2597
|
+
readonly subtleHover: `var(--${string})`;
|
|
2598
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2599
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2600
|
+
readonly text: `var(--${string})`;
|
|
2601
|
+
readonly border: `var(--${string})`;
|
|
2602
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2603
|
+
};
|
|
2604
|
+
readonly accentYellow: {
|
|
2605
|
+
readonly main: `var(--${string})`;
|
|
2606
|
+
readonly hover: `var(--${string})`;
|
|
2607
|
+
readonly pressed: `var(--${string})`;
|
|
2608
|
+
readonly foreground: `var(--${string})`;
|
|
2609
|
+
readonly subtle: `var(--${string})`;
|
|
2610
|
+
readonly subtleHover: `var(--${string})`;
|
|
2611
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2612
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2613
|
+
readonly text: `var(--${string})`;
|
|
2614
|
+
readonly border: `var(--${string})`;
|
|
2615
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2616
|
+
};
|
|
2617
|
+
readonly accentLime: {
|
|
2618
|
+
readonly main: `var(--${string})`;
|
|
2619
|
+
readonly hover: `var(--${string})`;
|
|
2620
|
+
readonly pressed: `var(--${string})`;
|
|
2621
|
+
readonly foreground: `var(--${string})`;
|
|
2622
|
+
readonly subtle: `var(--${string})`;
|
|
2623
|
+
readonly subtleHover: `var(--${string})`;
|
|
2624
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2625
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2626
|
+
readonly text: `var(--${string})`;
|
|
2627
|
+
readonly border: `var(--${string})`;
|
|
2628
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2629
|
+
};
|
|
2630
|
+
readonly accentCyan: {
|
|
2631
|
+
readonly main: `var(--${string})`;
|
|
2632
|
+
readonly hover: `var(--${string})`;
|
|
2633
|
+
readonly pressed: `var(--${string})`;
|
|
2634
|
+
readonly foreground: `var(--${string})`;
|
|
2635
|
+
readonly subtle: `var(--${string})`;
|
|
2636
|
+
readonly subtleHover: `var(--${string})`;
|
|
2637
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2638
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2639
|
+
readonly text: `var(--${string})`;
|
|
2640
|
+
readonly border: `var(--${string})`;
|
|
2641
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2642
|
+
};
|
|
2643
|
+
readonly accentPurple: {
|
|
2644
|
+
readonly main: `var(--${string})`;
|
|
2645
|
+
readonly hover: `var(--${string})`;
|
|
2646
|
+
readonly pressed: `var(--${string})`;
|
|
2647
|
+
readonly foreground: `var(--${string})`;
|
|
2648
|
+
readonly subtle: `var(--${string})`;
|
|
2649
|
+
readonly subtleHover: `var(--${string})`;
|
|
2650
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2651
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2652
|
+
readonly text: `var(--${string})`;
|
|
2653
|
+
readonly border: `var(--${string})`;
|
|
2654
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2655
|
+
};
|
|
2656
|
+
readonly accentPink: {
|
|
2657
|
+
readonly main: `var(--${string})`;
|
|
2658
|
+
readonly hover: `var(--${string})`;
|
|
2659
|
+
readonly pressed: `var(--${string})`;
|
|
2660
|
+
readonly foreground: `var(--${string})`;
|
|
2661
|
+
readonly subtle: `var(--${string})`;
|
|
2662
|
+
readonly subtleHover: `var(--${string})`;
|
|
2663
|
+
readonly subtlePressed: `var(--${string})`;
|
|
2664
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2665
|
+
readonly text: `var(--${string})`;
|
|
2666
|
+
readonly border: `var(--${string})`;
|
|
2667
|
+
readonly subtleBorder: `var(--${string})`;
|
|
2668
|
+
};
|
|
2669
|
+
readonly currentColor: `var(--${string})`;
|
|
2670
|
+
readonly transparent: `var(--${string})`;
|
|
2671
|
+
readonly background: `var(--${string})`;
|
|
2672
|
+
readonly overlay: `var(--${string})`;
|
|
2673
|
+
readonly focusRing: `var(--${string})`;
|
|
2674
|
+
readonly text: {
|
|
2675
|
+
readonly primary: `var(--${string})`;
|
|
2676
|
+
readonly secondary: `var(--${string})`;
|
|
2677
|
+
readonly tertiary: `var(--${string})`;
|
|
2678
|
+
};
|
|
2679
|
+
readonly surface: {
|
|
2680
|
+
readonly main: `var(--${string})`;
|
|
2681
|
+
readonly foreground: `var(--${string})`;
|
|
2682
|
+
readonly elevated: `var(--${string})`;
|
|
2683
|
+
readonly elevatedForeground: `var(--${string})`;
|
|
2684
|
+
readonly muted: `var(--${string})`;
|
|
2685
|
+
readonly mutedForeground: `var(--${string})`;
|
|
2686
|
+
readonly inverse: `var(--${string})`;
|
|
2687
|
+
readonly inverseForeground: `var(--${string})`;
|
|
2688
|
+
};
|
|
2689
|
+
readonly link: {
|
|
2690
|
+
readonly main: `var(--${string})`;
|
|
2691
|
+
readonly hover: `var(--${string})`;
|
|
2692
|
+
readonly pressed: `var(--${string})`;
|
|
2693
|
+
};
|
|
2694
|
+
readonly border: {
|
|
2695
|
+
readonly subtle: `var(--${string})`;
|
|
2696
|
+
readonly muted: `var(--${string})`;
|
|
2697
|
+
readonly main: `var(--${string})`;
|
|
2698
|
+
readonly strong: `var(--${string})`;
|
|
2699
|
+
readonly stronger: `var(--${string})`;
|
|
2700
|
+
};
|
|
2701
|
+
readonly disabled: {
|
|
2702
|
+
readonly main: `var(--${string})`;
|
|
2703
|
+
readonly foreground: `var(--${string})`;
|
|
2704
|
+
readonly subtle: `var(--${string})`;
|
|
2705
|
+
readonly subtleForeground: `var(--${string})`;
|
|
2706
|
+
readonly text: `var(--${string})`;
|
|
2707
|
+
readonly border: `var(--${string})`;
|
|
2708
|
+
};
|
|
2709
|
+
readonly highlight: {
|
|
2710
|
+
readonly main: `var(--${string})`;
|
|
2711
|
+
readonly foreground: `var(--${string})`;
|
|
2712
|
+
};
|
|
2713
|
+
readonly skeleton: {
|
|
2714
|
+
readonly base: `var(--${string})`;
|
|
2715
|
+
readonly highlight: `var(--${string})`;
|
|
2716
|
+
readonly foreground: `var(--${string})`;
|
|
2717
|
+
readonly border: `var(--${string})`;
|
|
2718
|
+
};
|
|
2719
|
+
readonly scrollbar: {
|
|
2720
|
+
readonly thumb: `var(--${string})`;
|
|
2721
|
+
readonly thumbHover: `var(--${string})`;
|
|
2722
|
+
readonly track: `var(--${string})`;
|
|
2723
|
+
};
|
|
2724
|
+
};
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
export declare type ZIndexToken = keyof typeof zIndices;
|
|
2728
|
+
|
|
2729
|
+
declare const zIndices: {
|
|
2730
|
+
readonly hide: "-1";
|
|
2731
|
+
readonly base: "0";
|
|
2732
|
+
readonly docked: "10";
|
|
2733
|
+
readonly sticky: "100";
|
|
2734
|
+
readonly banner: "200";
|
|
2735
|
+
readonly overlay: "1100";
|
|
2736
|
+
readonly modal: "1200";
|
|
2737
|
+
readonly dropdown: "1250";
|
|
2738
|
+
readonly popover: "1300";
|
|
2739
|
+
readonly toast: "1350";
|
|
2740
|
+
readonly tooltip: "1400";
|
|
2741
|
+
};
|
|
2742
|
+
|
|
2743
|
+
export { }
|