Skip to content

Commit

Permalink
update deps and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Jan 9, 2024
1 parent ee9ab79 commit 8921890
Show file tree
Hide file tree
Showing 15 changed files with 154 additions and 152 deletions.
Binary file modified bun.lockb
Binary file not shown.
Binary file modified docs/bun.lockb
Binary file not shown.
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20.9.1",
"@types/node": "^20.10.7",
"autoprefixer": "^10.4.16",
"domco": "../dist/domco",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.7",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.11",
"robino": "^0.0.39",
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2",
"uico": "^0.1.6",
"vite": "^5.0.0"
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"uico": "^0.2.1",
"vite": "^5.0.11"
}
}
6 changes: 4 additions & 2 deletions docs/src/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<div class="not-prose my-24 flex flex-col items-center justify-center gap-16">
<h1 class="text-center text-4xl font-bold md:text-6xl">
<h1
class="text-center font-antique text-2xl font-bold text-primary md:text-5xl"
>
Build Time Rendering Without Templates
</h1>
<div class="flex flex-col gap-6 md:flex-row">
<div
class="copy-text flex h-10 items-center justify-center rounded border-2 border-accent px-4 font-mono text-sm"
class="copy-text flex h-10 items-center justify-center rounded border-2 border-primary px-4 font-mono text-sm"
>
npm create domco@latest
</div>
Expand Down
1 change: 1 addition & 0 deletions docs/src/layout.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const build: Build = async ({
headings.forEach((heading) => {
if (heading && heading.id) {
const id = heading.id;
heading.classList.add("flex");
heading.innerHTML = /*html*/ `
<a href="#${id}" class="not-prose hover:underline flex items-center gap-1">
${heading.innerHTML}
Expand Down
64 changes: 30 additions & 34 deletions docs/src/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,36 @@
<meta name="description" content="Build Time Rendering Without Templates" />
</head>
<body
class="min-w-[300px] justify-center bg-background text-foreground md:flex"
class="prose prose-slate mx-auto max-w-[80ch] bg-background font-humanist-classical text-foreground selection:bg-foreground selection:text-background prose-headings:font-antique prose-pre:-mx-6 prose-pre:rounded-none prose-pre:px-8 prose-pre:sm:mx-0 prose-pre:sm:rounded-md prose-pre:sm:px-4"
>
<div
class="prose prose-zinc prose-invert max-w-[768px] font-old-style prose-a:link md:prose-lg selection:bg-secondary selection:text-secondary-foreground prose-h5:font-semibold prose-p:before:content-none prose-p:after:content-none prose-pre:rounded prose-pre:border-2 prose-pre:border-muted"
>
<header class="not-prose flex items-center justify-between gap-6 p-6">
<a class="block text-2xl font-extrabold no-underline" href="/">domco</a>
<ul class="flex items-center gap-4">
<li>
<a href="/docs/learn" class="link">Learn</a>
</li>
<li>
<a href="/docs/modules" class="link">Modules</a>
</li>
</ul>
</header>
<main class="p-6">
<slot></slot>
</main>
<footer class="not-prose mb-8 flex justify-between p-6">
<ul class="flex flex-col gap-2">
<li>
<a class="link" href="https://github.com/rossrobino/domco">
GitHub
</a>
</li>
<li>MIT License</li>
</ul>
<div>
<share-url>
<button class="button button-outline">Share</button>
</share-url>
</div>
</footer>
</div>
<header class="not-prose flex items-center justify-between gap-6 p-6">
<a class="block font-antique text-2xl font-bold no-underline" href="/">
domco
</a>
<ul class="flex items-center gap-4">
<li>
<a href="/docs/learn" class="link">Learn</a>
</li>
<li>
<a href="/docs/modules" class="link">Modules</a>
</li>
</ul>
</header>
<main class="p-6">
<slot></slot>
</main>
<footer class="not-prose mb-8 flex justify-between p-6">
<ul class="flex flex-col gap-2">
<li>
<a class="link" href="https://github.com/rossrobino/domco">GitHub</a>
</li>
<li>MIT License</li>
</ul>
<div>
<share-url>
<button class="button button-outline">Share</button>
</share-url>
</div>
</footer>
</body>
</html>
54 changes: 26 additions & 28 deletions docs/src/style.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@
@tailwind utilities;

@layer base {
/** https://uico.robino.dev */
:root {
--background: 240 10% 3.9%; /* zinc-950 */
--foreground: 240 4.9% 83.9%; /* zinc-300 */
--muted: 240 5.9% 10%; /* zinc-900 */
--muted-foreground: 240 5% 64.9%; /* zinc-400 */
--primary: 240 4.8% 95.9%; /* zinc-100 */
--primary-foreground: 240 5.9% 10%; /* zinc-900 */
--secondary: 224 76.3% 48%; /* blue-700 */
--secondary-foreground: 240 4.8% 95.9%; /* zinc-100 */
--destructive: 0 73.7% 41.8%; /* red-700 */
--destructive-foreground: 240 4.8% 95.9%; /* zinc-100 */
--accent: 50 97.8% 63.5%; /* yellow-300 */
--accent-foreground: 240 5.9% 10%; /* zinc-900 */
--card: 0 0% 0%; /* black */
--card-foreground: 240 4.9% 83.9%; /* zinc-300 */
--border: 240 4.9% 83.9%;
--radius: 1rem;
}
h1 {
text-wrap: balance;
--background: 99% 0.005 257; /* slate-50 */
--foreground: 37% 0.05 257; /* 700 */
--muted: 93% 0.015 257; /* 200 */
--muted-foreground: 44% 0.05 257; /* 600 */
--primary: 28% 0.05 257; /* 800 */
--primary-foreground: 97% 0.01 257; /* 100 */
--secondary: 87% 0.022 257; /* 300 */
--secondary-foreground: 22% 0.05 257; /* 900 */
--destructive: 56% 0.19 17; /* rose-700 */
--destructive-foreground: 100% 0 0; /* white */
--accent: 28% 0.05 257; /* 800 */
--accent-foreground: 93% 0.015 257; /* 200 */
--card: 100% 0 0; /* white */
--card-foreground: 37% 0.05 257; /* 700 */
--border: 93% 0.015 257; /* 200 */
--radius: 0.3rem;
}
p {
text-wrap: pretty;
Expand Down Expand Up @@ -55,18 +53,16 @@
.hljs-built_in,
.hljs-symbol,
.hljs-bullet {
color: theme("colors.red.500");
color: theme("colors.rose.500");
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
color: theme("colors.yellow.300");
color: theme("colors.violet.300");
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
Expand All @@ -75,19 +71,19 @@
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
color: theme("colors.blue.400");
color: theme("colors.sky.300");
}

.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
color: theme("colors.blue.300");
color: theme("colors.sky.200");
}

.hljs-comment,
.hljs-code,
.hljs-formula {
color: theme("colors.zinc.400");
color: theme("colors.slate.400");
}

.hljs-name,
Expand All @@ -98,12 +94,14 @@
color: theme("colors.teal.300");
}

.hljs-attr,
.hljs-attribute,
.hljs-subst {
color: theme("colors.zinc.200");
color: theme("colors.slate.100");
}

.hljs-section {
color: theme("colors.blue.500");
color: theme("colors.sky.500");
}

.hljs-emphasis {
Expand Down
8 changes: 7 additions & 1 deletion docs/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import { uico } from "uico";

const config: Config = {
content: ["./src/**/*.{html,js,ts,md}"],
plugins: [typography, uico],
plugins: [
typography,
uico({
colorFunction: "oklch",
colorPalette: "oklch",
}),
],
};

export default config;
Binary file modified packages/create-domco/bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions packages/create-domco/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-domco",
"description": "Create a new domco project",
"version": "0.0.25",
"version": "0.0.26",
"type": "module",
"types": "./index.d.ts",
"main": "./index.js",
Expand All @@ -27,12 +27,12 @@
"which-pm-runs": "^1.1.0"
},
"devDependencies": {
"@types/node": "^20.9.1",
"@types/node": "^20.10.7",
"@types/which-pm-runs": "^1.0.2",
"bun-types": "latest",
"prettier": "^3.1.0",
"prettier": "^3.1.1",
"robino": "^0.0.39",
"typescript": "^5.2.2"
"typescript": "^5.3.3"
},
"prettier": "robino/config/prettier"
}
12 changes: 6 additions & 6 deletions packages/create-domco/template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ export const getFiles = (options: {
}
},
"devDependencies": {
"@types/node": "^20.9.1",
"domco": "^0.3.5",${prettier ? `\n\t\t"prettier": "^3.1.0",` : ""}${
"@types/node": "^20.10.7",
"domco": "^0.3.6",${prettier ? `\n\t\t"prettier": "^3.1.1",` : ""}${
prettier && tailwind
? `\n\t\t"prettier-plugin-tailwindcss": "^0.5.7",`
? `\n\t\t"prettier-plugin-tailwindcss": "^0.5.11",`
: ""
}${
tailwind
? `\n\t\t"tailwindcss": "^3.3.5",\n\t\t"autoprefixer": "^10.4.16",`
? `\n\t\t"tailwindcss": "^3.4.1",\n\t\t"autoprefixer": "^10.4.16",`
: ""
}
"typescript": "^5.2.2",
"vite": "^5.0.0"
"typescript": "^5.3.3",
"vite": "^5.0.11"
}
}
`,
Expand Down
Binary file modified packages/domco/bun.lockb
Binary file not shown.
Loading

0 comments on commit 8921890

Please sign in to comment.