Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 9fc704d

Browse files
authored
Merge pull request #189 from storyblok/feature/update-branding-colors
feat(constants): update color palette for improved UI consistency
2 parents d19189a + 6402357 commit 9fc704d

3 files changed

Lines changed: 15 additions & 31 deletions

File tree

src/constants.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export const commands = {
99
} as const;
1010

1111
export const colorPalette = {
12-
PRIMARY: '#45bfb9',
13-
LOGIN: '#8556D3',
14-
LOGOUT: '#8556D3',
15-
USER: '#8BC34A',
12+
PRIMARY: '#8d60ff',
13+
LOGIN: '#dad4ff',
14+
LOGOUT: '#6d6d6d',
15+
USER: '#71d300',
1616
COMPONENTS: '#a185ff',
17-
LANGUAGES: '#FFC107',
17+
LANGUAGES: '#f5c003',
1818
MIGRATIONS: '#8CE2FF',
1919
TYPES: '#3178C6',
2020
} as const;

src/index.ts

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import './commands/languages';
1212
import './commands/migrations';
1313
import './commands/types';
1414

15-
import { session } from './session';
15+
import { colorPalette } from './constants';
1616

1717
export * from './types/storyblok';
1818

1919
dotenv.config(); // This will load variables from .env into process.env
2020
const program = getProgram();
2121
console.clear();
22-
const introText = chalk.bgHex('#45bfb9').bold.black(` Storyblok CLI `);
22+
const introText = chalk.bgHex(colorPalette.PRIMARY).bold(` Storyblok CLI `);
2323
const messageText = ` `;
2424
console.log(formatHeader(`
2525
${introText} ${messageText}`));
@@ -32,29 +32,13 @@ program.on('command:*', () => {
3232
konsola.br(); // Add a line break
3333
});
3434

35-
program.command('test').action(async () => {
36-
konsola.title(`Test`, '#8556D3', 'Attempting a test...');
37-
const verbose = program.opts().verbose;
38-
try {
39-
const { state, initializeSession } = session();
40-
await initializeSession();
41-
42-
if (!state.password) {
43-
throw new Error('No password found');
44-
}
45-
}
46-
catch (error) {
47-
handleError(error as Error, verbose);
48-
}
49-
});
50-
5135
/* console.log(`
52-
${chalk.hex('#45bfb9')(' ─────╮')}
53-
${chalk.hex('#45bfb9')('│ │')}
54-
${chalk.hex('#45bfb9')('│')} ◠ ◡ ◠
55-
${chalk.hex('#45bfb9')('|_ __|')}
56-
${chalk.hex('#45bfb9')(' |/ ')}
57-
`) */
36+
${chalk.hex(colorPalette.PRIMARY)(' ─────╮')}
37+
${chalk.hex(colorPalette.PRIMARY)('│ │')}
38+
${chalk.hex(colorPalette.PRIMARY)('│')} ◠ ◡ ◠
39+
${chalk.hex(colorPalette.PRIMARY)('╰─ ───╯')}
40+
${chalk.hex(colorPalette.PRIMARY)(' |/ ')}
41+
`); */
5842

5943
try {
6044
program.parse(process.argv);

src/utils/konsola.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export const konsola = {
1313
console.log(''); // Add a line break
1414
console.log(''); // Add a line break
1515
if (subtitle) {
16-
console.log(`${formatHeader(chalk.bgHex(color).bold.white(` ${message} `))} ${subtitle}`);
16+
console.log(`${formatHeader(chalk.bgHex(color).bold(` ${message} `))} ${subtitle}`);
1717
}
1818
else {
19-
console.log(formatHeader(chalk.bgHex(color).bold.white(` ${message} `)));
19+
console.log(formatHeader(chalk.bgHex(color).bold(` ${message} `)));
2020
}
2121
console.log(''); // Add a line break
2222
console.log(''); // Add a line break

0 commit comments

Comments
 (0)