Logo

dev-resources.site

for different kinds of informations.

Quick Prototyping with Tailwind and DaisyUI

Published at
2/21/2022
Categories
tailwindcss
daisyui
productivity
design
Author
kachidk
Author
7 person written this
kachidk
open
Quick Prototyping with Tailwind and DaisyUI

For quick prototyping I use Tailwind and DaisyUI CDNs.
Note: The order of the CDNs.

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.css" rel="stylesheet" type="text/css" />
<link href="./theme.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet" type="text/css" />
Enter fullscreen mode Exit fullscreen mode

To customize the default theme of DaisyUI, copy and paste the CSS variables into theme.css.
Note: The colors are in HSL format.

/* theme.css */

:root {
  --p: 140 52% 55%;
  --pf: 120 100% 25%;
  --pc: 0 0% 100%;
  --s: 314 100% 47.1%;
  --sf: 314 100% 37.1%;
  --sc: 0 0% 100%;
  --a: 174 60% 51%;
  --af: 174 59.8% 41%;
  --ac: 0 0% 100%;
  --n: 219 14.1% 27.8%;
  --nf: 222 13.4% 19%;
  --nc: 0 0% 100%;
  --b1: 0 0% 100%;
  --b2: 210 20% 98%;
  --b3: 216 12.2% 83.9%;
  --bc: 215 27.9% 16.9%;
  --in: 207 89.8% 53.9%;
  --su: 174 100% 29%;
  --wa: 36 100% 50%;
  --er: 14 100% 57.1%;
  --border-color: var(--b3);
  --rounded-box: 1rem;
  --rounded-btn: 0.5rem;
  --rounded-badge: 1.9rem;
  --animation-btn: 0.25s;
  --animation-input: 0.2s;
  --btn-text-case: none;
  --btn-focus-scale: 0.95;
  --navbar-padding: 0.5rem;
  --border-btn: 1px;
  --tab-border: 1px;
  --tab-radius: 0.5rem;
}
Enter fullscreen mode Exit fullscreen mode

For Theming
daisyUI comes with a number of themes, which you can use with no extra effort. Each theme defines a set of colors which will be used on all daisyUI elements. To use a theme, add data-theme attribute to your tag.

<html data-theme="light"></html>
Enter fullscreen mode Exit fullscreen mode
daisyui Article's
22 articles in total
Favicon
Creating a To-Do app with HTMX and Django - Part 3: Creating the frontend and adding HTMX
Favicon
What is DaisyUI? Advantages, Disadvantages, and FAQโ€™s
Favicon
DaisyUI: CSS Components for Tailwind
Favicon
Discover the beauty of simplicity with ๐——๐—ฎ๐—ถ๐˜€๐˜†๐—จ๐—œ! ๐Ÿš€
Favicon
daisyUI adoption guide: Overview, examples, and alternatives
Favicon
Getting started with Tailwind + Daisy UI in Angular 18
Favicon
๐ŸŽ‰ My First Shot at a Vue Library: Introducing masc-vue!๐ŸŒŸ
Favicon
Binary Duel, front-end in 2 weeks with Svelte and DaisyUI
Favicon
My Journey with Svelte: From Vue to Svelte and the Joy of Pure JS Libraries
Favicon
Stop flickering theme after page refresh in Sveltekit and Daisy UI
Favicon
DevTips โ€“ DaisyUi (Rating, Carousel)
Favicon
Building Contact Form in React with DaisyUI and Tailwind CSS
Favicon
Create an Emoji Selector for Next.js Forms using Tailwind + DaisyUI
Favicon
Install TailwindCSS and DaisyUI CSS Plugin with Angular
Favicon
Configurar DaisyUI con Vue3
Favicon
Setting up DaisyUI, Tailwind, Vue and Vite
Favicon
How to build a multi step form in Vue
Favicon
DaisyUIใงใƒ‡ใ‚ณใฃใŸPhoenixใ‚ขใƒ—ใƒชใ‚’Fly.ioใซใƒ‡ใƒ—ใƒญใ‚คใ—ใฆๆฅฝใ—ใ‚€(2022ๅนด)
Favicon
Get started creating beautiful designs with daisyUI
Favicon
Quick Prototyping with Tailwind and DaisyUI
Favicon
Adding Tailwind and Daisy UI to SvelteKit
Favicon
Sveltekit web gallery app

Featured ones: