Eric Liu

Results 252 comments of Eric Liu

The code for a Carbon + Svelte tutorial is located here: https://github.com/carbon-design-system/carbon-tutorial-svelte However, it remains to be seen whether it will [make it the official docs](https://github.com/carbon-design-system/carbon-website/pull/2308).

Have you tried the `Theme` component? You can easily [customize theme colors](https://carbon-components-svelte.onrender.com/components/Theme#custom-theme) using CSS variables.

Related https://github.com/carbon-design-system/carbon/issues/6337

Making a note that there is an effort to add this upstream: https://github.com/carbon-design-system/carbon/issues/6337#issuecomment-981863043

Interesting – I think a recursive side nav links example would be very useful. Feel free to submit a PR.

> Another suggestion would be to provide a pattern value to textInput. Have you tried setting `pattern` on `TextInput`? `$$restProps` are passed to the input element.

Great question. Carbon offers a [@carbon/layout](https://github.com/carbon-design-system/carbon/tree/996eee09b47d019a54cf9da7f0197c3677f744f3/packages/layout) package, which ships layout tokens for both CSS-in-JS and SCSS. Personally, I prefer using the pre-compiled `css/all.css` StyleSheet, which uses CSS variables. That way,...

> The UIShell has a menu bar on top. This bar overlaps the content of the page. I had to add a padding/margin at the top of the content to...

I can see this being useful, particularly for RTL layouts. I'd recommend first asking in [Carbon issues](https://github.com/carbon-design-system/carbon/issues) if this is a supported use case.