Components
Charts
Setting UpArea ChartLine ChartBar ChartPie ChartRadar ChartRadial Bar ChartScatter ChartTooltip ChartColors
Color AreaColor FieldColor PickerColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrag and drop
Drop ZoneForms
CheckboxCheckbox GroupFieldFormInput OTPNumber FieldRadio GroupSearch FieldTag FieldText FieldTextareaUtilities
Visually HiddenDark mode
Astro
Want making your Astro project slick with dark mode? Here’s the playbook for getting that moody vibe on lock.
Inline Scripts
Astro supports inline scripts, so we can get localStorage and set the theme.
Loading source code...
Theme Switcher
First, install the justd-icons
package.
Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.
And then, add the following code the component where you want to use the theme switcher.
Loading source code...