Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling - How to? #115

Open
jycouet opened this issue Aug 24, 2024 · 0 comments
Open

Styling - How to? #115

jycouet opened this issue Aug 24, 2024 · 0 comments

Comments

@jycouet
Copy link

jycouet commented Aug 24, 2024

On the read me, I see:

Available properties and their defaults can be found in the :root {} block inside the package CSS.

Could you write an example with 2 or 3 variables (As a demo) ? directly in the readme ?
And where do you do this usually? in style tag of where you placed your <ModalContainer /> ? Or in your app.css ?


Then, to style the modal, you would suggest to do it in SomeComponent.svelte directly ? Or more globally ? with like:

.spm-modal {
  background-color: #ff3e00;
  padding: 1rem;
}

Any recommendation ? Tips & trick to know?
(Maybe you could provide 1 example?)

Thx for you help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant