Files
ThriveX-Blog/src/styles/tailwind.css
刘宇阳 98df1437d1 refactor(layout, comment, styles): 优化组件结构和样式
- 在 layout.tsx 中调整样式导入顺序,确保全局样式优先加载。
- 更新 Comment 组件中的表单样式,统一使用 form-control 类名,提升一致性。
- 修改多个组件的样式,使用更简洁的 Tailwind CSS 类名,增强可读性和可维护性。
- 在 LikeButtonCore 组件中引入新的样式类,优化按钮和动画效果,提升用户体验。
2026-07-03 15:33:46 +08:00

37 lines
720 B
CSS

@import 'tailwindcss';
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--color-primary: #539dfd;
--color-foreground: #333333;
--color-surface: #ffffff;
--color-background: #f9f9f9;
--color-black-a: #232931;
--color-black-b: #2c333e;
--color-border: #eeeeee;
--shadow-panel: 0 4px 24px -4px rgba(0, 0, 0, 0.12);
--breakpoint-xs: 400px;
--default-transition-duration: 300ms;
}
.dark {
--color-foreground: #e5e7eb;
--color-surface: #2c333e;
--color-background: #232931;
--color-border: #4e5969;
--shadow-panel: 0 4px 24px -4px rgba(0, 0, 0, 0.45);
}
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-border);
}
}