CSS was not being imported! Fixed: ✅ Added 'import ../styles/global.css' to BaseLayout.astro ✅ Rewrote CSS with plain CSS (not @apply which wasn't working) ✅ Cookie banner has inline styles as backup ✅ Font size: 16px base ✅ Solid colors: green-600 (#16a34a), gray-900 (#111827) ✅ Footer has policy links Build: 12 pages ✅
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
(function (Prism) {
|
|
Prism.languages.flow = Prism.languages.extend('javascript', {});
|
|
|
|
Prism.languages.insertBefore('flow', 'keyword', {
|
|
'type': [
|
|
{
|
|
pattern: /\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,
|
|
alias: 'class-name'
|
|
}
|
|
]
|
|
});
|
|
Prism.languages.flow['function-variable'].pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i;
|
|
delete Prism.languages.flow['parameter'];
|
|
|
|
Prism.languages.insertBefore('flow', 'operator', {
|
|
'flow-punctuation': {
|
|
pattern: /\{\||\|\}/,
|
|
alias: 'punctuation'
|
|
}
|
|
});
|
|
|
|
if (!Array.isArray(Prism.languages.flow.keyword)) {
|
|
Prism.languages.flow.keyword = [Prism.languages.flow.keyword];
|
|
}
|
|
Prism.languages.flow.keyword.unshift(
|
|
{
|
|
pattern: /(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,
|
|
lookbehind: true
|
|
},
|
|
{
|
|
pattern: /(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,
|
|
lookbehind: true
|
|
}
|
|
);
|
|
}(Prism));
|