/** * This takes an adf hex color and returns a matching border palette color. * * By providing a design token, this enables ADF content to be rendered in new themes such as dark mode. * * Example usage * ```tsx * const cssValue = hexToEditorBorderPaletteColor('#091E4224'); * // ^? const cssValue: string *
* ``` * The names of tokens can change over time, and the values of tokens will differ between themes. * The exact output of this function is an implementation detail and should only be used when rendering * content to the user, on a client with a matching major version of `@atlaskit/tokens`. * - **DO NOT**: store the output of these functions in any user-generated content or back-end. * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color */ export declare function hexToEditorBorderPaletteColor(hexColor: HexColor): HexColor extends EditorBorderPaletteKey ? EditorBorderPalette[HexColor] : string | undefined; type EditorBorderPalette = typeof editorBorderPalette; export type EditorBorderPaletteKey = keyof EditorBorderPalette; export declare const editorBorderPalette: { /** gray - subtle */ "#091E4224": "var(--ds-border, #091E4224)"; /** gray */ "#758195": "var(--ds-border-bold, #758195)"; /** gray - bold */ "#172B4D": "var(--ds-text, #172B4D)"; }; export {};