astro-tips
Version:
๐จ Beautiful, customizable tip and notice blocks for Astro - 16 built-in styles with auto dark mode support and built-in compression
285 lines โข 6.62 kB
JavaScript
export const TIP_VARIANTS = new Set([
"warning",
"danger",
"tip",
"mention",
"recommend",
"note",
"info",
"success",
"error",
"bug",
"quote",
"important",
"example",
"question",
"answer",
"caution",
"todo",
"feature",
"deprecated",
"breaking",
"security",
"performance",
"accessibility",
"experimental",
"beta",
"new",
"ai",
"bot",
"chat",
"assistant",
"automation",
]);
export const pageUsageTracker = new Set();
export const defaultConfig = {
warning: {
icon: "โ ๏ธ",
style: {
border: "#ffb100",
light: { background: "#fff8e6" },
dark: { background: "#3d371f" },
},
},
danger: {
icon: "โ",
style: {
border: "#ff4545",
light: { background: "#ffeded" },
dark: { background: "#3d2222" },
},
},
tip: {
icon: "๐ก",
style: {
border: "#409eff",
light: { background: "#e6f4ff" },
dark: { background: "#1f2f3d" },
},
},
mention: {
icon: "๐ฌ",
style: {
border: "#b45fff",
light: { background: "#f3e6ff" },
dark: { background: "#2f1f3d" },
},
},
recommend: {
icon: "๐",
style: {
border: "#67c23a",
light: { background: "#e6ffe6" },
dark: { background: "#1f3d1f" },
},
},
note: {
icon: "๐",
style: {
border: "#9e9e9e",
light: { background: "#f5f5f5" },
dark: { background: "#363636" },
},
},
info: {
icon: "โน๏ธ",
style: {
border: "#03a9f4",
light: { background: "#e3f2fd" },
dark: { background: "#1f313d" },
},
},
success: {
icon: "โ
",
style: {
border: "#4caf50",
light: { background: "#e8f5e9" },
dark: { background: "#1f3d24" },
},
},
error: {
icon: "โ",
style: {
border: "#f44336",
light: { background: "#ffebee" },
dark: { background: "#3d1f22" },
},
},
bug: {
icon: "๐",
style: {
border: "#e91e63",
light: { background: "#fce4ec" },
dark: { background: "#3d1f2a" },
},
},
quote: {
icon: "๐ฌ",
style: {
border: "#607d8b",
light: { background: "#eceff1" },
dark: { background: "#1f292d" },
},
},
important: {
icon: "โ",
style: {
border: "#ff5722",
light: { background: "#fbe9e7" },
dark: { background: "#3d241f" },
},
},
example: {
icon: "๐",
style: {
border: "#ff9800",
light: { background: "#fff3e0" },
dark: { background: "#3d311f" },
},
},
question: {
icon: "โ",
style: {
border: "#2196f3",
light: { background: "#e3f2fd" },
dark: { background: "#1f2937" },
},
},
answer: {
icon: "๐ก",
style: {
border: "#8bc34a",
light: { background: "#f1f8e9" },
dark: { background: "#273318" },
},
},
caution: {
icon: "โ ๏ธ",
style: {
border: "#ff9800",
light: { background: "#fff3e0" },
dark: { background: "#3d311f" },
},
},
todo: {
icon: "๐",
style: {
border: "#9c27b0",
light: { background: "#f3e5f5" },
dark: { background: "#2d1f3d" },
},
},
feature: {
icon: "โจ",
style: {
border: "#00bcd4",
light: { background: "#e0f7fa" },
dark: { background: "#1f353d" },
},
},
deprecated: {
icon: "๐ซ",
style: {
border: "#795548",
light: { background: "#efebe9" },
dark: { background: "#2d2620" },
},
},
breaking: {
icon: "๐ฅ",
style: {
border: "#d32f2f",
light: { background: "#ffcdd2" },
dark: { background: "#3d1f1f" },
},
},
security: {
icon: "๐",
style: {
border: "#ff6f00",
light: { background: "#fff3e0" },
dark: { background: "#3d2f1f" },
},
},
performance: {
icon: "โก",
style: {
border: "#ffc107",
light: { background: "#fffde7" },
dark: { background: "#3d3b1f" },
},
},
accessibility: {
icon: "โฟ",
style: {
border: "#3f51b5",
light: { background: "#e8eaf6" },
dark: { background: "#1f2537" },
},
},
experimental: {
icon: "๐งช",
style: {
border: "#e91e63",
light: { background: "#fce4ec" },
dark: { background: "#3d1f2a" },
},
},
beta: {
icon: "๐ฏ",
style: {
border: "#673ab7",
light: { background: "#ede7f6" },
dark: { background: "#27203d" },
},
},
new: {
icon: "๐",
style: {
border: "#ff4081",
light: { background: "#fce4ec" },
dark: { background: "#3d1f2a" },
},
},
ai: {
icon: "๐ค",
style: {
border: "#00acc1",
light: { background: "#e0f7fa" },
dark: { background: "#1f353d" },
},
},
bot: {
icon: "๐ค",
style: {
border: "#3949ab",
light: { background: "#e8eaf6" },
dark: { background: "#1f2537" },
},
},
chat: {
icon: "๐ฌ",
style: {
border: "#7b1fa2",
light: { background: "#f3e5f5" },
dark: { background: "#2d1f3d" },
},
},
assistant: {
icon: "๐จโ๐ผ",
style: {
border: "#f57c00",
light: { background: "#fff3e0" },
dark: { background: "#3d311f" },
},
},
automation: {
icon: "โ๏ธ",
style: {
border: "#546e7a",
light: { background: "#eceff1" },
dark: { background: "#1f292d" },
},
},
};
//# sourceMappingURL=config.js.map