Skip to content

adevinta/spark-android

Repository files navigation

Spark Android Design System

Spark Design System logo

👷 Build → 🧑‍🔬 Test → 🕵️ Lint

Spark Design System is based on Material 3 Compose artifact described on the official documentation and maintained by Google developers and designers.

But these native components and tokens are overridden to respect Spark's Visual Identity. You'll find the design specifications and technical information for supported platforms by Adevinta on spark.adevinta.com.

The demo app is not currently available, but we plan to publish it in the near future.

🚀 Getting Started

A SparkTheme is available from where you can get all colors, typographies and shapes in your composable hierarchy. Note that this theme is mandatory if you want to use any Spark composable. Otherwise, a runtime error will be thrown.

SparkTheme {
    // Your composable declarations
}

Installation

Add the main Spark dependency: Maven Central Sonatype Nexus (Snapshots)

dependencies {
    // Import the Spark BoM
    implementation(platform("com.adevinta.spark:spark-bom:<version>"))

    // Declare dependencies without versions
    implementation("com.adevinta.spark:spark")
    implementation("com.adevinta.spark:spark-icons")
}

Contributing

Please take a look at the contribution guide to setup your dev environment and get a list of common tasks used in this project, as well as the Code of conduct.

License

Copyright (c) 2023 Adevinta

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.