Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Can't get style mixins to work #12

@malkomalko

Description

@malkomalko
Prime::Styles.define :_mixin do
  style :button,
    font: :app_light.uifont(32),
    height: 60,
    layer: {
      corner_radius: 8.0
    },
    title_color: :app_gray_3,
    top: 120,
    width: 300
end

Prime::Styles.define :home do
  style :title,
    font: :app_light.uifont(32),
    text_alignment: :center,
    text_color: :app_primary_1

  style :login, mixins: [:button],
    background_color: :app_primary_1

  style :register, mixins: [:button],
    background_color: :app_primary_2
end

Any ideas? also when I had everything duplicated corner_radius didn't seem to get applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions