Skip to content

Make it possible to load Lumo as a CSS file #7976

Open
@marcushellberg

Description

@marcushellberg

Describe your motivation

I often start projects from start.spring.io and need to manually load Lumo in my project. I'm primarily working with Hilla and I don't want to introduce the added complexity of a theme in my demos when a plain CSS import would do.

Describe the solution you'd like

I would like to be able to import Lumo in a React component (or just in any HTML) similar to this:

import '@vaadin/vaadin-lumo-styles/lumo.css';

Describe alternatives you've considered

Right now, I create a separate file where I import separate files from react-components (which is odd).

@import url('@vaadin/react-components/css/Lumo.css');
@import url('@vaadin/react-components/css/lumo/Typography.css');
@import url('@vaadin/react-components/css/lumo/Utility.module.css');

The problem with this, besides the added work in a live code demo, is that I don't actually know which all files I should include.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions