eslint-plugin-readable-tailwind
Version:
auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.
126 lines • 12.1 kB
TypeScript
export declare function loadTailwindConfig(path: string | undefined): Omit<import("tailwindcss3/types/config.js").Config, "theme"> & {
theme: {
fill: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
content: Record<"none", string>;
order: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "none" | "8" | "9" | "10" | "11" | "12" | "first" | "last", string>;
screens: Record<"sm" | "md" | "lg" | "xl" | "2xl", string>;
supports: Record<string, string>;
data: Record<string, string>;
colors: import("tailwindcss3/types/generated/colors.js").DefaultColors;
spacing: Record<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "px" | "0.5" | "1.5" | "2.5" | "3.5", string>;
container: Partial<{
screens: import("tailwindcss3/types/config.js").ScreensConfig;
center: boolean;
padding: string | Record<string, string>;
}>;
inset: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
zIndex: Record<"0" | "10" | "20" | "40" | "30" | "50" | "auto", string>;
gridColumn: Record<"auto" | "span-1" | "span-2" | "span-3" | "span-4" | "span-5" | "span-6" | "span-7" | "span-8" | "span-9" | "span-10" | "span-11" | "span-12" | "span-full", string>;
gridColumnStart: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "auto" | "13", string>;
gridColumnEnd: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "auto" | "13", string>;
gridRow: Record<"auto" | "span-1" | "span-2" | "span-3" | "span-4" | "span-5" | "span-6" | "span-7" | "span-8" | "span-9" | "span-10" | "span-11" | "span-12" | "span-full", string>;
gridRowStart: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "auto" | "13", string>;
gridRowEnd: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "auto" | "13", string>;
margin: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
aspectRatio: Record<"auto" | "square" | "video", string>;
height: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
maxHeight: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
minHeight: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
width: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
maxWidth: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
minWidth: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
flex: Record<"1" | "none" | "auto" | "initial", string>;
flexShrink: Record<"0" | "DEFAULT", string>;
flexGrow: Record<"0" | "DEFAULT", string>;
flexBasis: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
borderSpacing: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
transformOrigin: Record<"left" | "right" | "center" | "top" | "top-right" | "bottom-right" | "bottom" | "bottom-left" | "top-left", string>;
translate: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
rotate: Record<"0" | "1" | "2" | "3" | "6" | "12" | "45" | "90" | "180", string>;
skew: Record<"0" | "1" | "2" | "3" | "6" | "12", string>;
scale: Record<"0" | "50" | "90" | "75" | "95" | "100" | "105" | "110" | "125" | "150", string>;
animation: Record<"none" | "spin" | "ping" | "pulse" | "bounce", string>;
keyframes: Record<"spin" | "ping" | "pulse" | "bounce", Record<string, import("tailwindcss3/types/generated/default-theme.js").CSSDeclarationList>>;
cursor: Record<"default" | "text" | "none" | "auto" | "pointer" | "wait" | "move" | "help" | "not-allowed" | "context-menu" | "progress" | "cell" | "crosshair" | "vertical-text" | "alias" | "copy" | "no-drop" | "grab" | "grabbing" | "all-scroll" | "col-resize" | "row-resize" | "n-resize" | "e-resize" | "s-resize" | "w-resize" | "ne-resize" | "nw-resize" | "se-resize" | "sw-resize" | "ew-resize" | "ns-resize" | "nesw-resize" | "nwse-resize" | "zoom-in" | "zoom-out", string>;
scrollMargin: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
scrollPadding: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
listStyleType: Record<"none" | "disc" | "decimal", string>;
columns: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "sm" | "md" | "lg" | "xl" | "2xl" | "auto" | "3xs" | "2xs" | "xs" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl", string>;
gridAutoColumns: Record<"auto" | "min" | "max" | "fr", string>;
gridAutoRows: Record<"auto" | "min" | "max" | "fr", string>;
gridTemplateColumns: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "none" | "8" | "9" | "10" | "11" | "12" | "subgrid", string>;
gridTemplateRows: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "none" | "8" | "9" | "10" | "11" | "12" | "subgrid", string>;
gap: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
space: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
divideWidth: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
divideColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
divideOpacity: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
borderRadius: Record<"none" | "sm" | "md" | "lg" | "xl" | "2xl" | "DEFAULT" | "3xl" | "full", string>;
borderWidth: Record<"0" | "2" | "4" | "8" | "DEFAULT", string>;
borderColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
borderOpacity: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backgroundColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
backgroundOpacity: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backgroundImage: Record<"none" | "gradient-to-t" | "gradient-to-tr" | "gradient-to-r" | "gradient-to-br" | "gradient-to-b" | "gradient-to-bl" | "gradient-to-l" | "gradient-to-tl", string>;
gradientColorStops: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
backgroundSize: Record<"auto" | "cover" | "contain", string>;
backgroundPosition: Record<"left" | "right" | "center" | "top" | "bottom" | "left-bottom" | "left-top" | "right-bottom" | "right-top", string>;
stroke: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
strokeWidth: Record<"0" | "1" | "2", string>;
objectPosition: Record<"left" | "right" | "center" | "top" | "bottom" | "left-bottom" | "left-top" | "right-bottom" | "right-top", string>;
padding: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
textIndent: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
fontFamily: Record<"sans" | "serif" | "mono", string[]>;
fontSize: Record<"sm" | "lg" | "xl" | "2xl" | "xs" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "base" | "8xl" | "9xl", [string, {
lineHeight: string;
}]>;
fontWeight: Record<"bold" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "extrabold" | "black", string>;
lineHeight: Record<"3" | "4" | "5" | "6" | "7" | "none" | "8" | "9" | "10" | "normal" | "tight" | "snug" | "relaxed" | "loose", string>;
letterSpacing: Record<"normal" | "tight" | "tighter" | "wide" | "wider" | "widest", string>;
textColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
textOpacity: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
textDecorationColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
textDecorationThickness: Record<"0" | "1" | "2" | "4" | "8" | "auto" | "from-font", string>;
textUnderlineOffset: Record<"0" | "1" | "2" | "4" | "8" | "auto", string>;
placeholderColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
placeholderOpacity: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
caretColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
accentColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
opacity: Record<"0" | "5" | "10" | "20" | "40" | "60" | "80" | "30" | "50" | "45" | "90" | "75" | "95" | "100" | "15" | "25" | "35" | "55" | "65" | "70" | "85", string>;
boxShadow: Record<"none" | "sm" | "md" | "lg" | "xl" | "2xl" | "DEFAULT" | "inner", string>;
boxShadowColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
outlineWidth: Record<"0" | "1" | "2" | "4" | "8", string>;
outlineOffset: Record<"0" | "1" | "2" | "4" | "8", string>;
outlineColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
ringWidth: Record<"0" | "1" | "2" | "4" | "8" | "DEFAULT", string>;
ringColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
ringOpacity: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
ringOffsetWidth: Record<"0" | "1" | "2" | "4" | "8", string>;
ringOffsetColor: import("tailwindcss3/types/config.js").RecursiveKeyValuePair<string, string>;
blur: Record<"0" | "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "DEFAULT" | "3xl", string>;
brightness: Record<"0" | "50" | "90" | "75" | "95" | "100" | "105" | "110" | "125" | "150" | "200", string>;
contrast: Record<"0" | "50" | "75" | "100" | "125" | "150" | "200", string>;
dropShadow: Record<"none" | "sm" | "md" | "lg" | "xl" | "2xl" | "DEFAULT", string | string[]>;
grayscale: Record<"0" | "DEFAULT", string>;
hueRotate: Record<"0" | "60" | "30" | "90" | "180" | "15", string>;
invert: Record<"0" | "DEFAULT", string>;
saturate: Record<"0" | "50" | "100" | "150" | "200", string>;
sepia: Record<"0" | "DEFAULT", string>;
backdropBlur: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backdropBrightness: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backdropContrast: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backdropGrayscale: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backdropHueRotate: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backdropInvert: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backdropOpacity: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backdropSaturate: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
backdropSepia: import("tailwindcss3/types/config.js").KeyValuePair<string, string>;
transitionProperty: Record<"colors" | "opacity" | "none" | "DEFAULT" | "all" | "shadow" | "transform", string>;
transitionTimingFunction: Record<"in" | "DEFAULT" | "linear" | "out" | "in-out", string>;
transitionDelay: Record<"0" | "75" | "100" | "150" | "200" | "300" | "500" | "700" | "1000", string>;
transitionDuration: Record<"0" | "DEFAULT" | "75" | "100" | "150" | "200" | "300" | "500" | "700" | "1000", string>;
willChange: Record<"auto" | "transform" | "scroll" | "contents", string>;
};
};
export declare function createTailwindContextFromConfigFile(path?: string, invalidate?: boolean): any;
//# sourceMappingURL=context.d.ts.map