{"id":18859893,"url":"https://github.com/kashif-e/custom-design-system-compose-mutiplatform","last_synced_at":"2025-08-02T13:10:35.460Z","repository":{"id":257000410,"uuid":"857056619","full_name":"Kashif-E/Custom-Design-System-Compose-Mutiplatform","owner":"Kashif-E","description":"This is a Kotlin-based project that leverages Jetpack/Muliplatform Compose for building modern, native UI. It includes a custom Material theme with extended color palettes, typography, and spacing, providing a consistent and customizable design system for your application.","archived":false,"fork":false,"pushed_at":"2024-09-27T07:47:59.000Z","size":369,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T17:49:41.291Z","etag":null,"topics":["android","compose","composemultiplatform","designsystem","jetpack-compose","kotlin-multiplatform"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kashif-E.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-13T18:02:54.000Z","updated_at":"2025-05-29T17:24:47.000Z","dependencies_parsed_at":"2024-09-14T08:53:18.871Z","dependency_job_id":"1365eca4-faf0-4e06-9f8a-b13be346ea21","html_url":"https://github.com/Kashif-E/Custom-Design-System-Compose-Mutiplatform","commit_stats":null,"previous_names":["kashif-e/custom-design-system-compose-mutiplatform"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kashif-E/Custom-Design-System-Compose-Mutiplatform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kashif-E%2FCustom-Design-System-Compose-Mutiplatform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kashif-E%2FCustom-Design-System-Compose-Mutiplatform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kashif-E%2FCustom-Design-System-Compose-Mutiplatform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kashif-E%2FCustom-Design-System-Compose-Mutiplatform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kashif-E","download_url":"https://codeload.github.com/Kashif-E/Custom-Design-System-Compose-Mutiplatform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kashif-E%2FCustom-Design-System-Compose-Mutiplatform/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268394027,"owners_count":24243341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","compose","composemultiplatform","designsystem","jetpack-compose","kotlin-multiplatform"],"created_at":"2024-11-08T04:19:38.230Z","updated_at":"2025-08-02T13:10:35.389Z","avatar_url":"https://github.com/Kashif-E.png","language":"Kotlin","funding_links":["https://www.buymeacoffee.com/kashifmehmood","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":[],"sub_categories":[],"readme":"# Custom Design system Jetpack/Multiplatform Compose\n\n#### Want to support my work?\n\u003ca href=\"https://www.buymeacoffee.com/kashifmehmood\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee\u0026emoji=\u0026slug=kashifmehmood\u0026button_colour=FFDD00\u0026font_colour=000000\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=ffffff\" /\u003e\u003c/a\u003e\n\n\nComposeApp is a Kotlin-based project that leverages Jetpack/Multiplatform Compose for building modern, native UI. This project includes a custom Material theme with extended color palettes, typography, and spacing.\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n- [Theme Customization](#theme-customization)\n  - [Colors](#colors)\n  - [Typography](#typography)\n  - [Spacing](#spacing)\n- [Usage](#usage)\n\n## Getting Started\n\nTo get started with this project, follow the instructions below.\n\n### Prerequisites\n\n- [Android Studio](https://developer.android.com/studio) or [IntelliJ IDEA](https://www.jetbrains.com/idea/)\n- [Kotlin](https://kotlinlang.org/)\n- [Gradle](https://gradle.org/)\n\n### Installation\n\n1. Clone the repository:\n \n    git clone [https://github.com/Kashif-E/Custom-Design-System-Compose-Mutiplatform](https://github.com/Kashif-E/Custom-Design-System-Compose-Mutiplatform.git)\n  \n2. Open the project in Android Studio or IntelliJ IDEA.\n3. Sync the project with Gradle files.\n\n## Theme Customization\n\n### Colors\n\nThe color palette is defined in `colors/Colors.kt`:\n\n```kotlin\n@Immutable\ndata class ExtendedColors(\n    val primaryVariantLight: Color,\n    val primaryVariantLightBG: Color,\n    val errorLight: Color,\n    val primaryLight: Color,\n    val primaryLightBG: Color,\n    val lightGreenBG1: Color,\n    val primaryLightBG2: Color,\n    val neutralBlue: Color,\n    val neutralWhite: Color,\n    val colorWhiteTransparent: Color,\n    val greyLight: Color,\n    val grey: Color,\n    val greyMid: Color,\n    val fieldPlaceHolderText: Color,\n    val greyDark: Color,\n    val greyBg: Color,\n    val greyDarkText: Color,\n    val warning: Color,\n    val warningLight: Color,\n    val primaryDark: Color,\n    val youtube: Color,\n    val secondarySurface: Color,\n    val productViewBG: Color,\n    val primary: Color,\n    val  primaryVariant : Color,\n    val secondary : Color,\n    val secondaryVariant : Color,\n    val background : Color,\n    val backgroundTwo : Color,\n    val surface : Color,\n    val onPrimary : Color,\n    val onSecondary : Color,\n    val onBackground : Color,\n    val onSurface : Color,\n    val error : Color,\n    val onError : Color,\n    val toastBackground : Color,\n    val toastText : Color\n)\n```\n\n### Typography\n\nThe typography is defined in `typography/Typography.kt`:\n\n```kotlin\nval AppTypography = Typography(\n    h1 = TextStyle(\n        fontFamily = FontFamily.Default,\n        fontWeight = FontWeight.Bold,\n        fontSize = 30.sp\n    ),\n    body1 = TextStyle(\n        fontFamily = FontFamily.Default,\n        fontWeight = FontWeight.Normal,\n        fontSize = 16.sp\n    )\n)\n```\n\n### Spacing\n\nThe spacing is defined in `spacing/Spacing.kt`:\n\n```kotlin\ndata class ExtendedSpacing (\n    val xxs: Dp = 2.dp,\n    val xs: Dp = 4.dp,\n    val s: Dp = 8.dp,\n    val m: Dp = 12.dp,\n    val semiLargeSpacing: Dp = 14.dp,\n    val l: Dp = 16.dp,\n    val lHalf: Dp = 16.5.dp,\n    val xl: Dp = 20.dp,\n    val xxl: Dp = 24.dp,\n    val iconSmall: Dp = 20.dp,\n    val pillIcon: Dp = 15.dp\n)\n```\n\n## Usage\n\nTo use the custom theme in your Compose UI, you can use the `MaterialTheme` composable with `CompositionLocalProvider` to provide the custom theme values.:\n\n```kotlin\n // CompositionLocalProvider is used to provide custom theme values to the Compose hierarchy.\nCompositionLocalProvider(\n    // Provide the extended colors based on the darkTheme parameter.\n    LocalAppColors provides lightExtendedColors,\n    // Provide the custom shapes defined by appShapes.\n    LocalAppShapes provides appShapes,\n    // Provide the custom spacing values.\n    LocalAppSpacing provides ExtendedSpacing(),\n\n    ) {\n    // Apply the MaterialTheme with the custom typography and the content provided in the composable.\n    MaterialTheme(\n        typography = Type.typography,\n        content = content,\n        colors = getColorPallete(darkTheme)\n    )\n}\n```\n\nExample usage in a composable function:\n\n```kotlin\n@Composable\nfun CustomCard() {\n    val colors = LocalAppColors.current\n    val shapes = LocalAppShapes.current\n    val spacing = LocalAppSpacing.current\n\n    Card(\n        backgroundColor = colors.surface,\n        contentColor = colors.onSurface,\n        shape = shapes.cardShape,\n        modifier = Modifier\n            .padding(spacing.m)\n            .fillMaxWidth()\n    ) {\n        Column(\n            modifier = Modifier\n                .padding(spacing.l)\n        ) {\n            Text(\n                text = \"Card Title\",\n                color = colors.primary,\n                modifier = Modifier.padding(bottom = spacing.s)\n            )\n            Text(\n                text = \"This is an example of a card using extended spacing, colors, and shapes.\",\n                color = colors.onSurface\n            )\n        }\n    }\n}\n```\n\n### Ending Note\nThank you for exploring this Sample! I hope this project helps you get started with Compose and inspires you to create beautiful, modern UIs. \n\nHappy coding! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkashif-e%2Fcustom-design-system-compose-mutiplatform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkashif-e%2Fcustom-design-system-compose-mutiplatform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkashif-e%2Fcustom-design-system-compose-mutiplatform/lists"}