Material3 - boostcampwm-2024/and04-Nature-Album GitHub Wiki

์ƒ‰ ๊ทœ์น™

https://m3.material.io/styles/color/roles

  • Surface โ€“ ๋ฐฐ๊ฒฝ์ด๋‚˜ ํ™”๋ฉด์˜ ํฌ๊ณ  ๋‚ฎ์€ ๊ฐ•์กฐ ์˜์—ญ์— ์‚ฌ์šฉ๋˜๋Š” ์—ญํ• .
    • ์˜ˆ) card, sheet, dialog
  • Primary, Secondary, Tertiary โ€“ ์‹œ๊ฐ์  ๊ฐ•์กฐ ์—ญํ•  (์ฃผ๋ชฉํ•ด์•ผํ•  ์ปดํฌ๋„ŒํŠธ).
    • primary : ๊ฐ€์žฅ ์ค‘์š”ํ•œ ์š”์†Œ(fab),
    • secondary : ๋ณด์กฐ ๊ฐ•์กฐ(filter chips),
    • tertiary : ์ตœ์ข… ๋ณด์กฐ ๊ฐ•์กฐ
  • Container โ€“ ๋ฒ„ํŠผ๊ณผ ๊ฐ™์€ ๋ฐฐ๊ฒฝ์— ์ฑ„์šฐ๊ธฐ ์ƒ‰์ƒ์œผ๋กœ ์‚ฌ์šฉ๋˜๋Š” ์—ญํ• .
    • ํ…์ŠคํŠธ๋‚˜ ์•„์ด์ฝ˜์— ์‚ฌ์šฉ ๊ธˆ์ง€.
  • On โ€“ ์ด ์šฉ์–ด๋กœ ์‹œ์ž‘ํ•˜๋Š” ์—ญํ• ์€ ํŽ˜์–ด๋ง๋œ ๋ถ€๋ชจ ์ƒ‰์ƒ ์œ„์— ์žˆ๋Š” ํ…์ŠคํŠธ๋‚˜ ์•„์ด์ฝ˜ ์ƒ‰์ƒ์„ ์˜๋ฏธ.
    • primary(๋ฒ„ํŠผ) ์œ„์— onPrimary(ํ…์ŠคํŠธ)
  • Variant โ€“ ์ด ์šฉ์–ด๋กœ ๋๋‚˜๋Š” ์—ญํ• ์€ ๋ณ€ํ˜•๋˜์ง€ ์•Š์€ ์Œ์— ๋น„ํ•ด ๋œ ๊ฐ•์กฐ๋œ ๋Œ€์•ˆ์„ ์ œ๊ณต.
    • ์‚ฌ์šฉ์ž์—๊ฒŒ ๋œ ์ฃผ๋ชฉ๋˜์ง€๋งŒ ๊ด€๋ จ์„ฑ์ด ์žˆ๋Š” ๋ณด์กฐ ์š”์†Œ์— ์‚ฌ์šฉ
    • ์˜ˆ) outline : ํ…์ŠคํŠธ ํ•„๋“œ์˜ ํ…Œ๋‘๋ฆฌ ๊ฐ™์€ ์ค‘์š”ํ•œ ๊ฒฝ๊ณ„์„ , outline variant : ์žฅ์‹ ๊ตฌ๋ถ„์„ 
  • Inverse - ์ฃผ๋ณ€ UI์˜ ์ƒ‰์ƒ๊ณผ๋Š” ๋ฐ˜๋Œ€๋˜๋Š” ์ƒ‰์„ ์ ์šฉํ•˜์—ฌ ๋Œ€๋น„ ํšจ๊ณผ ์ƒ์„ฑ.

Shapes

https://m3.material.io/styles/shape/shape-scale-tokens

Shape scale

image

Shape tokens

image

Define shapes

Compose๋Š” M3ย [Shapes](https://developer.android.com/reference/kotlin/androidx/compose/material3/Shapes?hl=ko)ย ํด๋ž˜์Šค์— ํ™•์žฅ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์ œ๊ณตํ•˜์—ฌ ์ง€์›

6๊ฐ€์ง€์˜ ํฌ๊ธฐ ์ง€์›

  • Extra Small
  • Small
  • Medium
  • Large
  • Extra Large

์‚ฌ์šฉ ์˜ˆ์‹œ

Card(shape = MaterialTheme.shapes.medium) { /* card content */ }