github.com/pluralsh/plural-cli@v0.9.5/pkg/ui/web/src/grommet/theme.ts (about) 1 import { css } from 'styled-components' 2 3 const boxStyle = css` 4 outline: none; 5 ` 6 7 export const PLURAL_THEME = { 8 'plural-blk': '#000b11', 9 'plrl-black': '#000b11', 10 'tone-dark': '#01131a', 11 'tone-dark-2': '#1a2b31', 12 'tone-dark-3': '#2f3b41', 13 'tone-medium': '#c9d1d3', 14 'tone-light': '#edf1f2', 15 'plrl-white': '#fff', 16 'key-dark': '#001b8c', 17 'key-light': '#5C77FF', 18 blue: '#0022b2', 19 'blue-light': '#3351f2', 20 'blue-light-2': '#e1ebff', 21 'blue-dark': '#001b8c', 22 'blue-dark-2': '#002068', 23 'alt-dark': '#006e96', 24 'alt-light': '#0090c4', 25 'plrl-red': '#dd2c39', 26 'red-dark': '#b52d31', 27 'red-dark-2': '#7f0009', 28 'red-light': '#ff2756', 29 'red-light-2': '#ffd9df', 30 'status-warning': 'orange', 31 green: '#008e47', 32 'green-dark': '#23422b', 33 'green-dark-2': '#004422', 34 'green-light': '#00ed76', 35 'green-light-2': '#ccffe5', 36 teal: '#00e5a3', 37 'teal-dark': '#00b57d', 38 'teal-dark-2': '#009362', 39 'teal-light': '#00ffb0', 40 'teal-light-2': '#ccffee', 41 orange: '#ef9300', 42 'orange-dark': '#e88900', 43 'orange-dark-2': '#b76800', 44 'orange-light': '#ff9d00', 45 'orange-light-2': '#ffeacc', 46 purple: '#960ea5', 47 'purple-dark': '#830096', 48 'purple-dark-2': '#650077', 49 'purple-light': '#df00ff', 50 'purple-light-2': '#f7ccff', 51 'fill-zero': 'grey.900', 52 'fill-zero-hover': 'grey.875', 53 'fill-zero-selected': 'grey.825', 54 'fill-one': 'grey.850', 55 'fill-one-hover': 'grey.825', 56 'fill-one-selected': 'grey.775', 57 'fill-two': 'grey.800', 58 'fill-two-hover': 'grey.775', 59 'fill-two-selected': 'grey.725', 60 'fill-three': 'grey.750', 61 'grey.950': '#0E1015', 62 'grey.900': '#171A21', 63 'grey.875': '#1C2026', 64 'grey.850': '#1E2229', 65 'grey.825': '#23272E', 66 'grey.800': '#2A2E37', 67 'grey.775': '#303540', 68 'grey.750': '#363B45', 69 'grey.725': '#3C414D', 70 'grey.700': '#434956', 71 'grey.600': '#555C68', 72 'grey.500': '#757D8A', 73 'grey.400': '#9096A2', 74 'grey.300': '#A9B0BC', 75 'grey.200': '#C4CAD4', 76 'grey.100': '#DEE2E8', 77 'grey.50': '#E9ECF0', 78 } 79 80 export const DEFAULT_COLOR_THEME = { 81 brand: 'key-light', 82 // action: '#007a5a', 83 action: 'key-light', 84 sidebar: 'plural-blk', 85 card: '#222732', 86 hover: { dark: 'fill-two-hover', light: 'tone-light' }, 87 sidebarActive: 'tone-dark-3', 88 focus: 'key-light', 89 progress: '#007bff', 90 tagMedium: 'key-light', 91 tagLight: 'key-light', 92 backgroundColor: 'sidebarBackground', 93 sidebarBackground: '#0d1215', 94 // @ts-expect-error 95 orange: '#d7722c', 96 presence: '#39E500', 97 link: '#3366BB', 98 notif: 'error', 99 good: '#00ac46', 100 low: 'orange-light', 101 medium: 'orange', 102 high: 'red-dark', 103 critical: 'red-dark-2', 104 label: 'light-2', 105 'input-border': 'border', 106 primary: '#0639FF', 107 'action-primary': '#293EFF', 108 background: { 109 light: 'transparent', 110 dark: 'transparent', 111 }, 112 'background-light': { 113 light: '#f5f7f9', 114 dark: '#22293b', 115 }, 116 text: { 117 light: 'inherit', 118 dark: 'inherit', 119 }, 120 'text-light': { 121 light: 'lighten(text, 15)', 122 dark: 'darken(text, 15)', 123 }, 124 border: { 125 light: '#CCCCCC', 126 dark: '#303340', 127 }, 128 shadow: { 129 light: 'rgba(0, 0, 0, 0.2)', 130 dark: 'rgba(64, 64, 64, 0.2)', 131 }, 132 success: '#07E5A7', 133 error: '#E03E43', 134 warning: '#EF931D', 135 secondary: '#222534', 136 'background-middle': { 137 light: '#EEEEEE', 138 dark: '#222534', 139 }, 140 'background-top': { 141 light: 'white', 142 dark: '#323643', 143 }, 144 'text-strong': { 145 light: '#000000', 146 dark: 'white', 147 }, 148 'text-weak': { 149 light: '#444444', 150 dark: '#CCCCCC', 151 }, 152 'text-xweak': { 153 light: '#666666', 154 dark: '#999999', 155 }, 156 'background-success': '#07E5A733', 157 'background-warning': '#EF931D66', 158 'background-error': '#E03E4366', 159 'background-info': '#0190C266', 160 'accent-blue': { 161 dark: '#0190C2', 162 light: '#0190C2', 163 }, 164 'accent-purple': { 165 dark: '#9510A1', 166 light: '#9510A1', 167 }, 168 'accent-green': { 169 dark: '#058E4B', 170 light: '#058E4B', 171 }, 172 ...PLURAL_THEME, 173 } 174 175 export const DEFAULT_THEME = { 176 anchor: { 177 color: '#9095A2', 178 hover: { 179 textDecoration: 'underline', 180 extend: 'color: #EBEFF0', 181 }, 182 fontWeight: 400, 183 }, 184 button: { 185 padding: { 186 horizontal: '6px', 187 vertical: '2px', 188 }, 189 }, 190 checkBox: { 191 size: '20px', 192 toggle: { radius: '20px', size: '40px' }, 193 }, 194 box: { 195 extend: boxStyle, 196 }, 197 textField: { extend: { fontWeight: 400 } }, 198 select: { 199 options: { 200 text: { size: 'small' }, 201 }, 202 }, 203 layer: { 204 background: 'background', 205 }, 206 global: { 207 colors: DEFAULT_COLOR_THEME, 208 focus: { shadow: 'none', border: { color: 'brand' } }, 209 control: { border: { radius: '2px' } }, 210 drop: { 211 background: 'fill-two', 212 border: { radius: '4px' }, 213 zIndex: 2000, 214 extend: css` 215 box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.2); 216 `, 217 }, 218 box: { extend: boxStyle }, 219 checkBox: { toggle: { color: 'brand' } }, 220 active: { background: { color: '#1E2229' } }, 221 elevation: { 222 light: { 223 medium: '0px 3px 8px rgba(100, 100, 100, 0.50)', 224 }, 225 }, 226 font: { 227 family: 'Inter', 228 size: '14px', 229 height: '20px', 230 }, 231 }, 232 } 233 234 export { DEFAULT_THEME as grommetTheme }