Typography typographylistux

Custom List Markers

Unordered list with clean, styled bullet points.

Preview

    Custom List Markers

Usage

Copy the full block below to use this component with its imports.

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 src/components/lib/CustomListMarkers.astro and paste the following code:

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