HTML + Tailwind support!
Adding Styles & HTML
Flashcards don't have to be plain text! KardSkript supports HTML tags and Tailwind CSS classes, so you can experiment with different looks and layouts.
-
Wrap your text in simple HTML like
<h2>or<p>. -
Add Tailwind classes such as
text-blue-600orfont-bold. - Combine it with
bg_colorfor colorful cards.
flash({
front : "<h2 class='text-xl font-bold text-blue-600'>Hello, KardSkript!</h2>",
back : "<p class='text-green-600'>You can use <b>HTML</b> and <i>Tailwind</i> here!</p>",
bg_color : "#fef3c7", // soft yellow
})
flash({
front : "<p class='text-pink-500'>✨ Styling is fun!</p>",
back : "<ul class='list-disc list-inside text-sm text-gray-700'>
<li>Use colors</li>
<li>Add fonts</li>
<li>Experiment freely</li>
</ul>",
bg_color : "#e0f2fe", // light sky blue
})