Skip to content

Styling in svelte/tailwindcss with daisyui #156

@sittim

Description

@sittim

Here is my setup:

  • Tailwind CSS V4 is used
  • DaisyUI 5.0.12 components are used
  • Svelte Kit V2.17.3 is used, svelte V5
  • TypeScript is used for the front end

when I do this:

    <div class="carta-sandbox">
      <div aria-labelledby="descEditorLabel">
        <MarkdownEditor
          bind:value={$dsc}
          {carta}
          mode="tabs"
          theme="default"
        />
      </div>
    </div>

it looks like this:

Image

Its OK, but I do not like the tabs.

When I use the github theme, I get this:

Image

for the sandbox div I use:

<style>
  :global(.carta-sandbox) {
    all: initial;
    font-family: inherit;
    line-height: 1.5;
  }
</style>

Do you have any suggestions to make github look a bit better?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions