vantage-md 0.5.4 → 0.5.6

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/dist/prose.css CHANGED
@@ -1,12 +1,26 @@
1
- /* src/styles/prose.css */
1
+ /*
2
+ * vantage-md/prose — GitHub-style markdown prose styling
3
+ *
4
+ * Apply the `.vantage-prose` class to your markdown container.
5
+ * Supports light and dark mode (via `.dark` parent class).
6
+ *
7
+ * Usage:
8
+ * import "vantage-md/prose";
9
+ *
10
+ * <div class="vantage-prose">rendered html here</div>
11
+ */
12
+
2
13
  .vantage-prose {
3
- color: #334155;
14
+ color: #334155; /* slate-700 */
4
15
  line-height: 1.7;
5
16
  max-width: none;
6
17
  }
18
+
7
19
  .dark .vantage-prose {
8
- color: #cbd5e1;
20
+ color: #cbd5e1; /* slate-300 */
9
21
  }
22
+
23
+ /* ── Headings ── */
10
24
  .vantage-prose h1,
11
25
  .vantage-prose h2,
12
26
  .vantage-prose h3,
@@ -15,25 +29,29 @@
15
29
  .vantage-prose h6 {
16
30
  font-weight: 600;
17
31
  letter-spacing: -0.01em;
18
- color: #0f172a;
32
+ color: #0f172a; /* slate-900 */
19
33
  }
34
+
20
35
  .dark .vantage-prose h1,
21
36
  .dark .vantage-prose h2,
22
37
  .dark .vantage-prose h3,
23
38
  .dark .vantage-prose h4,
24
39
  .dark .vantage-prose h5,
25
40
  .dark .vantage-prose h6 {
26
- color: #f1f5f9;
41
+ color: #f1f5f9; /* slate-100 */
27
42
  }
43
+
28
44
  .vantage-prose h1 {
29
45
  font-size: 2em;
30
46
  margin-bottom: 0.75rem;
31
47
  padding-bottom: 0.3em;
32
- border-bottom: 1px solid #e2e8f0;
48
+ border-bottom: 1px solid #e2e8f0; /* slate-200 */
33
49
  }
50
+
34
51
  .dark .vantage-prose h1 {
35
- border-bottom-color: #334155;
52
+ border-bottom-color: #334155; /* slate-700 */
36
53
  }
54
+
37
55
  .vantage-prose h2 {
38
56
  font-size: 1.5em;
39
57
  margin-top: 1.5rem;
@@ -41,72 +59,90 @@
41
59
  padding-bottom: 0.3em;
42
60
  border-bottom: 1px solid #e2e8f0;
43
61
  }
62
+
44
63
  .dark .vantage-prose h2 {
45
64
  border-bottom-color: #334155;
46
65
  }
66
+
47
67
  .vantage-prose h3 {
48
68
  font-size: 1.25em;
49
69
  margin-top: 1.5rem;
50
70
  margin-bottom: 0.5rem;
51
71
  }
72
+
52
73
  .vantage-prose h4 {
53
74
  font-size: 1em;
54
75
  margin-top: 1.5rem;
55
76
  margin-bottom: 0.5rem;
56
77
  }
78
+
79
+ /* ── Paragraphs ── */
57
80
  .vantage-prose p {
58
81
  margin-top: 16px;
59
82
  margin-bottom: 16px;
60
83
  line-height: 1.5;
61
84
  }
85
+
86
+ /* ── Lists ── */
62
87
  .vantage-prose ul {
63
88
  margin-top: 16px;
64
89
  margin-bottom: 16px;
65
90
  list-style-type: disc;
66
91
  padding-left: 2em;
67
92
  }
93
+
68
94
  .vantage-prose ol {
69
95
  margin-top: 16px;
70
96
  margin-bottom: 16px;
71
97
  padding-left: 2em;
72
98
  }
99
+
73
100
  .vantage-prose li {
74
101
  margin-top: 0.125rem;
75
102
  margin-bottom: 0.125rem;
76
103
  }
104
+
105
+ /* ── Code blocks ── */
77
106
  .vantage-prose pre {
78
- background: #f8fafc;
79
- border: 1px solid #e2e8f0;
107
+ background: #f8fafc; /* slate-50 */
108
+ border: 1px solid #e2e8f0; /* slate-200 */
80
109
  padding: 1rem;
81
110
  border-radius: 0.375rem;
82
111
  font-size: 85%;
83
112
  line-height: 1.45;
84
113
  }
114
+
85
115
  .dark .vantage-prose pre {
86
- background: #1e293b;
87
- border-color: #334155;
116
+ background: #1e293b; /* slate-800 */
117
+ border-color: #334155; /* slate-700 */
88
118
  }
119
+
120
+ /* ── Inline code ── */
89
121
  .vantage-prose code {
90
- background: #f1f5f9;
122
+ background: #f1f5f9; /* slate-100 */
91
123
  padding: 0.2em 0.4em;
92
124
  border-radius: 0.375rem;
93
125
  font-size: 85%;
94
- font-family:
95
- ui-monospace,
96
- SFMono-Regular,
97
- Menlo,
98
- Monaco,
99
- Consolas,
100
- monospace;
126
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
101
127
  font-weight: normal;
102
- border: 1px solid rgb(226 232 240 / 0.5);
103
- color: #1e293b;
128
+ border: 1px solid rgb(226 232 240 / 0.5); /* slate-200/50 */
129
+ color: #1e293b; /* slate-800 */
104
130
  }
131
+
105
132
  .dark .vantage-prose code {
106
- background: #1e293b;
107
- border-color: rgb(51 65 85 / 0.5);
108
- color: #e2e8f0;
109
- }
133
+ background: #1e293b; /* slate-800 */
134
+ border-color: rgb(51 65 85 / 0.5); /* slate-700/50 */
135
+ color: #e2e8f0; /* slate-200 */
136
+ }
137
+
138
+ /* Don't double-style code inside pre. The horizontal scroller for wide code
139
+ lives here rather than on the `pre`, because a `pre` whose computed overflow
140
+ is not `visible` is a clip box for its own `::before` — which is how
141
+ `directives.css` draws a toned section's vertical rule, and clipping it breaks
142
+ the rule for the height of every code fence. See the note there beside
143
+ `[data-vantage-tone]:is(pre, hr)`. Keeping this unconditional rather than
144
+ scoping it to toned fences means one behaviour for every fence, and no
145
+ specificity tie between the two stylesheets. */
110
146
  .vantage-prose pre code {
111
147
  background: none;
112
148
  padding: 0;
@@ -117,50 +153,66 @@
117
153
  display: block;
118
154
  overflow-x: auto;
119
155
  }
156
+
157
+ /* ── Links ── */
120
158
  .vantage-prose a {
121
- color: #2563eb;
159
+ color: #2563eb; /* blue-600 */
122
160
  text-decoration: none;
123
161
  }
162
+
124
163
  .vantage-prose a:hover {
125
164
  text-decoration: underline;
126
165
  }
166
+
127
167
  .dark .vantage-prose a {
128
- color: #60a5fa;
168
+ color: #60a5fa; /* blue-400 */
129
169
  }
170
+
171
+ /* ── Images ── */
130
172
  .vantage-prose img {
131
173
  border-radius: 0.5rem;
132
174
  margin-top: 1rem;
133
175
  margin-bottom: 1rem;
134
176
  }
177
+
178
+ /* ── Blockquotes ── */
135
179
  .vantage-prose blockquote {
136
- border-left: 0.25em solid #cbd5e1;
180
+ border-left: 0.25em solid #cbd5e1; /* slate-300 */
137
181
  padding-left: 1rem;
138
- color: #475569;
182
+ color: #475569; /* slate-600 */
139
183
  font-style: italic;
140
184
  }
185
+
141
186
  .dark .vantage-prose blockquote {
142
- border-left-color: #475569;
143
- color: #94a3b8;
187
+ border-left-color: #475569; /* slate-600 */
188
+ color: #94a3b8; /* slate-400 */
144
189
  }
190
+
191
+ /* ── Tables ── */
145
192
  .vantage-prose table {
146
193
  font-size: 0.875rem;
147
194
  border-collapse: collapse;
148
195
  width: 100%;
149
196
  }
197
+
150
198
  .vantage-prose th,
151
199
  .vantage-prose td {
152
200
  padding: 0.375rem 0.75rem;
153
- border: 1px solid #e2e8f0;
201
+ border: 1px solid #e2e8f0; /* slate-200 */
154
202
  }
203
+
155
204
  .dark .vantage-prose th,
156
205
  .dark .vantage-prose td {
157
- border-color: #334155;
206
+ border-color: #334155; /* slate-700 */
158
207
  }
208
+
209
+ /* ── Horizontal rules ── */
159
210
  .vantage-prose hr {
160
211
  border: none;
161
212
  border-top: 1px solid #e2e8f0;
162
213
  margin: 1.5rem 0;
163
214
  }
215
+
164
216
  .dark .vantage-prose hr {
165
217
  border-top-color: #334155;
166
218
  }