1 GitHub star = 1 new component.

Star the repo
Typography typographylistux

Custom List Markers

Unordered list with custom minimal geometric markers.

Live Preview

    Custom List Markers

Usage

Copy and paste this code into your Astro page:

astro
---
import { CustomListMarkers } from 'astro-component-kit';
---

<MinimalListMarkers>Content</MinimalListMarkers>
--- import { CustomListMarkers } from 'astro-component-kit'; --- <MinimalListMarkers>Content</MinimalListMarkers>

Manual Installation

If you are not using the npm package, create a new file and paste the following code: src/components/lib/CustomListMarkers.astro:

astro
---
---
<ul class="custom-list">
  <slot />
</ul>
<style>
  .custom-list { list-style: none; padding: 0; }
  .custom-list :global(li) { position: relative; padding-left: 1.5rem; margin-bottom: 0.85rem; color: #94a3b8; font-size: 1rem; line-height: 1.5; }
  .custom-list :global(li::before) { content: "→"; position: absolute; left: 0; color: #6366f1; font-weight: 900; }
</style>
--- --- <ul class="custom-list"> <slot /> </ul> <style> .custom-list { list-style: none; padding: 0; } .custom-list :global(li) { position: relative; padding-left: 1.5rem; margin-bottom: 0.85rem; color: #94a3b8; font-size: 1rem; line-height: 1.5; } .custom-list :global(li::before) { content: "→"; position: absolute; left: 0; color: #6366f1; font-weight: 900; } </style>

Quick Info

Category
Typography
Filename
CustomListMarkers.astro
Dependencies
None — pure Astro + CSS
Tags
typographylistux