UNPKG

899 BTypeScriptView Raw
1import { Mark, MarkSpec } from 'prosemirror-model';
2export interface TextColorAttributes {
3 /**
4 * @pattern "^#[0-9a-f]{6}$"
5 * @pattern_stage_0 "^#[0-9a-fA-F]{6}$"
6 */
7 color: string;
8}
9/**
10 * @name textColor_mark
11 */
12export interface TextColorDefinition {
13 type: 'textColor';
14 attrs: TextColorAttributes;
15}
16export interface TextColorMark extends Mark {
17 attrs: TextColorAttributes;
18}
19export declare type TextColorKey = 'Light gray' | 'Purple' | 'Teal' | 'Green' | 'Red' | 'Orange' | 'Dark gray' | 'Blue' | 'Yellow' | 'Dark blue' | 'Dark teal' | 'Dark green' | 'Dark red' | 'Dark purple' | 'White' | 'Light blue' | 'Light teal' | 'Light green' | 'Light yellow' | 'Light red' | 'Light purple';
20export declare const colorPalette: Map<string, TextColorKey>;
21export declare const colorPaletteExperimental: Map<string, TextColorKey>;
22export declare const textColor: MarkSpec;