Skip to content

Commit 2ce62dc

Browse files
authored
feat: mark utility (#3408)
1 parent 4789d97 commit 2ce62dc

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

.changeset/yellow-turkeys-divide.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@skeletonlabs/skeleton": minor
3+
---
4+
5+
feat: `mark` utility
6+

packages/skeleton/src/utilities/typography.css

+7
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,10 @@
228228
content: '−';
229229
}
230230
}
231+
232+
@utility mark {
233+
color: var(--color-tertiary-contrast-500);
234+
background-color: var(--color-tertiary-500);
235+
border-radius: var(--radius-sm);
236+
padding-inline: --spacing(1);
237+
}

playgrounds/skeleton-core/src/pages/design/typography.astro

+9
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,14 @@ import Layout from '@layouts/Layout.astro';
8282
<ins class="ins" cite="https://youtu.be/dQw4w9WgXcQ" datetime="10-31-2022"> Never Gonna Give You Up </ins>
8383
</div>
8484
</section>
85+
86+
<section class="space-y-4">
87+
<h2 class="h2">Mark</h2>
88+
<p>
89+
Lorem ipsum dolor sit amet, consectetur <mark class="mark">adipisicing</mark> elit. Maxime labore repellendus exercitationem. Suscipit
90+
molestiae esse cumque dolore non <mark class="mark">ducimus</mark> temporibus dolorum voluptatum <mark class="mark">fugiat</mark>,
91+
quas recusandae aliquid amet molestias excepturi nemo?
92+
</p>
93+
</section>
8594
</div>
8695
</Layout>

sites/skeleton.dev/src/content/docs/design/typography.mdx

+12
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import Keyboard from '@examples/design/typography/Keyboard.astro';
2727
import KeyboardRaw from '@examples/design/typography/Keyboard.astro?raw';
2828
import InsDel from '@examples/design/typography/InsDel.astro';
2929
import InsDelRaw from '@examples/design/typography/InsDel.astro?raw';
30+
import Mark from '@examples/design/typography/Mark.astro';
31+
import MarkRaw from '@examples/design/typography/Mark.astro?raw';
3032

3133
import Semantic from '@examples/design/typography/Semantic.svelte';
3234
import SemanticRaw from '@examples/design/typography/Semantic.svelte?raw';
@@ -179,6 +181,16 @@ Use the following utility classes to quickly style semantic HTML elements. These
179181
</Fragment>
180182
</Preview>
181183

184+
### Mark
185+
186+
<Preview client:load>
187+
<Fragment slot="preview">
188+
<Mark />
189+
</Fragment>
190+
<Fragment slot="code">
191+
<Code code={MarkRaw} lang="astro" />
192+
</Fragment>
193+
</Preview>
182194
## Lists
183195

184196
Skeleton defers to Tailwind's built-in utility classes for common list styles.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<p>
2+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nesciunt, <mark class="mark">aliquid</mark>. Molestias, odio illum <mark
3+
class="mark">voluptatibus</mark
4+
>
5+
natus dignissimos, quidem est unde aspernatur veniam pariatur fuga distinctio esse in quas, <mark class="mark">repellendus</mark>
6+
neque reiciendis!
7+
</p>

0 commit comments

Comments
 (0)