CSS Utility Classes Color
In Inkline, color utility classes provide an easy way to apply predefined backgrounds and text colors to various elements throughout your application. These utility classes are based on the color values defined in your Inkline configuration file, allowing you to maintain a consistent color scheme across your project.
_background:${color}
_background:${color}-{lightness}
_background:${color}-tint-{lightness}
_background:${color}-shade-{lightness}
_text:${color}
Brand color utilities in Inkline allow you to apply your application's distinctive brand colors to various elements. You can easily apply primary and secondary brand colors as text or background colors.
Brand utility classes make it simple to maintain a consistent brand identity across your project, ensuring that your design system stays cohesive and visually appealing.
<template>
<div class="_background:primary!">Primary</div>
<div class="_background:secondary!">Secondary</div>
<div class="_background:light!">Light</div>
<div class="_background:dark!">Dark</div>
</template>
<template>
<div class="_background:primary-shade-150!">Primary Shade 15%</div>
<div class="_background:primary-shade-100!">Primary Shade 10%</div>
<div class="_background:primary-shade-50!">Primary Shade 5%</div>
<div class="_background:primary!">Primary</div>
<div class="_background:primary-tint-50!">Primary Tint 5%</div>
<div class="_background:primary-tint-100!">Primary Tint 10%</div>
<div class="_background:primary-tint-150!">Primary Tint 15%</div>
<hr />
<div class="_background:primary-50!">Primary 5%</div>
<div class="_background:primary-100!">Primary 10%</div>
<div class="_background:primary-200!">Primary 20%</div>
<div class="_background:primary-300!">Primary 30%</div>
<div class="_background:primary-400!">Primary 40%</div>
<div class="_background:primary-500!">Primary 50%</div>
<div class="_background:primary-600!">Primary 60%</div>
<div class="_background:primary-700!">Primary 70%</div>
<div class="_background:primary-800!">Primary 80%</div>
<div class="_background:primary-900!">Primary 90%</div>
</template>
<template>
<div class="_background:secondary-shade-150!">Secondary Shade 15%</div>
<div class="_background:secondary-shade-100!">Secondary Shade 10%</div>
<div class="_background:secondary-shade-50!">Secondary Shade 5%</div>
<div class="_background:secondary!">Secondary</div>
<div class="_background:secondary-tint-50!">Secondary Tint 5%</div>
<div class="_background:secondary-tint-100!">Secondary Tint 10%</div>
<div class="_background:secondary-tint-150!">Secondary Tint 15%</div>
<hr />
<div class="_background:secondary-50!">Secondary 5%</div>
<div class="_background:secondary-100!">Secondary 10%</div>
<div class="_background:secondary-200!">Secondary 20%</div>
<div class="_background:secondary-300!">Secondary 30%</div>
<div class="_background:secondary-400!">Secondary 40%</div>
<div class="_background:secondary-500!">Secondary 50%</div>
<div class="_background:secondary-600!">Secondary 60%</div>
<div class="_background:secondary-700!">Secondary 70%</div>
<div class="_background:secondary-800!">Secondary 80%</div>
<div class="_background:secondary-900!">Secondary 90%</div>
</template>
<template>
<div class="_background:light-shade-150!">Light Shade 15%</div>
<div class="_background:light-shade-100!">Light Shade 10%</div>
<div class="_background:light-shade-50!">Light Shade 5%</div>
<div class="_background:light!">Light</div>
<div class="_background:light-tint-50!">Light Tint 5%</div>
<div class="_background:light-tint-100!">Light Tint 10%</div>
<div class="_background:light-tint-150!">Light Tint 15%</div>
</template>
<template>
<div class="_background:dark-shade-150!">Dark Shade 15%</div>
<div class="_background:dark-shade-100!">Dark Shade 10%</div>
<div class="_background:dark-shade-50!">Dark Shade 5%</div>
<div class="_background:dark!">Dark</div>
<div class="_background:dark-tint-50!">Dark Tint 5%</div>
<div class="_background:dark-tint-100!">Dark Tint 10%</div>
<div class="_background:dark-tint-150!">Dark Tint 15%</div>
</template>
<template>
<p class="_color:primary!">Primary</p>
<p class="_color:secondary!">Secondary</p>
<p class="_color:light!">Light</p>
<p class="_color:dark!">Dark</p>
</template>
State color utilities are designed to represent different states or statuses within your application. These colors include success, info, warning, and danger.
State color utilities help convey important information to users, such as the success of an action or the presence of an error, making your application more intuitive and user-friendly.
<template>
<div class="_background:info!">Info</div>
<div class="_background:success!">Success</div>
<div class="_background:warning!">Warning</div>
<div class="_background:danger!">Danger</div>
</template>
<template>
<div class="_background:info-shade-150!">Info Shade 15%</div>
<div class="_background:info-shade-100!">Info Shade 10%</div>
<div class="_background:info-shade-50!">Info Shade 5%</div>
<div class="_background:info!">Info</div>
<div class="_background:info-tint-50!">Info Tint 5%</div>
<div class="_background:info-tint-100!">Info Tint 10%</div>
<div class="_background:info-tint-150!">Info Tint 15%</div>
<hr />
<div class="_background:info-50!">Info 5%</div>
<div class="_background:info-100!">Info 10%</div>
<div class="_background:info-200!">Info 20%</div>
<div class="_background:info-300!">Info 30%</div>
<div class="_background:info-400!">Info 40%</div>
<div class="_background:info-500!">Info 50%</div>
<div class="_background:info-600!">Info 60%</div>
<div class="_background:info-700!">Info 70%</div>
<div class="_background:info-800!">Info 80%</div>
<div class="_background:info-900!">Info 90%</div>
</template>
<template>
<div class="_background:success-shade-150!">Success Shade 15%</div>
<div class="_background:success-shade-100!">Success Shade 10%</div>
<div class="_background:success-shade-50!">Success Shade 5%</div>
<div class="_background:success!">Success</div>
<div class="_background:success-tint-50!">Success Tint 5%</div>
<div class="_background:success-tint-100!">Success Tint 10%</div>
<div class="_background:success-tint-150!">Success Tint 15%</div>
<hr />
<div class="_background:success-50!">Success 5%</div>
<div class="_background:success-100!">Success 10%</div>
<div class="_background:success-200!">Success 20%</div>
<div class="_background:success-300!">Success 30%</div>
<div class="_background:success-400!">Success 40%</div>
<div class="_background:success-500!">Success 50%</div>
<div class="_background:success-600!">Success 60%</div>
<div class="_background:success-700!">Success 70%</div>
<div class="_background:success-800!">Success 80%</div>
<div class="_background:success-900!">Success 90%</div>
</template>
<template>
<div class="_background:warning-shade-150!">Warning Shade 15%</div>
<div class="_background:warning-shade-100!">Warning Shade 10%</div>
<div class="_background:warning-shade-50!">Warning Shade 5%</div>
<div class="_background:warning!">Warning</div>
<div class="_background:warning-tint-50!">Warning Tint 5%</div>
<div class="_background:warning-tint-100!">Warning Tint 10%</div>
<div class="_background:warning-tint-150!">Warning Tint 15%</div>
<hr />
<div class="_background:warning-50!">Warning 5%</div>
<div class="_background:warning-100!">Warning 10%</div>
<div class="_background:warning-200!">Warning 20%</div>
<div class="_background:warning-300!">Warning 30%</div>
<div class="_background:warning-400!">Warning 40%</div>
<div class="_background:warning-500!">Warning 50%</div>
<div class="_background:warning-600!">Warning 60%</div>
<div class="_background:warning-700!">Warning 70%</div>
<div class="_background:warning-800!">Warning 80%</div>
<div class="_background:warning-900!">Warning 90%</div>
</template>
<template>
<div class="_background:danger-shade-150!">Danger Shade 15%</div>
<div class="_background:danger-shade-100!">Danger Shade 10%</div>
<div class="_background:danger-shade-50!">Danger Shade 5%</div>
<div class="_background:danger!">Danger</div>
<div class="_background:danger-tint-50!">Danger Tint 5%</div>
<div class="_background:danger-tint-100!">Danger Tint 10%</div>
<div class="_background:danger-tint-150!">Danger Tint 15%</div>
<hr />
<div class="_background:danger-50!">Danger 5%</div>
<div class="_background:danger-100!">Danger 10%</div>
<div class="_background:danger-200!">Danger 20%</div>
<div class="_background:danger-300!">Danger 30%</div>
<div class="_background:danger-400!">Danger 40%</div>
<div class="_background:danger-500!">Danger 50%</div>
<div class="_background:danger-600!">Danger 60%</div>
<div class="_background:danger-700!">Danger 70%</div>
<div class="_background:danger-800!">Danger 80%</div>
<div class="_background:danger-900!">Danger 90%</div>
</template>
<template>
<p class="_color:info!">Info</p>
<p class="_color:success!">Success</p>
<p class="_color:warning!">Warning</p>
<p class="_color:danger!">Danger</p>
</template>
Basic color utilities cover a range of standard colors such as red, blue, green, yellow, and more. These utilities allow you to apply general-purpose colors to your application elements.
Basic color utilities provide flexibility in your design system, enabling you to create visually engaging interfaces without compromising consistency.
<template>
<div class="_background:red!">Red</div>
<div class="_background:orange!">Orange</div>
<div class="_background:yellow!">Yellow</div>
<div class="_background:green!">Green</div>
<div class="_background:teal!">Teal</div>
<div class="_background:blue!">Blue</div>
<div class="_background:purple!">Purple</div>
<div class="_background:pink!">Pink</div>
</template>
<template>
<p class="_color:red!">Red</p>
<p class="_color:orange!">Orange</p>
<p class="_color:yellow!">Yellow</p>
<p class="_color:green!">Green</p>
<p class="_color:teal!">Teal</p>
<p class="_color:blue!">Blue</p>
<p class="_color:purple!">Purple</p>
<p class="_color:pink!">Pink</p>
</template>
Neutral color utilities in Inkline offer a selection of grayscale colors, ranging from white to black. These utilities are ideal for creating subtle contrasts, establishing hierarchy, and ensuring readability in your application.
Neutral color utilities help maintain a clean and professional appearance, making your application visually appealing and easy to navigate.
<template>
<div class="_background:white!">White</div>
<div class="_background:gray!">Gray</div>
<div class="_background:black!">Black</div>
<div class="_background:transparent!">Transparent</div>
<hr />
<div class="_background:gray-shade-150!">Gray Shade 15%</div>
<div class="_background:gray-shade-100!">Gray Shade 10%</div>
<div class="_background:gray-shade-50!">Gray Shade 5%</div>
<div class="_background:gray!">Gray</div>
<div class="_background:gray-tint-50!">Gray Tint 5%</div>
<div class="_background:gray-tint-100!">Gray Tint 10%</div>
<div class="_background:gray-tint-150!">Gray Tint 15%</div>
<hr />
<div class="_background:gray-50!">Gray 5%</div>
<div class="_background:gray-100!">Gray 10%</div>
<div class="_background:gray-200!">Gray 20%</div>
<div class="_background:gray-300!">Gray 30%</div>
<div class="_background:gray-400!">Gray 40%</div>
<div class="_background:gray-500!">Gray 50%</div>
<div class="_background:gray-600!">Gray 60%</div>
<div class="_background:gray-700!">Gray 70%</div>
<div class="_background:gray-800!">Gray 80%</div>
<div class="_background:gray-900!">Gray 90%</div>
</template>
<template>
<div class="_color:white!">White</div>
<div class="_color:gray!">Gray</div>
<div class="_color:black!">Black</div>
<div class="_color:transparent!">Transparent</div>
</template>