|
42 | 42 | --card-foreground: 52 52 59; |
43 | 43 | --popover: 255 255 255; |
44 | 44 | --popover-foreground: 52 52 59; |
45 | | - --primary: 120 102 201; |
| 45 | + --primary: 82 71 179; |
46 | 46 | --primary-foreground: 251 251 251; |
47 | | - --secondary: 247 247 247; |
| 47 | + --secondary: 159 107 4; |
48 | 48 | --secondary-foreground: 52 52 59; |
| 49 | + --premium: 248 171 19; |
49 | 50 | --info: 224 178 90; |
50 | 51 | --info-foreground: 52 52 59; |
51 | 52 | --muted: 247 247 247; |
@@ -110,6 +111,7 @@ html[data-theme="dark"], |
110 | 111 | --primary-foreground: 52 52 52; |
111 | 112 | --secondary: 224 178 90; |
112 | 113 | --secondary-foreground: 250 251 251; |
| 114 | + --premium: 248 171 19; |
113 | 115 | --info: 224 178 90; |
114 | 116 | --info-foreground: 250 251 251; |
115 | 117 | --muted: 69 69 69; |
@@ -537,3 +539,72 @@ div[class^="announcementBar"] { |
537 | 539 | vertical-align: middle; |
538 | 540 | transform: rotate(0deg) !important; /* force reset to counter act UL accordion transform */ |
539 | 541 | } |
| 542 | + |
| 543 | +/* 🚩 Alert component */ |
| 544 | + |
| 545 | +.alert { |
| 546 | + @apply bg-background dark:bg-gray-100 text-foreground dark:text-foreground border border-solid border-border rounded-lg p-4 mb-4 text-sm; |
| 547 | +} |
| 548 | + |
| 549 | +.alert p { |
| 550 | + @apply mb-1; |
| 551 | +} |
| 552 | + |
| 553 | +.alert svg { |
| 554 | + @apply !w-5 !h-5 mb-0; |
| 555 | +} |
| 556 | + |
| 557 | +.alert--info { |
| 558 | + @apply bg-cyan-50 dark:bg-cyan-900/10 text-cyan-900 dark:text-cyan-100 border-cyan-200 dark:border-cyan-700; |
| 559 | +} |
| 560 | + |
| 561 | +.alert--info svg { |
| 562 | + @apply !fill-cyan-500 dark:fill-cyan-200; |
| 563 | +} |
| 564 | + |
| 565 | +.alert--warning { |
| 566 | + @apply bg-amber-100 dark:bg-amber-900/10 text-amber-900 dark:text-amber-100 border-amber-200 dark:border-amber-700; |
| 567 | +} |
| 568 | + |
| 569 | +.alert--warning svg { |
| 570 | + @apply fill-amber-400 dark:fill-amber-200; |
| 571 | +} |
| 572 | + |
| 573 | +.alert--success { |
| 574 | + @apply bg-emerald-100 dark:bg-emerald-900/10 text-emerald-900 dark:text-emerald-100 border-emerald-200 dark:border-emerald-700; |
| 575 | +} |
| 576 | + |
| 577 | +.alert--success svg { |
| 578 | + @apply fill-emerald-400 dark:fill-emerald-200; |
| 579 | +} |
| 580 | + |
| 581 | +.alert--danger { |
| 582 | + @apply bg-red-100 dark:bg-red-900/10 text-red-900 dark:text-red-100 border-red-200 dark:border-red-700; |
| 583 | +} |
| 584 | + |
| 585 | +.alert--danger svg { |
| 586 | + @apply fill-red-400 dark:fill-red-200; |
| 587 | +} |
| 588 | + |
| 589 | +/* 💻 Code blocks */ |
| 590 | + |
| 591 | +.prism-code { |
| 592 | + @apply !bg-primary dark:!bg-gray-50 text-gray-900 dark:text-gray-100 p-4 mb-4 overflow-x-auto rounded-lg border border-solid border-border; |
| 593 | +} |
| 594 | + |
| 595 | +pre { |
| 596 | + @apply rounded-lg font-semibold; |
| 597 | +} |
| 598 | + |
| 599 | +.prism-code .token.plain { |
| 600 | + @apply text-white dark:text-foreground; |
| 601 | +} |
| 602 | + |
| 603 | +.prism-code .token.function, |
| 604 | +.prism-code .assign-left.variable { |
| 605 | + @apply !text-premium dark:!text-secondary; |
| 606 | +} |
| 607 | + |
| 608 | +code:not(.prism-code code) { |
| 609 | + @apply bg-gray-100 dark:bg-gray-50 border-primary/20 border-solid border text-primary px-1 py-0.5 rounded-md font-semibold; |
| 610 | +} |
0 commit comments