संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Wear Material 3 एक्सप्रेशनिव कलर सिस्टम में, मुख्य कॉम्पोनेंट के लिए तीन ऐक्सेंट लेयर (प्राइमरी, सेकंडरी, और टियररी) और दो न्यूट्रल सर्फ़ेस लेयर का इस्तेमाल किया जाता है. हर भूमिका के लिए, एक जैसा कंट्रास्ट वाला रंग उपलब्ध होता है. इससे किसी भी थीम में एक जैसा अनुभव देने के लिए, बेहतर और आसानी से इस्तेमाल किए जा सकने वाले रंगों के कॉम्बिनेशन इस्तेमाल किए जा सकते हैं.
भूमिकाओं के साथ कलर थीम का उदाहरण.
रंग के हिसाब से भूमिकाएं क्या होती हैं?
कलर रोल, पेंट-बाय-नंबर कैनवस में मौजूद "नंबर" की तरह होते हैं. ये यूज़र इंटरफ़ेस (यूआई) के एलिमेंट और रंग के बीच का लिंक होते हैं.
कलर रोल, Material कॉम्पोनेंट पर मैप किए जाते हैं: स्टैटिक बेसलाइन स्कीम या डाइनैमिक कलर का इस्तेमाल करने पर भी, आपको इन कलर रोल का इस्तेमाल करना होगा. अगर आपके प्रॉडक्ट में कस्टम कॉम्पोनेंट शामिल हैं, तो उन्हें रंग की भूमिकाओं के इस सेट से ठीक से मैप करना होगा.
रंग की भूमिकाएं, सुलभता के लिए काम करती हैं: कलर सिस्टम, आसानी से ऐक्सेस किए जा सकने वाले रंगों के जोड़े पर आधारित है. इन रंगों के जोड़े से, कम से कम 3:1 रंग का कंट्रास्ट मिलता है.
कलर रोल को टोकन में बदला जाता है: डिज़ाइन और कोड में भूमिकाओं को टोकन के ज़रिए लागू किया जाता है. डिज़ाइन टोकन, डिज़ाइन से जुड़े छोटे और फिर से इस्तेमाल किए जा सकने वाले फ़ैसले को दिखाता है. यह डिज़ाइन सिस्टम के विज़ुअल स्टाइल का हिस्सा होता है.
ज़रूरी शब्द
यहां कुछ मुख्य शब्द दिए गए हैं. ये आपको रंग के हिसाब से भूमिकाओं के नामों में दिखेंगे:
सर्फ़स: यह भूमिका, स्क्रीन के बैकग्राउंड और बड़े, कम अहमियत वाले हिस्सों के लिए इस्तेमाल की जाती है.
प्राइमरी, सेकंडरी, और टियररी: एक्सेंट कलर की भूमिकाएं, फ़ोरग्राउंड एलिमेंट पर ज़ोर देने या उन पर कम ज़ोर देने के लिए इस्तेमाल की जाती हैं.
कंटेनर: बटन जैसे फ़ोरग्राउंड एलिमेंट के लिए, भरने के रंग के तौर पर इस्तेमाल की जाने वाली भूमिकाएं. इनका इस्तेमाल टेक्स्ट या आइकॉन के लिए नहीं किया जाना चाहिए.
चालू है: इस शब्द से शुरू होने वाली भूमिकाओं से, टेक्स्ट या आइकॉन के लिए एक रंग दिखता है. यह रंग, पैरंट कलर के साथ दिखता है. उदाहरण के लिए, प्राइमरी पर, टेक्स्ट और आइकॉन के लिए प्राइमरी फ़िल कलर का इस्तेमाल किया जाता है.
वैरिएंट: इस शब्द पर खत्म होने वाली भूमिकाएं, वैरिएंट के बिना जोड़ी गई भूमिकाओं के मुकाबले कम अहमियत वाली होती हैं. उदाहरण के लिए, आउटलाइन वैरिएंट, आउटलाइन कलर का कम हाइलाइट किया गया वर्शन होता है.
मुख्य भूमिकाएं
प्राइमरी भूमिकाओं का इस्तेमाल, यूज़र इंटरफ़ेस (यूआई) के मुख्य कॉम्पोनेंट के लिए किया जाता है. जैसे, ऐज के हिसाब से साइज़ में बदलने वाले बटन, मुख्य बटन, ऐक्टिव स्टेटस, और टोन वाले बटन स्टाइल पर आइकॉन.
प्राइमरी
मुख्य
On-Primary
यूज़र इंटरफ़ेस (यूआई) में सबसे ज़रूरी कार्रवाइयों के लिए, प्राइमरी भूमिका का इस्तेमाल करें. जैसे, प्राइमरी बटन या कॉल-टू-ऐक्शन. यह रंग अलग दिखना चाहिए और उपयोगकर्ता को मुख्य इंटरैक्शन के बारे में बताने के लिए, तुरंत पहचाना जा सकता होना चाहिए.
Primary-Dim
Primary-Dim
On-Primary
आम तौर पर, धुंधला करने की भूमिकाओं का इस्तेमाल उन एलिमेंट के लिए किया जाता है जिन्हें मुख्य कार्रवाई से अलग दिखाना होता है. हालांकि, इन पर उपयोगकर्ता को तुरंत ध्यान देने या इंटरैक्ट करने की ज़रूरत नहीं होती.
Primary-Container
Primary-Container
On-Primary-Container
सेक्शन या चुनी गई स्थितियों को हाइलाइट करने के लिए, कार्ड या मॉडल जैसे बैकग्राउंड एलिमेंट के लिए प्राइमरी कंटेनर लागू करें. इससे यूज़र इंटरफ़ेस (यूआई) में मौजूद अहम कॉन्टेंट या चल रही गतिविधियों पर ध्यान खींचने में मदद मिलती है.
अन्य भूमिकाएं
सेकंडरी भूमिकाओं का इस्तेमाल, यूज़र इंटरफ़ेस (यूआई) के उन मुख्य कॉम्पोनेंट के लिए किया जाता है जो प्राइमरी भूमिका के मुकाबले उतने ज़रूरी नहीं होते. हालांकि, उन्हें भी हाइलाइट करने की ज़रूरत होती है. लेआउट में प्राइमरी और सेकंडरी का इस्तेमाल एक साथ किया जा सकता है, ताकि फ़ोकस और अलग-अलग चीज़ों को दिखाया जा सके.
सेकंडरी
Secondary
On-Secondary
ज़्यादा यूज़र इंटरफ़ेस (यूआई) वाले इलाकों में कार्रवाइयों के लिए, सेकंडरी भूमिका का इस्तेमाल करें. जैसे, सेकंडरी बटन या साथ में की जाने वाली कार्रवाइयां. यह कॉन्टेंट को आसानी से दिखने देता है. साथ ही, कॉम्प्लेक्स लेआउट में मुख्य एलिमेंट को छिपाने से बचाता है.
सेकंडरी-डिम
Secondary-Dim
Secondary
सेकंडरी-डिम रोल, घने इलाकों में पैसिव एलिमेंट के लिए म्यूट कंट्रास्ट देता है. यह सेकंडरी कलर को बेहतर बनाता है. साथ ही, यूज़र इंटरफ़ेस (यूआई) को साफ़ रखता है और उपयोगकर्ताओं को नेविगेट करने में मदद करता है.
Secondary-Container
Secondary-Container
On-Secondary-Container
ज़्यादा एलिमेंट वाले लेआउट में सेकंडरी एलिमेंट व्यवस्थित करने के लिए, सेकंडरी-कंटेनर लागू करें. इससे कॉन्टेंट को व्यवस्थित और अलग-अलग रखा जाता है. इससे यह पक्का होता है कि सेकंडरी कॉन्टेंट अलग दिखे, लेकिन मुख्य कॉन्टेंट के मुकाबले ज़्यादा न दिखे.
तीसरे लेवल की भूमिकाएं
तीसरे दर्जे की भूमिकाओं का इस्तेमाल, प्राइमरी और सेकंडरी रंगों को संतुलित करने या इनपुट फ़ील्ड जैसे किसी एलिमेंट पर ज़्यादा ध्यान देने के लिए, एक्सेंट के रंगों के साथ कंट्रास्ट करने के लिए किया जाता है.
तीसरे दर्जे की भूमिकाओं से यह भी पता चलता है कि कॉन्टेंट कब बदलता है या कब उसे हाइलाइट किया जाना चाहिए. जैसे, किसी लक्ष्य को हासिल करना.
तीसरा
Tertiary
On-Tertiary
तीसरे लेवल की भूमिका का इस्तेमाल, मुख्य एलिमेंट पर ध्यान खींचने के लिए किया जाता है. तीसरे लेवल की भूमिकाएं, खास तौर पर उन कॉम्पोनेंट के लिए असरदार होती हैं जिन्हें अलग दिखना चाहिए. जैसे, बैज, स्टिकर या खास कार्रवाई वाले एलिमेंट.
टर्शीयरी-डिम
Tertiary-Dim
Tertiary
तीसरे दर्जे की कार्रवाइयों से जुड़े बटन या कार्रवाइयों के लिए, तीसरे दर्जे की डिम रोल का इस्तेमाल करें. हालांकि, इन पर तुरंत फ़ोकस करने की ज़रूरत नहीं होती.
टर्शियरी-कंटेनर
Tertiary-Container
On-Tertiary-Container
ऐसे बैकग्राउंड के लिए, तीसरे लेवल का कंटेनर लागू करें जिनमें तीसरे लेवल से जुड़ा कॉन्टेंट होता है. जैसे, बैज या स्टिकर का कलेक्शन. यह यूज़र इंटरफ़ेस (यूआई) में संतुलन और स्ट्रक्चर बनाए रखते हुए, तीसरे दर्जे के एलिमेंट पर ज़ोर देता है.
सिमेंटिक रोल
गड़बड़ी-लाल का इस्तेमाल, गड़बड़ी, मिटाने, और आपातकालीन स्थिति से जुड़ी किसी भी चीज़ के तौर पर गंभीर समस्याओं को दिखाने के लिए किया जाता है. इसे समस्याओं या चेतावनियों पर तुरंत ध्यान खींचने के लिए डिज़ाइन किया गया है. इससे, उपयोगकर्ता उन जगहों की तुरंत पहचान कर सकते हैं जहां सुधार की ज़रूरत है.
ऐक्सेस करने से जुड़े मानकों को पूरा करने के लिए, गड़बड़ी के लाल रंग का बैकग्राउंड के मुकाबले कंट्रास्ट काफ़ी होना चाहिए. इससे यह पक्का किया जा सकता है कि यह रंग साफ़ तौर पर दिखे और चेतावनियों या सफलता के मैसेज जैसे अन्य स्टेटस के रंगों से अलग हो.
गड़बड़ी
कोई गड़बड़ी हुई
गड़बड़ी होने पर
यह सेमेटिक है, लेकिन थोड़ा सा थीम के रंग में लाल है. इससे हटाने, मिटाने, बंद करने या खारिज करने की कार्रवाइयों का पता चलता है. जैसे, 'दिखाने के लिए स्वाइप करें'. गड़बड़ी के लिए, कम ज़रूरी और कम चेतावनी वाले रंग के विकल्प के तौर पर जोड़ा गया है.
Error-Dim
Error-Dim
गड़बड़ी होने पर
यह सेमेटिक है, लेकिन थोड़ा सा थीम वाला लाल रंग है. इससे, ज़्यादा प्राथमिकता वाली गड़बड़ियों या आपातकालीन कार्रवाइयों का पता चलता है. जैसे, सुरक्षा से जुड़ी चेतावनियां, डायलॉग ओवरले काम न करना या रोकें बटन.
Error-Container
Error-Container
On-Error-Container
गड़बड़ी की स्थिति का इस्तेमाल करने वाले कॉम्पोनेंट के लिए, कम प्रमुख कंटेनर रंग. यह किसी गड़बड़ी की मौजूदा स्थिति के बारे में भी बता सकता है. यह स्थिति, भरी हुई स्थिति के मुकाबले कम इंटरैक्टिव होती है. जैसे, आपातकालीन स्थिति में शेयर करने के लिए बटन या कार्ड या ओवरले डायलॉग के काम न करने पर.
सतह के कंटेनर और ऊंचाई
यूज़र इंटरफ़ेस (यूआई) में डेप्थ और एलिवेशन तय करने के लिए, सर्वफ़ेस कंटेनर अहम होते हैं. ये रंग के ज़रिए स्ट्रक्चर और हैरारकी देते हैं. साथ ही, कॉम्पोनेंट की अहमियत और इंटरैक्शन के आधार पर, उन्हें अलग-अलग दिखाने में मदद करते हैं.
Surface-Container-Low
Surface-Container-Low
ऑन-सर्फ़ेस
On-Surface-Variant
यह ऐसे बड़े किए गए कंटेनर के लिए बेहतरीन है जिसे Surface-Container के नीचे रखना ज़रूरी है. जैसे, सूचना में बड़ा किया गया कार्ड. इसका इस्तेमाल, ऐसे कार्ड के लिए भी किया जा सकता है जिनमें इंटरैक्टिव सुविधा नहीं होती. हालांकि, इनमें भी कॉन्टेंट को कॉन्टेंट कंटेनमेंट से फ़ायदा मिलता है.
Surface-Container
Surface-Container
ऑन-सर्फ़ेस
On-Surface-Variant
ज़्यादातर एलिमेंट के लिए, कंटेनर का डिफ़ॉल्ट रंग. यह न तो बहुत ज़्यादा और न ही बहुत कम उभार देता है. इसलिए, यह सामान्य यूज़र इंटरफ़ेस (यूआई) कॉम्पोनेंट के लिए सही है.
Surface-Container-High
Surface-Container-High
ऑन-सर्फ़ेस
On-Surface-Variant
यह उन कॉम्पोनेंट के लिए सबसे सही है जिन्हें सबसे ऊपर या Surface-Container के साथ इस्तेमाल करना है. इस रंग से यूज़र इंटरफ़ेस (यूआई) के अहम हिस्सों पर फ़ोकस करने और उन्हें क्रम से लगाने में मदद मिलती है.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Color roles and tokens\n\nThe Wear Material 3 Expressive color system employs three accent layers\n(primary, secondary, tertiary) for key components and two neutral surface\nlayers. Each role offers a range of values with consistent contrast, enabling\nexpressive yet accessible color combinations for a unified experience across any\ntheme.\nAn example of a color theme with roles.\n\nWhat are color roles?\n---------------------\n\nColor roles are like the \"numbers\" in a paint-by-number canvas. They're the\nconnective tissue between elements of the UI and what color goes where.\n\n- **Color roles are mapped to Material components:** You'll use these color roles whether you're using the static baseline scheme or dynamic color. If your product contains custom components, they'll need to be properly mapped to this set of color roles.\n- **Color roles support accessibility:** The color system is built on more accessible color pairings. These color pairs provide a minimum of 3:1 color contrast.\n- **Color roles are tokenized:** Roles are implemented in design and code through tokens. A design token represents a small, reusable design decision that's part of a design system's visual style.\n\nEssential terms\n---------------\n\nHere are key terms you'll see in the names of color roles:\n\n- **Surface:** A role used for backgrounds and large, low-emphasis areas of the screen.\n- **Primary, Secondary, Tertiary:** Accent color roles used to emphasize or de-emphasize foreground elements.\n- **Container:** Roles used as a fill color for foreground elements like buttons. They shouldn't be used for text or icons.\n- **On:** Roles starting with this term indicate a color for text or icons on top of its paired parent color. For example, on primary is used for text and icons against the primary fill color.\n- **Variant:** Roles ending with this term offer a lower-emphasis alternative to its non-variant pair. For example, outline variant is a less emphasized version of the outline color.\n\nPrimary roles\n-------------\n\n\nPrimary roles are used for key components across the UI, such as the Edge\nHugging buttons, prominent buttons, active states, and icons on the tonal button\nstyles. \n\n\u003cbr /\u003e\n\n\n**Primary**\n\n1. Primary\n2. On-Primary\n\nUse the Primary role for the most important actions in the UI, like primary\nbuttons or calls to action. This color should stand out and be instantly\nrecognizable to guide the user toward key interactions. \n\n**Primary-Dim**\n\n1. Primary-Dim\n2. On-Primary\n\nDim roles are typically used for elements that need to be visually distinct from\nthe primary action but don't require immediate user attention or interaction. \n\n**Primary-Container**\n\n1. Primary-Container\n2. On-Primary-Container\n\nApply Primary Container for background elements like cards or modals to\nhighlight sections or selected states. It helps draw attention to important\ncontent or ongoing activities within the UI.\n\n\u003cbr /\u003e\n\nSecondary roles\n---------------\n\n\nSecondary roles are used for key components across the UI, which are not as\nimportant as the primary role, but still need to stand out. Primary and\nsecondary can be used together in layouts to create differentiation and focus. \n\n\u003cbr /\u003e\n\n\n**Secondary**\n\n1. Secondary\n2. On-Secondary\n\nUse the Secondary role for supporting actions in areas with dense UI, such as\nsecondary buttons or complementary actions. It maintains visibility without\novershadowing primary elements in complex layouts. \n\n**Secondary-Dim**\n\n1. Secondary-Dim\n2. Secondary\n\nThe Secondary-Dim role offers a muted contrast for passive elements in dense\nareas. It complements the secondary color while adding subtle depth, keeping the\nUI clean and helping users navigate. \n\n**Secondary-Container**\n\n1. Secondary-Container\n2. On-Secondary-Container\n\nApply Secondary-Container for organizing secondary elements in dense layouts. It\ncreates structure and separation, ensuring secondary content is distinguishable\nbut not dominant.\n\n\u003cbr /\u003e\n\nTertiary roles\n--------------\n\n\nTertiary roles are used for contrasting accents to balance primary and secondary\ncolors or bring heightened attention to an element such as an input field.\nTertiary roles can also help indicate when content changes or should stand out,\nsuch as a goal being reached. \n\n\u003cbr /\u003e\n\n\n**Tertiary**\n\n1. Tertiary\n2. On-Tertiary\n\nThe Tertiary role is used for drawing attention to key elements. Tertiary roles\nare particularly effective for components that need to stand out, such as\nbadges, stickers, or special action elements. \n\n**Tertiary-Dim**\n\n1. Tertiary-Dim\n2. Tertiary\n\nUse the Tertiary Dim role for buttons or actions that are related to tertiary\nactions yet don't require immediate focus. \n\n**Tertiary-Container**\n\n1. Tertiary-Container\n2. On-Tertiary-Container\n\nApply Tertiary-Container for backgrounds that group tertiary-related content,\nlike collections of badges or stickers. It emphasizes tertiary elements while\nmaintaining balance and structure in the UI.\n\n\u003cbr /\u003e\n\nSemantic roles\n--------------\n\n\nError-Red is used to indicate critical issues as error, delete, and anything\nrelated to emergency. It is designed to draw immediate attention to problems or\nwarnings, ensuring users can quickly identify areas that need corrective action.\nThe tone of Error-Red should maintain sufficient contrast against backgrounds to\nmeet accessibility standards, ensuring it is clearly visible and is\ndistinguishable from other status colors like warnings or success messages. \n\n\u003cbr /\u003e\n\n\n**Error**\n\n1. Error\n2. On-Error\n\nA semantic, yet slightly theme-tinted red, which indicates remove, delete, close\nor dismiss actions, such as Swipe to Reveal. Added as a container alternative\nthat is slightly less alarming and urgent than the error-dim color. \n\n**Error-Dim**\n\n1. Error-Dim\n2. On-Error\n\nA semantic, yet slightly theme-tinted red, which indicates high priority errors\nor emergency actions, such as safety alerts, failed dialog overlays or stop\nbuttons. \n\n**Error-Container**\n\n1. Error-Container\n2. On-Error-Container\n\nLess prominent container color, for components using the error state. Can also\nindicate an active error state which feels less interactive than a filled state,\nsuch as an active emergency sharing button or card, or on a failed overlay\ndialog.\n\n\u003cbr /\u003e\n\nSurface containers and elevation\n--------------------------------\n\n\nSurface containers are key in defining depth and elevation within the UI,\nproviding structure and hierarchy through color, helping to differentiate\ncomponents based on their importance and interaction. \n\n\u003cbr /\u003e\n\n\n**Surface-Container-Low**\n\n1. Surface-Container-Low\n2. On-Surface\n3. On-Surface-Variant\n\nGreat for an expanded container that needs to sit below Surface-Container, such\nas an expanded card in the Notification. Can also be used for non-interactive\ncards, where content still benefits from containment. \n\n**Surface-Container**\n\n1. Surface-Container\n2. On-Surface\n3. On-Surface-Variant\n\nThe default container color for most elements. It provides a neutral, moderate\nelevation, making it suitable for general UI components. \n\n**Surface-Container-High**\n\n1. Surface-Container-High\n2. On-Surface\n3. On-Surface-Variant\n\nIdeal for high-emphasis components that need to sit on top of, or in combination\nwith Surface-Container. This color helps bring focus and hierarchy to critical\nareas in the UI.\n\n\u003cbr /\u003e"]]