Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions init/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ export const enum InitStep {
Docker = "Docker",
}

function css(strs: TemplateStringsArray, ...exprs: string[]): string {
let out = "";

for (let i = 0; i < exprs.length; i++) {
out += strs[i];
out += String(exprs[i]);
}
out += strs.at(-1) ?? "";

return out;
}

export class InitError extends Error {}

function error(tty: MockTTY, message: string): never {
Expand Down Expand Up @@ -215,7 +203,7 @@ export default {
await writeFile("tailwind.config.ts", TAILWIND_CONFIG_TS);
}

const GRADIENT_CSS = css`.fresh-gradient {
const GRADIENT_CSS = `.fresh-gradient {
background-color: rgb(134, 239, 172);
background-image: linear-gradient(
to right bottom,
Expand All @@ -225,7 +213,7 @@ export default {
);
}`;

const NO_TAILWIND_STYLES = css`*,
const NO_TAILWIND_STYLES = `*,
*::before,
*::after {
box-sizing: border-box;
Expand Down Expand Up @@ -375,7 +363,7 @@ html {

${GRADIENT_CSS}`;

const TAILWIND_CSS = css`@tailwind base;
const TAILWIND_CSS = `@tailwind base;
@tailwind components;
@tailwind utilities;
${GRADIENT_CSS}`;
Expand Down
Loading