Skip to content

Commit

Permalink
#6 Simplified and fixed colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ronan committed Dec 2, 2024
1 parent 6241ab5 commit ea3659d
Show file tree
Hide file tree
Showing 5 changed files with 328 additions and 568 deletions.
113 changes: 38 additions & 75 deletions color/color.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,23 @@ $su_colors = [
'black' => '#2E2D29',
'black_90' => '#43423E',

'body_text' => '#2E2D28',
'body_bg' => '#FFFFFE',

'header_text' => '#2E2D27',
'header_bg' => '#FFFFFD',

'logo' => '#8C1516',
'border' => '#F0F0F0',
'text' => '#2E2D28',
'bg' => '#FFFFFE',

'identity' => '#8C1517',
'identity_text' => '#FFFFFC',

'form_focus' => '#006CB7',

'menu_text' => '#2E2D26',
'menu_bg' => '#FFFFFB',
'menu_hover' => '#8C1518',


'border' => '#F0F0F0',
'footer_text' => '#2E2D25',
'footer_bg' => '#F4F4F4',

'action' => '#B1040F',
'digital' => '#B1040E',

'title' => '#B1040D',
'link' => '#006CB8',

'identity' => '#8C1517',
'identity_text' => '#FFFFFC',

'white' => '#FFFFFF',
'black_true' => '#000000',
'cool_grey' => '#53565A',

'cardinal_red' => '#8C1515',
Expand Down Expand Up @@ -81,57 +70,44 @@ $su_colors = [
$info = array(
// Available colors and color labels used in theme.
'fields' => array(
'header_bg' => t('Header background'),
'header_text' => t('Header text'),
'logo' => t('Stanford Logo'),

'menubg' => t('Menu background'),
'menutext' => t('Menu link'),
'menuhover' => t('Menu hover'),
'identity' => t('Global Identity'),
'identity_text' => t('Global Identity Contrast'),

'bg' => t('Main background'),
'text' => t('Text color'),

'link' => t('Body link color'),
'title' => t('Title/Button color'),

'footer' => t('Local footer background'),
'footertext' => t('Local footer text'),
'footerborder' => t('Local footer border'),

'identitybg' => t('Global head/foot bg'),
'identitytext' => t('Global head/foot text'),
'footer_text' => t('Local footer text'),

'form_borders' => t('Form field borders'),
'form_focus' => t('Form focus'),

'form_error' => t('Form errors (coming soon)'),
'form_ok' => t('Form valid (coming soon)'),
),

// Pre-defined color schemes.
'schemes' => array(
'default' => array(
'title' => t('Stanford Cardinal (default)'),
'colors' => array(
'header_bg' => $su_colors['header_bg'],
'header_text' => $su_colors['header_text'],
'logo' => $su_colors['logo'],
'identity' => $su_colors['identity'],
'identity_text' => $su_colors['identity_text'],

'bg' => $su_colors['body_bg'],
'text' => $su_colors['body_text'],
'bg' => $su_colors['bg'],
'text' => $su_colors['text'],
'link' => $su_colors['link'],
'title' => $su_colors['title'],

'form_borders' => $su_colors['cool_grey'],
'form_focus' => $su_colors['digital_blue'],

'menubg' => $su_colors['menu_bg'],
'menutext' => $su_colors['menu_text'],
'menuhover' => $su_colors['menu_hover'],
'form_error' => $su_colors['digital_red'],
'form_ok' => $su_colors['digital_green'],

'footer' => $su_colors['footer_bg'],
'footertext' => $su_colors['footer_text'],

'identitybg' => $su_colors['identity'],
'identitytext' => $su_colors['identity_text'],
'footer_text' => $su_colors['footer_text'],
),
),
),
Expand All @@ -146,50 +122,37 @@ $info = array(
$info['schemes']['digital'] = $info['schemes']['default'];
$info['schemes']['digital']['title'] = t('Stanford Digital');
$info['schemes']['digital']['colors'] = [
'logo' => $su_colors['digital_red'],
'identity' => $su_colors['digital_red'],
'link' => $su_colors['digital_blue'],
'title' => $su_colors['digital_red'],
'formfocusborder' => $su_colors['digital_blue'],
'menuhover' => $su_colors['digital_red'],
'footer' => $su_colors['cool_grey'],
'footertext' => $su_colors['white'],
'identitybg' => $su_colors['digital_red'],
'title' => $su_colors['digital_red']
] + $info['schemes']['digital']['colors'];

$info['schemes']['dark'] = $info['schemes']['default'];
$info['schemes']['dark']['title'] = t('Stanford Dark');
$info['schemes']['dark']['colors'] = [
'header_bg' => $su_colors['black'],
'header_text' => $su_colors['white'],
'logo' => $su_colors['white'],
'bg' => $su_colors['stone'],

'identity' => $su_colors['cardinal_red_dk'],
'identity_text' => $su_colors['white'],

'bg' => $su_colors['black_true'],
'text' => $su_colors['white'],
'link' => $su_colors['digital_blue_lt'],
'menubg' => $su_colors['black'],
'menutext' => $su_colors['white'],
'menuhover' => $su_colors['cardinal_red_lt'],
'footer' => $su_colors['stone_dk'],
'footertext' => $su_colors['white'],
'identitybg' => $su_colors['black_90'],
'identitytext' => $su_colors['white'],
'form_borders' => $su_colors['white'],
'form_focus' => $su_colors['digital_blue'],
'link' => $su_colors['link'],
'title' => $su_colors['title'],

'footer' => $su_colors['black'],
'footer_text' => $su_colors['white'],

] + $info['schemes']['digital']['colors'];
$info['schemes']['dark']['blend_target'] = '#000000';

$info['schemes']['clown'] = $info['schemes']['default'];
$info['schemes']['clown']['title'] = t('Clownford University');
$info['schemes']['clown']['colors'] = [
'header_bg' => $su_colors['palo_alto'],
'header_text' => $su_colors['olive'],
'logo' => $su_colors['bay'],
'bg' => $su_colors['fog'],
'text' => $su_colors['lagunita'],
'link' => $su_colors['poppy'],
'menubg' => $su_colors['spirited'],
'menutext' => $su_colors['plum'],
'menuhover' => $su_colors['brick'],
'footer' => $su_colors['stone'],
'footertext' => $su_colors['stone_dk'],
'identitybg' => $su_colors['sky'],
'identitytext' => $su_colors['fog_dk'],
'footer_text' => $su_colors['stone_dk'],
'identity' => $su_colors['sky'],
'identity_text' => $su_colors['fog_dk'],
] + $info['schemes']['digital']['colors'];
Loading

0 comments on commit ea3659d

Please sign in to comment.