mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 08:13:49 +10:00
Feature: Toggle Page Size between ISO A4 and US Letter
This commit is contained in:
3
client/utils/string.ts
Normal file
3
client/utils/string.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export const capitalize = (str: string) => {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
};
|
||||
@ -1,4 +1,4 @@
|
||||
import { Theme, Typography } from '@reactive-resume/schema';
|
||||
import { ThemeConfig, Typography } from '@reactive-resume/schema';
|
||||
import { RgbColor } from 'react-colorful';
|
||||
|
||||
import { hexColorPattern } from '@/config/colors';
|
||||
@ -27,7 +27,7 @@ export const generateTypographyStyles = ({ family, size }: Typography): string =
|
||||
h6 { font-size: ${size.heading / 3.5}px; line-height: ${size.heading / 3.5}px; }
|
||||
`;
|
||||
|
||||
export const generateThemeStyles = ({ text, background, primary }: Theme): string => `
|
||||
export const generateThemeStyles = ({ text, background, primary }: ThemeConfig): string => `
|
||||
color: ${text};
|
||||
background-color: ${background};
|
||||
--primary-color: ${primary};
|
||||
|
||||
Reference in New Issue
Block a user