@universal-ember/docs-support 0.1.0 → 0.2.0
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 +1 -1
- package/tailwind.mjs +13 -13
package/package.json
CHANGED
package/tailwind.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import path from
|
|
2
|
-
import assert from
|
|
3
|
-
import { createRequire } from
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import assert from "node:assert";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
4
|
|
|
5
|
-
import { readPackageUp } from
|
|
6
|
-
import { packageUp } from
|
|
7
|
-
import defaultTheme from
|
|
8
|
-
import typography from
|
|
5
|
+
import { readPackageUp } from "read-package-up";
|
|
6
|
+
import { packageUp } from "package-up";
|
|
7
|
+
import defaultTheme from "tailwindcss/defaultTheme.js";
|
|
8
|
+
import typography from "@tailwindcss/typography";
|
|
9
9
|
|
|
10
10
|
// tailwindcss is built incorrectly to allow named imports
|
|
11
11
|
const fontFamily = defaultTheme.fontFamily;
|
|
@@ -16,8 +16,8 @@ const require = createRequire(import.meta.url);
|
|
|
16
16
|
* Thanks, past self
|
|
17
17
|
* https://github.com/CrowdStrike/ember-oss-docs/blob/main/ember-oss-docs/tailwind.cjs
|
|
18
18
|
*/
|
|
19
|
-
const files =
|
|
20
|
-
const sourceEntries =
|
|
19
|
+
const files = "**/*.{js,ts,hbs,gjs,gts,html}";
|
|
20
|
+
const sourceEntries = "{app,src}";
|
|
21
21
|
|
|
22
22
|
export async function config(root, { packages } = {}) {
|
|
23
23
|
const appManifestPath = await packageUp(root);
|
|
@@ -57,15 +57,15 @@ export async function config(root, { packages } = {}) {
|
|
|
57
57
|
/** @type {import('tailwindcss').Config} */
|
|
58
58
|
return {
|
|
59
59
|
content: [...contentPaths],
|
|
60
|
-
darkMode:
|
|
60
|
+
darkMode: "selector",
|
|
61
61
|
theme: {
|
|
62
62
|
extend: {
|
|
63
63
|
maxWidth: {
|
|
64
|
-
|
|
64
|
+
"8xl": "88rem",
|
|
65
65
|
},
|
|
66
66
|
fontFamily: {
|
|
67
|
-
sans: [
|
|
68
|
-
display: [
|
|
67
|
+
sans: ["InterVariable", ...fontFamily.sans],
|
|
68
|
+
display: ["Helvetica, Arial, sans-serif"],
|
|
69
69
|
},
|
|
70
70
|
},
|
|
71
71
|
},
|