-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add dark mode selector #11322
- Loading branch information
1 parent
621842c
commit a8e9783
Showing
3 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { definePreset, palette } from "@primevue/themes"; | ||
import Aura from "@primevue/themes/aura"; | ||
|
||
const archesColors = Object.freeze({ | ||
blue: "#579ddb", | ||
green: "#3acaa1", | ||
red: "#f75d3f", | ||
}); | ||
|
||
export const ArchesPreset = definePreset(Aura, { | ||
primitive: { | ||
arches: { | ||
...archesColors, | ||
legacy: { | ||
sidebar: "#2d3c4b", | ||
}, | ||
}, | ||
blue: palette(archesColors.blue), | ||
green: palette(archesColors.green), | ||
red: palette(archesColors.red), | ||
}, | ||
semantic: { | ||
// PrimeVue token override | ||
primary: palette(archesColors.blue), | ||
// PrimeVue token override | ||
navigation: { | ||
list: { | ||
padding: "0", | ||
}, | ||
item: { | ||
padding: "1rem", | ||
}, | ||
// custom tokens | ||
header: { | ||
color: "{arches.legacy.sidebar}", | ||
}, | ||
}, | ||
}, | ||
components: { | ||
splitter: { | ||
handle: { | ||
background: "{surface.500}", | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
export const DEFAULT_THEME = { | ||
theme: { | ||
preset: ArchesPreset, | ||
options: { | ||
prefix: "p", | ||
darkModeSelector: ".arches-dark", | ||
cssLayer: false, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters