Skip to content

Instantly share code, notes, and snippets.

View ngocjohn's full-sized avatar
💭
🍜

Viet Ngoc ngocjohn

💭
🍜
  • 17:09 (UTC +01:00)
View GitHub Profile
@Mariusthvdb
Mariusthvdb / card-mod-themes.yaml
Last active December 6, 2025 18:50
card-mod-themes
##########################################################################################
# https://community.home-assistant.io/t/card-mod-super-charge-your-themes/212176/419
# My 'Custom header' card-mod theme:
# - Enables individual color customization for view icons.
# - Provides an optional replacement for the default three-dots options menu.
# - Supports configuration of left-side menu icons, including animations, color schemes,
# and notification badges.
# - Allows definition of custom background images or colors to override the default
# theme background.
#
@thomasloven
thomasloven / my-custom-card.js
Last active November 28, 2025 15:13
Simplest custom card
// Simplest possible custom card
// Does nothing. Doesn't look like anything
class MyCustomCard extends HTMLElement {
setConfig(config) {
// The config object contains the configuration specified by the user in ui-lovelace.yaml
// for your card.
// It will minimally contain:
// config.type = "custom:my-custom-card"