|
| 1 | +# Color System |
| 2 | + |
| 3 | +## Description |
| 4 | + |
| 5 | +The colors in V-Control are imported from the Material Design system and follow the semantic variable naming conventions of Material Design. You can use these colors to create your own themes. |
| 6 | + |
| 7 | +The resource dictionary path for colors is: |
| 8 | +``` |
| 9 | +.\src\Resources\Styles\VControlColors.xaml |
| 10 | +``` |
| 11 | + |
| 12 | +## Standard Colors |
| 13 | + |
| 14 | +There are 21 standard colors divided into six groups: Primary, Secondary, Tertiary, Background, Surface, and Outline. |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +### Semantic Definitions of Standard Colors: |
| 19 | + |
| 20 | +* **Surface** – Used for large, low-emphasis background areas on screens. |
| 21 | +* **Primary, Secondary, Tertiary** – Used as accent colors to emphasize or de-emphasize foreground elements. |
| 22 | +* **Container** – Used as fill colors for foreground elements like buttons. They should not be applied to text or icons. |
| 23 | +* **On** – Roles prefixed with "On" indicate colors used for text or icons placed on top of their paired parent colors. For example, "OnPrimary" is used for text and icons that appear over the primary fill color. |
| 24 | +* **Variant** – Roles ending in "Variant" provide a lower-emphasis alternative to their non-variant counterparts. For instance, "OutlineVariant" is a less prominent version of the outline color. |
| 25 | + |
| 26 | +The standard color resources are as follows. You can use these as a foundation to create your own theme. |
| 27 | + |
| 28 | +```xml |
| 29 | +<Color x:Key="Primary">#FF7415</Color> |
| 30 | +<Color x:Key="OnPrimary">#FFFFFF</Color> |
| 31 | +<Color x:Key="PrimaryContainer">#FEF4EA</Color> |
| 32 | +<Color x:Key="OnPrimaryContainer">#ED6103</Color> |
| 33 | + |
| 34 | +<Color x:Key="Secondary">#f38e47</Color> |
| 35 | +<Color x:Key="OnSecondary">#FFFFFF</Color> |
| 36 | +<Color x:Key="SecondaryContainer">#FEF4EA</Color> |
| 37 | +<Color x:Key="OnSecondaryContainer">#EB6B13</Color> |
| 38 | + |
| 39 | +<Color x:Key="Tertiary">#FDDB3A</Color> |
| 40 | +<Color x:Key="OnTertiary">#2C3639</Color> |
| 41 | +<Color x:Key="TertiaryContainer">#786301</Color> |
| 42 | +<Color x:Key="OnTertiaryContainer">#fef1b0</Color> |
| 43 | + |
| 44 | +<Color x:Key="Surface">#FFFFFF</Color> |
| 45 | +<Color x:Key="OnSurface">#3F4E4F</Color> |
| 46 | +<Color x:Key="SurfaceVariant">#E7E0EC</Color> |
| 47 | +<Color x:Key="OnSurfaceVariant">#49454E</Color> |
| 48 | + |
| 49 | +<Color x:Key="Background">#F5F5F5</Color> |
| 50 | +<Color x:Key="OnBackground">#1C1B1F</Color> |
| 51 | + |
| 52 | +<Color x:Key="Outline">#E1E1E1</Color> |
| 53 | +<Color x:Key="OutlineVariant">#C4C7C5</Color> |
| 54 | +<Color x:Key="Shadow">#000000</Color> |
| 55 | +``` |
| 56 | + |
| 57 | +## Auxiliary Colors |
| 58 | + |
| 59 | +Auxiliary colors are used for different scenarios apart from the primary colors (e.g., error colors for dangerous actions). |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +The auxiliary color resources are as follows. You can use these as a foundation to create your own theme. |
| 64 | + |
| 65 | +```xml |
| 66 | +<Color x:Key="Error">#B3261E</Color> |
| 67 | +<Color x:Key="ErrorContainer">#F9DEDC</Color> |
| 68 | + |
| 69 | +<Color x:Key="Success">#01ae54</Color> |
| 70 | +<Color x:Key="SuccessContainer">#a8eac0</Color> |
| 71 | + |
| 72 | +<Color x:Key="Warning">#F7B548</Color> |
| 73 | +<Color x:Key="WarningContainer">#FFE5B9</Color> |
| 74 | + |
| 75 | +<Color x:Key="DisabledText">#ba919191</Color> |
| 76 | +<Color x:Key="PlaceHolderText">#E0E0E0</Color> |
| 77 | +<Color x:Key="DisabledBackground">#80919191</Color> |
| 78 | +``` |
| 79 | + |
| 80 | +## Neutral Colors |
| 81 | + |
| 82 | +Neutral colors are used for text, backgrounds, and border colors. Applying different neutral colors helps establish a visual hierarchy. |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | +The neutral color resources are as follows. You can use these as a foundation to create your own theme. |
| 87 | +```xml |
| 88 | +<Color x:Key="White">White</Color> |
| 89 | +<Color x:Key="Black">Black</Color> |
| 90 | + |
| 91 | +<Color x:Key="Gray50">#F8F8F8</Color> |
| 92 | +<Color x:Key="Gray60">#F7F7F7</Color> |
| 93 | +<Color x:Key="Gray100">#F5F5F5</Color> |
| 94 | +<Color x:Key="Gray120">#F3F3F3</Color> |
| 95 | +<Color x:Key="Gray150">#F1F1F1</Color> |
| 96 | +<Color x:Key="Gray170">#F0F0F0</Color> |
| 97 | +<Color x:Key="Gray190">#E1E1E1</Color> |
| 98 | +<Color x:Key="Gray200">#E0E0E0</Color> |
| 99 | +<Color x:Key="Gray230">#B7B7B7</Color> |
| 100 | +<Color x:Key="Gray240">#B5B5B5</Color> |
| 101 | +<Color x:Key="Gray250">#B3B3B3</Color> |
| 102 | +<Color x:Key="Gray270">#AEAEAE</Color> |
| 103 | +<Color x:Key="Gray300">#ACACAC</Color> |
| 104 | +<Color x:Key="Gray360">#A6A6A6</Color> |
| 105 | +<Color x:Key="Gray380">#919191</Color> |
| 106 | +<Color x:Key="Gray400">#848381</Color> |
| 107 | +<Color x:Key="Gray500">#6E6E6E</Color> |
| 108 | +<Color x:Key="Gray550">#666666</Color> |
| 109 | +<Color x:Key="Gray600">#404040</Color> |
| 110 | +<Color x:Key="Gray900">#212121</Color> |
| 111 | +<Color x:Key="Gray950">#141414</Color> |
| 112 | +``` |
| 113 | + |
0 commit comments