Skip to content

Commit 8eaba05

Browse files
committed
format colors
1 parent 0b3594a commit 8eaba05

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

bun.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"effect": "3.17.7",
2020
"fs-extra": "11.3.1",
2121
"pkg-dir": "9.0.0",
22+
"scule": "1.3.0",
2223
"ts-morph": "26.0.0",
2324
"zod": "4.0.17"
2425
},

packages/cli/src/utils/prompt.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as p from '@clack/prompts'
22
import { Effect } from 'effect'
3+
import { titleCase } from 'scule'
34
import type { Framework } from '~/schema'
45
import { registry } from './registry'
56

@@ -9,13 +10,12 @@ export const promptInitConfig = () =>
910
Effect.map(([accentColors, grayColors]) => {
1011
const accentOptions = accentColors.map((color) => ({
1112
value: color,
12-
label: color.toUpperCase(),
13+
label: titleCase(color),
1314
}))
1415
const grayOptions = grayColors.map((color) => ({
1516
value: color,
16-
label: color.toUpperCase(),
17+
label: titleCase(color),
1718
}))
18-
1919
return {
2020
accentColors: accentOptions,
2121
neutralColors: grayOptions,

0 commit comments

Comments
 (0)