kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
82 stars 22 forks source link

[Enhancement] Investigate and align Elevation styles for code and design #2960

Closed henrikvoetmand closed 5 months ago

henrikvoetmand commented 1 year ago

Describe the enhancement

Align elevation specs for code and design.

Describe the solution you'd like

In the "new" design we have adjustet the design to be more "flat" - turned down the elevation on cards and other components.

For this to work we need to adjust some of the elevation values.

In the Sketch design file we have the current elevations: z0 - Flat z2 - box-shadow: 0 1px 24px 0 rgba(28,28,28,0.04); z4 - box-shadow: 0 0 5px 0 rgba(28,28,28,0.04), 0 10px 24px -10px rgba(28,28,28,0.15); z8 - box-shadow: 0 0 5px 0 rgba(28,28,28,0.08), 0 20px 30px -15px rgba(28,28,28,0.30);

Before we align the elevation values we need to investigate where theese elevations are used in the code.

Example: z0 and z2 are used on cards, form fields, buttons z4 should be used on pop-out layers "cards" (Menu, dropdown, calender....) z8 Modals and other large elements.

We need to consider elevation on small elements (Radio, Range knob, white badge) If they have the right elevation.

Have you considered any alternatives?

Nope

Are there any additional context?

Elevation


Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Refinement

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review:

jakobe commented 5 months ago

@henrikvoetmand here's the findings of the investigation:

Currently only z2 + z4 is available as possible values (z8 has been removed)