Developer Resources
Design tokens, code snippets, and implementation guides for developers building with the AssetBook brand.
Design Tokens
CSS Variables
:root {
--ab-green: #00DE8E;
--ab-dark-blue: #00004E;
--ab-cornflower-blue: #000093;
--ab-red: #ED0735;
--ab-orange: #FF8E09;
--ab-dark-green: #00B172;
--ab-white: #FFFFFF;
--ab-black: #000000;
--ab-light-gray: #F6F6F6;
}SCSS Variables
$ab-green: #00DE8E;
$ab-dark-blue: #00004E;
$ab-cornflower-blue: #000093;
$ab-red: #ED0735;
$ab-orange: #FF8E09;
$ab-dark-green: #00B172;
$ab-white: #FFFFFF;
$ab-black: #000000;
$ab-light-gray: #F6F6F6;JavaScript / TypeScript
export const colors = {
green: '#00DE8E',
dark-blue: '#00004E',
cornflower-blue: '#000093',
red: '#ED0735',
orange: '#FF8E09',
dark-green: '#00B172',
white: '#FFFFFF',
black: '#000000',
light-gray: '#F6F6F6',
};Tailwind CSS Config
// tailwind.config.js
export default {
theme: {
extend: {
colors: {
'ab-green': '#00DE8E',
'ab-dark-blue': '#00004E',
'ab-cornflower-blue': '#000093',
'ab-red': '#ED0735',
'ab-orange': '#FF8E09',
'ab-dark-green': '#00B172',
'ab-white': '#FFFFFF',
'ab-black': '#000000',
'ab-light-gray': '#F6F6F6',
},
},
},
};Button Components
Primary Button
CSS
.btn-primary {
padding: 0.75rem 1.5rem;
background-color: #00DE8E;
color: white;
font-weight: 700;
border-radius: 0.5rem;
transition: background-color 0.2s;
}
.btn-primary:hover {
background-color: #000000;
}Secondary Button
CSS
.btn-secondary {
padding: 0.75rem 1.5rem;
background-color: #000000;
color: white;
font-weight: 700;
border-radius: 0.5rem;
transition: background-color 0.2s;
}
.btn-secondary:hover {
background-color: #00DE8E;
}Implementation Guidelines
Best Practices
- ✓ Use design tokens for all brand colors
- ✓ Implement dark mode support
- ✓ Follow WCAG AAA accessibility standards
- ✓ Use semantic HTML elements
- ✓ Optimize SVG assets for web
Performance Tips
- • Preload Manrope font for faster rendering
- • Use SVG sprites for icon collections
- • Implement lazy loading for images
- • Minify and compress all assets
- • Use CDN for asset delivery