mehdibha / dotUI

✨ Accessible, mobile friendly, modern UI components.
https://dotui.org
MIT License
1.11k stars 25 forks source link

[bug] Documentation: Incorrect class names in @layer base example #25

Open R1013-T opened 1 month ago

R1013-T commented 1 month ago

Describe the bug

The documentation for the @layer base section in the installation guide contains incorrect class names. This may lead to confusion for users trying to implement the styles. I intend to submit a PR to correct this if confirmed.

Current code:

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

Expected code:

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-bg text-fg;
  }
}

Affected component/components

Documentation (Installation guide)

How to reproduce

  1. Go to https://dotui.org/docs/installation
  2. Scroll down to the base section of the layer in Update globals.css.
  3. Observe the class names used in the example

Codesandbox link

No response

System Info

Not applicable for documentation issues.

Before submitting