107 lines
2.7 KiB
JavaScript
107 lines
2.7 KiB
JavaScript
import { defineConfig } from "astro/config";
|
|
import mdx from "@astrojs/mdx";
|
|
import sitemap from "@astrojs/sitemap";
|
|
import tailwind from "@astrojs/tailwind";
|
|
|
|
/**
|
|
* "IA qu'à" Atom Syntax theme — Electric Teal color package §3/§4.
|
|
* Dark Slate canvas with the 7-color diagnostic spectrum mapped onto
|
|
* standard code tokens. Used for all fenced code blocks (light & dark site).
|
|
*/
|
|
const iaQuaSyntax = {
|
|
name: "ia-qua-atom-syntax",
|
|
type: "dark",
|
|
colors: {
|
|
"editor.background": "#0F172A",
|
|
"editor.foreground": "#F1F5F9",
|
|
},
|
|
settings: [
|
|
{ settings: { background: "#0F172A", foreground: "#F1F5F9" } },
|
|
// comment / metadata → Orchid
|
|
{
|
|
scope: ["comment", "punctuation.definition.comment", "string.comment"],
|
|
settings: { foreground: "#8B5CF6", fontStyle: "italic" },
|
|
},
|
|
// keyword / control → Ember
|
|
{
|
|
scope: [
|
|
"keyword",
|
|
"keyword.control",
|
|
"storage",
|
|
"storage.type",
|
|
"storage.modifier",
|
|
"keyword.operator.new",
|
|
"entity.name.tag",
|
|
],
|
|
settings: { foreground: "#FF6B00" },
|
|
},
|
|
// string / regex → Gold
|
|
{
|
|
scope: [
|
|
"string",
|
|
"string.quoted",
|
|
"string.template",
|
|
"constant.other.symbol",
|
|
"string.regexp",
|
|
],
|
|
settings: { foreground: "#F59E0B" },
|
|
},
|
|
// support / type / class → Emerald
|
|
{
|
|
scope: [
|
|
"entity.name.class",
|
|
"entity.name.type",
|
|
"support.type",
|
|
"support.class",
|
|
"storage.type.class",
|
|
"entity.other.attribute-name",
|
|
],
|
|
settings: { foreground: "#10B981" },
|
|
},
|
|
// entity / function → Indigo
|
|
{
|
|
scope: [
|
|
"entity.name.function",
|
|
"support.function",
|
|
"meta.function-call",
|
|
"variable.function",
|
|
],
|
|
settings: { foreground: "#6366F1" },
|
|
},
|
|
// variable / parameter & numerics → Sky
|
|
{
|
|
scope: [
|
|
"variable",
|
|
"variable.other",
|
|
"variable.parameter",
|
|
"support.variable",
|
|
"constant.numeric",
|
|
"constant.language",
|
|
"constant",
|
|
],
|
|
settings: { foreground: "#0EA5E9" },
|
|
},
|
|
// exception / invalid → Rose
|
|
{
|
|
scope: ["invalid", "invalid.illegal", "invalid.deprecated"],
|
|
settings: { foreground: "#F43F5E" },
|
|
},
|
|
// punctuation kept muted
|
|
{
|
|
scope: ["punctuation", "meta.brace", "punctuation.separator"],
|
|
settings: { foreground: "#94A3B8" },
|
|
},
|
|
],
|
|
};
|
|
|
|
export default defineConfig({
|
|
site: "https://ia-qua.fr", // À changer si autre domaine
|
|
integrations: [mdx(), sitemap(), tailwind()],
|
|
markdown: {
|
|
shikiConfig: {
|
|
theme: iaQuaSyntax,
|
|
wrap: false,
|
|
},
|
|
},
|
|
});
|