Halloween FMHY Theme (#4121)

* halloween thingers

* halloween thingers 2

* make halloween theme the preffered theme and change FMHY name gradient

* background change for halloween

* again

* make background change on home page too

* please let this work unc

* change colors on home page button

* let this work unc

* fix some more issues

* semi-final update (hopefully)

* uhhuh

* fixes for other themes besides halloween

* light mode fixes (PLEASE let this work)

* how did i not catch this omg

* light mode fixes

* add Halloween logo

* Update image source from test.png to hall.png

* add uwu logo

* Change image for uwu
This commit is contained in:
Samidy 2025-10-03 11:48:35 +03:00 committed by GitHub
parent 707e3d3d5d
commit f77eaf90b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 293 additions and 17 deletions

View file

@ -25,6 +25,27 @@ import {
transformerDirectives
} from 'unocss'
// Add Halloween colors to extend the existing colors
const halloweenColors = {
50: '#fff7ed',
100: '#ffedd5',
200: '#fed7aa',
300: '#fdba74',
400: '#fb923c',
500: '#FF6A00',
600: '#ea580c',
700: '#c2410c',
800: '#9a3412',
900: '#7c2d12',
950: '#431407'
}
// Extend colors with Halloween theme
const extendedColors = {
...colors,
halloween: halloweenColors
}
const colorScales = [
'50',
'100',
@ -39,7 +60,7 @@ const colorScales = [
'950'
] as const
const colorPattern = Object.keys(colors).join('|')
const colorPattern = Object.keys(extendedColors).join('|')
const createColorRules = (type: 'text' | 'bg' | 'border'): Rule[] => {
const property =
type === 'text'
@ -52,7 +73,7 @@ const createColorRules = (type: 'text' | 'bg' | 'border'): Rule[] => {
(scale) =>
[
new RegExp(`^${type}-(${colorPattern})-${scale}$`),
([, color]) => ({ [property]: colors[color][scale] })
([, color]) => ({ [property]: extendedColors[color][scale] })
] as const
)
}
@ -63,7 +84,7 @@ export default defineConfig({
},
theme: {
colors: {
...colors,
...extendedColors,
primary: 'var(--vp-c-brand-1)',
bg: 'var(--vp-c-bg)',
'bg-alt': 'var(--vp-c-bg-alt)',