colors¶
The colors module provides access to MSU and Big Ten color constants.
Module Overview¶
This module defines:
- MSU primary and secondary colors
- Big Ten primary and secondary colors for all 18 institutions
- Color dictionaries for programmatic access
MSU Colors¶
MSU_GREEN = '#18453B'
module-attribute
¶
MSU Spartan Green - Primary institutional color
MSU_WHITE = '#FFFFFF'
module-attribute
¶
MSU White - Primary institutional color
MSU_BLACK = '#000000'
module-attribute
¶
MSU Black - Primary institutional color
MSU_ORANGE = '#FF6F00'
module-attribute
¶
MSU Orange
MSU_TEAL = '#008183'
module-attribute
¶
MSU Teal
Big Ten Color Dictionaries¶
BIGTEN_COLORS_PRIMARY = {'Illinois': '#FF552E', 'Indiana': '#990000', 'Iowa': '#FFCD00', 'MSU': '#18453B', 'Maryland': '#F0163A', 'Michigan': '#00274C', 'Minnesota': '#FFCC33', 'Nebraska': '#D00000', 'Northwestern': '#4E2A84', 'Ohio State': '#BB0000', 'Oregon': '#007030', 'Penn State': '#001E44', 'Purdue': '#CFB991', 'Rutgers': '#CC0033', 'UCLA': '#2774AE', 'USoCal': '#990000', 'Washington': '#4B2E83', 'Wisconsin': '#DA004C'}
module-attribute
¶
Big Ten institutional primary colors
BIGTEN_COLORS_SECONDARY = {'Illinois': '#13294B', 'Indiana': '#EDEBEB', 'Iowa': '#000000', 'MSU': '#FFFFFF', 'Maryland': '#FFD90F', 'Michigan': '#FFCB05', 'Minnesota': '#7A0019', 'Nebraska': '#F5F1E7', 'Northwestern': '#E4E0EE', 'Ohio State': '#666666', 'Oregon': '#FEE11A', 'Penn State': '#FFFFFF', 'Purdue': '#000000', 'Rutgers': '#525C5C', 'UCLA': '#FFD100', 'USoCal': '#FFCC00', 'Washington': '#E8E3D3', 'Wisconsin': '#FFFFFF'}
module-attribute
¶
Big Ten institutional secondary colors
Usage Examples¶
Basic Usage¶
from msuthemes.colors import MSU_GREEN, MSU_WHITE
import matplotlib.pyplot as plt
plt.plot([1, 2, 3], [1, 4, 2], color=MSU_GREEN)
plt.show()
Accessing Big Ten Colors¶
from msuthemes.colors import BIGTEN_COLORS_PRIMARY
# Get Michigan State's primary color
msu_color = BIGTEN_COLORS_PRIMARY['Michigan State']
print(msu_color) # '#18453b'
# Iterate over all Big Ten colors
for institution, color in BIGTEN_COLORS_PRIMARY.items():
print(f"{institution}: {color}")
See Also¶
- Color Guide - Detailed color usage guide
- bigten module - Big Ten utility functions