UNPKG

bismillahcss

Version:

The next-gen utility-first CSS framework for modern, futuristic web development.

38 lines (34 loc) 1.07 kB
import * as kleur from 'kleur'; /** * Utility function to flatten a color palette object. * Similar to what Tailwind uses internally for its theme resolution. */ declare function flattenColorPalette(palette?: Record<string, any>): Record<string, string>; /** * BismillahCSS Shared Utilities * Optimized for low overhead and maximal design intelligence. */ declare const bUtils: { flattenColorPalette: typeof flattenColorPalette; cliColors: { primary: kleur.Color; secondary: kleur.Color; accent: kleur.Color; success: kleur.Color; warning: kleur.Color; danger: kleur.Color; info: kleur.Color; muted: kleur.Color; dark: kleur.Color; light: kleur.Color; }; /** * Generates a unique component ID for runtime tracking. */ generateID: (prefix?: string) => string; /** * Helper to merge styles with framework defaults. */ mergeStyles: (base: string, override: string) => string; }; export { bUtils, bUtils as default, flattenColorPalette };