@farming-labs/theme 0.0.2-beta.20 → 0.0.2-beta.21

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/theme",
3
- "version": "0.0.2-beta.20",
3
+ "version": "0.0.2-beta.21",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -98,7 +98,7 @@
98
98
  "next": ">=14.0.0",
99
99
  "tsdown": "^0.20.3",
100
100
  "typescript": "^5.9.3",
101
- "@farming-labs/docs": "0.0.2-beta.20"
101
+ "@farming-labs/docs": "0.0.2-beta.21"
102
102
  },
103
103
  "peerDependencies": {
104
104
  "@farming-labs/docs": ">=0.0.1",
package/styles/base.css CHANGED
@@ -108,6 +108,36 @@ figure.shiki pre > code > [data-line] {
108
108
  padding: 0 0.25rem;
109
109
  }
110
110
 
111
+ /* Titled code blocks: diagonal stripe background on the title bar */
112
+ figure.shiki:has(figcaption) > div:first-child {
113
+ position: relative;
114
+ }
115
+
116
+ figure.shiki:has(figcaption) > div:first-child::before {
117
+ content: "";
118
+ position: absolute;
119
+ inset: 0;
120
+ background: repeating-linear-gradient(
121
+ -45deg,
122
+ currentColor,
123
+ currentColor 1px,
124
+ transparent 1px,
125
+ transparent 6px
126
+ );
127
+ opacity: 0.03;
128
+ pointer-events: none;
129
+ }
130
+
131
+ .dark figure.shiki:has(figcaption) > div:first-child::before {
132
+ opacity: 0.05;
133
+ }
134
+
135
+ figure.shiki:has(figcaption) figcaption {
136
+ font-family: var(--fd-font-mono, ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace);
137
+ font-size: 0.75rem;
138
+ letter-spacing: 0.01em;
139
+ }
140
+
111
141
  /* ─── Page description (frontmatter) ─────────────────────────────────── */
112
142
 
113
143
  .fd-page-description {
@@ -455,6 +455,8 @@ details > :not(summary) {
455
455
  .fd-page-action-btn {
456
456
  border-radius: 6px;
457
457
  font-size: 0.8125rem;
458
+ text-transform: uppercase;
459
+ box-shadow: 0 4px 24px hsl(0 0% 0% / 0.4);
458
460
  }
459
461
 
460
462
  .fd-page-action-menu {
@@ -179,6 +179,7 @@ figure button {
179
179
  border-radius: 0.1rem !important;
180
180
  }
181
181
 
182
+
182
183
  /* ─── Inline code ─────────────────────────────────────────────────── */
183
184
 
184
185
  code:not(pre code) {
@@ -57,12 +57,7 @@
57
57
 
58
58
  html {
59
59
  scroll-behavior: auto;
60
- scroll-padding-top: calc(
61
- var(--fd-nav-height, 56px) +
62
- var(--fd-banner-height, 0px) +
63
- var(--fd-tocnav-height, 0px) +
64
- 24px
65
- );
60
+ scroll-padding-top: calc(var(--fd-nav-height, 56px) + var(--fd-banner-height, 0px) + var(--fd-tocnav-height, 0px) + 24px);
66
61
  }
67
62
 
68
63
  html:not([data-anchor-scrolling]) {
@@ -80,18 +75,22 @@ html:not([data-anchor-scrolling]) {
80
75
  width: 12px;
81
76
  height: 12px;
82
77
  }
78
+
83
79
  ::-webkit-scrollbar-track {
84
80
  background: var(--scrollbar-track);
85
81
  }
82
+
86
83
  ::-webkit-scrollbar-thumb {
87
84
  background-color: var(--scrollbar-thumb);
88
85
  border-radius: 9999px;
89
86
  border: 3px solid transparent;
90
87
  background-clip: content-box;
91
88
  }
89
+
92
90
  ::-webkit-scrollbar-thumb:hover {
93
91
  background-color: var(--scrollbar-thumb-hover);
94
92
  }
93
+
95
94
  ::-webkit-scrollbar-corner {
96
95
  background: transparent;
97
96
  }
@@ -157,11 +156,11 @@ code:not(pre code) {
157
156
  }
158
157
 
159
158
  /* ── Full-width border separators between top-level items ─────────── */
160
- .dark aside .overscroll-contain > div {
159
+ .dark aside .overscroll-contain>div {
161
160
  margin-top: -22px;
162
161
  }
163
162
 
164
- .dark aside .overscroll-contain > div > a[data-active] {
163
+ .dark aside .overscroll-contain>div>a[data-active] {
165
164
  border-top: 1px solid hsl(0 0% 12%);
166
165
  margin-left: -1rem;
167
166
  margin-right: -1rem;
@@ -170,20 +169,20 @@ code:not(pre code) {
170
169
  padding-bottom: 0.75rem;
171
170
  }
172
171
 
173
- .dark aside .overscroll-contain > div > div {
172
+ .dark aside .overscroll-contain>div>div {
174
173
  border-top: 1px solid hsl(0 0% 12%);
175
174
  margin-left: -1rem;
176
175
  margin-right: -1rem;
177
176
  padding: 0 !important;
178
177
  }
179
178
 
180
- .dark aside .overscroll-contain > div > a[data-active]:first-child,
181
- .dark aside .overscroll-contain > div > div:first-child {
179
+ .dark aside .overscroll-contain>div>a[data-active]:first-child,
180
+ .dark aside .overscroll-contain>div>div:first-child {
182
181
  border-top: none;
183
182
  }
184
183
 
185
- .dark aside .overscroll-contain > div > a[data-active]:last-child,
186
- .dark aside .overscroll-contain > div > div:last-child {
184
+ .dark aside .overscroll-contain>div>a[data-active]:last-child,
185
+ .dark aside .overscroll-contain>div>div:last-child {
187
186
  border-bottom: 1px solid hsl(0 0% 12%);
188
187
  }
189
188
 
@@ -263,7 +262,7 @@ code:not(pre code) {
263
262
  margin-top: -25px !important;
264
263
  }
265
264
 
266
- .dark aside div[data-state="open"] > :last-child {
265
+ .dark aside div[data-state="open"]> :last-child {
267
266
  overflow: hidden;
268
267
  }
269
268
 
@@ -335,7 +334,7 @@ figure.shiki button {
335
334
  }
336
335
 
337
336
  /* Code block title bar */
338
- figure.shiki > div:first-child {
337
+ figure.shiki>div:first-child {
339
338
  border-radius: 0 !important;
340
339
  }
341
340
 
@@ -412,16 +411,19 @@ figure.shiki > div:first-child {
412
411
  font-size: 0.75rem;
413
412
  letter-spacing: 0.01em;
414
413
  }
414
+
415
415
  .fd-breadcrumb-link {
416
416
  color: inherit;
417
417
  text-decoration: none;
418
418
  text-transform: uppercase;
419
419
  font-family: var(--fd-font-mono, var(--font-geist-mono, ui-monospace, monospace));
420
420
  }
421
+
421
422
  .fd-breadcrumb-current {
422
423
  font-family: var(--fd-font-mono, var(--font-geist-mono, ui-monospace, monospace));
423
424
  text-transform: uppercase;
424
425
  }
426
+
425
427
  /* ─── Page Actions (pixel-border overrides) ───────────────────────── */
426
428
 
427
429
  .fd-page-action-btn {
@@ -661,15 +663,16 @@ figure.shiki > div:first-child {
661
663
  .omni-content {
662
664
  border-radius: 0 !important;
663
665
  border: 2px solid var(--color-fd-border, hsl(0 0% 15%));
664
- box-shadow: 4px 4px 0 0 var(--color-fd-border, hsl(0 0% 15%)),
665
- 0 0 0 1px rgba(255, 255, 255, 0.02);
666
+ box-shadow: 3px 3px 0 0 var(--color-fd-border, hsl(0 0% 15%)),
667
+ 0 0 0 1px rgba(255, 255, 255, 0.02);
666
668
  }
667
669
 
668
670
  .omni-item {
669
671
  border-radius: 0 !important;
670
672
  }
671
673
 
672
- .omni-kbd, .omni-kbd-sm {
674
+ .omni-kbd,
675
+ .omni-kbd-sm {
673
676
  border-radius: 0 !important;
674
677
  border: 1px solid var(--color-fd-border, hsl(0 0% 15%));
675
678
  }
@@ -698,4 +701,4 @@ figure.shiki > div:first-child {
698
701
  .omni-highlight {
699
702
  background: color-mix(in srgb, var(--color-fd-primary, #6366f1) 25%, transparent);
700
703
  border-radius: 0 !important;
701
- }
704
+ }