Maker-story / src /utils /style_loader.py
JeCabrera's picture
Upload 10 files
940bcf8 verified
raw
history blame contribute delete
348 Bytes
import streamlit as st
def load_css_files():
"""Load all CSS files and apply them to the Streamlit app"""
css_files = ['layout.css', 'buttons.css', 'story_output.css']
for css_file in css_files:
with open(f"src/styles/{css_file}") as f:
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)