This commit is contained in:
2026-03-03 10:41:26 +03:00
parent 944e53df63
commit f925ea1cf1
17 changed files with 271 additions and 261 deletions

59
src/themes/noir.ts Normal file
View File

@@ -0,0 +1,59 @@
import '@primeuix/styles' // When styles change, the app will hot reload.
import { definePreset } from '@primeuix/themes'
import Aura from '@primeuix/themes/aura'
export const NoirPreset = definePreset(Aura, {
semantic: {
primary: {
50: '{surface.50}',
100: '{surface.100}',
200: '{surface.200}',
300: '{surface.300}',
400: '{surface.400}',
500: '{surface.500}',
600: '{surface.600}',
700: '{surface.700}',
800: '{surface.800}',
900: '{surface.900}',
950: '{surface.950}',
},
colorScheme: {
light: {
primary: {
color: '{primary.950}',
contrastColor: '#ffffff',
hoverColor: '{primary.800}',
activeColor: '{primary.700}',
},
highlight: {
background: '{primary.950}',
focusBackground: '{primary.700}',
color: '#ffffff',
focusColor: '#ffffff',
},
},
dark: {
primary: {
color: '{primary.50}',
contrastColor: '{primary.950}',
hoverColor: '{primary.200}',
activeColor: '{primary.300}',
},
highlight: {
background: '{primary.50}',
focusBackground: '{primary.300}',
color: '{primary.950}',
focusColor: '{primary.950}',
},
},
},
},
})
export default {
preset: NoirPreset,
options: {
darkModeSelector: '.p-dark',
},
}