Orange-OpenSource / ouds-flutter

Flutter library of reusable graphical components for Android and iOS for Orange Unified Design System
https://flutter.unified-design-system.orange.com/
MIT License
5 stars 1 forks source link

Tokens: Opacity #22

Open julien-deramond opened 2 months ago

julien-deramond commented 2 months ago

Description

The aim of this issue is to study and implement the opacity tokens taking into account the cohesive multi-platform approach, the customization by libraries inheriting OUDS Flutter, but also what we're using for OUDS Flutter: Flutter, Material 3, etc.

Reminder: there will be in the end 3 layers of tokens:

Tokens: Opacity

Raw primitive values

Token name Token value
opacity-0 0
opacity-100 0.04
opacity-200 0.08
opacity-300 0.16
opacity-400 0.24
opacity-500 0.32
opacity-600 0.48
opacity-700 0.64
opacity-800 0.80
opacity-900 1

Semantic applications

Token name Token value
opacity-transparent opacity-0
opacity-weaker opacity-100
opacity-weak opacity-300
opacity-medium opacity-500
opacity-strong opacity-700
opacity-opaque opacity-900

Component applications

⚠️ This is just an example, it doesn't need to be implemented for now, it will be when the modals will be tackled

Token name Token value
overlays-modal-backdrop-opacity opacity-strong

Study

Technical details

TODO