vike
Version:
The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.
17 lines (16 loc) • 442 B
JavaScript
// ./colorsServer.js => server only
// ./colorsClient.js => server & client
// !!!WARNING!!! KEEP THIS FILE MINIMAL: to save KBs sent to the browser
export { colorVike };
export { colorError };
export { colorWarning };
import pc from '@brillout/picocolors';
function colorVike(str) {
return pc.bold(pc.yellow(str));
}
function colorError(str) {
return pc.bold(pc.red(str));
}
function colorWarning(str) {
return pc.yellow(str);
}