Skip to content

Commit 6413c96

Browse files
committed
docs
1 parent 7acedd3 commit 6413c96

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

packages/docs/src/global.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@
119119
content: none;
120120
}
121121
}
122+
123+
:where(code):not(pre > code) {
124+
margin-inline: 0.25em;
125+
}
126+
:where(kbd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
127+
margin-inline: 0.25em;
128+
}
122129
}
123130

124131
.code-wrapper {

packages/docs/src/routes/(routes)/docs/cdn/+page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ desc: How to use daisyUI from a CDN?
7474

7575
<h3 class="block text-xl mt-6 mb-4 font-bold">Adding all themes</h3>
7676

77-
<p class="mt-6">daisyui.css includes light and dark themes. For other themes, add themes.css file as well:</p>
77+
<p class="mt-6 mb-4">daisyui.css includes light and dark themes. For other themes, add themes.css file as well:</p>
7878
<div class="grid *:[grid-area:1/1]">
7979
<div class="overflow-x-auto [direction:ltr] pt-12 pb-8 px-6 bg-neutral text-neutral-content rounded-box">
8080
<pre class="shiki tokyo-night" style="background-color:var(--shiki-bg);color:var(--shiki-punctuation)" tabindex="0"><code><span class="line"><span style="color:var(--shiki-punctuation)">&lt;link</span><span style="color:var(--shiki-attr-name)"> href</span><span style="color:var(--shiki-punctuation)">=</span><span style="color:var(--shiki-punctuation)">"</span><span style="color:var(--shiki-attr-value)">https://cdn.jsdelivr.net/npm/daisyui@5/themes.css</span><span style="color:var(--shiki-punctuation)">"</span><span style="color:var(--shiki-attr-name)"> rel</span><span style="color:var(--shiki-punctuation)">=</span><span style="color:var(--shiki-punctuation)">"</span><span style="color:var(--shiki-attr-value)">stylesheet</span><span style="color:var(--shiki-punctuation)">"</span><span style="color:var(--shiki-attr-name)"> type</span><span style="color:var(--shiki-punctuation)">=</span><span style="color:var(--shiki-punctuation)">"</span><span style="color:var(--shiki-attr-value)">text/css</span><span style="color:var(--shiki-punctuation)">"</span><span style="color:var(--shiki-punctuation)"> /&gt;</span></span></code></pre>

packages/docs/src/routes/(routes)/docs/use/+page.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ desc: How to use daisyUI classes to style your page?
88
</script>
99
<Translate text="Once you <a href='/docs/install/'>installed daisyUI</a>, you can use component classes like <code>btn</code>, <code>card</code>, etc." />
1010

11-
1. <Translate text="So instead of making a button using only utility classes" />:
11+
So instead of making a button using only utility classes
1212

1313
```html
1414
<button
@@ -19,23 +19,23 @@ desc: How to use daisyUI classes to style your page?
1919

2020
<button class="inline-block px-4 py-3 text-sm font-semibold text-center text-white uppercase transition duration-200 ease-in-out bg-gray-800 rounded-md cursor-pointer hover:bg-gray-900">Button</button>
2121

22-
2. <Translate text="You can just use a component class like this" />:
22+
You can just use a component class like this
2323

2424
```html
2525
<button class="btn">Button</button>
2626
```
2727

2828
<button class="btn">Button</button>
2929

30-
3. <Translate text="Then you can modify the component with daisyUI additional utility classes" />:
30+
Then you can modify the component with daisyUI additional utility classes
3131

3232
```html
3333
<button class="btn btn-primary">Button</button>
3434
```
3535

3636
<button class="btn btn-primary">Button</button>
3737

38-
4. <Translate text="Or you can modify the component with Tailwind CSS utility classes" />:
38+
Or you can modify the component with Tailwind CSS utility classes
3939

4040
```html
4141
<button class="btn w-64 rounded-full">Button</button>

0 commit comments

Comments
 (0)