Loading...
React framework with TypeScript and React Router
Navigate to your downloaded project directory
cd your-project-nameInstall all dependencies
npm installStart the development server
npm startYour React project uses CSS modules for styling with color variables defined in src/index.css.
All colors are defined as CSS custom properties:
:root {
--primary: /* Your primary color */;
--secondary: /* Your secondary color */;
--accent: /* Your accent color */;
--text-on-primary: /* Text color for primary bg */;
--text-on-secondary: /* Text color for secondary bg */;
--text-on-accent: /* Text color for accent bg */;
}Apply colors using CSS custom properties:
.button {
background-color: var(--accent);
color: var(--text-on-accent);
}
.card {
background-color: var(--secondary);
color: var(--text-on-secondary);
}You can also use colors in inline styles:
<div style={{
backgroundColor: 'var(--primary)',
color: 'var(--text-on-primary)'
}}>
Content
</div>