1// Copyright (C) 2024 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15import {Color} from './color'; 16 17// |ColorScheme| defines a collection of colors which can be used for various UI 18// elements. In the future we would expand this interface to include light and 19// dark variants. 20 21export interface ColorScheme { 22 // The base color to be used for the bulk of the element. 23 readonly base: Color; 24 25 // A variant on the base color, commonly used for highlighting. 26 readonly variant: Color; 27 28 // Grayed out color to represent a disabled state. 29 readonly disabled: Color; 30 31 // Appropriate colors for text to be displayed on top of the above colors. 32 readonly textBase: Color; 33 readonly textVariant: Color; 34 readonly textDisabled: Color; 35} 36