feat: migrate to Tailwind CSS with DaisyUI

This commit is contained in:
Your Name
2026-04-10 11:26:55 +05:30
parent e39e56a105
commit b5654fa9f1
4 changed files with 116 additions and 115 deletions
+35 -109
View File
@@ -1,111 +1,37 @@
:root {
--text: #6b6375;
--text-h: #08060d;
--bg: #fff;
--border: #e5e4e7;
--code-bg: #f4f3ec;
--accent: #aa3bff;
--accent-bg: rgba(170, 59, 255, 0.1);
--accent-border: rgba(170, 59, 255, 0.5);
--social-bg: rgba(244, 243, 236, 0.5);
--shadow:
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
@import "tailwindcss";
@plugin "daisyui";
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
--mono: ui-monospace, Consolas, monospace;
font: 18px/145% var(--sans);
letter-spacing: 0.18px;
color-scheme: light dark;
color: var(--text);
background: var(--bg);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: 1024px) {
font-size: 16px;
}
}
@media (prefers-color-scheme: dark) {
:root {
--text: #9ca3af;
--text-h: #f3f4f6;
--bg: #16171d;
--border: #2e303a;
--code-bg: #1f2028;
--accent: #c084fc;
--accent-bg: rgba(192, 132, 252, 0.15);
--accent-border: rgba(192, 132, 252, 0.5);
--social-bg: rgba(47, 48, 58, 0.5);
--shadow:
rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
}
#social .button-icon {
filter: invert(1) brightness(2);
}
}
#root {
width: 1126px;
max-width: 100%;
margin: 0 auto;
text-align: center;
border-inline: 1px solid var(--border);
min-height: 100svh;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
body {
margin: 0;
}
h1,
h2 {
font-family: var(--heading);
font-weight: 500;
color: var(--text-h);
}
h1 {
font-size: 56px;
letter-spacing: -1.68px;
margin: 32px 0;
@media (max-width: 1024px) {
font-size: 36px;
margin: 20px 0;
}
}
h2 {
font-size: 24px;
line-height: 118%;
letter-spacing: -0.24px;
margin: 0 0 8px;
@media (max-width: 1024px) {
font-size: 20px;
}
}
p {
margin: 0;
}
code,
.counter {
font-family: var(--mono);
display: inline-flex;
border-radius: 4px;
color: var(--text-h);
}
code {
font-size: 15px;
line-height: 135%;
padding: 4px 8px;
background: var(--code-bg);
@plugin "daisyui/theme" {
name: "piku";
default: false;
prefersdark: true;
color-scheme: "dark";
--color-base-100: #231e18;
--color-base-200: #1e1914;
--color-base-300: #1a1410;
--color-base-content: oklch(76% 0.188 70.08);
--color-primary: #7a5520;
--color-primary-content: #c8b890;
--color-secondary: #2a1e13;
--color-secondary-content: #e8d5b0;
--color-accent: #3d2e1e;
--color-accent-content: #c8903a;
--color-neutral: #2e2820;
--color-neutral-content: oklch(98% 0.016 73.684);
--color-info: #2a3040;
--color-info-content: #a0aabf;
--color-success: #d6d996;
--color-success-content: #8aaa8a;
--color-warning: #4a3010;
--color-warning-content: #d4a050;
--color-error: #3d1e1a;
--color-error-content: #c07060;
--radius-selector: 1rem;
--radius-field: 0rem;
--radius-box: 0.25rem;
--size-selector: 0.28125rem;
--size-field: 0.28125rem;
--border: 1px;
--depth: 0;
--noise: 0;
}