chore(static/css): expand Tailwind CSS with new colors, utilities, and component helpers

Add --color-red-800, ease‑out transition, and .modal/.list components; introduce responsive spacing, hover variants, and miscellaneous utilities such as .mt-1\.5, .min-h-\[80px\], and .rounded.

- New Features
  - New --color-red-800 variable and .bg-red-50 utility
  - .modal utility with open/close handling and backdrop styles
  - .list utility with grid layout and decorative separators
  - Cursor and hover utilities (e.g., .cursor-pointer, .hover\:bg-red-100)

- Enhancements
  - Additional spacing helpers (.mt-1\.5, .min-h-\[80px\]) and size utilities
  - Responsive column span (md\:col-span-2) and border utilities (.border-l-2)
  - Extended hover variants for background and text colors

- Bug Fixes
  - None
This commit is contained in:
sankalp committed 2026-05-28 00:26:49 +05:45
1 parent 03051214a5
commit 93ee63b7ed
1 file changed
+226
+226
View File
@@ -13,6 +13,7 @@
--color-red-500: oklch(63.7% 0.237 25.331);
--color-red-600: oklch(57.7% 0.245 27.325);
--color-red-700: oklch(50.5% 0.213 27.518);
--color-red-800: oklch(44.4% 0.177 26.899);
--color-amber-50: oklch(98.7% 0.022 95.277);
--color-amber-100: oklch(96.2% 0.059 95.617);
--color-amber-400: oklch(82.8% 0.189 84.429);
@@ -90,6 +91,7 @@
--radius-lg: 0.5rem;
--radius-xl: 0.75rem;
--radius-2xl: 1rem;
--ease-out: cubic-bezier(0, 0, 0.2, 1);
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
--default-transition-duration: 150ms;
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -246,6 +248,61 @@
}
}
@layer utilities {
.modal {
@layer daisyui.l1.l2.l3 {
pointer-events: none;
visibility: hidden;
position: fixed;
inset: calc(0.25rem * 0);
margin: calc(0.25rem * 0);
display: grid;
height: 100%;
max-height: none;
width: 100%;
max-width: none;
align-items: center;
justify-items: center;
background-color: transparent;
padding: calc(0.25rem * 0);
color: inherit;
transition: visibility 0.3s allow-discrete, background-color 0.3s ease-out, opacity 0.1s ease-out;
overflow: clip;
overscroll-behavior: contain;
z-index: 999;
scrollbar-gutter: auto;
&::backdrop {
display: none;
}
}
@layer daisyui.l1.l2 {
&.modal-open, &[open], &:target, .modal-toggle:checked + & {
pointer-events: auto;
visibility: visible;
opacity: 100%;
transition: visibility 0s allow-discrete, background-color 0.3s ease-out, opacity 0.1s ease-out;
background-color: oklch(0% 0 0/ 0.4);
.modal-box {
translate: 0 0;
scale: 1;
opacity: 1;
}
:root:has(&) {
--page-has-backdrop: 1;
--page-overflow: hidden;
--page-scroll-bg: var(--page-scroll-bg-on);
--page-scroll-gutter: stable;
--page-scroll-transition: var(--page-scroll-transition-on);
animation: set-page-has-scroll forwards;
animation-timeline: scroll();
}
}
@starting-style {
&.modal-open, &[open], &:target, .modal-toggle:checked + & {
opacity: 0%;
}
}
}
}
.menu {
@layer daisyui.l1.l2.l3 {
display: flex;
@@ -665,6 +722,65 @@
}
}
}
.list {
@layer daisyui.l1.l2.l3 {
display: flex;
flex-direction: column;
font-size: 0.875rem;
.list-row {
--list-grid-cols: minmax(0, auto) 1fr;
position: relative;
display: grid;
grid-auto-flow: column;
gap: calc(0.25rem * 4);
border-radius: var(--radius-box);
padding: calc(0.25rem * 4);
word-break: break-word;
grid-template-columns: var(--list-grid-cols);
}
& > :not(:last-child) {
&.list-row, .list-row {
&:after {
content: "";
border-bottom: var(--border) solid;
inset-inline: var(--radius-box);
position: absolute;
bottom: calc(0.25rem * 0);
border-color: var(--color-base-content);
@supports (color: color-mix(in lab, red, red)) {
border-color: color-mix(in oklab, var(--color-base-content) 5%, transparent);
}
}
}
}
}
@layer daisyui.l1.l2 {
.list-row {
&:has(.list-col-grow:nth-child(1)) {
--list-grid-cols: 1fr;
}
&:has(.list-col-grow:nth-child(2)) {
--list-grid-cols: minmax(0, auto) 1fr;
}
&:has(.list-col-grow:nth-child(3)) {
--list-grid-cols: minmax(0, auto) minmax(0, auto) 1fr;
}
&:has(.list-col-grow:nth-child(4)) {
--list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr;
}
&:has(.list-col-grow:nth-child(5)) {
--list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr;
}
&:has(.list-col-grow:nth-child(6)) {
--list-grid-cols: minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto)
minmax(0, auto) 1fr;
}
> * {
grid-row-start: 1;
}
}
}
}
.toast {
@layer daisyui.l1.l2.l3 {
position: fixed;
@@ -1529,6 +1645,15 @@
}
}
}
.modal-toggle {
@layer daisyui.l1.l2.l3 {
position: fixed;
height: calc(0.25rem * 0);
width: calc(0.25rem * 0);
appearance: none;
opacity: 0%;
}
}
.fixed {
position: fixed;
}
@@ -1677,6 +1802,20 @@
}
}
}
.modal-backdrop {
@layer daisyui.l1.l2.l3 {
grid-column-start: 1;
grid-row-start: 1;
display: grid;
align-self: stretch;
justify-self: stretch;
color: transparent;
z-index: -1;
button {
cursor: pointer;
}
}
}
.z-10 {
z-index: 10;
}
@@ -1692,6 +1831,27 @@
.col-span-full {
grid-column: 1 / -1;
}
.modal-box {
@layer daisyui.l1.l2.l3 {
grid-column-start: 1;
grid-row-start: 1;
max-height: 100vh;
width: calc(11/12 * 100%);
max-width: 32rem;
background-color: var(--color-base-100);
padding: calc(0.25rem * 6);
transition: translate 0.3s ease-out, scale 0.3s ease-out, opacity 0.2s ease-out 0.05s, box-shadow 0.3s ease-out;
border-top-left-radius: var(--modal-tl, var(--radius-box));
border-top-right-radius: var(--modal-tr, var(--radius-box));
border-bottom-left-radius: var(--modal-bl, var(--radius-box));
border-bottom-right-radius: var(--modal-br, var(--radius-box));
scale: 95%;
opacity: 0;
box-shadow: oklch(0% 0 0/ 0.25) 0px 25px 50px -12px;
overflow-y: auto;
overscroll-behavior: contain;
}
}
.container {
width: 100%;
@media (width >= 40rem) {
@@ -1851,6 +2011,9 @@
.mt-1 {
margin-top: calc(var(--spacing) * 1);
}
.mt-1\.5 {
margin-top: calc(var(--spacing) * 1.5);
}
.mt-2 {
margin-top: calc(var(--spacing) * 2);
}
@@ -2123,6 +2286,9 @@
.min-h-\[60vh\] {
min-height: 60vh;
}
.min-h-\[80px\] {
min-height: 80px;
}
.min-h-\[100px\] {
min-height: 100px;
}
@@ -2273,6 +2439,9 @@
.cursor-move {
cursor: move;
}
.cursor-pointer {
cursor: pointer;
}
.resize {
resize: both;
}
@@ -2309,6 +2478,9 @@
.justify-center {
justify-content: center;
}
.justify-start {
justify-content: flex-start;
}
.gap-1 {
gap: calc(var(--spacing) * 1);
}
@@ -2366,6 +2538,9 @@
.overflow-y-auto {
overflow-y: auto;
}
.rounded {
border-radius: 0.25rem;
}
.rounded-2xl {
border-radius: var(--radius-2xl);
}
@@ -2406,6 +2581,10 @@
border-bottom-style: var(--tw-border-style);
border-bottom-width: 1px;
}
.border-l-2 {
border-left-style: var(--tw-border-style);
border-left-width: 2px;
}
.border-l-4 {
border-left-style: var(--tw-border-style);
border-left-width: 4px;
@@ -2524,6 +2703,9 @@
.bg-purple-400 {
background-color: var(--color-purple-400);
}
.bg-red-50 {
background-color: var(--color-red-50);
}
.bg-red-100 {
background-color: var(--color-red-100);
}
@@ -2635,6 +2817,9 @@
.bg-clip-text {
background-clip: text;
}
.p-0 {
padding: calc(var(--spacing) * 0);
}
.p-2 {
padding: calc(var(--spacing) * 2);
}
@@ -2670,6 +2855,9 @@
.px-1 {
padding-inline: calc(var(--spacing) * 1);
}
.px-1\.5 {
padding-inline: calc(var(--spacing) * 1.5);
}
.px-2 {
padding-inline: calc(var(--spacing) * 2);
}
@@ -2739,6 +2927,9 @@
.pb-6 {
padding-bottom: calc(var(--spacing) * 6);
}
.pl-4 {
padding-left: calc(var(--spacing) * 4);
}
.text-center {
text-align: center;
}
@@ -2775,6 +2966,9 @@
font-size: 0.75rem;
}
}
.text-\[10px\] {
font-size: 10px;
}
.leading-snug {
--tw-leading: var(--leading-snug);
line-height: var(--leading-snug);
@@ -2804,6 +2998,12 @@
.whitespace-pre-wrap {
white-space: pre-wrap;
}
.checkbox-primary {
@layer daisyui.l1.l2 {
color: var(--color-primary-content);
--input-color: var(--color-primary);
}
}
.link-primary {
@layer daisyui.l1.l2 {
color: var(--color-primary);
@@ -2904,6 +3104,9 @@
.uppercase {
text-transform: uppercase;
}
.italic {
font-style: italic;
}
.link-hover {
@layer daisyui.l1.l2 {
text-decoration-line: none;
@@ -3019,6 +3222,10 @@
--tw-ease: var(--ease-in-out);
transition-timing-function: var(--ease-in-out);
}
.ease-out {
--tw-ease: var(--ease-out);
transition-timing-function: var(--ease-out);
}
.btn-sm {
@layer daisyui.l1.l2 {
--fontsize: 0.75rem;
@@ -3134,6 +3341,13 @@
}
}
}
.hover\:bg-red-100 {
&:hover {
@media (hover: hover) {
background-color: var(--color-red-100);
}
}
}
.hover\:bg-red-500\/30 {
&:hover {
@media (hover: hover) {
@@ -3273,6 +3487,13 @@
}
}
}
.hover\:text-red-800 {
&:hover {
@media (hover: hover) {
color: var(--color-red-800);
}
}
}
.hover\:shadow-md {
&:hover {
@media (hover: hover) {
@@ -3309,6 +3530,11 @@
display: inline;
}
}
.md\:col-span-2 {
@media (width >= 48rem) {
grid-column: span 2 / span 2;
}
}
.md\:grid-cols-2 {
@media (width >= 48rem) {
grid-template-columns: repeat(2, minmax(0, 1fr));