@troshab/slidev-theme-troshab 0.1.7 → 0.1.8

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.
@@ -123,7 +123,10 @@ const sizeClasses: Record<string, string> = {
123
123
 
124
124
  .metric-value {
125
125
  font-weight: var(--font-weight-bold);
126
- line-height: 1.1;
126
+ /* IBM Plex Sans glyph box ~1.275 + tabular-nums + bold add ~5% — at h1*1.5 (lg)
127
+ and gradient text (background-clip: text), browser computes scrollH 5-7% above
128
+ line-height. 1.4 absorbs the rounding without visible spacing change. */
129
+ line-height: 1.4;
127
130
  font-variant-numeric: tabular-nums;
128
131
  white-space: nowrap;
129
132
  overflow: hidden;
@@ -16,7 +16,7 @@ import type { SemanticColor } from '../composables/useColors'
16
16
  import { semanticColorVar } from '../composables/useColors'
17
17
 
18
18
  const props = withDefaults(defineProps<{
19
- marker?: 'disc' | 'number' | 'check' | 'arrow' | 'star' | 'none'
19
+ marker?: 'disc' | 'number' | 'check' | 'cross' | 'arrow' | 'star' | 'none'
20
20
  color?: SemanticColor
21
21
  size?: 'sm' | 'md' | 'lg'
22
22
  columns?: 1 | 2
@@ -81,6 +81,15 @@ const props = withDefaults(defineProps<{
81
81
  font-weight: var(--font-weight-bold);
82
82
  }
83
83
 
84
+ /* Marker: cross (pairs with check — semantic "mistake/don't/anti-pattern") */
85
+ .styled-list-cross li::before {
86
+ content: '\2717';
87
+ position: absolute;
88
+ left: 0;
89
+ color: var(--marker-color);
90
+ font-weight: var(--font-weight-bold);
91
+ }
92
+
84
93
  /* Marker: arrow */
85
94
  .styled-list-arrow li::before {
86
95
  content: '\2192';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@troshab/slidev-theme-troshab",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A minimal, universal Slidev theme with flexible layouts and ready-to-use slide templates",
5
5
  "author": "troshab",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",
@@ -39,6 +39,14 @@
39
39
  "slidev-addon-fancy-arrow": "^0.16.0",
40
40
  "slidev-addon-preload-images": "^0.2.0"
41
41
  },
42
+ "peerDependencies": {
43
+ "shiki": ">=3.0.0"
44
+ },
45
+ "peerDependenciesMeta": {
46
+ "shiki": {
47
+ "optional": true
48
+ }
49
+ },
42
50
  "scripts": {
43
51
  "dev": "npx concurrently -n dark,light -c magenta,cyan \"slidev example_dark.md --port 30303\" \"slidev example_white.md --port 31313\"",
44
52
  "dev:dark": "slidev example_dark.md --port 30303",