|
| 1 | +@import "tailwindcss"; |
| 2 | + |
| 3 | +@layer base { |
| 4 | + body { |
| 5 | + font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| 6 | + } |
| 7 | + |
| 8 | + h1 { |
| 9 | + @apply mb-2 text-2xl font-semibold tracking-normal text-slate-950; |
| 10 | + } |
| 11 | + |
| 12 | + h2 { |
| 13 | + @apply text-xl font-semibold tracking-normal text-slate-950; |
| 14 | + } |
| 15 | + |
| 16 | + h3 { |
| 17 | + @apply text-lg font-semibold tracking-normal text-slate-950; |
| 18 | + } |
| 19 | + |
| 20 | + h4 { |
| 21 | + @apply text-base font-semibold tracking-normal text-slate-950; |
| 22 | + } |
| 23 | + |
| 24 | + a { |
| 25 | + @apply text-slate-900 underline-offset-4 hover:text-slate-700 hover:underline; |
| 26 | + } |
| 27 | + |
| 28 | + code { |
| 29 | + @apply rounded bg-slate-100 px-1.5 py-0.5 text-sm text-slate-900; |
| 30 | + } |
| 31 | +} |
| 32 | + |
| 33 | +@layer components { |
| 34 | + .page-lede { |
| 35 | + @apply mb-5 max-w-3xl text-sm leading-6 text-slate-600; |
| 36 | + } |
| 37 | + |
| 38 | + .card { |
| 39 | + @apply overflow-hidden rounded-md border border-slate-200 bg-white shadow-sm; |
| 40 | + } |
| 41 | + |
| 42 | + .card-body { |
| 43 | + @apply p-5; |
| 44 | + } |
| 45 | + |
| 46 | + .card-title { |
| 47 | + @apply mb-3 font-semibold text-slate-950; |
| 48 | + } |
| 49 | + |
| 50 | + .list-group { |
| 51 | + @apply divide-y divide-slate-200 rounded-md border border-slate-200 bg-white; |
| 52 | + } |
| 53 | + |
| 54 | + .list-group-flush { |
| 55 | + @apply rounded-none border-x-0 border-b-0; |
| 56 | + } |
| 57 | + |
| 58 | + .list-group-item { |
| 59 | + @apply p-4 text-sm text-slate-700; |
| 60 | + } |
| 61 | + |
| 62 | + .btn { |
| 63 | + @apply inline-flex items-center justify-center rounded-md border border-transparent px-3 py-2 text-sm font-medium no-underline transition focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50; |
| 64 | + } |
| 65 | + |
| 66 | + .btn-sm { |
| 67 | + @apply px-2.5 py-1.5 text-xs; |
| 68 | + } |
| 69 | + |
| 70 | + .btn-primary { |
| 71 | + @apply bg-slate-950 text-white hover:bg-slate-800 hover:text-white; |
| 72 | + } |
| 73 | + |
| 74 | + .btn-secondary { |
| 75 | + @apply border-slate-300 bg-white text-slate-800 hover:bg-slate-100 hover:text-slate-950; |
| 76 | + } |
| 77 | + |
| 78 | + .btn-danger { |
| 79 | + @apply bg-rose-600 text-white hover:bg-rose-700 hover:text-white; |
| 80 | + } |
| 81 | + |
| 82 | + .btn-outline-primary { |
| 83 | + @apply border-slate-950 bg-white text-slate-950 hover:bg-slate-950 hover:text-white; |
| 84 | + } |
| 85 | + |
| 86 | + .btn-group { |
| 87 | + @apply flex flex-wrap items-center gap-2; |
| 88 | + } |
| 89 | + |
| 90 | + .button_to { |
| 91 | + @apply inline-flex; |
| 92 | + } |
| 93 | + |
| 94 | + .badge { |
| 95 | + @apply inline-flex items-center rounded-md px-2 py-1 text-xs font-medium no-underline; |
| 96 | + } |
| 97 | + |
| 98 | + .badge-secondary { |
| 99 | + @apply bg-slate-100 text-slate-700; |
| 100 | + } |
| 101 | + |
| 102 | + .badge-info { |
| 103 | + @apply bg-sky-100 text-sky-800; |
| 104 | + } |
| 105 | + |
| 106 | + .form-control, |
| 107 | + .custom-file-input, |
| 108 | + input[type="text"], |
| 109 | + input[type="url"], |
| 110 | + input[type="email"], |
| 111 | + input[type="number"], |
| 112 | + input[type="file"], |
| 113 | + textarea, |
| 114 | + select { |
| 115 | + @apply mt-1 block w-full rounded-md border border-slate-300 bg-white px-3 py-2 text-sm text-slate-950 shadow-sm focus:border-slate-500 focus:outline-none focus:ring-2 focus:ring-slate-200; |
| 116 | + } |
| 117 | + |
| 118 | + label, |
| 119 | + .form-check-label { |
| 120 | + @apply text-sm font-medium text-slate-700; |
| 121 | + } |
| 122 | + |
| 123 | + .form-check { |
| 124 | + @apply flex items-center gap-2; |
| 125 | + } |
| 126 | + |
| 127 | + .form-check-input, |
| 128 | + input[type="checkbox"], |
| 129 | + input[type="radio"] { |
| 130 | + @apply h-4 w-4 rounded border-slate-300 text-slate-950 focus:ring-slate-400; |
| 131 | + } |
| 132 | + |
| 133 | + .custom-file-label { |
| 134 | + @apply mt-2 block text-xs text-slate-500; |
| 135 | + } |
| 136 | + |
| 137 | + .table { |
| 138 | + @apply w-full divide-y divide-slate-200 text-left text-sm; |
| 139 | + } |
| 140 | + |
| 141 | + .table th { |
| 142 | + @apply bg-slate-50 px-3 py-2 font-semibold text-slate-700; |
| 143 | + } |
| 144 | + |
| 145 | + .table td { |
| 146 | + @apply px-3 py-2 text-slate-700; |
| 147 | + } |
| 148 | + |
| 149 | + .row { |
| 150 | + @apply grid gap-4; |
| 151 | + } |
| 152 | + |
| 153 | + .row-cols-1 { |
| 154 | + @apply grid-cols-1; |
| 155 | + } |
| 156 | + |
| 157 | + .row-cols-lg-2 { |
| 158 | + @apply lg:grid-cols-2; |
| 159 | + } |
| 160 | + |
| 161 | + .col { |
| 162 | + @apply min-w-0; |
| 163 | + } |
| 164 | + |
| 165 | + .text-body-secondary { |
| 166 | + @apply text-slate-500; |
| 167 | + } |
| 168 | + |
| 169 | + .text-place { |
| 170 | + @apply min-w-0; |
| 171 | + } |
| 172 | + |
| 173 | + .text-truncate { |
| 174 | + @apply truncate; |
| 175 | + } |
| 176 | + |
| 177 | + .d-flex { |
| 178 | + @apply flex; |
| 179 | + } |
| 180 | + |
| 181 | + .d-inline { |
| 182 | + @apply inline-flex; |
| 183 | + } |
| 184 | + |
| 185 | + .justify-content-between { |
| 186 | + @apply justify-between; |
| 187 | + } |
| 188 | + |
| 189 | + .align-items-center { |
| 190 | + @apply items-center; |
| 191 | + } |
| 192 | + |
| 193 | + .flex-grow-1 { |
| 194 | + @apply flex-1; |
| 195 | + } |
| 196 | + |
| 197 | + .flex-shrink-0 { |
| 198 | + @apply flex-shrink-0; |
| 199 | + } |
| 200 | + |
| 201 | + .h-100 { |
| 202 | + @apply h-full; |
| 203 | + } |
| 204 | + |
| 205 | + .w-100 { |
| 206 | + @apply w-full; |
| 207 | + } |
| 208 | + |
| 209 | + .small { |
| 210 | + @apply text-sm; |
| 211 | + } |
| 212 | + |
| 213 | + .h4 { |
| 214 | + @apply text-base font-semibold; |
| 215 | + } |
| 216 | + |
| 217 | + .h5 { |
| 218 | + @apply text-sm font-semibold; |
| 219 | + } |
| 220 | + |
| 221 | + .h1 { |
| 222 | + @apply text-2xl font-semibold; |
| 223 | + } |
| 224 | + |
| 225 | + .d-block { |
| 226 | + @apply block; |
| 227 | + } |
| 228 | + |
| 229 | + .table-responsive { |
| 230 | + @apply w-full overflow-x-auto; |
| 231 | + } |
| 232 | + |
| 233 | + .g-3 { |
| 234 | + @apply gap-3; |
| 235 | + } |
| 236 | +} |
0 commit comments