starlight-theme-nova 0.11.0 → 0.11.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.
package/lib/tailwind.css CHANGED
@@ -3,6 +3,26 @@
3
3
  @source '../src/**/*.ts';
4
4
  @source '../src/**/*.astro';
5
5
 
6
+ @custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
7
+
8
+ @theme {
9
+ /*
10
+ Match Starlight breakpoints
11
+ https://github.com/withastro/starlight/blob/893be3b4a106ab75b706142bbd06b00268ccc298/packages/starlight/style/util.css#L22-L43
12
+ */
13
+ --breakpoint-md: 50rem;
14
+ --breakpoint-lg: 72rem;
15
+ }
16
+
17
+ @layer utilities {
18
+ /* Wire up Starlight theme to use Tailwind config. */
19
+ :root {
20
+ /* Use Tailwind-configured font families. */
21
+ --sl-font: var(--font-sans);
22
+ --sl-font-mono: var(--font-mono);
23
+ }
24
+ }
25
+
6
26
  :root,
7
27
  ::backdrop {
8
28
  --sl-content-width: 50rem;
@@ -734,115 +734,115 @@
734
734
  }
735
735
  }
736
736
  .max-md\:w-full {
737
- @media (width < 48rem) {
737
+ @media (width < 50rem) {
738
738
  width: 100%;
739
739
  }
740
740
  }
741
741
  .max-md\:\*\*\:hidden {
742
- @media (width < 48rem) {
742
+ @media (width < 50rem) {
743
743
  :is(& *) {
744
744
  display: none;
745
745
  }
746
746
  }
747
747
  }
748
748
  .md\:visible {
749
- @media (width >= 48rem) {
749
+ @media (width >= 50rem) {
750
750
  visibility: visible;
751
751
  }
752
752
  }
753
753
  .md\:flex {
754
- @media (width >= 48rem) {
754
+ @media (width >= 50rem) {
755
755
  display: flex;
756
756
  }
757
757
  }
758
758
  .md\:hidden {
759
- @media (width >= 48rem) {
759
+ @media (width >= 50rem) {
760
760
  display: none;
761
761
  }
762
762
  }
763
763
  .md\:h-9 {
764
- @media (width >= 48rem) {
764
+ @media (width >= 50rem) {
765
765
  height: calc(var(--spacing) * 9);
766
766
  }
767
767
  }
768
768
  .md\:w-\(--sl-sidebar-width\) {
769
- @media (width >= 48rem) {
769
+ @media (width >= 50rem) {
770
770
  width: var(--sl-sidebar-width);
771
771
  }
772
772
  }
773
773
  .md\:w-full {
774
- @media (width >= 48rem) {
774
+ @media (width >= 50rem) {
775
775
  width: 100%;
776
776
  }
777
777
  }
778
778
  .md\:max-w-60 {
779
- @media (width >= 48rem) {
779
+ @media (width >= 50rem) {
780
780
  max-width: calc(var(--spacing) * 60);
781
781
  }
782
782
  }
783
783
  .md\:max-w-88 {
784
- @media (width >= 48rem) {
784
+ @media (width >= 50rem) {
785
785
  max-width: calc(var(--spacing) * 88);
786
786
  }
787
787
  }
788
788
  .md\:flex-1 {
789
- @media (width >= 48rem) {
789
+ @media (width >= 50rem) {
790
790
  flex: 1;
791
791
  }
792
792
  }
793
793
  .md\:rounded-md {
794
- @media (width >= 48rem) {
794
+ @media (width >= 50rem) {
795
795
  border-radius: var(--radius-md);
796
796
  }
797
797
  }
798
798
  .md\:border {
799
- @media (width >= 48rem) {
799
+ @media (width >= 50rem) {
800
800
  border-style: var(--tw-border-style);
801
801
  border-width: 1px;
802
802
  }
803
803
  }
804
804
  .md\:border-r {
805
- @media (width >= 48rem) {
805
+ @media (width >= 50rem) {
806
806
  border-right-style: var(--tw-border-style);
807
807
  border-right-width: 1px;
808
808
  }
809
809
  }
810
810
  .md\:border-solid {
811
- @media (width >= 48rem) {
811
+ @media (width >= 50rem) {
812
812
  --tw-border-style: solid;
813
813
  border-style: solid;
814
814
  }
815
815
  }
816
816
  .md\:border-\(--sl-color-gray-5\) {
817
- @media (width >= 48rem) {
817
+ @media (width >= 50rem) {
818
818
  border-color: var(--sl-color-gray-5);
819
819
  }
820
820
  }
821
821
  .md\:p-2 {
822
- @media (width >= 48rem) {
822
+ @media (width >= 50rem) {
823
823
  padding: calc(var(--spacing) * 2);
824
824
  }
825
825
  }
826
826
  .md\:text-lg {
827
- @media (width >= 48rem) {
827
+ @media (width >= 50rem) {
828
828
  font-size: var(--text-lg);
829
829
  line-height: var(--tw-leading, var(--text-lg--line-height));
830
830
  }
831
831
  }
832
832
  .md\:text-\(--sl-color-text\) {
833
- @media (width >= 48rem) {
833
+ @media (width >= 50rem) {
834
834
  color: var(--sl-color-text);
835
835
  }
836
836
  }
837
837
  .md\:transition-colors {
838
- @media (width >= 48rem) {
838
+ @media (width >= 50rem) {
839
839
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
840
840
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
841
841
  transition-duration: var(--tw-duration, var(--default-transition-duration));
842
842
  }
843
843
  }
844
844
  .md\:hover\:bg-gray-400\/10 {
845
- @media (width >= 48rem) {
845
+ @media (width >= 50rem) {
846
846
  &:hover {
847
847
  @media (hover: hover) {
848
848
  background-color: color-mix(in srgb, oklch(70.7% 0.022 261.325) 10%, transparent);
@@ -864,12 +864,12 @@
864
864
  }
865
865
  }
866
866
  .dark\:bg-gray-100 {
867
- @media (prefers-color-scheme: dark) {
867
+ &:where([data-theme=dark], [data-theme=dark] *) {
868
868
  background-color: var(--color-gray-100);
869
869
  }
870
870
  }
871
871
  .dark\:bg-gray-600\/30 {
872
- @media (prefers-color-scheme: dark) {
872
+ &:where([data-theme=dark], [data-theme=dark] *) {
873
873
  background-color: color-mix(in srgb, oklch(44.6% 0.03 256.802) 30%, transparent);
874
874
  @supports (color: color-mix(in lab, red, red)) {
875
875
  background-color: color-mix(in oklab, var(--color-gray-600) 30%, transparent);
@@ -877,27 +877,27 @@
877
877
  }
878
878
  }
879
879
  .dark\:bg-gray-800 {
880
- @media (prefers-color-scheme: dark) {
880
+ &:where([data-theme=dark], [data-theme=dark] *) {
881
881
  background-color: var(--color-gray-800);
882
882
  }
883
883
  }
884
884
  .dark\:text-gray-200 {
885
- @media (prefers-color-scheme: dark) {
885
+ &:where([data-theme=dark], [data-theme=dark] *) {
886
886
  color: var(--color-gray-200);
887
887
  }
888
888
  }
889
889
  .dark\:text-gray-900 {
890
- @media (prefers-color-scheme: dark) {
890
+ &:where([data-theme=dark], [data-theme=dark] *) {
891
891
  color: var(--color-gray-900);
892
892
  }
893
893
  }
894
894
  .dark\:text-white {
895
- @media (prefers-color-scheme: dark) {
895
+ &:where([data-theme=dark], [data-theme=dark] *) {
896
896
  color: var(--color-white);
897
897
  }
898
898
  }
899
899
  .dark\:hover\:bg-gray-300 {
900
- @media (prefers-color-scheme: dark) {
900
+ &:where([data-theme=dark], [data-theme=dark] *) {
901
901
  &:hover {
902
902
  @media (hover: hover) {
903
903
  background-color: var(--color-gray-300);
@@ -906,7 +906,7 @@
906
906
  }
907
907
  }
908
908
  .dark\:hover\:bg-gray-700 {
909
- @media (prefers-color-scheme: dark) {
909
+ &:where([data-theme=dark], [data-theme=dark] *) {
910
910
  &:hover {
911
911
  @media (hover: hover) {
912
912
  background-color: var(--color-gray-700);
@@ -917,7 +917,7 @@
917
917
  .hover\:dark\:bg-gray-500\/50 {
918
918
  &:hover {
919
919
  @media (hover: hover) {
920
- @media (prefers-color-scheme: dark) {
920
+ &:where([data-theme=dark], [data-theme=dark] *) {
921
921
  background-color: color-mix(in srgb, oklch(55.1% 0.027 264.364) 50%, transparent);
922
922
  @supports (color: color-mix(in lab, red, red)) {
923
923
  background-color: color-mix(in oklab, var(--color-gray-500) 50%, transparent);
@@ -995,7 +995,7 @@
995
995
  }
996
996
  .\[body\[data-mobile-menu-expanded\]_\&\]\:max-md\:visible {
997
997
  body[data-mobile-menu-expanded] & {
998
- @media (width < 48rem) {
998
+ @media (width < 50rem) {
999
999
  visibility: visible;
1000
1000
  }
1001
1001
  }
@@ -1006,6 +1006,12 @@
1006
1006
  }
1007
1007
  }
1008
1008
  }
1009
+ @layer utilities {
1010
+ :root {
1011
+ --sl-font: var(--font-sans);
1012
+ --sl-font-mono: var(--font-mono);
1013
+ }
1014
+ }
1009
1015
  :root, ::backdrop {
1010
1016
  --sl-content-width: 50rem;
1011
1017
  --sl-text-h1: var(--sl-text-3xl);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-theme-nova",
3
3
  "type": "module",
4
- "version": "0.11.0",
4
+ "version": "0.11.2",
5
5
  "description": "A beautiful theme for Astro Starlight",
6
6
  "author": "ocavue <ocavue@gmail.com>",
7
7
  "license": "MIT",