@farming-labs/docs 0.2.95 → 0.2.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/docs",
3
- "version": "0.2.95",
3
+ "version": "0.2.96",
4
4
  "description": "Modern, flexible MDX-based docs framework — core types, config, and CLI",
5
5
  "keywords": [
6
6
  "docs",
@@ -825,6 +825,62 @@ figure.shiki pre,
825
825
  box-shadow: none !important;
826
826
  }
827
827
 
828
+ /* Compact code surfaces modeled after the current shadcn docs. */
829
+ figure.shiki,
830
+ .fd-docs-content figure.shiki {
831
+ margin-block: 1.25rem !important;
832
+ border: 0 !important;
833
+ border-radius: calc(var(--radius) * 1.8) !important;
834
+ background: var(--fd-shadcn-code) !important;
835
+ padding-block: 0 !important;
836
+ }
837
+
838
+ figure.shiki pre,
839
+ .fd-docs-content figure.shiki pre {
840
+ max-width: 100%;
841
+ margin: 0 !important;
842
+ padding: 0.625rem 0.75rem !important;
843
+ overflow-x: auto !important;
844
+ overscroll-behavior-inline: contain;
845
+ scrollbar-color: color-mix(in oklab, var(--color-fd-foreground) 18%, transparent)
846
+ transparent;
847
+ scrollbar-width: thin;
848
+ }
849
+
850
+ figure.shiki pre > code,
851
+ .fd-docs-content figure.shiki pre > code {
852
+ font-family: var(--fd-font-mono, "Geist Mono", ui-monospace, monospace) !important;
853
+ font-size: 0.875rem !important;
854
+ font-variant-ligatures: none;
855
+ line-height: 1.75 !important;
856
+ tab-size: 2;
857
+ }
858
+
859
+ figure.shiki pre > code > :is(.line, [data-line]) {
860
+ min-height: 1.53125rem;
861
+ }
862
+
863
+ figure.shiki pre > code > :is(.line, [data-line])[data-highlighted-line] {
864
+ background: var(--fd-shadcn-code-highlight) !important;
865
+ }
866
+
867
+ figure.shiki > button,
868
+ figure.shiki > div:first-child button {
869
+ width: 2rem !important;
870
+ height: 2rem !important;
871
+ border: 0 !important;
872
+ border-radius: calc(var(--radius) * 0.8) !important;
873
+ background: color-mix(in oklab, var(--fd-shadcn-code) 82%, transparent) !important;
874
+ color: var(--color-fd-muted-foreground) !important;
875
+ backdrop-filter: blur(8px);
876
+ }
877
+
878
+ figure.shiki > button:hover,
879
+ figure.shiki > div:first-child button:hover {
880
+ background: var(--fd-shadcn-control-hover) !important;
881
+ color: var(--color-fd-foreground) !important;
882
+ }
883
+
828
884
  .fd-codeblock-title,
829
885
  figure.shiki:has(figcaption) > div:first-child,
830
886
  .fd-ai-code-header {
@@ -941,15 +997,17 @@ figure.shiki figcaption {
941
997
  padding: 0 !important;
942
998
  }
943
999
 
1000
+ article :not(pre) > code,
944
1001
  .fd-docs-content :not(pre) > code,
945
1002
  :is(.fd-ai-bubble-ai, .fd-ai-fm-msg-content) :not(pre) > code {
946
1003
  border: 0 !important;
947
- border-radius: calc(var(--radius) * 0.6);
948
- background: var(--color-fd-muted);
1004
+ border-radius: calc(var(--radius) * 0.5) !important;
1005
+ background: color-mix(in oklab, var(--color-fd-muted) 48%, transparent) !important;
949
1006
  color: var(--color-fd-foreground);
950
1007
  font-family: var(--fd-font-mono, "Geist Mono", ui-monospace, monospace);
951
1008
  font-size: 0.85em;
952
- padding: 0.125em 0.3em;
1009
+ padding: 0.08em 0.24em !important;
1010
+ box-decoration-break: clone;
953
1011
  }
954
1012
 
955
1013
  @media (hover: none) {