Skip to content

micku/mana-cost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mana-cost

A simple CSS based on Goblin Hero's vecor mana symbols for Magic: The Gathering.

This is useful for web applications.

Usage

Simply grab the SVG found in images/ and the CSS found in css/, then start using the .mana class.

Classes are named to reflect the mana costs in mtgjson, with only alphanumeric chars.

For example:

{1}{W/U}{W/U}

Can be translated to:

<span class="mana medium s1"></span>
<span class="mana medium swu"></span>
<span class="mana medium swu"></span>

Notes

This can not be considered as tested, I wrote this in a hour of free time and plan to use in a future project. Any comments, issues or pull requests will be appreciated!

I have not yet included large styles for non-square icons.

About

Magic: The Gathering's SVG mana costs for the web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages