@ecopages/radiant-themes 0.2.1 → 0.2.2

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.
Files changed (39) hide show
  1. package/README.md +27 -15
  2. package/dist/compiled/themes/cloudflare/compact.css +40 -12
  3. package/dist/compiled/themes/cloudflare.css +40 -12
  4. package/dist/compiled/themes/github/compact.css +264 -67
  5. package/dist/compiled/themes/github.css +264 -67
  6. package/dist/compiled/themes/high-contrast/compact.css +88 -5
  7. package/dist/compiled/themes/high-contrast.css +88 -5
  8. package/dist/compiled/themes/macos/compact.css +674 -294
  9. package/dist/compiled/themes/macos-classic/compact.css +197 -25
  10. package/dist/compiled/themes/macos-classic.css +197 -25
  11. package/dist/compiled/themes/macos.css +674 -294
  12. package/dist/compiled/themes/material/compact.css +447 -132
  13. package/dist/compiled/themes/material.css +447 -132
  14. package/dist/compiled/themes/vercel/compact.css +104 -62
  15. package/dist/compiled/themes/vercel.css +104 -62
  16. package/dist/compiled/themes/vscode/compact.css +255 -40
  17. package/dist/compiled/themes/vscode.css +255 -40
  18. package/dist/compiled/themes/windows95/compact.css +260 -22
  19. package/dist/compiled/themes/windows95.css +260 -22
  20. package/dist/tokens/colors/github.css +32 -0
  21. package/dist/tokens/colors/macos.css +65 -25
  22. package/dist/tokens/colors/material.css +61 -20
  23. package/dist/tokens/colors/vercel.css +43 -39
  24. package/dist/tokens/colors/vscode.css +48 -4
  25. package/dist/tokens/colors/windows95.css +10 -5
  26. package/dist/tokens/components/cloudflare.css +55 -5
  27. package/dist/tokens/components/github.css +258 -40
  28. package/dist/tokens/components/high-contrast.css +93 -5
  29. package/dist/tokens/components/macos-classic.css +262 -24
  30. package/dist/tokens/components/macos.css +537 -106
  31. package/dist/tokens/components/material.css +354 -25
  32. package/dist/tokens/components/vercel.css +77 -15
  33. package/dist/tokens/components/vscode.css +248 -27
  34. package/dist/tokens/components/windows95.css +304 -19
  35. package/dist/tokens/roles/github.css +12 -12
  36. package/dist/tokens/roles/macos.css +97 -93
  37. package/dist/tokens/roles/material.css +65 -65
  38. package/dist/tokens/roles/vercel.css +3 -3
  39. package/package.json +3 -3
@@ -29,6 +29,7 @@
29
29
  --color-surface: var(--surface);
30
30
  --color-on-surface: var(--on-surface);
31
31
  --spacing-1: var(--space-1);
32
+ --spacing-3: var(--space-3);
32
33
  --radius-none: var(--border-radius-none);
33
34
  --radius-full: var(--border-radius-full);
34
35
  --radius-control: var(--radius-control);
@@ -266,6 +267,8 @@
266
267
  --windows95-dark: #0a0a0a;
267
268
  --windows95-text: #000000;
268
269
  --windows95-muted: #404040;
270
+ --windows95-line: #808080;
271
+ --windows95-disabled: #808080;
269
272
  --windows95-field: #ffffff;
270
273
  --windows95-field-text: #000000;
271
274
  --windows95-selection: #000080;
@@ -279,12 +282,14 @@
279
282
  :where(.dark), :root.dark[data-rui-theme='windows95'] {
280
283
  --windows95-canvas: #2b2b2b;
281
284
  --windows95-face: #3a3a3a;
282
- --windows95-light: #d0d0d0;
283
- --windows95-highlight: #a5a5a5;
284
- --windows95-shadow: #858585;
285
- --windows95-dark: #6f6f6f;
285
+ --windows95-light: #8a8a8a;
286
+ --windows95-highlight: #5e5e5e;
287
+ --windows95-shadow: #1e1e1e;
288
+ --windows95-dark: #000000;
286
289
  --windows95-text: #f0f0f0;
287
290
  --windows95-muted: #c8c8c8;
291
+ --windows95-line: #8a8a8a;
292
+ --windows95-disabled: #7a7a7a;
288
293
  --windows95-field: #1c1c1c;
289
294
  --windows95-field-text: #f0f0f0;
290
295
  --windows95-selection: #2d5aa8;
@@ -549,7 +554,7 @@
549
554
  }
550
555
  :root .rui-button:disabled {
551
556
  opacity: 1;
552
- color: var(--windows95-shadow);
557
+ color: var(--windows95-disabled);
553
558
  text-shadow: 1px 1px 0 var(--windows95-light);
554
559
  }
555
560
  :root .rui-input,
@@ -650,6 +655,7 @@
650
655
  :root .rui-menubar__menu-item[aria-checked='true'],
651
656
  :root .rui-tree__node[aria-selected='true'],
652
657
  :root .rui-calendar__day[aria-selected='true'],
658
+ :root .rui-sidebar__menu-button[aria-current='page'],
653
659
  :root .rui-sidebar__menu-button--active,
654
660
  :root .rui-navigation-menu__link-list a[aria-current='page'] {
655
661
  background-color: var(--windows95-selection);
@@ -661,7 +667,7 @@
661
667
  :root .rui-combobox__listbox,
662
668
  :root .rui-calendar,
663
669
  :root .rui-dialog__surface,
664
- :root .rui-popover-host,
670
+ :root .rui-popover:where(:not(.rui-popover--listbox)),
665
671
  :root .rui-hover-card__content {
666
672
  border-radius: var(--radius-none);
667
673
  border-style: var(--tw-border-style);
@@ -670,6 +676,17 @@
670
676
  background-color: var(--windows95-face);
671
677
  box-shadow: var(--windows95-raised);
672
678
  }
679
+ :root .rui-select__listbox .rui-listbox,
680
+ :root .rui-combobox__listbox .rui-listbox {
681
+ background-color: transparent;
682
+ }
683
+ :root .rui-tooltip__content {
684
+ --rui-tooltip-surface: #ffffe1;
685
+ --rui-tooltip-color: #000000;
686
+ --rui-tooltip-radius: 0;
687
+ --rui-tooltip-shadow: none;
688
+ border: 1px solid #000000;
689
+ }
673
690
  :root .rui-select__listbox,
674
691
  :root .rui-combobox__listbox {
675
692
  background-color: var(--windows95-field);
@@ -685,8 +702,12 @@
685
702
  background-color: var(--windows95-selection);
686
703
  color: var(--windows95-selection-text);
687
704
  }
705
+ :root .rui-popover[role='dialog'] {
706
+ padding: var(--space-2);
707
+ }
688
708
  :root .rui-dialog__title {
689
- min-height: 1.5rem;
709
+ font-size: var(--text-sm);
710
+ min-height: 1.125rem;
690
711
  margin: calc(3px - var(--rui-dialog-padding)) calc(3px - var(--rui-dialog-padding)) var(--space-3);
691
712
  padding: 0.1875rem 2rem 0.1875rem 0.25rem;
692
713
  }
@@ -697,7 +718,7 @@
697
718
  z-index: 1;
698
719
  background-color: var(--windows95-face);
699
720
  color: var(--windows95-text);
700
- top: 0.375rem;
721
+ top: 0.5625rem;
701
722
  right: 0.375rem;
702
723
  width: 1rem;
703
724
  height: 0.875rem;
@@ -715,13 +736,17 @@
715
736
  :root rui-tabs[variant='boxed'] .rui-tabs__list {
716
737
  max-width: 100%;
717
738
  min-width: 0px;
739
+ align-items: flex-end;
718
740
  overflow-x: auto;
719
741
  overflow-y: clip;
720
742
  border-style: var(--tw-border-style);
721
743
  border-width: 0px;
722
744
  background-color: transparent;
723
- padding-inline: 0px;
745
+ padding-inline: calc(var(--spacing, 0.25rem) * 0.5);
724
746
  padding-top: calc(var(--spacing, 0.25rem) * 0.5);
747
+ position: relative;
748
+ z-index: 1;
749
+ margin-bottom: -2px;
725
750
  gap: 0;
726
751
  }
727
752
  :root rui-tabs[variant='boxed'] .rui-tabs__tab {
@@ -732,8 +757,10 @@
732
757
  --tw-font-weight: var(--font-weight-normal, 400);
733
758
  font-weight: var(--font-weight-normal, 400);
734
759
  color: var(--color-on-surface);
760
+ opacity: 100%;
735
761
  z-index: 0;
736
- margin-bottom: -2px;
762
+ margin-bottom: 2px;
763
+ color: var(--windows95-text);
737
764
  background-color: var(--windows95-face);
738
765
  box-shadow: inset -1px 0 var(--windows95-dark),
739
766
  inset 1px 1px var(--windows95-light),
@@ -744,8 +771,10 @@
744
771
  --tw-font-weight: var(--font-weight-normal, 400);
745
772
  font-weight: var(--font-weight-normal, 400);
746
773
  z-index: 1;
747
- margin-top: -2px;
748
- padding-bottom: calc(var(--rui-tabs-tab-padding-y, 0.375rem) + 2px);
774
+ margin-inline: -2px;
775
+ margin-bottom: 0;
776
+ padding-block: calc(var(--rui-tabs-tab-padding-y, 0.375rem) + 2px);
777
+ padding-inline: calc(var(--rui-tabs-tab-padding-x, 0.75rem) + 2px);
749
778
  }
750
779
  :root rui-tabs[variant='boxed'] .rui-tabs__panel {
751
780
  border-radius: var(--radius-none);
@@ -759,7 +788,7 @@
759
788
  padding: var(--rui-tabs-panel-padding);
760
789
  }
761
790
  :root .rui-alert,
762
- :root .rui-toast__content {
791
+ :root .rui-toast {
763
792
  border-radius: var(--radius-none);
764
793
  border-style: var(--tw-border-style);
765
794
  border-width: 0px;
@@ -767,23 +796,28 @@
767
796
  background-color: var(--windows95-face);
768
797
  box-shadow: var(--windows95-raised);
769
798
  }
770
- :root .rui-alert--error .rui-alert__icon {
799
+ :root .rui-alert--error .rui-alert__icon,
800
+ :root .rui-toast--error .rui-toast__icon {
771
801
  color: var(--windows95-red);
772
802
  }
773
- :root .rui-alert--warning .rui-alert__icon {
803
+ :root .rui-alert--warning .rui-alert__icon,
804
+ :root .rui-toast--warning .rui-toast__icon {
774
805
  color: var(--windows95-amber);
775
806
  }
776
- :root .rui-table__header,
777
- :root .rui-treegrid__row--header,
807
+ :root .rui-alert--success .rui-alert__icon,
808
+ :root .rui-toast--success .rui-toast__icon {
809
+ color: var(--windows95-green);
810
+ }
811
+ :root .rui-alert--info .rui-alert__icon,
812
+ :root .rui-toast--info .rui-toast__icon {
813
+ color: var(--windows95-blue-light);
814
+ }
815
+ :root .rui-treegrid__row--header,
778
816
  :root .rui-calendar__weekdays {
779
817
  --tw-font-weight: var(--font-weight-normal, 400);
780
818
  font-weight: var(--font-weight-normal, 400);
781
819
  background-color: var(--windows95-face);
782
820
  }
783
- :root .rui-table__header th,
784
- :root .rui-table__header .rui-table__cell {
785
- box-shadow: var(--windows95-raised-thin);
786
- }
787
821
  :root .rui-table,
788
822
  :root .rui-grid {
789
823
  background-color: var(--windows95-field);
@@ -832,7 +866,7 @@
832
866
  width: 0.75rem;
833
867
  height: 0.75rem;
834
868
  margin-inline-end: 0.25rem;
835
- border: 1px solid var(--windows95-shadow);
869
+ border: 1px solid var(--windows95-line);
836
870
  background-color: var(--windows95-field);
837
871
  color: var(--windows95-field-text);
838
872
  font: 0.625rem/0.625rem 'MS Sans Serif',
@@ -884,6 +918,210 @@
884
918
  border-radius: var(--radius-none);
885
919
  background-color: transparent;
886
920
  }
921
+ :root .rui-slider {
922
+ --rui-slider-track-size: 0.25rem;
923
+ }
924
+ :root .rui-slider__range {
925
+ padding-block: var(--spacing-3);
926
+ }
927
+ :root .rui-slider__thumb {
928
+ inline-size: 0.6875rem;
929
+ block-size: 1.3125rem;
930
+ }
931
+ :root .rui-slider--vertical .rui-slider__thumb {
932
+ inline-size: 1.3125rem;
933
+ block-size: 0.6875rem;
934
+ }
935
+ :root .rui-slider__range-track {
936
+ box-shadow: var(--windows95-sunken);
937
+ }
938
+ :root .rui-control-toggle {
939
+ border-radius: var(--radius-none);
940
+ align-self: stretch;
941
+ width: 1.125rem;
942
+ height: auto;
943
+ margin: 2px;
944
+ margin-inline-start: 0;
945
+ background-color: var(--windows95-face);
946
+ color: var(--windows95-text);
947
+ box-shadow: var(--windows95-raised);
948
+ }
949
+ :root .rui-control-toggle:hover:not(:disabled) {
950
+ background-color: var(--windows95-face);
951
+ }
952
+ :root .rui-control-toggle:active:not(:disabled) {
953
+ box-shadow: var(--windows95-pressed);
954
+ }
955
+ :root .rui-control-toggle > svg {
956
+ width: 0.75rem;
957
+ height: 0.75rem;
958
+ }
959
+ :root .rui-control-toggle:where([data-select-toggle], [data-combobox-trigger]) > svg {
960
+ display: none;
961
+ }
962
+ :root .rui-control-toggle:where([data-select-toggle], [data-combobox-trigger])::after {
963
+ content: '';
964
+ width: 7px;
965
+ height: 4px;
966
+ background-color: currentColor;
967
+ clip-path: polygon(0 0, 100% 0, 50% 100%);
968
+ }
969
+ :root .rui-menubar {
970
+ border-radius: var(--radius-none);
971
+ border-style: var(--tw-border-style);
972
+ border-width: 0px;
973
+ background-color: transparent;
974
+ padding: 0px;
975
+ gap: 0;
976
+ }
977
+ :root .rui-menubar__item {
978
+ border-radius: var(--radius-none);
979
+ color: var(--windows95-text);
980
+ }
981
+ :root .rui-menubar__item:hover:not(:disabled):not([aria-disabled='true']),
982
+ :root .rui-menubar__item:focus-visible {
983
+ background-color: transparent;
984
+ box-shadow: none;
985
+ --tw-ring-shadow: 0 0 #0000;
986
+ outline: 1px dotted var(--windows95-text);
987
+ outline-offset: -2px;
988
+ }
989
+ :root .rui-menubar__item[aria-expanded='true'],
990
+ :root .rui-menubar__item[aria-expanded='true']:hover:not(:disabled) {
991
+ --tw-font-weight: var(--font-weight-normal, 400);
992
+ font-weight: var(--font-weight-normal, 400);
993
+ outline: 0;
994
+ background-color: transparent;
995
+ color: var(--windows95-text);
996
+ box-shadow: var(--windows95-sunken-thin);
997
+ }
998
+ :root .rui-menu-button__menu,
999
+ :root .rui-menubar__menu {
1000
+ --rui-menu-item-hover: var(--windows95-selection);
1001
+ padding: 3px;
1002
+ }
1003
+ :root .rui-menu-button__item,
1004
+ :root .rui-menubar__menu-item {
1005
+ border-radius: var(--radius-none);
1006
+ color: var(--windows95-text);
1007
+ }
1008
+ :root .rui-menu-button__item:hover:not([aria-disabled='true']),
1009
+ :root .rui-menu-button__item:focus-visible:not([aria-disabled='true']),
1010
+ :root .rui-menu-button__item[aria-expanded='true'],
1011
+ :root .rui-menu-button__item:hover:not([aria-disabled='true'])::after,
1012
+ :root .rui-menu-button__item:focus-visible:not([aria-disabled='true'])::after,
1013
+ :root .rui-menubar__menu-item:hover:not(:disabled):not([aria-disabled='true']),
1014
+ :root .rui-menubar__menu-item:focus-visible,
1015
+ :root .rui-menubar__menu-item[aria-expanded='true'] {
1016
+ color: var(--windows95-selection-text);
1017
+ --tw-ring-shadow: 0 0 #0000;
1018
+ }
1019
+ :root .rui-listbox--bordered,
1020
+ :root .rui-tree {
1021
+ border-radius: var(--radius-none);
1022
+ border-style: var(--tw-border-style);
1023
+ border-width: 0px;
1024
+ background-color: var(--windows95-field);
1025
+ color: var(--windows95-field-text);
1026
+ box-shadow: var(--windows95-sunken);
1027
+ padding: 4px;
1028
+ }
1029
+ :root .rui-listbox {
1030
+ gap: 0;
1031
+ }
1032
+ :root .rui-listbox__option,
1033
+ :root .rui-tree__node {
1034
+ border-radius: var(--radius-none);
1035
+ padding-block: calc(var(--spacing, 0.25rem) * 0.5);
1036
+ color: var(--windows95-field-text);
1037
+ }
1038
+ :root .rui-listbox__option[data-active]:not([aria-selected='true']):not([aria-disabled='true']) {
1039
+ background-color: var(--windows95-selection);
1040
+ color: var(--windows95-selection-text);
1041
+ }
1042
+ :root .rui-listbox__option[aria-selected='true'][data-active]:not([aria-disabled='true']),
1043
+ :root .rui-listbox__option:focus-visible,
1044
+ :root .rui-tree__node:focus-visible {
1045
+ --tw-ring-shadow: 0 0 #0000;
1046
+ outline: 1px dotted var(--windows95-field-text);
1047
+ outline-offset: -1px;
1048
+ }
1049
+ :root .rui-listbox__option[aria-selected='true'][data-active]:not([aria-disabled='true']),
1050
+ :root .rui-listbox__option[aria-selected='true']:focus-visible {
1051
+ outline-color: var(--windows95-selection-text);
1052
+ background-image: none;
1053
+ }
1054
+ :root .rui-tree__node {
1055
+ width: auto;
1056
+ padding-inline: var(--spacing-1);
1057
+ --tw-font-weight: var(--font-weight-normal, 400);
1058
+ font-weight: var(--font-weight-normal, 400);
1059
+ }
1060
+ :root .rui-tree__node:hover:not([aria-selected='true']) {
1061
+ background-color: transparent;
1062
+ }
1063
+ :root .rui-tree__node[aria-selected='true'] {
1064
+ --tw-font-weight: var(--font-weight-normal, 400);
1065
+ font-weight: var(--font-weight-normal, 400);
1066
+ }
1067
+ :root .rui-tree ul {
1068
+ border-inline-start: 1px dotted var(--windows95-line);
1069
+ }
1070
+ :root .rui-tree__node[aria-expanded]::before {
1071
+ content: '+';
1072
+ display: inline-block;
1073
+ width: 9px;
1074
+ height: 9px;
1075
+ margin-inline-end: 0.375rem;
1076
+ border: 1px solid var(--windows95-line);
1077
+ background-color: var(--windows95-field);
1078
+ color: var(--windows95-field-text);
1079
+ font: 9px/7px 'MS Sans Serif', Tahoma, sans-serif;
1080
+ text-align: center;
1081
+ transform: none;
1082
+ transition: none;
1083
+ vertical-align: 0;
1084
+ }
1085
+ :root .rui-tree__node[aria-expanded='true']::before {
1086
+ content: '-';
1087
+ }
1088
+ :root .rui-tag {
1089
+ border-radius: var(--radius-none);
1090
+ }
1091
+ :root .rui-tag__remove {
1092
+ border-radius: var(--radius-none);
1093
+ }
1094
+ :root .rui-calendar__month {
1095
+ color: var(--windows95-selection-text);
1096
+ }
1097
+ :root .rui-calendar__header {
1098
+ padding: 2px;
1099
+ }
1100
+ :root .rui-calendar__nav {
1101
+ border-radius: var(--radius-none);
1102
+ width: 1rem;
1103
+ height: 0.875rem;
1104
+ justify-self: center;
1105
+ background-color: var(--windows95-face);
1106
+ color: var(--windows95-text);
1107
+ box-shadow: var(--windows95-raised);
1108
+ }
1109
+ :root .rui-calendar__nav:hover:not(:disabled) {
1110
+ background-color: var(--windows95-face);
1111
+ }
1112
+ :root .rui-calendar__nav:active:not(:disabled) {
1113
+ box-shadow: var(--windows95-pressed);
1114
+ }
1115
+ :root .rui-table__column,
1116
+ :root .rui-table__sort {
1117
+ --tw-font-weight: var(--font-weight-normal, 400);
1118
+ font-weight: var(--font-weight-normal, 400);
1119
+ }
1120
+ :root .rui-table__column {
1121
+ background-color: var(--windows95-face);
1122
+ color: var(--windows95-text);
1123
+ box-shadow: var(--windows95-raised-thin);
1124
+ }
887
1125
  }
888
1126
  @media (prefers-contrast: more) {
889
1127
  @layer components {