Use the <event-count> Web Component in HTML code:

event attribute Date notation: event="YYYY-MM-DD"

🎆 New Year! 🍾 🎆 New Year! 🍾 Danny's age Y2K38 in Spanish Y2K38 in Dutch

Set styles with CSS properties

<style>
--event-count-event-background: red;
    --event-count-event-color: white;
    --event-count-count-background: teal;
    --event-count-count-font: 2.5rem Arial;
    --event-count-count-color: gold;
    --event-count-text-font: .7rem Arial;
</style>

Style shadowDOM with ::part(...)

::part(X) can only style Nodes with attribute part=X inside shadowDOM
<style>
event-count::part(event) {
background: gold;
color: blue;
}
event-count::part(count) {
text-shadow: 2px 2px 2px black;
}
event-count::part(year) {
color: beige;
    }
</style>
styled with ::part




<event-count> minified GZIP Filesize is small