Skip to content

Date Picker? #619

Answered by saadeghi
Crypt0Jesus asked this question in Q&A
Mar 16, 2022 · 4 comments · 10 replies
Discussion options

You must be logged in to vote

Any datepicker that allows CSS styling would be good and you just need to set a few colors.
For example this one: https://date-picker-svelte.kasper.space/docs

You can set daisyUI background color and foreground color to it like this:

:root {
  --date-picker-background: hsl(var(--b1));
  --date-picker-foreground: hsl(var(--bc));
}

So it would look good on both dark themes and light themes.
Other datepicker libraries might not give you variables like this one but you can rewrite the css colors in most of them.

Let me know if you need more help.

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@saadeghi
Comment options

@Crypt0Jesus
Comment options

@Crypt0Jesus
Comment options

@saadeghi
Comment options

@pguardiario
Comment options

Answer selected by saadeghi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@saadeghi
Comment options

@officefish
Comment options

@saadeghi
Comment options

@officefish
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants