Skip to content

Implement core shadow tokens #27277

@marcinbauer85

Description

@marcinbauer85

Description

Please implement these core tokens required to define reusable shadow styles. Use PX for units.

{
    "core": {
          "ha-shadow-offset-y-md": 4,
          "ha-shadow-offset-y-sm": 2,
          "ha-shadow-offset-y-lg": 8,
          "ha-shadow-blur-sm": 4,
          "ha-shadow-blur-md": 8,
          "ha-shadow-blur-lg": 12,
          "ha-shadow-spread-sm": 0,
          "ha-shadow-spread-md": 0,
          "ha-shadow-spread-lg": 0,
          "ha-shadow-offset-x-lg": 0,
          "ha-shadow-offset-x-sm": 0,
          "ha-shadow-offset-x-md": 0
    },
    "semantic": {
        "light": {
            "ha-color-shadow": "#00000033" // 20% opacity
        },
        "dark": {
            "ha-color-shadow": "#000000b2" // 70% opacity
        }
    }
}

Compound shadow styles:

ha-shadow-sm
ha-shadow-md
ha-shadow-lr

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions