Skip to content

[FEATURE] possible to load/unload css files? #3916

@kraanzu

Description

@kraanzu

Discussed in #3907

Originally posted by kraanzu December 20, 2023
I'm trying to make a theme changer and I'm currently using classes (like .theme-name) to override the color/styles in a widget but is there a way to dynamically load/unload css files?

I looked into the action_toggle_dark which also uses classnames.
Textual is able to determine any file changes in the CSS file, but It'd be great if I can change the CSS_PATH on demand :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions