@deepgram/styles 0.1.4 → 0.2.0
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 +7 -14
- package/design-system.yaml +75 -75
- package/dist/deepgram.css +2 -3
- package/dist/deepgram.expanded.css +3000 -2671
- package/lib/deepgram.css +63 -63
- package/lib/tailwind-theme.css +168 -0
- package/package.json +6 -5
- package/postcss.config.js +0 -7
- package/tailwind.config.js +0 -153
package/lib/deepgram.css
CHANGED
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
* @author Deepgram Starter UIs Team
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
@tailwind
|
|
18
|
-
@tailwind components;
|
|
19
|
-
@tailwind utilities;
|
|
17
|
+
@import "./tailwind-theme.css";
|
|
20
18
|
|
|
21
19
|
/* ==========================================================================
|
|
22
20
|
COMPONENTS LAYER - Reusable UI Components
|
|
23
|
-
Base styles (html, body, headings, etc.) are defined in tailwind.
|
|
21
|
+
Base styles (html, body, headings, etc.) are defined in tailwind-theme.css
|
|
24
22
|
========================================================================== */
|
|
25
23
|
|
|
26
24
|
@layer components {
|
|
@@ -40,7 +38,7 @@
|
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
.dg-btn--primary {
|
|
43
|
-
@apply border border-transparent relative
|
|
41
|
+
@apply border border-transparent relative text-white dg-gradient-border dg-glow-cyan-green;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
.dg-btn--primary:hover {
|
|
@@ -52,11 +50,11 @@
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
.dg-btn--secondary:hover {
|
|
55
|
-
@apply border border-white bg-black
|
|
53
|
+
@apply border border-white bg-black text-white;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
.dg-btn--ghost {
|
|
59
|
-
@apply border border-dg-slate bg-transparent
|
|
57
|
+
@apply border border-dg-slate bg-transparent text-white;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
.dg-btn--ghost:hover {
|
|
@@ -64,11 +62,11 @@
|
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
.dg-btn--danger-ghost {
|
|
67
|
-
@apply border border-dg-danger bg-transparent
|
|
65
|
+
@apply border border-dg-danger bg-transparent text-white;
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
.dg-btn--danger-ghost:hover {
|
|
71
|
-
@apply border-transparent bg-dg-danger
|
|
69
|
+
@apply border-transparent bg-dg-danger text-white;
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
.dg-btn--icon-only {
|
|
@@ -181,7 +179,7 @@
|
|
|
181
179
|
}
|
|
182
180
|
|
|
183
181
|
.dg-section--fieldset .dg-section-heading {
|
|
184
|
-
@apply absolute bg-dg-background dg-
|
|
182
|
+
@apply absolute bg-dg-background text-dg-muted uppercase tracking-wide font-semibold;
|
|
185
183
|
@apply text-base px-2 m-0;
|
|
186
184
|
top: -0.75rem;
|
|
187
185
|
left: 1rem;
|
|
@@ -281,7 +279,7 @@
|
|
|
281
279
|
}
|
|
282
280
|
|
|
283
281
|
.dg-card--selectable__icon {
|
|
284
|
-
@apply
|
|
282
|
+
@apply text-white;
|
|
285
283
|
margin-right: 0.5rem;
|
|
286
284
|
}
|
|
287
285
|
|
|
@@ -290,13 +288,13 @@
|
|
|
290
288
|
}
|
|
291
289
|
|
|
292
290
|
.dg-card--selectable .dg-item-title {
|
|
293
|
-
@apply text-base font-semibold
|
|
291
|
+
@apply text-base font-semibold text-white;
|
|
294
292
|
display: flex;
|
|
295
293
|
align-items: center;
|
|
296
294
|
}
|
|
297
295
|
|
|
298
296
|
.dg-card--selectable .dg-prose {
|
|
299
|
-
@apply text-sm dg-
|
|
297
|
+
@apply text-sm text-dg-muted;
|
|
300
298
|
}
|
|
301
299
|
|
|
302
300
|
@media (max-width: 767px) {
|
|
@@ -342,7 +340,7 @@
|
|
|
342
340
|
}
|
|
343
341
|
|
|
344
342
|
.dg-card--file-upload__icon {
|
|
345
|
-
@apply
|
|
343
|
+
@apply text-white;
|
|
346
344
|
margin-right: 0.5rem;
|
|
347
345
|
}
|
|
348
346
|
|
|
@@ -351,13 +349,13 @@
|
|
|
351
349
|
}
|
|
352
350
|
|
|
353
351
|
.dg-card--file-upload .dg-item-title {
|
|
354
|
-
@apply text-base font-semibold
|
|
352
|
+
@apply text-base font-semibold text-white;
|
|
355
353
|
display: flex;
|
|
356
354
|
align-items: center;
|
|
357
355
|
}
|
|
358
356
|
|
|
359
357
|
.dg-card--file-upload .dg-prose {
|
|
360
|
-
@apply text-sm dg-
|
|
358
|
+
@apply text-sm text-dg-muted;
|
|
361
359
|
}
|
|
362
360
|
|
|
363
361
|
@media (max-width: 767px) {
|
|
@@ -414,7 +412,7 @@
|
|
|
414
412
|
}
|
|
415
413
|
|
|
416
414
|
.dg-card__icon i, .dg-card__icon svg {
|
|
417
|
-
@apply text-5xl dg-
|
|
415
|
+
@apply text-5xl text-dg-primary;
|
|
418
416
|
}
|
|
419
417
|
|
|
420
418
|
.dg-card__icon--left {
|
|
@@ -503,7 +501,7 @@
|
|
|
503
501
|
}
|
|
504
502
|
|
|
505
503
|
.dg-code-block pre {
|
|
506
|
-
@apply m-0 p-0 font-dg-mono text-xs dg-
|
|
504
|
+
@apply m-0 p-0 font-dg-mono text-xs text-dg-fog whitespace-pre-wrap;
|
|
507
505
|
@apply break-words;
|
|
508
506
|
line-height: 1.3;
|
|
509
507
|
}
|
|
@@ -586,11 +584,11 @@
|
|
|
586
584
|
}
|
|
587
585
|
|
|
588
586
|
.dg-hero__announcement-text {
|
|
589
|
-
@apply
|
|
587
|
+
@apply text-white text-sm font-normal whitespace-nowrap;
|
|
590
588
|
}
|
|
591
589
|
|
|
592
590
|
.dg-hero__announcement-cta {
|
|
593
|
-
@apply inline-flex items-center dg-
|
|
591
|
+
@apply inline-flex items-center text-dg-secondary text-sm font-semibold gap-2;
|
|
594
592
|
@apply transition-[gap] duration-200;
|
|
595
593
|
}
|
|
596
594
|
|
|
@@ -599,7 +597,7 @@
|
|
|
599
597
|
}
|
|
600
598
|
|
|
601
599
|
.dg-hero__body {
|
|
602
|
-
@apply text-center dg-
|
|
600
|
+
@apply text-center text-dg-fog text-lg leading-7 font-normal mx-auto;
|
|
603
601
|
@apply max-w-[53.125rem];
|
|
604
602
|
}
|
|
605
603
|
|
|
@@ -664,12 +662,12 @@
|
|
|
664
662
|
/* Section Header */
|
|
665
663
|
|
|
666
664
|
.dg-section-heading {
|
|
667
|
-
@apply font-semibold font-dg-noto text-2xl
|
|
665
|
+
@apply font-semibold font-dg-noto text-2xl text-white mb-6 flex;
|
|
668
666
|
@apply flex-wrap items-baseline gap-2;
|
|
669
667
|
}
|
|
670
668
|
|
|
671
669
|
.dg-section-heading small {
|
|
672
|
-
@apply font-normal text-base dg-
|
|
670
|
+
@apply font-normal text-base text-dg-muted;
|
|
673
671
|
}
|
|
674
672
|
|
|
675
673
|
@media (max-width: 640px) {
|
|
@@ -689,11 +687,11 @@
|
|
|
689
687
|
}
|
|
690
688
|
|
|
691
689
|
.dg-page-heading__title {
|
|
692
|
-
@apply font-semibold font-dg-noto text-4xl
|
|
690
|
+
@apply font-semibold font-dg-noto text-4xl text-white mb-2 leading-tight;
|
|
693
691
|
}
|
|
694
692
|
|
|
695
693
|
.dg-page-heading__description {
|
|
696
|
-
@apply dg-
|
|
694
|
+
@apply text-dg-muted text-lg leading-relaxed m-0 max-w-[65ch];
|
|
697
695
|
}
|
|
698
696
|
|
|
699
697
|
@media (max-width: 768px) {
|
|
@@ -723,29 +721,29 @@
|
|
|
723
721
|
/* Card Heading */
|
|
724
722
|
|
|
725
723
|
.dg-card-heading {
|
|
726
|
-
@apply font-medium font-dg-noto text-xl
|
|
724
|
+
@apply font-medium font-dg-noto text-xl text-white mb-3 flex;
|
|
727
725
|
@apply flex-wrap items-baseline gap-1.5;
|
|
728
726
|
}
|
|
729
727
|
|
|
730
728
|
.dg-card-heading small {
|
|
731
|
-
@apply font-normal text-sm dg-
|
|
729
|
+
@apply font-normal text-sm text-dg-muted;
|
|
732
730
|
}
|
|
733
731
|
|
|
734
732
|
/* Item Title */
|
|
735
733
|
|
|
736
734
|
.dg-item-title {
|
|
737
|
-
@apply font-medium font-dg-noto text-base
|
|
735
|
+
@apply font-medium font-dg-noto text-base text-white mb-1 flex;
|
|
738
736
|
@apply flex-wrap items-baseline gap-1;
|
|
739
737
|
}
|
|
740
738
|
|
|
741
739
|
.dg-item-title small {
|
|
742
|
-
@apply font-normal text-xs dg-
|
|
740
|
+
@apply font-normal text-xs text-dg-muted;
|
|
743
741
|
}
|
|
744
742
|
|
|
745
743
|
/* Prose */
|
|
746
744
|
|
|
747
745
|
.dg-prose {
|
|
748
|
-
@apply w-full dg-
|
|
746
|
+
@apply w-full text-dg-fog text-sm leading-snug mb-3;
|
|
749
747
|
}
|
|
750
748
|
|
|
751
749
|
.dg-prose.dg-prose--block {
|
|
@@ -775,7 +773,7 @@
|
|
|
775
773
|
}
|
|
776
774
|
|
|
777
775
|
.dg-prose--small {
|
|
778
|
-
@apply text-xs dg-
|
|
776
|
+
@apply text-xs text-dg-muted;
|
|
779
777
|
}
|
|
780
778
|
|
|
781
779
|
@media (min-width: 640px) {
|
|
@@ -788,18 +786,18 @@
|
|
|
788
786
|
|
|
789
787
|
.dg-input {
|
|
790
788
|
@apply w-full px-4 py-3 rounded border border-dg-pebble;
|
|
791
|
-
@apply bg-dg-charcoal
|
|
789
|
+
@apply bg-dg-charcoal text-white font-dg-sans text-sm outline-none transition-all;
|
|
792
790
|
@apply duration-300 shadow-dg-sm;
|
|
793
791
|
height: 2.75rem;
|
|
794
792
|
}
|
|
795
793
|
|
|
796
794
|
.dg-input::placeholder {
|
|
797
|
-
@apply dg-
|
|
795
|
+
@apply text-dg-muted;
|
|
798
796
|
}
|
|
799
797
|
|
|
800
798
|
.dg-input:focus {
|
|
801
799
|
@apply border-dg-primary;
|
|
802
|
-
box-shadow: 0 0 0 0.0625rem
|
|
800
|
+
box-shadow: 0 0 0 0.0625rem var(--color-dg-primary);
|
|
803
801
|
}
|
|
804
802
|
|
|
805
803
|
.dg-input:disabled {
|
|
@@ -826,7 +824,9 @@
|
|
|
826
824
|
/* Textarea */
|
|
827
825
|
|
|
828
826
|
.dg-textarea {
|
|
829
|
-
@apply dg-
|
|
827
|
+
@apply w-full px-4 py-3 rounded border border-dg-pebble;
|
|
828
|
+
@apply bg-dg-charcoal text-white font-dg-sans text-sm outline-none transition-all;
|
|
829
|
+
@apply duration-300 shadow-dg-sm;
|
|
830
830
|
min-height: 6.25rem;
|
|
831
831
|
resize: vertical;
|
|
832
832
|
height: auto;
|
|
@@ -858,11 +858,11 @@
|
|
|
858
858
|
|
|
859
859
|
.dg-checkbox:focus {
|
|
860
860
|
@apply outline-none;
|
|
861
|
-
box-shadow: 0 0 0 0.125rem
|
|
861
|
+
box-shadow: 0 0 0 0.125rem color-mix(in srgb, var(--color-dg-primary) 50%, transparent);
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
.dg-checkbox-label {
|
|
865
|
-
@apply flex items-start gap-2 cursor-pointer text-sm dg-
|
|
865
|
+
@apply flex items-start gap-2 cursor-pointer text-sm text-dg-fog;
|
|
866
866
|
}
|
|
867
867
|
|
|
868
868
|
.dg-checkbox-label:hover .dg-checkbox {
|
|
@@ -892,7 +892,7 @@
|
|
|
892
892
|
}
|
|
893
893
|
|
|
894
894
|
.dg-form-field--error .dg-form-helper {
|
|
895
|
-
@apply dg-
|
|
895
|
+
@apply text-dg-danger;
|
|
896
896
|
}
|
|
897
897
|
|
|
898
898
|
.dg-form-field--success .dg-input, .dg-form-field--success .dg-textarea {
|
|
@@ -900,20 +900,20 @@
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
.dg-form-field--success .dg-form-helper {
|
|
903
|
-
@apply dg-
|
|
903
|
+
@apply text-dg-success;
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
.dg-form-label {
|
|
907
|
-
@apply text-sm font-medium
|
|
907
|
+
@apply text-sm font-medium text-white;
|
|
908
908
|
}
|
|
909
909
|
|
|
910
910
|
.dg-form-error {
|
|
911
|
-
@apply text-xs dg-
|
|
911
|
+
@apply text-xs text-dg-danger block;
|
|
912
912
|
margin: 0;
|
|
913
913
|
}
|
|
914
914
|
|
|
915
915
|
.dg-form-helper {
|
|
916
|
-
@apply text-xs dg-
|
|
916
|
+
@apply text-xs text-dg-muted block;
|
|
917
917
|
margin: 0;
|
|
918
918
|
}
|
|
919
919
|
|
|
@@ -946,25 +946,25 @@
|
|
|
946
946
|
}
|
|
947
947
|
|
|
948
948
|
.dg-drag-drop-zone__icon {
|
|
949
|
-
@apply text-5xl dg-
|
|
949
|
+
@apply text-5xl text-dg-muted;
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
.dg-drag-drop-zone:hover .dg-drag-drop-zone__icon {
|
|
953
|
-
@apply dg-
|
|
953
|
+
@apply text-dg-primary;
|
|
954
954
|
}
|
|
955
955
|
|
|
956
956
|
.dg-drag-drop-zone__text {
|
|
957
|
-
@apply text-base
|
|
957
|
+
@apply text-base text-white font-medium;
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
.dg-drag-drop-zone__hint {
|
|
961
|
-
@apply text-sm dg-
|
|
961
|
+
@apply text-sm text-dg-muted;
|
|
962
962
|
}
|
|
963
963
|
|
|
964
964
|
/* Status Banner */
|
|
965
965
|
|
|
966
966
|
.dg-status {
|
|
967
|
-
@apply w-full italic dg-
|
|
967
|
+
@apply w-full italic text-dg-fog text-sm leading-snug py-1;
|
|
968
968
|
@apply my-2;
|
|
969
969
|
}
|
|
970
970
|
|
|
@@ -975,27 +975,27 @@
|
|
|
975
975
|
}
|
|
976
976
|
|
|
977
977
|
.dg-status--info {
|
|
978
|
-
@apply dg-
|
|
978
|
+
@apply text-dg-fog;
|
|
979
979
|
}
|
|
980
980
|
|
|
981
981
|
.dg-status--success {
|
|
982
|
-
@apply dg-
|
|
982
|
+
@apply text-dg-success;
|
|
983
983
|
}
|
|
984
984
|
|
|
985
985
|
.dg-status--warning {
|
|
986
|
-
@apply dg-
|
|
986
|
+
@apply text-dg-warning;
|
|
987
987
|
}
|
|
988
988
|
|
|
989
989
|
.dg-status--error {
|
|
990
|
-
@apply dg-
|
|
990
|
+
@apply text-dg-danger;
|
|
991
991
|
}
|
|
992
992
|
|
|
993
993
|
.dg-status--primary {
|
|
994
|
-
@apply dg-
|
|
994
|
+
@apply text-dg-primary;
|
|
995
995
|
}
|
|
996
996
|
|
|
997
997
|
.dg-status--secondary {
|
|
998
|
-
@apply dg-
|
|
998
|
+
@apply text-dg-secondary;
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
.dg-status--with-icon {
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
1026
|
.dg-processing-title {
|
|
1027
|
-
@apply font-medium font-dg-noto text-xl
|
|
1027
|
+
@apply font-medium font-dg-noto text-xl text-white mb-1;
|
|
1028
1028
|
}
|
|
1029
1029
|
|
|
1030
1030
|
/* Modal */
|
|
@@ -1207,7 +1207,7 @@
|
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
1209
|
.dg-header__logo-text {
|
|
1210
|
-
@apply font-dg-noto font-bold text-xl
|
|
1210
|
+
@apply font-dg-noto font-bold text-xl text-white;
|
|
1211
1211
|
}
|
|
1212
1212
|
|
|
1213
1213
|
.dg-header__nav {
|
|
@@ -1241,7 +1241,7 @@
|
|
|
1241
1241
|
/* Link */
|
|
1242
1242
|
|
|
1243
1243
|
.dg-link {
|
|
1244
|
-
@apply dg-
|
|
1244
|
+
@apply text-dg-primary transition-opacity duration-200;
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
1247
|
.dg-link:hover {
|
|
@@ -1249,11 +1249,11 @@
|
|
|
1249
1249
|
}
|
|
1250
1250
|
|
|
1251
1251
|
.dg-social-link {
|
|
1252
|
-
@apply dg-
|
|
1252
|
+
@apply text-dg-fog transition-colors duration-200 text-xl;
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
1255
1255
|
.dg-social-link:hover {
|
|
1256
|
-
@apply dg-
|
|
1256
|
+
@apply text-dg-primary;
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
1259
1259
|
/* Text Utilities */
|
|
@@ -1295,23 +1295,23 @@
|
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
1297
|
.dg-text-tagline {
|
|
1298
|
-
@apply text-center dg-
|
|
1298
|
+
@apply text-center text-dg-fog text-sm;
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
1301
|
.dg-text-subtitle {
|
|
1302
|
-
@apply dg-
|
|
1302
|
+
@apply text-dg-fog text-sm;
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
1305
|
.dg-text-heading {
|
|
1306
|
-
@apply
|
|
1306
|
+
@apply text-white text-base font-medium;
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
1309
|
.dg-text-heading--with-margin {
|
|
1310
|
-
@apply
|
|
1310
|
+
@apply text-white text-base font-medium mb-1;
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
1313
|
.dg-text-legal {
|
|
1314
|
-
@apply text-xs dg-
|
|
1314
|
+
@apply text-xs text-dg-muted text-center;
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
1317
|
/* Newsletter Signup */
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deepgram Design System — Tailwind v4 Theme Configuration
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated from design-system.yaml. Do not edit manually.
|
|
5
|
+
* This file replaces the old tailwind.config.js with CSS-first config.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import "tailwindcss";
|
|
9
|
+
|
|
10
|
+
/* Source scanning for class detection */
|
|
11
|
+
@source "./deepgram.css";
|
|
12
|
+
@source inline("collapsed visible");
|
|
13
|
+
|
|
14
|
+
/* Dark mode support */
|
|
15
|
+
@variant dark (&.dark);
|
|
16
|
+
|
|
17
|
+
/* Design tokens */
|
|
18
|
+
@theme {
|
|
19
|
+
--color-dg-primary: var(--dg-primary, #13ef95);
|
|
20
|
+
--color-dg-secondary: var(--dg-secondary, #149afb);
|
|
21
|
+
--color-dg-almost-black: #050506;
|
|
22
|
+
--color-dg-background: #0b0b0c;
|
|
23
|
+
--color-dg-charcoal: #1a1a1f;
|
|
24
|
+
--color-dg-translucent: rgba(0, 0, 0, 0.5);
|
|
25
|
+
--color-dg-border: #2c2c33;
|
|
26
|
+
--color-dg-pebble: #4e4e52;
|
|
27
|
+
--color-dg-slate: #949498;
|
|
28
|
+
--color-dg-text: #fbfbff;
|
|
29
|
+
--color-dg-fog: #edede2;
|
|
30
|
+
--color-dg-platinum: #e1e1e5;
|
|
31
|
+
--color-dg-muted: #949498;
|
|
32
|
+
--color-dg-success: #12b76a;
|
|
33
|
+
--color-dg-warning: #fec84b;
|
|
34
|
+
--color-dg-danger: #f04438;
|
|
35
|
+
--color-dg-gradient-start: #008fc1;
|
|
36
|
+
--color-dg-gradient-end: #00f099;
|
|
37
|
+
|
|
38
|
+
--font-dg-sans: "Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
|
|
39
|
+
--font-dg-noto: "Noto Sans", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
|
|
40
|
+
--font-dg-mono: "Fira Code", "Monaco", "Consolas", "Courier New", monospace;
|
|
41
|
+
|
|
42
|
+
--spacing-128: 32rem;
|
|
43
|
+
--spacing-dg-xs: 0.25rem;
|
|
44
|
+
--spacing-dg-sm: 0.5rem;
|
|
45
|
+
--spacing-dg-md: 1rem;
|
|
46
|
+
--spacing-dg-lg: 1.5rem;
|
|
47
|
+
--spacing-dg-xl: 2rem;
|
|
48
|
+
--spacing-dg-2xl: 3rem;
|
|
49
|
+
|
|
50
|
+
--radius-dg-sm: 0.25rem;
|
|
51
|
+
--radius-dg-md: 0.5rem;
|
|
52
|
+
--radius-dg-lg: 0.75rem;
|
|
53
|
+
--radius-dg-xl: 1rem;
|
|
54
|
+
|
|
55
|
+
--shadow-dg-sm: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.05);
|
|
56
|
+
--shadow-dg-md: 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);
|
|
57
|
+
--shadow-dg-lg: 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);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Base styles */
|
|
61
|
+
@layer base {
|
|
62
|
+
:root {
|
|
63
|
+
--dg-base-font-size: 16px;
|
|
64
|
+
--dg-border-width: 0.125rem;
|
|
65
|
+
--dg-primary: #13ef95;
|
|
66
|
+
--dg-secondary: #149afb;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
html {
|
|
70
|
+
font-size: var(--dg-base-font-size, 16px);
|
|
71
|
+
scroll-behavior: smooth;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
body {
|
|
75
|
+
font-family: var(--font-dg-sans);
|
|
76
|
+
-webkit-font-smoothing: antialiased;
|
|
77
|
+
-moz-osx-font-smoothing: grayscale;
|
|
78
|
+
background-color: var(--color-dg-background);
|
|
79
|
+
color: var(--color-dg-text);
|
|
80
|
+
line-height: 1.5;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
h1, h2, h3, h4, h5, h6 {
|
|
84
|
+
font-family: var(--font-dg-noto);
|
|
85
|
+
font-weight: 700;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
h1 {
|
|
89
|
+
font-size: var(--text-4xl);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@media (min-width: 768px) {
|
|
93
|
+
h1 {
|
|
94
|
+
font-size: var(--text-5xl);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
h2 {
|
|
99
|
+
font-size: var(--text-3xl);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (min-width: 768px) {
|
|
103
|
+
h2 {
|
|
104
|
+
font-size: var(--text-4xl);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
h3 {
|
|
109
|
+
font-size: var(--text-2xl);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media (min-width: 768px) {
|
|
113
|
+
h3 {
|
|
114
|
+
font-size: var(--text-3xl);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
h4 {
|
|
119
|
+
font-size: var(--text-xl);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (min-width: 768px) {
|
|
123
|
+
h4 {
|
|
124
|
+
font-size: var(--text-2xl);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
code, pre {
|
|
129
|
+
font-family: var(--font-dg-mono);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
a {
|
|
133
|
+
color: var(--color-dg-primary);
|
|
134
|
+
transition-property: color;
|
|
135
|
+
transition-duration: 200ms;
|
|
136
|
+
&:hover {
|
|
137
|
+
opacity: 0.8;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Custom utilities */
|
|
143
|
+
@utility dg-gradient-border {
|
|
144
|
+
background-image: linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0)), linear-gradient(90deg, color-mix(in srgb, var(--dg-secondary, #149afb) 70%, #000), color-mix(in srgb, var(--dg-primary, #13ef95) 70%, #000), color-mix(in srgb, var(--dg-secondary, #149afb) 70%, #000), color-mix(in srgb, var(--dg-primary, #13ef95) 70%, #000));
|
|
145
|
+
background-origin: padding-box, border-box;
|
|
146
|
+
background-clip: padding-box, border-box;
|
|
147
|
+
background-repeat: no-repeat;
|
|
148
|
+
background-position: center;
|
|
149
|
+
background-size: 100% 100%;
|
|
150
|
+
background-color: rgb(0, 0, 0);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@utility dg-bg-reset {
|
|
154
|
+
background-image: none;
|
|
155
|
+
background-origin: padding-box;
|
|
156
|
+
background-clip: border-box;
|
|
157
|
+
background-repeat: repeat;
|
|
158
|
+
background-position: 0% 0%;
|
|
159
|
+
background-size: auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@utility dg-glow-cyan-green {
|
|
163
|
+
box-shadow: 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;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@utility dg-shadow-subtle {
|
|
167
|
+
box-shadow: rgba(38, 44, 52, 0.05) 0 0.0625rem 0.125rem;
|
|
168
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepgram/styles",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Tailwind-based design system and styles library for Deepgram design system and demos",
|
|
5
5
|
"author": "Deepgram",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,8 +24,6 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"dist/",
|
|
26
26
|
"lib/",
|
|
27
|
-
"tailwind.config.js",
|
|
28
|
-
"postcss.config.js",
|
|
29
27
|
"design-system.yaml",
|
|
30
28
|
"README.md",
|
|
31
29
|
"LICENSE"
|
|
@@ -44,7 +42,10 @@
|
|
|
44
42
|
"default": "./lib/deepgram.css"
|
|
45
43
|
},
|
|
46
44
|
"./tailwind-config": {
|
|
47
|
-
"default": "./tailwind.
|
|
45
|
+
"default": "./lib/tailwind-theme.css"
|
|
46
|
+
},
|
|
47
|
+
"./theme": {
|
|
48
|
+
"default": "./lib/tailwind-theme.css"
|
|
48
49
|
},
|
|
49
50
|
"./design-system": {
|
|
50
51
|
"default": "./design-system.yaml"
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"access": "public"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
|
-
"tailwindcss": "^
|
|
58
|
+
"tailwindcss": "^4.0.0"
|
|
58
59
|
},
|
|
59
60
|
"peerDependenciesMeta": {
|
|
60
61
|
"tailwindcss": {
|