1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
/* 1) Load Tailwind first */
@import "tailwindcss";
@tailwind base;
@tailwind components;
@tailwind utilities;
/* 2) Register DaisyUI themes */
@plugin "daisyui" {
themes: lofi --default, black --prefersdark;
}
@plugin "daisyui/theme" {
name: "lofi";
default: true;
--gradient: #C3CFE2;
--color-error: #b91c1c;
}
@plugin "daisyui/theme" {
name: "black";
prefersdark: true;
--gradient: #C3CFE2;
--color-secondary: #CCC;
--color-error: #f87171;
}
/* 3) Tell Tailwind which layers we’ll @apply from */
@reference utilities;
@reference components;
/* 4) Now your custom CSS that uses @apply */
.btn-menu {
@apply flex justify-center items-center bg-base-100 p-2 rounded-full
w-12 h-12 sm:w-16 sm:h-16 drop-shadow-xl;
}
@font-face {
font-family: "PublicSans";
src: url("/fonts/Public_Sans/static/PublicSans-Regular.ttf") format("truetype");
}
:root {
--toastContainerTop: auto;
--toastContainerRight: auto;
--toastContainerBottom: 8rem;
--toastContainerLeft: calc(50vw - 8rem);
--toastBackground: #292929;
}
/* svelte-toast styles - component scoped CSS doesn't survive Svelte 5 compilation */
._toastContainer {
top: var(--toastContainerTop, 1.5rem);
right: var(--toastContainerRight, 2rem);
bottom: var(--toastContainerBottom, auto);
left: var(--toastContainerLeft, auto);
position: fixed;
margin: 0;
padding: 0;
list-style-type: none;
pointer-events: none;
z-index: var(--toastContainerZIndex, 9999);
}
._toastItem {
width: var(--toastWidth, 16rem);
height: var(--toastHeight, auto);
min-height: var(--toastMinHeight, 3.5rem);
margin: var(--toastMargin, 0 0 0.5rem 0);
padding: var(--toastPadding, 0);
background: var(--toastBackground, rgba(66, 66, 66, 0.9));
color: var(--toastColor, #fff);
box-shadow: var(--toastBoxShadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06));
border: var(--toastBorder, none);
border-radius: var(--toastBorderRadius, 0.125rem);
position: relative;
display: flex;
flex-direction: row;
align-items: center;
overflow: hidden;
will-change: transform, opacity;
-webkit-tap-highlight-color: transparent;
}
._toastMsg {
padding: var(--toastMsgPadding, 0.75rem 0.5rem);
flex: 1 1 0%;
}
._toastBar {
top: var(--toastBarTop, auto);
right: var(--toastBarRight, auto);
bottom: var(--toastBarBottom, 0);
left: var(--toastBarLeft, 0);
height: var(--toastBarHeight, 6px);
width: var(--toastBarWidth, 100%);
position: absolute;
display: block;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: none;
background: transparent;
pointer-events: none;
}
._toastBar::-webkit-progress-bar {
background: transparent;
}
._toastBar::-webkit-progress-value {
background: var(--toastProgressBackground, var(--toastBarBackground, rgba(33, 150, 243, 0.75)));
}
._toastBar::-moz-progress-bar {
background: var(--toastProgressBackground, var(--toastBarBackground, rgba(33, 150, 243, 0.75)));
}
html { font-family: PublicSans, sans-serif; }
::selection { color: black; background: #eaf2ff; }
:fullscreen { background-color: white; }
/* Note: @apply-ing DaisyUI component classes requires components reference */
.input { @apply input-lg input-primary h-16 px-4; }
/* If you want to *turn* native inputs into DaisyUI inputs via @apply: */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"] {
@apply input input-lg input-primary h-16 px-4;
}
textarea { @apply textarea textarea-lg textarea-primary py-4; }
select { @apply select select-lg select-primary h-16 px-4; }
input:not([type="range"]), textarea, select, .input {
@apply rounded-2xl w-full;
}
input.clean, textarea.clean {
border: none !important;
outline: none !important;
padding: 0 !important;
margin: 0 !important;
background: none !important;
box-shadow: none !important;
}
button { cursor: pointer !important; }
.btn { @apply rounded-2xl btn-lg btn-block outline-none h-16 cursor-pointer; }
@layer components {
:where(input, textarea, select, .input, .textarea, .select) {
outline-offset: 0 !important;
}
}
|