@deepgram/styles 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +157 -6
- package/dist/deepgram.css +1 -1
- package/dist/deepgram.expanded.css +543 -87
- package/lib/deepgram.css +360 -31
- package/package.json +1 -1
- package/tailwind.config.js +23 -13
package/lib/deepgram.css
CHANGED
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
@apply outline-none w-fit;
|
|
35
35
|
@apply disabled:opacity-50 disabled:cursor-not-allowed;
|
|
36
36
|
gap: 0.5rem;
|
|
37
|
-
height: 3rem;
|
|
37
|
+
height: 3rem;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/* Button Modifier: Small */
|
|
41
41
|
.dg-btn--sm {
|
|
42
42
|
@apply px-5 py-2;
|
|
43
43
|
@apply font-bold text-sm;
|
|
44
|
-
height: 2.25rem;
|
|
44
|
+
height: 2.25rem;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/* Button Modifier: Primary - Gradient border with glow effect */
|
|
@@ -249,6 +249,150 @@
|
|
|
249
249
|
@apply p-0 justify-between;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
/* Selectable Card */
|
|
253
|
+
.dg-card--selectable {
|
|
254
|
+
@apply cursor-pointer transition-all duration-200;
|
|
255
|
+
@apply border-2 border-dg-pebble;
|
|
256
|
+
padding: 1.25rem;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.dg-card--selectable:hover {
|
|
260
|
+
@apply border-dg-slate;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.dg-card--selectable:has(input[type="radio"]:checked) {
|
|
264
|
+
@apply border-dg-primary;
|
|
265
|
+
background: rgba(19, 239, 149, 0.05);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* Screen reader only utility */
|
|
269
|
+
.dg-sr-only {
|
|
270
|
+
@apply sr-only;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.dg-card--selectable input[type="radio"] {
|
|
274
|
+
@apply sr-only;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.dg-card--selectable__indicator {
|
|
278
|
+
@apply hidden;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.dg-card--selectable__icon {
|
|
282
|
+
@apply dg-text-white;
|
|
283
|
+
margin-right: 0.5rem;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.dg-card--selectable__content {
|
|
287
|
+
@apply flex-1 flex flex-col gap-1;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@media (max-width: 767px) {
|
|
291
|
+
.dg-card--selectable__content {
|
|
292
|
+
@apply flex-row items-center gap-3;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.dg-card--selectable .dg-item-title {
|
|
297
|
+
@apply text-base font-semibold dg-text-white;
|
|
298
|
+
display: flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@media (max-width: 767px) {
|
|
303
|
+
.dg-card--selectable .dg-item-title {
|
|
304
|
+
margin-bottom: 0;
|
|
305
|
+
flex-shrink: 0;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@media (min-width: 768px) {
|
|
310
|
+
.dg-card--selectable .dg-item-title {
|
|
311
|
+
margin-bottom: 0.25rem;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.dg-card--selectable .dg-prose {
|
|
316
|
+
@apply text-sm dg-text-muted;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@media (max-width: 767px) {
|
|
320
|
+
.dg-card--selectable .dg-prose {
|
|
321
|
+
flex: 1;
|
|
322
|
+
white-space: nowrap;
|
|
323
|
+
overflow: hidden;
|
|
324
|
+
text-overflow: ellipsis;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* File Upload Card */
|
|
329
|
+
.dg-card--file-upload {
|
|
330
|
+
@apply cursor-pointer transition-all duration-200;
|
|
331
|
+
@apply border-2 border-dashed border-dg-pebble;
|
|
332
|
+
padding: 1.25rem;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.dg-card--file-upload:hover {
|
|
336
|
+
@apply border-dg-slate;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.dg-card--file-upload:has(input[type="checkbox"]:checked) {
|
|
340
|
+
@apply border-dg-primary border-solid;
|
|
341
|
+
background: rgba(19, 239, 149, 0.05);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.dg-card--file-upload input[type="file"],
|
|
345
|
+
.dg-card--file-upload input[type="checkbox"] {
|
|
346
|
+
@apply sr-only;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.dg-card--file-upload__icon {
|
|
350
|
+
@apply dg-text-white;
|
|
351
|
+
margin-right: 0.5rem;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.dg-card--file-upload__content {
|
|
355
|
+
@apply flex-1 flex flex-col gap-1;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@media (max-width: 767px) {
|
|
359
|
+
.dg-card--file-upload__content {
|
|
360
|
+
@apply flex-row items-center gap-3;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.dg-card--file-upload .dg-item-title {
|
|
365
|
+
@apply text-base font-semibold dg-text-white;
|
|
366
|
+
display: flex;
|
|
367
|
+
align-items: center;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
@media (max-width: 767px) {
|
|
371
|
+
.dg-card--file-upload .dg-item-title {
|
|
372
|
+
margin-bottom: 0;
|
|
373
|
+
flex-shrink: 0;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@media (min-width: 768px) {
|
|
378
|
+
.dg-card--file-upload .dg-item-title {
|
|
379
|
+
margin-bottom: 0.25rem;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.dg-card--file-upload .dg-prose {
|
|
384
|
+
@apply text-sm dg-text-muted;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
@media (max-width: 767px) {
|
|
388
|
+
.dg-card--file-upload .dg-prose {
|
|
389
|
+
flex: 1;
|
|
390
|
+
white-space: nowrap;
|
|
391
|
+
overflow: hidden;
|
|
392
|
+
text-overflow: ellipsis;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
252
396
|
/* Card Image */
|
|
253
397
|
.dg-card__image {
|
|
254
398
|
@apply w-full overflow-hidden flex-shrink-0;
|
|
@@ -261,15 +405,15 @@
|
|
|
261
405
|
|
|
262
406
|
/* Card Image Size Modifiers */
|
|
263
407
|
.dg-card__image--small {
|
|
264
|
-
@apply h-[
|
|
408
|
+
@apply h-[7.5rem];
|
|
265
409
|
}
|
|
266
410
|
|
|
267
411
|
.dg-card__image--medium {
|
|
268
|
-
@apply h-[
|
|
412
|
+
@apply h-[10rem];
|
|
269
413
|
}
|
|
270
414
|
|
|
271
415
|
.dg-card__image--large {
|
|
272
|
-
@apply h-[
|
|
416
|
+
@apply h-[15rem];
|
|
273
417
|
}
|
|
274
418
|
|
|
275
419
|
.dg-card__image--aspect-4-3 {
|
|
@@ -370,19 +514,19 @@
|
|
|
370
514
|
/* Code Block Component */
|
|
371
515
|
.dg-code-block {
|
|
372
516
|
@apply w-full rounded-lg border border-dg-pebble bg-dg-charcoal overflow-auto;
|
|
373
|
-
@apply p-2 my-3 max-h-[
|
|
517
|
+
@apply p-2 my-3 max-h-[12.5rem];
|
|
374
518
|
-webkit-overflow-scrolling: touch;
|
|
375
519
|
}
|
|
376
520
|
|
|
377
521
|
@media (min-width: 640px) {
|
|
378
522
|
.dg-code-block {
|
|
379
|
-
@apply p-3 my-4 max-h-[
|
|
523
|
+
@apply p-3 my-4 max-h-[15.625rem];
|
|
380
524
|
}
|
|
381
525
|
}
|
|
382
526
|
|
|
383
527
|
@media (min-width: 1024px) {
|
|
384
528
|
.dg-code-block {
|
|
385
|
-
@apply max-h-[
|
|
529
|
+
@apply max-h-[18.75rem];
|
|
386
530
|
}
|
|
387
531
|
}
|
|
388
532
|
|
|
@@ -398,28 +542,28 @@
|
|
|
398
542
|
}
|
|
399
543
|
|
|
400
544
|
.dg-code-block--compact {
|
|
401
|
-
@apply max-h-[
|
|
545
|
+
@apply max-h-[7.5rem] p-1;
|
|
402
546
|
}
|
|
403
547
|
|
|
404
548
|
@media (min-width: 640px) {
|
|
405
549
|
.dg-code-block--compact {
|
|
406
|
-
@apply max-h-[
|
|
550
|
+
@apply max-h-[9.375rem] p-2;
|
|
407
551
|
}
|
|
408
552
|
}
|
|
409
553
|
|
|
410
554
|
.dg-code-block--tall {
|
|
411
|
-
@apply max-h-[
|
|
555
|
+
@apply max-h-[18.75rem];
|
|
412
556
|
}
|
|
413
557
|
|
|
414
558
|
@media (min-width: 640px) {
|
|
415
559
|
.dg-code-block--tall {
|
|
416
|
-
@apply max-h-[
|
|
560
|
+
@apply max-h-[25rem];
|
|
417
561
|
}
|
|
418
562
|
}
|
|
419
563
|
|
|
420
564
|
@media (min-width: 1024px) {
|
|
421
565
|
.dg-code-block--tall {
|
|
422
|
-
@apply max-h-[
|
|
566
|
+
@apply max-h-[31.25rem];
|
|
423
567
|
}
|
|
424
568
|
}
|
|
425
569
|
|
|
@@ -478,7 +622,7 @@
|
|
|
478
622
|
|
|
479
623
|
/* Hero Content Container */
|
|
480
624
|
.dg-hero__content {
|
|
481
|
-
@apply flex flex-col gap-6 mx-auto max-w-[
|
|
625
|
+
@apply flex flex-col gap-6 mx-auto max-w-[53.125rem];
|
|
482
626
|
}
|
|
483
627
|
|
|
484
628
|
@media (max-width: 768px) {
|
|
@@ -497,7 +641,7 @@
|
|
|
497
641
|
.dg-hero__announcement:hover {
|
|
498
642
|
@apply border-dg-primary -translate-y-0.5;
|
|
499
643
|
background-color: rgba(19, 239, 149, 0.1);
|
|
500
|
-
box-shadow: 0
|
|
644
|
+
box-shadow: 0 0.25rem 0.75rem rgba(19, 239, 149, 0.15);
|
|
501
645
|
}
|
|
502
646
|
|
|
503
647
|
.dg-hero__announcement-text {
|
|
@@ -526,7 +670,7 @@
|
|
|
526
670
|
|
|
527
671
|
/* Hero Body Text */
|
|
528
672
|
.dg-hero__body {
|
|
529
|
-
@apply text-center dg-text-fog text-lg leading-7 font-normal mx-auto max-w-[
|
|
673
|
+
@apply text-center dg-text-fog text-lg leading-7 font-normal mx-auto max-w-[53.125rem];
|
|
530
674
|
}
|
|
531
675
|
|
|
532
676
|
@media (max-width: 768px) {
|
|
@@ -537,7 +681,7 @@
|
|
|
537
681
|
|
|
538
682
|
@media (max-width: 640px) {
|
|
539
683
|
.dg-hero__body {
|
|
540
|
-
@apply text-[
|
|
684
|
+
@apply text-[0.9375rem] leading-normal;
|
|
541
685
|
}
|
|
542
686
|
}
|
|
543
687
|
|
|
@@ -618,7 +762,7 @@
|
|
|
618
762
|
|
|
619
763
|
@media (max-width: 640px) {
|
|
620
764
|
.dg-page-heading__description {
|
|
621
|
-
@apply text-[
|
|
765
|
+
@apply text-[0.9375rem];
|
|
622
766
|
}
|
|
623
767
|
}
|
|
624
768
|
|
|
@@ -695,7 +839,7 @@
|
|
|
695
839
|
@apply dg-text-white font-dg-sans text-sm;
|
|
696
840
|
@apply outline-none transition-all duration-300;
|
|
697
841
|
@apply shadow-dg-sm;
|
|
698
|
-
height:
|
|
842
|
+
height: 2.75rem;
|
|
699
843
|
}
|
|
700
844
|
|
|
701
845
|
.dg-input::placeholder {
|
|
@@ -704,7 +848,7 @@
|
|
|
704
848
|
|
|
705
849
|
.dg-input:focus {
|
|
706
850
|
@apply border-dg-primary;
|
|
707
|
-
box-shadow: 0 0 0
|
|
851
|
+
box-shadow: 0 0 0 0.0625rem theme("colors.dg-primary");
|
|
708
852
|
}
|
|
709
853
|
|
|
710
854
|
.dg-input:disabled {
|
|
@@ -712,17 +856,28 @@
|
|
|
712
856
|
}
|
|
713
857
|
|
|
714
858
|
.dg-input--inline {
|
|
715
|
-
@apply min-w-[
|
|
859
|
+
@apply min-w-[12.5rem];
|
|
716
860
|
}
|
|
717
861
|
|
|
718
862
|
.dg-input--full {
|
|
719
863
|
@apply max-w-none;
|
|
720
864
|
}
|
|
721
865
|
|
|
866
|
+
/* Select (dropdown) specific */
|
|
867
|
+
.dg-input[type="select"],
|
|
868
|
+
select.dg-input {
|
|
869
|
+
@apply appearance-none;
|
|
870
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='rgb(255,255,255)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
871
|
+
background-position: right 0.75rem center;
|
|
872
|
+
background-repeat: no-repeat;
|
|
873
|
+
background-size: 1.5em 1.5em;
|
|
874
|
+
padding-right: 2.5rem;
|
|
875
|
+
}
|
|
876
|
+
|
|
722
877
|
/* Textarea */
|
|
723
878
|
.dg-textarea {
|
|
724
879
|
@apply dg-input;
|
|
725
|
-
min-height:
|
|
880
|
+
min-height: 6.25rem;
|
|
726
881
|
resize: vertical;
|
|
727
882
|
height: auto;
|
|
728
883
|
}
|
|
@@ -742,18 +897,18 @@
|
|
|
742
897
|
.dg-checkbox:checked::after {
|
|
743
898
|
content: "";
|
|
744
899
|
position: absolute;
|
|
745
|
-
left:
|
|
746
|
-
top:
|
|
747
|
-
width:
|
|
748
|
-
height:
|
|
900
|
+
left: 0.375rem;
|
|
901
|
+
top: 0.125rem;
|
|
902
|
+
width: 0.3125rem;
|
|
903
|
+
height: 0.625rem;
|
|
749
904
|
border: solid black;
|
|
750
|
-
border-width: 0
|
|
905
|
+
border-width: 0 0.125rem 0.125rem 0;
|
|
751
906
|
transform: rotate(45deg);
|
|
752
907
|
}
|
|
753
908
|
|
|
754
909
|
.dg-checkbox:focus {
|
|
755
910
|
@apply outline-none;
|
|
756
|
-
box-shadow: 0 0 0
|
|
911
|
+
box-shadow: 0 0 0 0.125rem theme("colors.dg-primary/50");
|
|
757
912
|
}
|
|
758
913
|
|
|
759
914
|
/* Checkbox Label */
|
|
@@ -834,7 +989,7 @@
|
|
|
834
989
|
@apply flex flex-col items-center justify-center gap-3;
|
|
835
990
|
@apply cursor-pointer;
|
|
836
991
|
padding: 3rem 2rem;
|
|
837
|
-
min-height:
|
|
992
|
+
min-height: 12.5rem;
|
|
838
993
|
}
|
|
839
994
|
|
|
840
995
|
.dg-drag-drop-zone:hover {
|
|
@@ -953,7 +1108,7 @@
|
|
|
953
1108
|
}
|
|
954
1109
|
|
|
955
1110
|
.dg-modal-content {
|
|
956
|
-
@apply text-center max-w-[
|
|
1111
|
+
@apply text-center max-w-[25rem] m-3;
|
|
957
1112
|
}
|
|
958
1113
|
|
|
959
1114
|
/* ==========================================================================
|
|
@@ -967,7 +1122,7 @@
|
|
|
967
1122
|
|
|
968
1123
|
@media (min-width: 640px) {
|
|
969
1124
|
.dg-constrain-width {
|
|
970
|
-
@apply max-w-[
|
|
1125
|
+
@apply max-w-[70rem] mx-auto;
|
|
971
1126
|
}
|
|
972
1127
|
}
|
|
973
1128
|
|
|
@@ -1006,6 +1161,52 @@
|
|
|
1006
1161
|
}
|
|
1007
1162
|
}
|
|
1008
1163
|
|
|
1164
|
+
/* Header */
|
|
1165
|
+
.dg-header {
|
|
1166
|
+
@apply w-full;
|
|
1167
|
+
background: #050506; /* dg-almost-black */
|
|
1168
|
+
padding: 1rem 1.5rem;
|
|
1169
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.dg-header__container {
|
|
1173
|
+
@apply flex items-center justify-between max-w-screen-2xl mx-auto;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.dg-header__logo {
|
|
1177
|
+
@apply flex items-center gap-3;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.dg-header__logo-image {
|
|
1181
|
+
@apply h-8 w-auto;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.dg-header__logo-text {
|
|
1185
|
+
@apply font-dg-noto font-bold text-xl dg-text-white;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
.dg-header__nav {
|
|
1189
|
+
@apply flex items-center gap-4;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.dg-header__profile-link {
|
|
1193
|
+
@apply -m-1.5 p-1.5 block;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.dg-header__profile-avatar {
|
|
1197
|
+
@apply size-8 rounded-full bg-gray-800 outline -outline-offset-1 outline-white/10;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
@media (max-width: 768px) {
|
|
1201
|
+
.dg-header {
|
|
1202
|
+
padding: 0.75rem 1rem;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.dg-header__logo-text {
|
|
1206
|
+
@apply text-lg;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1009
1210
|
/* Footer */
|
|
1010
1211
|
.dg-footer {
|
|
1011
1212
|
@apply text-center border-t border-dg-pebble mt-16;
|
|
@@ -1135,6 +1336,134 @@
|
|
|
1135
1336
|
@apply text-xs dg-text-muted text-center;
|
|
1136
1337
|
}
|
|
1137
1338
|
|
|
1339
|
+
/* ==========================================================================
|
|
1340
|
+
MULTI-COLUMN LAYOUT COMPONENTS
|
|
1341
|
+
|
|
1342
|
+
Responsive collapse pattern:
|
|
1343
|
+
- Mobile (< 768px): All columns stacked vertically
|
|
1344
|
+
- Tablet (768px+): Right sidebar moves to side, left stacked on top
|
|
1345
|
+
- Desktop (1024px+): All three columns side-by-side
|
|
1346
|
+
========================================================================== */
|
|
1347
|
+
|
|
1348
|
+
/* Column Container - parent wrapper for all columns */
|
|
1349
|
+
.dg-columns {
|
|
1350
|
+
@apply flex flex-col w-full;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
/* At tablet: show right sidebar on the side */
|
|
1354
|
+
@media (min-width: 768px) {
|
|
1355
|
+
.dg-columns {
|
|
1356
|
+
@apply flex-row;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
/* Column Wrapper - groups left sidebar and main content together */
|
|
1361
|
+
.dg-columns__wrapper {
|
|
1362
|
+
@apply flex flex-col flex-1 min-w-0;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
/* At desktop: show left sidebar on the side */
|
|
1366
|
+
@media (min-width: 1024px) {
|
|
1367
|
+
.dg-columns__wrapper {
|
|
1368
|
+
@apply flex-row;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
/* Base Column - padding for all columns */
|
|
1373
|
+
.dg-column {
|
|
1374
|
+
@apply px-4 py-6 min-w-0;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
@media (min-width: 640px) {
|
|
1378
|
+
.dg-column {
|
|
1379
|
+
@apply px-6;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/* Main Content Column - always fills available space */
|
|
1384
|
+
.dg-column--main {
|
|
1385
|
+
@apply flex-1;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
/* Left Sidebar - fixed width on desktop, full width on mobile/tablet */
|
|
1389
|
+
.dg-column--sidebar-left {
|
|
1390
|
+
/* Layout only - no colors */
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
@media (min-width: 1024px) {
|
|
1394
|
+
.dg-column--sidebar-left {
|
|
1395
|
+
@apply w-48 flex-shrink-0;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
.dg-column--sidebar-left.dg-column--sm {
|
|
1399
|
+
@apply w-64 flex-shrink-0;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
.dg-column--sidebar-left.dg-column--lg {
|
|
1403
|
+
@apply w-96 flex-shrink-0;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
.dg-column--sidebar-left.dg-column--xl {
|
|
1407
|
+
@apply w-128 flex-shrink-0;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/* Right Sidebar - fixed width on tablet+, full width on mobile */
|
|
1412
|
+
.dg-column--sidebar-right {
|
|
1413
|
+
/* Layout only - no colors */
|
|
1414
|
+
position: relative;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/* Between 768px and 1280px: Floating sidebar with toggle */
|
|
1418
|
+
@media (min-width: 768px) and (max-width: 1279px) {
|
|
1419
|
+
.dg-column--sidebar-right {
|
|
1420
|
+
position: fixed;
|
|
1421
|
+
top: 65px; /* Account for header height */
|
|
1422
|
+
right: 0;
|
|
1423
|
+
height: calc(100vh - 65px);
|
|
1424
|
+
@apply w-64 flex-shrink-0;
|
|
1425
|
+
transition: transform 300ms ease;
|
|
1426
|
+
z-index: 20;
|
|
1427
|
+
box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
.dg-column--sidebar-right.dg-column--sm {
|
|
1431
|
+
@apply w-80;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
.dg-column--sidebar-right.dg-column--lg {
|
|
1435
|
+
@apply w-96;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.dg-column--sidebar-right.dg-column--xl {
|
|
1439
|
+
@apply w-128;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/* Collapsed state - slide mostly off screen but leave button visible */
|
|
1443
|
+
.dg-column--sidebar-right.collapsed {
|
|
1444
|
+
transform: translateX(calc(100% - 2rem));
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/* Above 1280px: Normal sidebar behavior */
|
|
1449
|
+
@media (min-width: 1280px) {
|
|
1450
|
+
.dg-column--sidebar-right {
|
|
1451
|
+
@apply w-64 flex-shrink-0;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
.dg-column--sidebar-right.dg-column--sm {
|
|
1455
|
+
@apply w-80 flex-shrink-0;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
.dg-column--sidebar-right.dg-column--lg {
|
|
1459
|
+
@apply w-96 flex-shrink-0;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.dg-column--sidebar-right.dg-column--xl {
|
|
1463
|
+
@apply w-128 flex-shrink-0;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1138
1467
|
/* ==========================================================================
|
|
1139
1468
|
LINK COMPONENTS
|
|
1140
1469
|
========================================================================== */
|
package/package.json
CHANGED
package/tailwind.config.js
CHANGED
|
@@ -12,10 +12,12 @@ module.exports = {
|
|
|
12
12
|
extend: {
|
|
13
13
|
colors: {
|
|
14
14
|
// Deepgram Brand Colors (from marketing site)
|
|
15
|
-
|
|
16
|
-
"dg-
|
|
15
|
+
// These can be overridden by setting CSS variables
|
|
16
|
+
"dg-primary": "var(--dg-primary, #13ef95)",
|
|
17
|
+
"dg-secondary": "var(--dg-secondary, #149afb)",
|
|
17
18
|
|
|
18
19
|
// Background Colors
|
|
20
|
+
"dg-almost-black": "#050506", // Almost Black (darkest)
|
|
19
21
|
"dg-background": "#0b0b0c", // Black
|
|
20
22
|
"dg-charcoal": "#1a1a1f", // Charcoal (cards, modals)
|
|
21
23
|
"dg-translucent": "rgba(0, 0, 0, 0.5)",
|
|
@@ -70,17 +72,20 @@ module.exports = {
|
|
|
70
72
|
"dg-lg": "1.5rem",
|
|
71
73
|
"dg-xl": "2rem",
|
|
72
74
|
"dg-2xl": "3rem",
|
|
75
|
+
128: "32rem", // 512px - for extra large column widths
|
|
73
76
|
},
|
|
74
77
|
borderRadius: {
|
|
75
|
-
"dg-sm": "
|
|
76
|
-
"dg-md": "
|
|
77
|
-
"dg-lg": "
|
|
78
|
-
"dg-xl": "
|
|
78
|
+
"dg-sm": "0.25rem",
|
|
79
|
+
"dg-md": "0.5rem",
|
|
80
|
+
"dg-lg": "0.75rem",
|
|
81
|
+
"dg-xl": "1rem",
|
|
79
82
|
},
|
|
80
83
|
boxShadow: {
|
|
81
|
-
"dg-sm": "0
|
|
82
|
-
"dg-md":
|
|
83
|
-
|
|
84
|
+
"dg-sm": "0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.05)",
|
|
85
|
+
"dg-md":
|
|
86
|
+
"0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1), 0 0.125rem 0.25rem -0.0625rem rgba(0, 0, 0, 0.06)",
|
|
87
|
+
"dg-lg":
|
|
88
|
+
"0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1), 0 0.25rem 0.375rem -0.125rem rgba(0, 0, 0, 0.05)",
|
|
84
89
|
},
|
|
85
90
|
},
|
|
86
91
|
},
|
|
@@ -88,9 +93,13 @@ module.exports = {
|
|
|
88
93
|
function ({ addBase, addUtilities, theme }) {
|
|
89
94
|
addBase({
|
|
90
95
|
":root": {
|
|
91
|
-
"--dg-
|
|
96
|
+
"--dg-base-font-size": "16px",
|
|
97
|
+
"--dg-border-width": "0.125rem",
|
|
98
|
+
"--dg-primary": "#13ef95",
|
|
99
|
+
"--dg-secondary": "#149afb",
|
|
92
100
|
},
|
|
93
101
|
html: {
|
|
102
|
+
fontSize: "var(--dg-base-font-size, 16px)",
|
|
94
103
|
scrollBehavior: "smooth",
|
|
95
104
|
},
|
|
96
105
|
body: {
|
|
@@ -146,7 +155,7 @@ module.exports = {
|
|
|
146
155
|
addUtilities({
|
|
147
156
|
".dg-gradient-border": {
|
|
148
157
|
backgroundImage:
|
|
149
|
-
"linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0)), linear-gradient(90deg,
|
|
158
|
+
"linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0)), linear-gradient(90deg, var(--dg-secondary, #149afb), var(--dg-primary, #13ef95), var(--dg-secondary, #149afb), var(--dg-primary, #13ef95))",
|
|
150
159
|
backgroundOrigin: "padding-box, border-box",
|
|
151
160
|
backgroundClip: "padding-box, border-box",
|
|
152
161
|
backgroundRepeat: "no-repeat",
|
|
@@ -163,10 +172,11 @@ module.exports = {
|
|
|
163
172
|
backgroundSize: "auto",
|
|
164
173
|
},
|
|
165
174
|
".dg-glow-cyan-green": {
|
|
166
|
-
boxShadow:
|
|
175
|
+
boxShadow:
|
|
176
|
+
"color-mix(in srgb, var(--dg-primary, #13ef95) 20%, transparent) 0.375rem 0 0.9375rem 0, color-mix(in srgb, var(--dg-secondary, #149afb) 20%, transparent) -0.375rem 0 0.9375rem 0",
|
|
167
177
|
},
|
|
168
178
|
".dg-shadow-subtle": {
|
|
169
|
-
boxShadow: "rgba(38, 44, 52, 0.05) 0
|
|
179
|
+
boxShadow: "rgba(38, 44, 52, 0.05) 0 0.0625rem 0.125rem",
|
|
170
180
|
},
|
|
171
181
|
});
|
|
172
182
|
},
|