Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Oct 21, 2024
1 parent e19e17a commit dfec9ea
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/src/routes/(docs)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ $effect(async () => {
</div>
{#if daisyui5progress}
<div class="flex gap-2 grow w-full max-w-48 max-lg:my-4 sm:max-w-sm">
<div class="relative flex flex-col w-full">
<a class="tooltip tooltip-accent relative flex flex-col w-full" href="https://github.com/saadeghi/daisyui/discussions/3246" target="_blank" rel="nofollow" data-tip="Try the alpha version">
<div class="text-[0.6rem] -top-4 absolute italic -translate-x-1/2 rtl:translate-x-1/2" style={`inset-inline-start:${daisyui5progress}%`}>
{daisyui5progress}%
</div>
<progress class="progress bg-base-200 border border-base-200 progress-warning w-full" value={daisyui5progress} max="100"></progress>
<div class="text-[0.6rem] tracking-wide -bottom-4 absolute italic">
daisyUI 5 development
</div>
</div>
</a>
</div>
{/if}
</div>
Expand Down
101 changes: 101 additions & 0 deletions src/docs/src/routes/(docs)/blog/(posts)/daisyui-5-alpha/+page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
---
title: daisyUI 5 alpha is in development
desc: daisyUI 5 alpha is in development and I'm looking for your suggestions, feedbacks and ideas to make it better.
published: true
date: 2024-10-21
author: Pouya Saadeghi
thumbnail: https://img.daisyui.com/images/blog/daisyui-alpha.webp
tags:
- News
---

daisyUI 5 alpha is in development [[v5 branch](https://github.com/saadeghi/daisyui/tree/v5)]

- There's no docs or changelog yet
- Some components are not ready
- There are many bugs and any alpha version may break things
- If you use it in production a baby dolphin will die

## Try it

1. You can try this [Tailwind Play link](https://play.tailwindcss.com/iOzVcc4McC?file=css) which includes a big dump of components
2. Or you can try the new [full.css](https://cdn.jsdelivr.net/npm/daisyui@alpha/full.css) or the new [chunks.css](https://cdn.jsdelivr.net/npm/daisyui@alpha/chunks.css)!
3. Or if you're brave enough to try Tailwind CSS 4 alpha + daisyUI 5 alpha,
[Install Tailwind CSS 4 `alpha`](https://tailwindcss.com/blog/tailwindcss-v4-alpha) and then install daisyUI `alpha`
```
npm i -D daisyui@alpha
```
Your CSS file:
```css
@import "tailwindcss";
@plugin "daisyui";
```

You can use options

```css
@plugin "daisyui" {
logs: true;
root: ":root";
include: button, badge, input, card;
exclude: badge;
themes: light --default, dark --prefersdark, cupcake;
}
```

You can add custom themes

```css
@plugin "daisyui/theme" {
name: "my-theme";
default: false;
prefersdark: false;
color-scheme: light;

--color-base-100: oklch(98% 0.02 240);
--color-base-200: oklch(95% 0.03 240);
--color-base-300: oklch(92% 0.04 240);
--color-base-content: oklch(20% 0.05 240);

--color-primary: oklch(55% 0.3 240);
--color-primary-content: oklch(98% 0.01 240);

--color-secondary: oklch(70% 0.25 200);
--color-secondary-content: oklch(98% 0.01 200);

--color-accent: oklch(65% 0.25 160);
--color-accent-content: oklch(98% 0.01 160);

--color-neutral: oklch(50% 0.05 240);
--color-neutral-content: oklch(98% 0.01 240);

--color-info: oklch(70% 0.2 220);
--color-info-content: oklch(98% 0.01 220);

--color-success: oklch(65% 0.25 140);
--color-success-content: oklch(98% 0.01 140);

--color-warning: oklch(80% 0.25 80);
--color-warning-content: oklch(20% 0.05 80);

--color-error: oklch(65% 0.3 30);
--color-error-content: oklch(98% 0.01 30);

--radius-badge: .5rem;
--radius-btn: .5rem;
--radius-box: .5rem;
--spacing-button-border: 1px;
--spacing-tab-border: 1px;
}
```

## Feedbacks needed

Here's how you can help:
- **Feedback**: What do you like/dislike about v5 so far?
- **Suggestions**: Any features or improvements you'd like to see in the stable version of daisyUI 5?
- **Bug Reports**: Found a new bug in v5 alpha? Let me know.

Put your feedbacks in the comments [here in the **GitHub Discussion**](https://github.com/saadeghi/daisyui/discussions/3246)

Thank you for your help! 🙏

0 comments on commit dfec9ea

Please sign in to comment.