1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-1086 Design | Sample app, compose + doc (#3106)

This commit is contained in:
Konstantin Ivanov 2023-04-19 17:50:39 +02:00 committed by GitHub
parent 06665ecda9
commit f2d0748831
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 361 additions and 3 deletions

26
docs/design_system.md Normal file
View file

@ -0,0 +1,26 @@
Typography and buttons are separated into individual styles. The project utilizes styles from both XML and Jetpack Compose.
Typography link: https://www.figma.com/file/vgXV7x2v20vJajc7clYJ7a/Mobile-Design-System?node-id=1587%3A54&t=0D7rA21FfRyKOF1l-1
Buttons link: https://www.figma.com/file/vgXV7x2v20vJajc7clYJ7a/Mobile-Design-System?node-id=1588%3A59&t=0D7rA21FfRyKOF1l-1
Key points for non-Compose styles:
Text styles are located in the design_system file (android-anytype/core-ui/src/main/res/values/design_system.xml).
Example: TextView.ContentStyle.Headline.Title
Button styles are also located in the design_system file.
Example: Button.Primary.Medium
Custom buttons are defined in the DesignSystemButtons class within the core-ui module.
Example: ButtonPrimaryXSmall
Key points for Compose styles:
Typography is found in the TypographyCompose.kt class within the core-ui module.
Example: BodyCalloutMedium
Composable button templates are also located in the DesignSystemButtons class within the core-ui module.
Example: ButtonPrimary
All previews can be viewed through the Sample app, DesignSystemActivity.