Core concepts
Colors
Using and customising the colour palette in Sprig CSS projects.
Sprig CSS includes a vast, beautiful colour palette out of the box, carefully crafted by expert designers and suitable for a wide range of different design styles.
Name | 50 | 500 | 950 |
|---|---|---|---|
slate |
|
|
|
teal |
|
|
|
moss |
|
|
|
amber |
|
|
|
Every colour in the default palette includes 11 steps, with 50 being the lightest and 950 being the darkest.
Working with colours
Using colour utilities
<div class="flex items-center gap-4 rounded-lg bg-white p-6 shadow-md outline outline-black/5 dark:bg-gray-800">
<span class="inline-flex shrink-0 rounded-full border border-pink-300 bg-pink-100 p-2 dark:border-pink-300/10 dark:bg-pink-400/10">
<svg class="size-6 stroke-pink-700 dark:stroke-pink-500"><!-- ... --></svg>
</span>
<p class="text-gray-700 dark:text-gray-400">
<span class="font-medium text-gray-950 dark:text-white">Sam Ortega</span> mentioned you in <span class="font-medium text-gray-950 dark:text-white">Logo redesign</span>
</p>
</div>Adjusting opacity
Adjust the opacity of a colour using syntax like bg-black/75, where 75 sets the alpha channel.