slidev-theme-tud 0.0.13 → 0.0.14
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/example.mdc +5 -1
- package/package.json +1 -1
- package/styles/layout.css +7 -7
- package/uno.config.ts +7 -1
package/example.mdc
CHANGED
|
@@ -211,7 +211,7 @@ normal lists:
|
|
|
211
211
|
|
|
212
212
|
## Tables
|
|
213
213
|
|
|
214
|
-
::div
|
|
214
|
+
::div{.green}
|
|
215
215
|
| Left Align | Center Align | Right Align |
|
|
216
216
|
|:-----------|:------------:|------------:|
|
|
217
217
|
| 1 | 1 | 1 |
|
|
@@ -279,6 +279,10 @@ This shows in the middle in magenta
|
|
|
279
279
|
> This is shown on the bottom (below the columns) and spans the whole slide again.
|
|
280
280
|
::
|
|
281
281
|
|
|
282
|
+
::div{.green}
|
|
283
|
+
> This is shown on the bottom (below the columns) and spans the whole slide again.
|
|
284
|
+
::
|
|
285
|
+
|
|
282
286
|
---
|
|
283
287
|
|
|
284
288
|
# Code examples
|
package/package.json
CHANGED
package/styles/layout.css
CHANGED
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
h1 {
|
|
56
|
-
@apply font-bold text-4xl mt-0 mb-8 text-primary;
|
|
56
|
+
@apply font-bold text-4xl mt-0 mb-8 text-var-primary;
|
|
57
57
|
}
|
|
58
58
|
h2 {
|
|
59
|
-
@apply font-bold text-2xl mt-0 mb-6 text-primary;
|
|
59
|
+
@apply font-bold text-2xl mt-0 mb-6 text-var-primary;
|
|
60
60
|
}
|
|
61
61
|
p {
|
|
62
62
|
@apply text-xl mt-0 mb-4 text-gray;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
li::marker {
|
|
98
|
-
@apply text-primary;
|
|
98
|
+
@apply text-var-primary;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/* Tables follow the same corporate idiom as blockquotes: square corners,
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
width: fit-content;
|
|
108
108
|
@apply text-xl mb-6 mx-auto;
|
|
109
109
|
th {
|
|
110
|
-
@apply bg-primary text-white;
|
|
110
|
+
@apply bg-var-primary text-white;
|
|
111
111
|
@apply font-bold px-3 py-2 text-left;
|
|
112
112
|
}
|
|
113
113
|
td {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
@apply bg-[color-mix(in_srgb,var(--slidev-theme-primary)_5%,white)]
|
|
122
122
|
}
|
|
123
123
|
tbody tr:last-child td {
|
|
124
|
-
@apply border-b-2 border-b-primary;
|
|
124
|
+
@apply border-b-2 border-b-var-primary;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -133,9 +133,9 @@
|
|
|
133
133
|
/* border-left: 4px solid #4c8ac6; */
|
|
134
134
|
/* background-color: #EFF5FA; */
|
|
135
135
|
/* display: inline-block; */
|
|
136
|
-
@apply px-2 py-[0.1px] mb-6 border-l-[4px] border-l-primary bg-[color-mix(in_srgb,var(--slidev-theme-primary)_5%,white)];
|
|
136
|
+
@apply px-2 py-[0.1px] mb-6 border-l-[4px] border-l-var-primary bg-[color-mix(in_srgb,var(--slidev-theme-primary)_5%,white)];
|
|
137
137
|
h1 {
|
|
138
|
-
@apply text-2xl text-white bg-primary -m-2 mb-2 px-2 py-2;
|
|
138
|
+
@apply text-2xl text-white bg-var-primary -m-2 mb-2 px-2 py-2;
|
|
139
139
|
code {
|
|
140
140
|
@apply bg-white/10;
|
|
141
141
|
}
|
package/uno.config.ts
CHANGED
|
@@ -17,7 +17,13 @@ const primaryClasses = paletteNames.map((name) =>
|
|
|
17
17
|
)
|
|
18
18
|
|
|
19
19
|
export default defineConfig({
|
|
20
|
-
theme: {
|
|
20
|
+
theme: {
|
|
21
|
+
colors: {
|
|
22
|
+
...colors,
|
|
23
|
+
// e.g. bg-var-primary, border-l-var-primary — follows --slidev-theme-primary
|
|
24
|
+
var: { primary: 'var(--slidev-theme-primary)' },
|
|
25
|
+
},
|
|
26
|
+
},
|
|
21
27
|
preflights: [
|
|
22
28
|
{ getCSS: () => `:root {\n ${paletteVars.join('\n ')}\n}` },
|
|
23
29
|
{ getCSS: () => primaryClasses.join('\n') },
|